~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="build/apr_common.m4"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os apr_srcdir apr_builddir APR_CONFIG_LOCATION top_builddir apr_builders APR_DOTTED_VERSION APR_MAJOR_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE CPP AWK LN_S RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM AS ASCPP AR ac_ct_AR EGREP apr_charset_ebcdic APR_LIBNAME ECHO STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL installbuilddir lt_compile link so_ext lib_target export_lib_target shlibpath_var LTFLAGS LT_LDFLAGS MKDEP OBJECTS_PLATFORM proc_mutex_is_global eolstr INSTALL_SUBDIRS threads have_sigsuspend have_sigwait useshmgetanon usemmapzero usemmapanon haveshmgetanon havemmapzero havemmapanon usemmaptmp usemmapshm useshmget usebeosarea useos2shm havemmaptmp havemmapshm haveshmget havebeosarea haveos2shm sharedmem sendfile apr_inaddr_none fork have_inet_addr tcp_nodelay_inherited o_nonblock_inherited have_inet_network have_sigaction have_setrlimit have_getrlimit mmap have_memmove arpa_ineth conioh ctypeh crypth errnoh direnth fcntlh ioh limitsh netdbh sys_syslimitsh netinet_inh netinet_sctph netinet_sctp_uioh netinet_tcph stdargh stdioh stdlibh stringh stringsh sys_ioctlh sys_sendfileh sys_signalh sys_socketh sys_sockioh sys_typesh sys_timeh sys_uioh sys_unh timeh unistdh signalh sys_waith pthreadh semaphoreh voidp_size short_value int_value long_value int64_value off_t_value size_t_value ssize_t_value socklen_t_value int64_t_fmt uint64_t_fmt uint64_t_hex_fmt ssize_t_fmt size_t_fmt off_t_fmt pid_t_fmt int64_literal uint64_literal stdint bigendian aprlfs have_strnicmp have_strncasecmp have_stricmp have_strcasecmp have_strdup have_strstr have_memchr aprdso oc struct_rlimit have_union_semun hasflockser hassysvser hasposixser hasfcntlser hasprocpthreadser flockser sysvser posixser fcntlser procpthreadser pthreadser proclockglobal rand osuuid have_in_addr file_as_socket apr_tcp_nopush_flag have_corkable_tcp acceptfilter have_sctp have_sa_storage have_ipv6 EXTRA_CPPFLAGS EXTRA_CFLAGS EXTRA_LDFLAGS EXTRA_LIBS EXTRA_INCLUDES NOTEST_CPPFLAGS NOTEST_CFLAGS NOTEST_LDFLAGS NOTEST_LIBS NOTEST_INCLUDES LDLIBS INCLUDES OSDIR DEFAULT_OSDIR LIBTOOL_LIBS LT_NO_INSTALL INCLUDE_RULES INCLUDE_OUTPUTS LIBOBJS LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
 
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
 
472
# The variables have the same names as the options, with
 
473
# dashes changed to underlines.
 
474
cache_file=/dev/null
 
475
exec_prefix=NONE
 
476
no_create=
 
477
no_recursion=
 
478
prefix=NONE
 
479
program_prefix=NONE
 
480
program_suffix=NONE
 
481
program_transform_name=s,x,x,
 
482
silent=
 
483
site=
 
484
srcdir=
 
485
verbose=
 
486
x_includes=NONE
 
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
 
494
bindir='${exec_prefix}/bin'
 
495
sbindir='${exec_prefix}/sbin'
 
496
libexecdir='${exec_prefix}/libexec'
 
497
datadir='${prefix}/share'
 
498
sysconfdir='${prefix}/etc'
 
499
sharedstatedir='${prefix}/com'
 
500
localstatedir='${prefix}/var'
 
501
libdir='${exec_prefix}/lib'
 
502
includedir='${prefix}/include'
 
503
oldincludedir='/usr/include'
 
504
infodir='${prefix}/info'
 
505
mandir='${prefix}/man'
 
506
 
 
507
ac_prev=
 
508
for ac_option
 
509
do
 
510
  # If the previous option needs an argument, assign it.
 
511
  if test -n "$ac_prev"; then
 
512
    eval "$ac_prev=\$ac_option"
 
513
    ac_prev=
 
514
    continue
 
515
  fi
 
516
 
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
518
 
 
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
520
 
 
521
  case $ac_option in
 
522
 
 
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
524
    ac_prev=bindir ;;
 
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
526
    bindir=$ac_optarg ;;
 
527
 
 
528
  -build | --build | --buil | --bui | --bu)
 
529
    ac_prev=build_alias ;;
 
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
531
    build_alias=$ac_optarg ;;
 
532
 
 
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
535
    ac_prev=cache_file ;;
 
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
 
542
 
 
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
544
    ac_prev=datadir ;;
 
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
546
  | --da=*)
 
547
    datadir=$ac_optarg ;;
 
548
 
 
549
  -disable-* | --disable-*)
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
551
    # Reject names that are not valid shell variable names.
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
 
557
 
 
558
  -enable-* | --enable-*)
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
560
    # Reject names that are not valid shell variable names.
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
567
      *) ac_optarg=yes ;;
 
568
    esac
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
570
 
 
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
573
  | --exec | --exe | --ex)
 
574
    ac_prev=exec_prefix ;;
 
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
577
  | --exec=* | --exe=* | --ex=*)
 
578
    exec_prefix=$ac_optarg ;;
 
579
 
 
580
  -gas | --gas | --ga | --g)
 
581
    # Obsolete; use --with-gas.
 
582
    with_gas=yes ;;
 
583
 
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
 
590
 
 
591
  -host | --host | --hos | --ho)
 
592
    ac_prev=host_alias ;;
 
593
  -host=* | --host=* | --hos=* | --ho=*)
 
594
    host_alias=$ac_optarg ;;
 
595
 
 
596
  -includedir | --includedir | --includedi | --included | --include \
 
597
  | --includ | --inclu | --incl | --inc)
 
598
    ac_prev=includedir ;;
 
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
601
    includedir=$ac_optarg ;;
 
602
 
 
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
604
    ac_prev=infodir ;;
 
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
606
    infodir=$ac_optarg ;;
 
607
 
 
608
  -libdir | --libdir | --libdi | --libd)
 
609
    ac_prev=libdir ;;
 
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
611
    libdir=$ac_optarg ;;
 
612
 
 
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
614
  | --libexe | --libex | --libe)
 
615
    ac_prev=libexecdir ;;
 
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
617
  | --libexe=* | --libex=* | --libe=*)
 
618
    libexecdir=$ac_optarg ;;
 
619
 
 
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
621
  | --localstate | --localstat | --localsta | --localst \
 
622
  | --locals | --local | --loca | --loc | --lo)
 
623
    ac_prev=localstatedir ;;
 
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
627
    localstatedir=$ac_optarg ;;
 
628
 
 
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
630
    ac_prev=mandir ;;
 
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
632
    mandir=$ac_optarg ;;
 
633
 
 
634
  -nfp | --nfp | --nf)
 
635
    # Obsolete; use --without-fp.
 
636
    with_fp=no ;;
 
637
 
 
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
639
  | --no-cr | --no-c | -n)
 
640
    no_create=yes ;;
 
641
 
 
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
643
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
644
    no_recursion=yes ;;
 
645
 
 
646
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
647
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
648
  | --oldin | --oldi | --old | --ol | --o)
 
649
    ac_prev=oldincludedir ;;
 
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
653
    oldincludedir=$ac_optarg ;;
 
654
 
 
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
656
    ac_prev=prefix ;;
 
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
658
    prefix=$ac_optarg ;;
 
659
 
 
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
661
  | --program-pre | --program-pr | --program-p)
 
662
    ac_prev=program_prefix ;;
 
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
665
    program_prefix=$ac_optarg ;;
 
666
 
 
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
668
  | --program-suf | --program-su | --program-s)
 
669
    ac_prev=program_suffix ;;
 
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
672
    program_suffix=$ac_optarg ;;
 
673
 
 
674
  -program-transform-name | --program-transform-name \
 
675
  | --program-transform-nam | --program-transform-na \
 
676
  | --program-transform-n | --program-transform- \
 
677
  | --program-transform | --program-transfor \
 
678
  | --program-transfo | --program-transf \
 
679
  | --program-trans | --program-tran \
 
680
  | --progr-tra | --program-tr | --program-t)
 
681
    ac_prev=program_transform_name ;;
 
682
  -program-transform-name=* | --program-transform-name=* \
 
683
  | --program-transform-nam=* | --program-transform-na=* \
 
684
  | --program-transform-n=* | --program-transform-=* \
 
685
  | --program-transform=* | --program-transfor=* \
 
686
  | --program-transfo=* | --program-transf=* \
 
687
  | --program-trans=* | --program-tran=* \
 
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
689
    program_transform_name=$ac_optarg ;;
 
690
 
 
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
692
  | -silent | --silent | --silen | --sile | --sil)
 
693
    silent=yes ;;
 
694
 
 
695
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
696
    ac_prev=sbindir ;;
 
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
698
  | --sbi=* | --sb=*)
 
699
    sbindir=$ac_optarg ;;
 
700
 
 
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
703
  | --sharedst | --shareds | --shared | --share | --shar \
 
704
  | --sha | --sh)
 
705
    ac_prev=sharedstatedir ;;
 
706
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
709
  | --sha=* | --sh=*)
 
710
    sharedstatedir=$ac_optarg ;;
 
711
 
 
712
  -site | --site | --sit)
 
713
    ac_prev=site ;;
 
714
  -site=* | --site=* | --sit=*)
 
715
    site=$ac_optarg ;;
 
716
 
 
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
718
    ac_prev=srcdir ;;
 
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
720
    srcdir=$ac_optarg ;;
 
721
 
 
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
723
  | --syscon | --sysco | --sysc | --sys | --sy)
 
724
    ac_prev=sysconfdir ;;
 
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
727
    sysconfdir=$ac_optarg ;;
 
728
 
 
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
730
    ac_prev=target_alias ;;
 
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
732
    target_alias=$ac_optarg ;;
 
733
 
 
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
735
    verbose=yes ;;
 
736
 
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
 
739
 
 
740
  -with-* | --with-*)
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
742
    # Reject names that are not valid shell variable names.
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
 
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
749
      *) ac_optarg=yes ;;
 
750
    esac
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
 
752
 
 
753
  -without-* | --without-*)
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
755
    # Reject names that are not valid shell variable names.
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
 
761
 
 
762
  --x)
 
763
    # Obsolete; use --with-x.
 
764
    with_x=yes ;;
 
765
 
 
766
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
767
  | --x-incl | --x-inc | --x-in | --x-i)
 
768
    ac_prev=x_includes ;;
 
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
771
    x_includes=$ac_optarg ;;
 
772
 
 
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
775
    ac_prev=x_libraries ;;
 
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
778
    x_libraries=$ac_optarg ;;
 
779
 
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ;;
 
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
 
795
  *)
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
801
    ;;
 
802
 
 
803
  esac
 
804
done
 
805
 
 
806
if test -n "$ac_prev"; then
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
 
858
 
 
859
# Find the source files, if location was not specified.
 
860
if test -z "$srcdir"; then
 
861
  ac_srcdir_defaulted=yes
 
862
  # Try the directory containing this script, then its parent.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
 
875
  srcdir=$ac_confdir
 
876
  if test ! -r $srcdir/$ac_unique_file; then
 
877
    srcdir=..
 
878
  fi
 
879
else
 
880
  ac_srcdir_defaulted=no
 
881
fi
 
882
if test ! -r $srcdir/$ac_unique_file; then
 
883
  if test "$ac_srcdir_defaulted" = yes; then
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
 
886
  else
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
 
889
  fi
 
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_CPP_set=${CPP+set}
 
924
ac_env_CPP_value=$CPP
 
925
ac_cv_env_CPP_set=${CPP+set}
 
926
ac_cv_env_CPP_value=$CPP
 
927
ac_env_CXX_set=${CXX+set}
 
928
ac_env_CXX_value=$CXX
 
929
ac_cv_env_CXX_set=${CXX+set}
 
930
ac_cv_env_CXX_value=$CXX
 
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
932
ac_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
 
947
 
 
948
#
 
949
# Report the --help message.
 
950
#
 
951
if test "$ac_init_help" = "long"; then
 
952
  # Omit some internal or obsolete options to make the list less imposing.
 
953
  # This message is too long to be a string in the A/UX 3.1 sh.
 
954
  cat <<_ACEOF
 
955
\`configure' configures this package to adapt to many kinds of systems.
 
956
 
 
957
Usage: $0 [OPTION]... [VAR=VALUE]...
 
958
 
 
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
960
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
961
 
 
962
Defaults for the options are specified in brackets.
 
963
 
 
964
Configuration:
 
965
  -h, --help              display this help and exit
 
966
      --help=short        display options specific to this package
 
967
      --help=recursive    display the short help of all the included packages
 
968
  -V, --version           display version information and exit
 
969
  -q, --quiet, --silent   do not print \`checking...' messages
 
970
      --cache-file=FILE   cache test results in FILE [disabled]
 
971
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
972
  -n, --no-create         do not create output files
 
973
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
974
 
 
975
_ACEOF
 
976
 
 
977
  cat <<_ACEOF
 
978
Installation directories:
 
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
980
                          [$ac_default_prefix]
 
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
982
                          [PREFIX]
 
983
 
 
984
By default, \`make install' will install all the files in
 
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
987
for instance \`--prefix=\$HOME'.
 
988
 
 
989
For better control, use the options below.
 
990
 
 
991
Fine tuning of the installation directories:
 
992
  --bindir=DIR           user executables [EPREFIX/bin]
 
993
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
994
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
995
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
996
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
997
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
998
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
999
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1000
  --includedir=DIR       C header files [PREFIX/include]
 
1001
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1002
  --infodir=DIR          info documentation [PREFIX/info]
 
1003
  --mandir=DIR           man documentation [PREFIX/man]
 
1004
_ACEOF
 
1005
 
 
1006
  cat <<\_ACEOF
 
1007
 
 
1008
System types:
 
1009
  --build=BUILD     configure for building on BUILD [guessed]
 
1010
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1011
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1012
_ACEOF
 
1013
fi
 
1014
 
 
1015
if test -n "$ac_init_help"; then
 
1016
 
 
1017
  cat <<\_ACEOF
 
1018
 
 
1019
Optional Features:
 
1020
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1021
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1022
  --enable-layout=LAYOUT
 
1023
  --enable-experimental-libtool Use experimental custom libtool
 
1024
  --enable-shared[=PKGS]
 
1025
                          build shared libraries [default=yes]
 
1026
  --enable-static[=PKGS]
 
1027
                          build static libraries [default=yes]
 
1028
  --enable-fast-install[=PKGS]
 
1029
                          optimize for fast installation [default=yes]
 
1030
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1031
  --enable-debug          Turn on debugging and compile time warnings
 
1032
  --enable-maintainer-mode  Turn on debugging and compile time warnings
 
1033
  --enable-profile        Turn on profiling for the build (GCC)
 
1034
  --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]    Turn on pools debugging
 
1035
  --enable-malloc-debug   Switch on malloc_debug for BeOS
 
1036
  --disable-lfs           Disable large file support on 32-bit platforms
 
1037
  --enable-nonportable-atomics  Use optimized atomic code which may produce nonportable binaries
 
1038
  --enable-threads        Enable threading support in APR.
 
1039
  --disable-dso           Disable DSO support
 
1040
  --enable-other-child    Enable reliable child processes
 
1041
  --disable-ipv6          Disable IPv6 support in APR.
 
1042
 
 
1043
Optional Packages:
 
1044
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1045
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1046
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1047
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1048
                          both]
 
1049
  --with-tags[=TAGS]
 
1050
                          include additional configurations [automatic]
 
1051
  --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
 
1052
  --without-libtool       avoid using libtool to link the library
 
1053
  --with-efence[=DIR]     path to Electric Fence installation
 
1054
  --with-sendfile         Override decision to use sendfile
 
1055
  --with-egd[=DIR]        use EGD-compatible socket
 
1056
  --with-devrandom[=DEV]  use /dev/random or compatible [searches by default]
 
1057
 
 
1058
Some influential environment variables:
 
1059
  CC          C compiler command
 
1060
  CFLAGS      C compiler flags
 
1061
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1062
              nonstandard directory <lib dir>
 
1063
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1064
              headers in a nonstandard directory <include dir>
 
1065
  CPP         C preprocessor
 
1066
  CXX         C++ compiler command
 
1067
  CXXFLAGS    C++ compiler flags
 
1068
  CXXCPP      C++ preprocessor
 
1069
  F77         Fortran 77 compiler command
 
1070
  FFLAGS      Fortran 77 compiler flags
 
1071
 
 
1072
Use these variables to override the choices made by `configure' or to help
 
1073
it to find libraries and programs with nonstandard names/locations.
 
1074
 
 
1075
_ACEOF
 
1076
fi
 
1077
 
 
1078
if test "$ac_init_help" = "recursive"; then
 
1079
  # If there are subdirs, report their specific --help.
 
1080
  ac_popdir=`pwd`
 
1081
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1082
    test -d $ac_dir || continue
 
1083
    ac_builddir=.
 
1084
 
 
1085
if test "$ac_dir" != .; then
 
1086
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1087
  # A "../" for each directory in $ac_dir_suffix.
 
1088
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1089
else
 
1090
  ac_dir_suffix= ac_top_builddir=
 
1091
fi
 
1092
 
 
1093
case $srcdir in
 
1094
  .)  # No --srcdir option.  We are building in place.
 
1095
    ac_srcdir=.
 
1096
    if test -z "$ac_top_builddir"; then
 
1097
       ac_top_srcdir=.
 
1098
    else
 
1099
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1100
    fi ;;
 
1101
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1102
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1103
    ac_top_srcdir=$srcdir ;;
 
1104
  *) # Relative path.
 
1105
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1106
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1107
esac
 
1108
 
 
1109
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1110
# the directories may not exist.
 
1111
case `pwd` in
 
1112
.) ac_abs_builddir="$ac_dir";;
 
1113
*)
 
1114
  case "$ac_dir" in
 
1115
  .) ac_abs_builddir=`pwd`;;
 
1116
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1117
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1118
  esac;;
 
1119
esac
 
1120
case $ac_abs_builddir in
 
1121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1122
*)
 
1123
  case ${ac_top_builddir}. in
 
1124
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1125
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1126
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1127
  esac;;
 
1128
esac
 
1129
case $ac_abs_builddir in
 
1130
.) ac_abs_srcdir=$ac_srcdir;;
 
1131
*)
 
1132
  case $ac_srcdir in
 
1133
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1134
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1135
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1136
  esac;;
 
1137
esac
 
1138
case $ac_abs_builddir in
 
1139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1140
*)
 
1141
  case $ac_top_srcdir in
 
1142
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1143
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1144
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1145
  esac;;
 
1146
esac
 
1147
 
 
1148
    cd $ac_dir
 
1149
    # Check for guested configure; otherwise get Cygnus style configure.
 
1150
    if test -f $ac_srcdir/configure.gnu; then
 
1151
      echo
 
1152
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1153
    elif test -f $ac_srcdir/configure; then
 
1154
      echo
 
1155
      $SHELL $ac_srcdir/configure  --help=recursive
 
1156
    elif test -f $ac_srcdir/configure.ac ||
 
1157
           test -f $ac_srcdir/configure.in; then
 
1158
      echo
 
1159
      $ac_configure --help
 
1160
    else
 
1161
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1162
    fi
 
1163
    cd $ac_popdir
 
1164
  done
 
1165
fi
 
1166
 
 
1167
test -n "$ac_init_help" && exit 0
 
1168
if $ac_init_version; then
 
1169
  cat <<\_ACEOF
 
1170
 
 
1171
Copyright (C) 2003 Free Software Foundation, Inc.
 
1172
This configure script is free software; the Free Software Foundation
 
1173
gives unlimited permission to copy, distribute and modify it.
 
1174
_ACEOF
 
1175
  exit 0
 
1176
fi
 
1177
exec 5>config.log
 
1178
cat >&5 <<_ACEOF
 
1179
This file contains any messages produced by compilers while
 
1180
running configure, to aid debugging if configure makes a mistake.
 
1181
 
 
1182
It was created by $as_me, which was
 
1183
generated by GNU Autoconf 2.59.  Invocation command line was
 
1184
 
 
1185
  $ $0 $@
 
1186
 
 
1187
_ACEOF
 
1188
{
 
1189
cat <<_ASUNAME
 
1190
## --------- ##
 
1191
## Platform. ##
 
1192
## --------- ##
 
1193
 
 
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1199
 
 
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1201
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1202
 
 
1203
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1204
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1206
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1207
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1208
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1209
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1210
 
 
1211
_ASUNAME
 
1212
 
 
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1214
for as_dir in $PATH
 
1215
do
 
1216
  IFS=$as_save_IFS
 
1217
  test -z "$as_dir" && as_dir=.
 
1218
  echo "PATH: $as_dir"
 
1219
done
 
1220
 
 
1221
} >&5
 
1222
 
 
1223
cat >&5 <<_ACEOF
 
1224
 
 
1225
 
 
1226
## ----------- ##
 
1227
## Core tests. ##
 
1228
## ----------- ##
 
1229
 
 
1230
_ACEOF
 
1231
 
 
1232
 
 
1233
# Keep a trace of the command line.
 
1234
# Strip out --no-create and --no-recursion so they do not pile up.
 
1235
# Strip out --silent because we don't want to record it for future runs.
 
1236
# Also quote any args containing shell meta-characters.
 
1237
# Make two passes to allow for proper duplicate-argument suppression.
 
1238
ac_configure_args=
 
1239
ac_configure_args0=
 
1240
ac_configure_args1=
 
1241
ac_sep=
 
1242
ac_must_keep_next=false
 
1243
for ac_pass in 1 2
 
1244
do
 
1245
  for ac_arg
 
1246
  do
 
1247
    case $ac_arg in
 
1248
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1249
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1250
    | -silent | --silent | --silen | --sile | --sil)
 
1251
      continue ;;
 
1252
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1253
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1254
    esac
 
1255
    case $ac_pass in
 
1256
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1257
    2)
 
1258
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1259
      if test $ac_must_keep_next = true; then
 
1260
        ac_must_keep_next=false # Got value, back to normal.
 
1261
      else
 
1262
        case $ac_arg in
 
1263
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1264
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1265
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1266
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1267
            case "$ac_configure_args0 " in
 
1268
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1269
            esac
 
1270
            ;;
 
1271
          -* ) ac_must_keep_next=true ;;
 
1272
        esac
 
1273
      fi
 
1274
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1275
      # Get rid of the leading space.
 
1276
      ac_sep=" "
 
1277
      ;;
 
1278
    esac
 
1279
  done
 
1280
done
 
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1283
 
 
1284
# When interrupted or exit'd, cleanup temporary files, and complete
 
1285
# config.log.  We remove comments because anyway the quotes in there
 
1286
# would cause problems or look ugly.
 
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1288
# such as our DU 5.0 friend, will then `close' the trap.
 
1289
trap 'exit_status=$?
 
1290
  # Save into config.log some information that might help in debugging.
 
1291
  {
 
1292
    echo
 
1293
 
 
1294
    cat <<\_ASBOX
 
1295
## ---------------- ##
 
1296
## Cache variables. ##
 
1297
## ---------------- ##
 
1298
_ASBOX
 
1299
    echo
 
1300
    # The following way of writing the cache mishandles newlines in values,
 
1301
{
 
1302
  (set) 2>&1 |
 
1303
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1304
    *ac_space=\ *)
 
1305
      sed -n \
 
1306
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1307
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1308
      ;;
 
1309
    *)
 
1310
      sed -n \
 
1311
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1312
      ;;
 
1313
    esac;
 
1314
}
 
1315
    echo
 
1316
 
 
1317
    cat <<\_ASBOX
 
1318
## ----------------- ##
 
1319
## Output variables. ##
 
1320
## ----------------- ##
 
1321
_ASBOX
 
1322
    echo
 
1323
    for ac_var in $ac_subst_vars
 
1324
    do
 
1325
      eval ac_val=$`echo $ac_var`
 
1326
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1327
    done | sort
 
1328
    echo
 
1329
 
 
1330
    if test -n "$ac_subst_files"; then
 
1331
      cat <<\_ASBOX
 
1332
## ------------- ##
 
1333
## Output files. ##
 
1334
## ------------- ##
 
1335
_ASBOX
 
1336
      echo
 
1337
      for ac_var in $ac_subst_files
 
1338
      do
 
1339
        eval ac_val=$`echo $ac_var`
 
1340
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1341
      done | sort
 
1342
      echo
 
1343
    fi
 
1344
 
 
1345
    if test -s confdefs.h; then
 
1346
      cat <<\_ASBOX
 
1347
## ----------- ##
 
1348
## confdefs.h. ##
 
1349
## ----------- ##
 
1350
_ASBOX
 
1351
      echo
 
1352
      sed "/^$/d" confdefs.h | sort
 
1353
      echo
 
1354
    fi
 
1355
    test "$ac_signal" != 0 &&
 
1356
      echo "$as_me: caught signal $ac_signal"
 
1357
    echo "$as_me: exit $exit_status"
 
1358
  } >&5
 
1359
  rm -f core *.core &&
 
1360
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1361
    exit $exit_status
 
1362
     ' 0
 
1363
for ac_signal in 1 2 13 15; do
 
1364
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1365
done
 
1366
ac_signal=0
 
1367
 
 
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1369
rm -rf conftest* confdefs.h
 
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1371
echo >confdefs.h
 
1372
 
 
1373
# Predefined preprocessor variables.
 
1374
 
 
1375
cat >>confdefs.h <<_ACEOF
 
1376
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1377
_ACEOF
 
1378
 
 
1379
 
 
1380
cat >>confdefs.h <<_ACEOF
 
1381
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1382
_ACEOF
 
1383
 
 
1384
 
 
1385
cat >>confdefs.h <<_ACEOF
 
1386
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1387
_ACEOF
 
1388
 
 
1389
 
 
1390
cat >>confdefs.h <<_ACEOF
 
1391
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1392
_ACEOF
 
1393
 
 
1394
 
 
1395
cat >>confdefs.h <<_ACEOF
 
1396
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1397
_ACEOF
 
1398
 
 
1399
 
 
1400
# Let the site file select an alternate cache file if it wants to.
 
1401
# Prefer explicitly selected file to automatically selected ones.
 
1402
if test -z "$CONFIG_SITE"; then
 
1403
  if test "x$prefix" != xNONE; then
 
1404
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1405
  else
 
1406
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1407
  fi
 
1408
fi
 
1409
for ac_site_file in $CONFIG_SITE; do
 
1410
  if test -r "$ac_site_file"; then
 
1411
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1413
    sed 's/^/| /' "$ac_site_file" >&5
 
1414
    . "$ac_site_file"
 
1415
  fi
 
1416
done
 
1417
 
 
1418
if test -r "$cache_file"; then
 
1419
  # Some versions of bash will fail to source /dev/null (special
 
1420
  # files actually), so we avoid doing that.
 
1421
  if test -f "$cache_file"; then
 
1422
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1423
echo "$as_me: loading cache $cache_file" >&6;}
 
1424
    case $cache_file in
 
1425
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1426
      *)                      . ./$cache_file;;
 
1427
    esac
 
1428
  fi
 
1429
else
 
1430
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1431
echo "$as_me: creating cache $cache_file" >&6;}
 
1432
  >$cache_file
 
1433
fi
 
1434
 
 
1435
# Check that the precious variables saved in the cache have kept the same
 
1436
# value.
 
1437
ac_cache_corrupted=false
 
1438
for ac_var in `(set) 2>&1 |
 
1439
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1440
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1441
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1442
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1443
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1444
  case $ac_old_set,$ac_new_set in
 
1445
    set,)
 
1446
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1448
      ac_cache_corrupted=: ;;
 
1449
    ,set)
 
1450
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1452
      ac_cache_corrupted=: ;;
 
1453
    ,);;
 
1454
    *)
 
1455
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1456
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1458
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1459
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1460
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1461
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1462
        ac_cache_corrupted=:
 
1463
      fi;;
 
1464
  esac
 
1465
  # Pass precious variables to config.status.
 
1466
  if test "$ac_new_set" = set; then
 
1467
    case $ac_new_val in
 
1468
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1469
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1470
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1471
    esac
 
1472
    case " $ac_configure_args " in
 
1473
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1474
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1475
    esac
 
1476
  fi
 
1477
done
 
1478
if $ac_cache_corrupted; then
 
1479
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1481
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1483
   { (exit 1); exit 1; }; }
 
1484
fi
 
1485
 
 
1486
ac_ext=c
 
1487
ac_cpp='$CPP $CPPFLAGS'
 
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
          ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
 
1511
 
 
1512
ac_aux_dir=
 
1513
for ac_dir in build $srcdir/build; do
 
1514
  if test -f $ac_dir/install-sh; then
 
1515
    ac_aux_dir=$ac_dir
 
1516
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1517
    break
 
1518
  elif test -f $ac_dir/install.sh; then
 
1519
    ac_aux_dir=$ac_dir
 
1520
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1521
    break
 
1522
  elif test -f $ac_dir/shtool; then
 
1523
    ac_aux_dir=$ac_dir
 
1524
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1525
    break
 
1526
  fi
 
1527
done
 
1528
if test -z "$ac_aux_dir"; then
 
1529
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
 
1530
echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
 
1531
   { (exit 1); exit 1; }; }
 
1532
fi
 
1533
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1534
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1535
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1536
 
 
1537
 
 
1538
 
 
1539
 
 
1540
 
 
1541
 
 
1542
 
 
1543
 
 
1544
 
 
1545
 
 
1546
 
 
1547
 
 
1548
 
 
1549
 
 
1550
 
 
1551
 
 
1552
 
 
1553
 
 
1554
 
 
1555
 
 
1556
 
 
1557
 
 
1558
 
 
1559
 
 
1560
 
 
1561
 
 
1562
 
 
1563
 
 
1564
 
 
1565
 
 
1566
 
 
1567
 
 
1568
 
 
1569
 
 
1570
 
 
1571
 
 
1572
 
 
1573
 
 
1574
 
 
1575
 
 
1576
 
 
1577
 
 
1578
 
 
1579
 
 
1580
 
 
1581
 
 
1582
 
 
1583
 
 
1584
 
 
1585
 
 
1586
 
 
1587
 
 
1588
 
 
1589
 
 
1590
 
 
1591
 
 
1592
 
 
1593
 
 
1594
 
 
1595
 
 
1596
 
 
1597
 
 
1598
 
 
1599
 
 
1600
 
 
1601
 
 
1602
 
 
1603
 
 
1604
 
 
1605
 
 
1606
 
 
1607
 
 
1608
 
 
1609
 
 
1610
 
 
1611
 
 
1612
 
 
1613
 
 
1614
 
 
1615
 
 
1616
 
 
1617
 
 
1618
 
 
1619
 
 
1620
 
 
1621
 
 
1622
 
 
1623
 
 
1624
 
 
1625
 
 
1626
 
 
1627
 
 
1628
 
 
1629
 
 
1630
 
 
1631
 
 
1632
 
 
1633
 
 
1634
 
 
1635
 
 
1636
 
 
1637
 
 
1638
 
 
1639
 
 
1640
 
 
1641
 
 
1642
 
 
1643
 
 
1644
 
 
1645
 
 
1646
 
 
1647
 
 
1648
 
 
1649
 
 
1650
 
 
1651
 
 
1652
 
 
1653
 
 
1654
 
 
1655
 
 
1656
 
 
1657
 
 
1658
 
 
1659
 
 
1660
 
 
1661
 
 
1662
 
 
1663
 
 
1664
 
 
1665
 
 
1666
 
 
1667
 
 
1668
 
 
1669
 
 
1670
 
 
1671
 
 
1672
 
 
1673
 
 
1674
 
 
1675
 
 
1676
 
 
1677
 
 
1678
 
 
1679
 
 
1680
 
 
1681
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
1682
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 
1683
## Free Software Foundation, Inc.
 
1684
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
1685
##
 
1686
## This file is free software; the Free Software Foundation gives
 
1687
## unlimited permission to copy and/or distribute it, with or without
 
1688
## modifications, as long as this notice is preserved.
 
1689
 
 
1690
# serial 47 AC_PROG_LIBTOOL
 
1691
 
 
1692
 
 
1693
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
1694
# -----------------------------------------------------------
 
1695
# If this macro is not defined by Autoconf, define it here.
 
1696
 
 
1697
 
 
1698
 
 
1699
# AC_PROG_LIBTOOL
 
1700
# ---------------
 
1701
# AC_PROG_LIBTOOL
 
1702
 
 
1703
 
 
1704
# _AC_PROG_LIBTOOL
 
1705
# ----------------
 
1706
# _AC_PROG_LIBTOOL
 
1707
 
 
1708
 
 
1709
# AC_LIBTOOL_SETUP
 
1710
# ----------------
 
1711
# AC_LIBTOOL_SETUP
 
1712
 
 
1713
 
 
1714
# _LT_AC_SYS_COMPILER
 
1715
# -------------------
 
1716
# _LT_AC_SYS_COMPILER
 
1717
 
 
1718
 
 
1719
# _LT_CC_BASENAME(CC)
 
1720
# -------------------
 
1721
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1722
 
 
1723
 
 
1724
 
 
1725
# _LT_COMPILER_BOILERPLATE
 
1726
# ------------------------
 
1727
# Check for compiler boilerplate output or warnings with
 
1728
# the simple compiler test code.
 
1729
# _LT_COMPILER_BOILERPLATE
 
1730
 
 
1731
 
 
1732
# _LT_LINKER_BOILERPLATE
 
1733
# ----------------------
 
1734
# Check for linker boilerplate output or warnings with
 
1735
# the simple link test code.
 
1736
# _LT_LINKER_BOILERPLATE
 
1737
 
 
1738
 
 
1739
# _LT_AC_SYS_LIBPATH_AIX
 
1740
# ----------------------
 
1741
# Links a minimal program and checks the executable
 
1742
# for the system default hardcoded library path. In most cases,
 
1743
# this is /usr/lib:/lib, but when the MPI compilers are used
 
1744
# the location of the communication and MPI libs are included too.
 
1745
# If we don't find anything, use the default library path according
 
1746
# to the aix ld manual.
 
1747
# _LT_AC_SYS_LIBPATH_AIX
 
1748
 
 
1749
 
 
1750
# _LT_AC_SHELL_INIT(ARG)
 
1751
# ----------------------
 
1752
# _LT_AC_SHELL_INIT
 
1753
 
 
1754
 
 
1755
# _LT_AC_PROG_ECHO_BACKSLASH
 
1756
# --------------------------
 
1757
# Add some code to the start of the generated configure script which
 
1758
# will find an echo command which doesn't interpret backslashes.
 
1759
# _LT_AC_PROG_ECHO_BACKSLASH
 
1760
 
 
1761
 
 
1762
# _LT_AC_LOCK
 
1763
# -----------
 
1764
# _LT_AC_LOCK
 
1765
 
 
1766
 
 
1767
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1768
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
1769
# ----------------------------------------------------------------
 
1770
# Check whether the given compiler option works
 
1771
# AC_LIBTOOL_COMPILER_OPTION
 
1772
 
 
1773
 
 
1774
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1775
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
1776
# ------------------------------------------------------------
 
1777
# Check whether the given compiler option works
 
1778
# AC_LIBTOOL_LINKER_OPTION
 
1779
 
 
1780
 
 
1781
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1782
# --------------------------
 
1783
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1784
 
 
1785
 
 
1786
# _LT_AC_CHECK_DLFCN
 
1787
# --------------------
 
1788
# _LT_AC_CHECK_DLFCN
 
1789
 
 
1790
 
 
1791
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1792
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1793
# ------------------------------------------------------------------
 
1794
# _LT_AC_TRY_DLOPEN_SELF
 
1795
 
 
1796
 
 
1797
# AC_LIBTOOL_DLOPEN_SELF
 
1798
# -------------------
 
1799
# AC_LIBTOOL_DLOPEN_SELF
 
1800
 
 
1801
 
 
1802
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
1803
# ---------------------------------
 
1804
# Check to see if options -c and -o are simultaneously supported by compiler
 
1805
# AC_LIBTOOL_PROG_CC_C_O
 
1806
 
 
1807
 
 
1808
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1809
# -----------------------------------------
 
1810
# Check to see if we can do hard links to lock some files if needed
 
1811
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1812
 
 
1813
 
 
1814
# AC_LIBTOOL_OBJDIR
 
1815
# -----------------
 
1816
# AC_LIBTOOL_OBJDIR
 
1817
 
 
1818
 
 
1819
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1820
# ----------------------------------------------
 
1821
# Check hardcoding attributes.
 
1822
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
1823
 
 
1824
 
 
1825
# AC_LIBTOOL_SYS_LIB_STRIP
 
1826
# ------------------------
 
1827
# AC_LIBTOOL_SYS_LIB_STRIP
 
1828
 
 
1829
 
 
1830
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1831
# -----------------------------
 
1832
# PORTME Fill in your ld.so characteristics
 
1833
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1834
 
 
1835
 
 
1836
# _LT_AC_TAGCONFIG
 
1837
# ----------------
 
1838
# _LT_AC_TAGCONFIG
 
1839
 
 
1840
 
 
1841
# AC_LIBTOOL_DLOPEN
 
1842
# -----------------
 
1843
# enable checks for dlopen support
 
1844
# AC_LIBTOOL_DLOPEN
 
1845
 
 
1846
 
 
1847
# AC_LIBTOOL_WIN32_DLL
 
1848
# --------------------
 
1849
# declare package support for building win32 DLLs
 
1850
# AC_LIBTOOL_WIN32_DLL
 
1851
 
 
1852
 
 
1853
# AC_ENABLE_SHARED([DEFAULT])
 
1854
# ---------------------------
 
1855
# implement the --enable-shared flag
 
1856
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1857
# AC_ENABLE_SHARED
 
1858
 
 
1859
 
 
1860
# AC_DISABLE_SHARED
 
1861
# -----------------
 
1862
#- set the default shared flag to --disable-shared
 
1863
# AC_DISABLE_SHARED
 
1864
 
 
1865
 
 
1866
# AC_ENABLE_STATIC([DEFAULT])
 
1867
# ---------------------------
 
1868
# implement the --enable-static flag
 
1869
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1870
# AC_ENABLE_STATIC
 
1871
 
 
1872
 
 
1873
# AC_DISABLE_STATIC
 
1874
# -----------------
 
1875
# set the default static flag to --disable-static
 
1876
# AC_DISABLE_STATIC
 
1877
 
 
1878
 
 
1879
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
1880
# ---------------------------------
 
1881
# implement the --enable-fast-install flag
 
1882
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1883
# AC_ENABLE_FAST_INSTALL
 
1884
 
 
1885
 
 
1886
# AC_DISABLE_FAST_INSTALL
 
1887
# -----------------------
 
1888
# set the default to --disable-fast-install
 
1889
# AC_DISABLE_FAST_INSTALL
 
1890
 
 
1891
 
 
1892
# AC_LIBTOOL_PICMODE([MODE])
 
1893
# --------------------------
 
1894
# implement the --with-pic flag
 
1895
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
1896
# AC_LIBTOOL_PICMODE
 
1897
 
 
1898
 
 
1899
# AC_PROG_EGREP
 
1900
# -------------
 
1901
# This is predefined starting with Autoconf 2.54, so this conditional
 
1902
# definition can be removed once we require Autoconf 2.54 or later.
 
1903
 
 
1904
 
 
1905
 
 
1906
# AC_PATH_TOOL_PREFIX
 
1907
# -------------------
 
1908
# find a file program which can recognise shared library
 
1909
# AC_PATH_TOOL_PREFIX
 
1910
 
 
1911
 
 
1912
# AC_PATH_MAGIC
 
1913
# -------------
 
1914
# find a file program which can recognise a shared library
 
1915
# AC_PATH_MAGIC
 
1916
 
 
1917
 
 
1918
# AC_PROG_LD
 
1919
# ----------
 
1920
# find the pathname to the GNU or non-GNU linker
 
1921
# AC_PROG_LD
 
1922
 
 
1923
 
 
1924
# AC_PROG_LD_GNU
 
1925
# --------------
 
1926
# AC_PROG_LD_GNU
 
1927
 
 
1928
 
 
1929
# AC_PROG_LD_RELOAD_FLAG
 
1930
# ----------------------
 
1931
# find reload flag for linker
 
1932
#   -- PORTME Some linkers may need a different reload flag.
 
1933
# AC_PROG_LD_RELOAD_FLAG
 
1934
 
 
1935
 
 
1936
# AC_DEPLIBS_CHECK_METHOD
 
1937
# -----------------------
 
1938
# how to check for library dependencies
 
1939
#  -- PORTME fill in with the dynamic library characteristics
 
1940
# AC_DEPLIBS_CHECK_METHOD
 
1941
 
 
1942
 
 
1943
# AC_PROG_NM
 
1944
# ----------
 
1945
# find the pathname to a BSD-compatible name lister
 
1946
# AC_PROG_NM
 
1947
 
 
1948
 
 
1949
# AC_CHECK_LIBM
 
1950
# -------------
 
1951
# check for math library
 
1952
# AC_CHECK_LIBM
 
1953
 
 
1954
 
 
1955
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
1956
# -----------------------------------
 
1957
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
1958
# LTDLINCL to the include flags for the libltdl header and adds
 
1959
# --enable-ltdl-convenience to the configure arguments.  Note that
 
1960
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
1961
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
1962
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
1963
# (note the single quotes!).  If your package is not flat and you're not
 
1964
# using automake, define top_builddir and top_srcdir appropriately in
 
1965
# the Makefiles.
 
1966
# AC_LIBLTDL_CONVENIENCE
 
1967
 
 
1968
 
 
1969
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
1970
# -----------------------------------
 
1971
# sets LIBLTDL to the link flags for the libltdl installable library and
 
1972
# LTDLINCL to the include flags for the libltdl header and adds
 
1973
# --enable-ltdl-install to the configure arguments.  Note that
 
1974
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
1975
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
1976
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
1977
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
1978
# flat and you're not using automake, define top_builddir and top_srcdir
 
1979
# appropriately in the Makefiles.
 
1980
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
1981
# AC_LIBLTDL_INSTALLABLE
 
1982
 
 
1983
 
 
1984
# AC_LIBTOOL_CXX
 
1985
# --------------
 
1986
# enable support for C++ libraries
 
1987
# AC_LIBTOOL_CXX
 
1988
 
 
1989
 
 
1990
# _LT_AC_LANG_CXX
 
1991
# ---------------
 
1992
# _LT_AC_LANG_CXX
 
1993
 
 
1994
# _LT_AC_PROG_CXXCPP
 
1995
# ---------------
 
1996
# _LT_AC_PROG_CXXCPP
 
1997
 
 
1998
# AC_LIBTOOL_F77
 
1999
# --------------
 
2000
# enable support for Fortran 77 libraries
 
2001
# AC_LIBTOOL_F77
 
2002
 
 
2003
 
 
2004
# _LT_AC_LANG_F77
 
2005
# ---------------
 
2006
# _LT_AC_LANG_F77
 
2007
 
 
2008
 
 
2009
# AC_LIBTOOL_GCJ
 
2010
# --------------
 
2011
# enable support for GCJ libraries
 
2012
# AC_LIBTOOL_GCJ
 
2013
 
 
2014
 
 
2015
# _LT_AC_LANG_GCJ
 
2016
# ---------------
 
2017
# _LT_AC_LANG_GCJ
 
2018
 
 
2019
 
 
2020
# AC_LIBTOOL_RC
 
2021
# --------------
 
2022
# enable support for Windows resource files
 
2023
# AC_LIBTOOL_RC
 
2024
 
 
2025
 
 
2026
# AC_LIBTOOL_LANG_C_CONFIG
 
2027
# ------------------------
 
2028
# Ensure that the configuration vars for the C compiler are
 
2029
# suitably defined.  Those variables are subsequently used by
 
2030
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2031
 
 
2032
# AC_LIBTOOL_LANG_C_CONFIG
 
2033
 
 
2034
 
 
2035
# AC_LIBTOOL_LANG_CXX_CONFIG
 
2036
# --------------------------
 
2037
# Ensure that the configuration vars for the C compiler are
 
2038
# suitably defined.  Those variables are subsequently used by
 
2039
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2040
 
 
2041
# AC_LIBTOOL_LANG_CXX_CONFIG
 
2042
 
 
2043
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
2044
# ------------------------
 
2045
# Figure out "hidden" library dependencies from verbose
 
2046
# compiler output when linking a shared library.
 
2047
# Parse the compiler output and extract the necessary
 
2048
# objects, libraries and library flags.
 
2049
# AC_LIBTOOL_POSTDEP_PREDEP
 
2050
 
 
2051
# AC_LIBTOOL_LANG_F77_CONFIG
 
2052
# ------------------------
 
2053
# Ensure that the configuration vars for the C compiler are
 
2054
# suitably defined.  Those variables are subsequently used by
 
2055
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2056
 
 
2057
# AC_LIBTOOL_LANG_F77_CONFIG
 
2058
 
 
2059
 
 
2060
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
2061
# --------------------------
 
2062
# Ensure that the configuration vars for the C compiler are
 
2063
# suitably defined.  Those variables are subsequently used by
 
2064
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2065
 
 
2066
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
2067
 
 
2068
 
 
2069
# AC_LIBTOOL_LANG_RC_CONFIG
 
2070
# --------------------------
 
2071
# Ensure that the configuration vars for the Windows resource compiler are
 
2072
# suitably defined.  Those variables are subsequently used by
 
2073
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
2074
 
 
2075
# AC_LIBTOOL_LANG_RC_CONFIG
 
2076
 
 
2077
 
 
2078
# AC_LIBTOOL_CONFIG([TAGNAME])
 
2079
# ----------------------------
 
2080
# If TAGNAME is not passed, then create an initial libtool script
 
2081
# with a default configuration from the untagged config vars.  Otherwise
 
2082
# add code to config.status for appending the configuration named by
 
2083
# TAGNAME from the matching tagged config vars.
 
2084
# AC_LIBTOOL_CONFIG
 
2085
 
 
2086
 
 
2087
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
2088
# -------------------------------------------
 
2089
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
2090
 
 
2091
 
 
2092
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
2093
# ---------------------------------
 
2094
 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
2095
 
 
2096
 
 
2097
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
2098
# ---------------------------------------
 
2099
 
 
2100
 
 
2101
 
 
2102
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
2103
# ------------------------------------
 
2104
# See if the linker supports building shared libraries.
 
2105
# AC_LIBTOOL_PROG_LD_SHLIBS
 
2106
 
 
2107
 
 
2108
# _LT_AC_FILE_LTDLL_C
 
2109
# -------------------
 
2110
# Be careful that the start marker always follows a newline.
 
2111
# _LT_AC_FILE_LTDLL_C
 
2112
 
 
2113
 
 
2114
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
2115
# ---------------------------------
 
2116
 
 
2117
 
 
2118
 
 
2119
# old names
 
2120
 
 
2121
 
 
2122
 
 
2123
 
 
2124
 
 
2125
 
 
2126
 
 
2127
 
 
2128
# This is just to silence aclocal about the macro not being used
 
2129
 
 
2130
 
 
2131
 
 
2132
 
 
2133
 
 
2134
 
 
2135
############################################################
 
2136
# NOTE: This macro has been submitted for inclusion into   #
 
2137
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
2138
#  a released version of Autoconf we should remove this    #
 
2139
#  macro and use it instead.                               #
 
2140
############################################################
 
2141
# LT_AC_PROG_SED
 
2142
# --------------
 
2143
# Check for a fully-functional sed program, that truncates
 
2144
# as few characters as possible.  Prefer GNU sed if found.
 
2145
 
 
2146
 
 
2147
 
 
2148
 
 
2149
 
 
2150
 
 
2151
 
 
2152
 
 
2153
  apr_ste_save_CPPFLAGS="$CPPFLAGS"
 
2154
 
 
2155
 
 
2156
  apr_ste_save_CFLAGS="$CFLAGS"
 
2157
 
 
2158
 
 
2159
  apr_ste_save_LDFLAGS="$LDFLAGS"
 
2160
 
 
2161
 
 
2162
  apr_ste_save_LIBS="$LIBS"
 
2163
 
 
2164
 
 
2165
  apr_ste_save_INCLUDES="$INCLUDES"
 
2166
 
 
2167
 
 
2168
 
 
2169
  rm -f config.nice
 
2170
  cat >config.nice<<EOF
 
2171
#! /bin/sh
 
2172
#
 
2173
# Created by configure
 
2174
 
 
2175
EOF
 
2176
  if test -n "$CC"; then
 
2177
    echo "CC=\"$CC\"; export CC" >> config.nice
 
2178
  fi
 
2179
  if test -n "$CFLAGS"; then
 
2180
    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
 
2181
  fi
 
2182
  if test -n "$CPPFLAGS"; then
 
2183
    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
 
2184
  fi
 
2185
  if test -n "$LDFLAGS"; then
 
2186
    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
 
2187
  fi
 
2188
  if test -n "$LTFLAGS"; then
 
2189
    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
 
2190
  fi
 
2191
  if test -n "$LIBS"; then
 
2192
    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
 
2193
  fi
 
2194
  if test -n "$INCLUDES"; then
 
2195
    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
 
2196
  fi
 
2197
  if test -n "$NOTEST_CFLAGS"; then
 
2198
    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
 
2199
  fi
 
2200
  if test -n "$NOTEST_CPPFLAGS"; then
 
2201
    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
 
2202
  fi
 
2203
  if test -n "$NOTEST_LDFLAGS"; then
 
2204
    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
 
2205
  fi
 
2206
  if test -n "$NOTEST_LIBS"; then
 
2207
    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
 
2208
  fi
 
2209
 
 
2210
  for arg in $0 "$@"; do
 
2211
 
 
2212
ap_last=
 
2213
ap_cur="$arg"
 
2214
while test "x${ap_cur}" != "x${ap_last}";
 
2215
do
 
2216
  ap_last="${ap_cur}"
 
2217
  ap_cur=`eval "echo ${ap_cur}"`
 
2218
done
 
2219
arg="${ap_cur}"
 
2220
 
 
2221
    echo "\"$arg\" \\" >> config.nice
 
2222
  done
 
2223
  echo '"$@"' >> config.nice
 
2224
  chmod +x config.nice
 
2225
 
 
2226
 
 
2227
# Make sure we can run config.sub.
 
2228
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2229
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2230
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2231
   { (exit 1); exit 1; }; }
 
2232
 
 
2233
echo "$as_me:$LINENO: checking build system type" >&5
 
2234
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2235
if test "${ac_cv_build+set}" = set; then
 
2236
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2237
else
 
2238
  ac_cv_build_alias=$build_alias
 
2239
test -z "$ac_cv_build_alias" &&
 
2240
  ac_cv_build_alias=`$ac_config_guess`
 
2241
test -z "$ac_cv_build_alias" &&
 
2242
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2243
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2244
   { (exit 1); exit 1; }; }
 
2245
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2246
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2247
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2248
   { (exit 1); exit 1; }; }
 
2249
 
 
2250
fi
 
2251
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2252
echo "${ECHO_T}$ac_cv_build" >&6
 
2253
build=$ac_cv_build
 
2254
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2255
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2256
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2257
 
 
2258
 
 
2259
echo "$as_me:$LINENO: checking host system type" >&5
 
2260
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2261
if test "${ac_cv_host+set}" = set; then
 
2262
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2263
else
 
2264
  ac_cv_host_alias=$host_alias
 
2265
test -z "$ac_cv_host_alias" &&
 
2266
  ac_cv_host_alias=$ac_cv_build_alias
 
2267
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2268
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2269
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2270
   { (exit 1); exit 1; }; }
 
2271
 
 
2272
fi
 
2273
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2274
echo "${ECHO_T}$ac_cv_host" >&6
 
2275
host=$ac_cv_host
 
2276
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2277
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2278
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2279
 
 
2280
 
 
2281
echo "$as_me:$LINENO: checking target system type" >&5
 
2282
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
2283
if test "${ac_cv_target+set}" = set; then
 
2284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2285
else
 
2286
  ac_cv_target_alias=$target_alias
 
2287
test "x$ac_cv_target_alias" = "x" &&
 
2288
  ac_cv_target_alias=$ac_cv_host_alias
 
2289
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
2290
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
2291
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
2292
   { (exit 1); exit 1; }; }
 
2293
 
 
2294
fi
 
2295
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2296
echo "${ECHO_T}$ac_cv_target" >&6
 
2297
target=$ac_cv_target
 
2298
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2299
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2300
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2301
 
 
2302
 
 
2303
# The aliases save the names the user supplied, while $host etc.
 
2304
# will get canonicalized.
 
2305
test -n "$target_alias" &&
 
2306
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2307
    NONENONEs,x,x, &&
 
2308
  program_prefix=${target_alias}-
 
2309
echo "Configuring APR library"
 
2310
echo "Platform: $host"
 
2311
 
 
2312
 
 
2313
 
 
2314
# Absolute source/build directory
 
2315
apr_srcdir=`(cd $srcdir && pwd)`
 
2316
apr_builddir=`pwd`
 
2317
 
 
2318
 
 
2319
 
 
2320
if test "$apr_builddir" != "$apr_srcdir"; then
 
2321
  USE_VPATH=1
 
2322
  APR_CONFIG_LOCATION=build
 
2323
else
 
2324
  APR_CONFIG_LOCATION=source
 
2325
fi
 
2326
 
 
2327
 
 
2328
 
 
2329
# Libtool might need this symbol -- it must point to the location of
 
2330
# the generated libtool script (not necessarily the "top" build dir).
 
2331
#
 
2332
top_builddir="$apr_builddir"
 
2333
 
 
2334
 
 
2335
# Directory containing apr build macros, helpers, and make rules
 
2336
# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
 
2337
#
 
2338
apr_buildout=$apr_builddir/build
 
2339
apr_builders=$apr_srcdir/build
 
2340
 
 
2341
 
 
2342
MKDIR=$apr_builders/mkdir.sh
 
2343
 
 
2344
 
 
2345
  echo "$as_me:$LINENO: checking for working mkdir -p" >&5
 
2346
echo $ECHO_N "checking for working mkdir -p... $ECHO_C" >&6
 
2347
if test "${ac_cv_mkdir_p+set}" = set; then
 
2348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2349
else
 
2350
 
 
2351
    test -d conftestdir && rm -rf conftestdir
 
2352
    mkdir -p conftestdir/somedir >/dev/null 2>&1
 
2353
    if test -d conftestdir/somedir; then
 
2354
      ac_cv_mkdir_p=yes
 
2355
    else
 
2356
      ac_cv_mkdir_p=no
 
2357
    fi
 
2358
    rm -rf conftestdir
 
2359
 
 
2360
fi
 
2361
echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
 
2362
echo "${ECHO_T}$ac_cv_mkdir_p" >&6
 
2363
  if test "$ac_cv_mkdir_p" = "yes"; then
 
2364
      mkdir_p="mkdir -p"
 
2365
  else
 
2366
      mkdir_p="$apr_builders/mkdir.sh"
 
2367
  fi
 
2368
 
 
2369
 
 
2370
# get our version information
 
2371
get_version="$apr_builders/get-version.sh"
 
2372
version_hdr="$apr_srcdir/include/apr_version.h"
 
2373
APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
 
2374
APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
 
2375
 
 
2376
 
 
2377
 
 
2378
 
 
2379
echo "APR Version: ${APR_DOTTED_VERSION}"
 
2380
 
 
2381
 
 
2382
# Check whether --enable-layout or --disable-layout was given.
 
2383
if test "${enable_layout+set}" = set; then
 
2384
  enableval="$enable_layout"
 
2385
 
 
2386
  LAYOUT=$enableval
 
2387
 
 
2388
fi;
 
2389
 
 
2390
if test -z "$LAYOUT"; then
 
2391
  LAYOUT="apr"
 
2392
fi
 
2393
 
 
2394
  if test ! -f $srcdir/config.layout; then
 
2395
    echo "** Error: Layout file $srcdir/config.layout not found"
 
2396
    echo "** Error: Cannot use undefined layout '$LAYOUT'"
 
2397
    exit 1
 
2398
  fi
 
2399
  # Catch layout names including a slash which will otherwise
 
2400
  # confuse the heck out of the sed script.
 
2401
  case $LAYOUT in
 
2402
  */*)
 
2403
    echo "** Error: $LAYOUT is not a valid layout name"
 
2404
    exit 1 ;;
 
2405
  esac
 
2406
  pldconf=./config.pld
 
2407
 
 
2408
  sed -e "1s/[  ]*<[lL]ayout[   ]*$LAYOUT[      ]*>[    ]*//;1t" \
 
2409
      -e "1,/[  ]*<[lL]ayout[   ]*$LAYOUT[      ]*>[    ]*/d" \
 
2410
      -e '/[    ]*<\/Layout>[   ]*/,$d' \
 
2411
      -e "s/^[  ]*//g" \
 
2412
      -e "s/:[  ]*/=\'/g" \
 
2413
      -e "s/[   ]*$/'/g" \
 
2414
      $srcdir/config.layout > $pldconf
 
2415
  layout_name=$LAYOUT
 
2416
  if test ! -s $pldconf; then
 
2417
    echo "** Error: unable to find layout $layout_name"
 
2418
    exit 1
 
2419
  fi
 
2420
  . $pldconf
 
2421
  rm $pldconf
 
2422
  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
 
2423
             sysconfdir datadir includedir localstatedir runtimedir \
 
2424
             logfiledir libdir installbuilddir libsuffix ; do
 
2425
    eval "val=\"\$$var\""
 
2426
    case $val in
 
2427
      *+)
 
2428
        val=`echo $val | sed -e 's;\+$;;'`
 
2429
        eval "$var=\"\$val\""
 
2430
        autosuffix=yes
 
2431
        ;;
 
2432
      *)
 
2433
        autosuffix=no
 
2434
        ;;
 
2435
    esac
 
2436
    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
 
2437
    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
 
2438
    if test "$autosuffix" = "yes"; then
 
2439
      if echo $val | grep apache >/dev/null; then
 
2440
        addtarget=no
 
2441
      else
 
2442
        addtarget=yes
 
2443
      fi
 
2444
      if test "$addtarget" = "yes"; then
 
2445
        val="$val/apache2"
 
2446
      fi
 
2447
    fi
 
2448
    eval "$var='$val'"
 
2449
  done
 
2450
 
 
2451
 
 
2452
 
 
2453
echo "$as_me:$LINENO: checking for chosen layout" >&5
 
2454
echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6
 
2455
echo "$as_me:$LINENO: result: $layout_name" >&5
 
2456
echo "${ECHO_T}$layout_name" >&6
 
2457
 
 
2458
 
 
2459
ac_prev=
 
2460
for ac_option
 
2461
do
 
2462
  # If the previous option needs an argument, assign it.
 
2463
  if test -n "$ac_prev"; then
 
2464
    eval "$ac_prev=\$ac_option"
 
2465
    ac_prev=
 
2466
    continue
 
2467
  fi
 
2468
 
 
2469
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
2470
 
 
2471
  case $ac_option in
 
2472
 
 
2473
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
2474
    ac_prev=bindir ;;
 
2475
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
2476
    bindir="$ac_optarg" ;;
 
2477
 
 
2478
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
2479
    ac_prev=datadir ;;
 
2480
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
2481
  | --da=*)
 
2482
    datadir="$ac_optarg" ;;
 
2483
 
 
2484
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
2485
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
2486
  | --exec | --exe | --ex)
 
2487
    ac_prev=exec_prefix ;;
 
2488
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
2489
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
2490
  | --exec=* | --exe=* | --ex=*)
 
2491
    exec_prefix="$ac_optarg" ;;
 
2492
 
 
2493
  -includedir | --includedir | --includedi | --included | --include \
 
2494
  | --includ | --inclu | --incl | --inc)
 
2495
    ac_prev=includedir ;;
 
2496
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
2497
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
2498
    includedir="$ac_optarg" ;;
 
2499
 
 
2500
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
2501
    ac_prev=infodir ;;
 
2502
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
2503
    infodir="$ac_optarg" ;;
 
2504
 
 
2505
  -libdir | --libdir | --libdi | --libd)
 
2506
    ac_prev=libdir ;;
 
2507
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
2508
    libdir="$ac_optarg" ;;
 
2509
 
 
2510
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
2511
  | --libexe | --libex | --libe)
 
2512
    ac_prev=libexecdir ;;
 
2513
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
2514
  | --libexe=* | --libex=* | --libe=*)
 
2515
    libexecdir="$ac_optarg" ;;
 
2516
 
 
2517
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
2518
  | --localstate | --localstat | --localsta | --localst \
 
2519
  | --locals | --local | --loca | --loc | --lo)
 
2520
    ac_prev=localstatedir ;;
 
2521
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
2522
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
2523
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
2524
    localstatedir="$ac_optarg" ;;
 
2525
 
 
2526
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
2527
    ac_prev=mandir ;;
 
2528
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
2529
    mandir="$ac_optarg" ;;
 
2530
 
 
2531
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
2532
    ac_prev=prefix ;;
 
2533
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
2534
    prefix="$ac_optarg" ;;
 
2535
 
 
2536
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
2537
    ac_prev=sbindir ;;
 
2538
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
2539
  | --sbi=* | --sb=*)
 
2540
    sbindir="$ac_optarg" ;;
 
2541
 
 
2542
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
2543
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
2544
  | --sharedst | --shareds | --shared | --share | --shar \
 
2545
  | --sha | --sh)
 
2546
    ac_prev=sharedstatedir ;;
 
2547
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
2548
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
2549
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
2550
  | --sha=* | --sh=*)
 
2551
    sharedstatedir="$ac_optarg" ;;
 
2552
 
 
2553
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
2554
  | --syscon | --sysco | --sysc | --sys | --sy)
 
2555
    ac_prev=sysconfdir ;;
 
2556
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
2557
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
2558
    sysconfdir="$ac_optarg" ;;
 
2559
 
 
2560
  esac
 
2561
done
 
2562
 
 
2563
# Be sure to have absolute paths.
 
2564
for ac_var in exec_prefix prefix
 
2565
do
 
2566
  eval ac_val=$`echo $ac_var`
 
2567
  case $ac_val in
 
2568
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
2569
    *)  { { echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
 
2570
echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
 
2571
   { (exit 1); exit 1; }; };;
 
2572
  esac
 
2573
done
 
2574
 
 
2575
 
 
2576
 
 
2577
 
 
2578
case "$host" in
 
2579
  *-apple-aux3*)
 
2580
 
 
2581
  if test -z "$CC"; then
 
2582
    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
 
2583
    CC="gcc"
 
2584
  fi
 
2585
 
 
2586
      ;;
 
2587
  bs2000*-siemens-sysv*)
 
2588
 
 
2589
  if test -z "$CC"; then
 
2590
    test "x$silent" != "xyes" && echo "  setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
 
2591
    CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
 
2592
  fi
 
2593
 
 
2594
      ;;
 
2595
  *convex-v11*)
 
2596
 
 
2597
  if test -z "$CC"; then
 
2598
    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
 
2599
    CC="cc"
 
2600
  fi
 
2601
 
 
2602
      ;;
 
2603
  *-ibm-os390)
 
2604
 
 
2605
  if test -z "$CC"; then
 
2606
    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
 
2607
    CC="cc"
 
2608
  fi
 
2609
 
 
2610
      ;;
 
2611
  *-ibm-as400)
 
2612
 
 
2613
  if test -z "$CC"; then
 
2614
    test "x$silent" != "xyes" && echo "  setting CC to \"icc\""
 
2615
    CC="icc"
 
2616
  fi
 
2617
 
 
2618
      ;;
 
2619
  *-isc4*)
 
2620
 
 
2621
  if test -z "$CC"; then
 
2622
    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
 
2623
    CC="gcc"
 
2624
  fi
 
2625
 
 
2626
      ;;
 
2627
  m88k-*-CX/SX|CYBER)
 
2628
 
 
2629
  if test -z "$CC"; then
 
2630
    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
 
2631
    CC="cc"
 
2632
  fi
 
2633
 
 
2634
      ;;
 
2635
  *-next-openstep*)
 
2636
 
 
2637
  if test -z "$CC"; then
 
2638
    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
 
2639
    CC="cc"
 
2640
  fi
 
2641
 
 
2642
      ;;
 
2643
  *-qnx32)
 
2644
 
 
2645
  if test -z "$CC"; then
 
2646
    test "x$silent" != "xyes" && echo "  setting CC to \"cc -F\""
 
2647
    CC="cc -F"
 
2648
  fi
 
2649
 
 
2650
      ;;
 
2651
  *-tandem-oss)
 
2652
 
 
2653
  if test -z "$CC"; then
 
2654
    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
 
2655
    CC="c89"
 
2656
  fi
 
2657
 
 
2658
      ;;
 
2659
  TPF)
 
2660
 
 
2661
  if test -z "$CC"; then
 
2662
    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
 
2663
    CC="c89"
 
2664
  fi
 
2665
 
 
2666
      ;;
 
2667
esac
 
2668
 
 
2669
 
 
2670
ac_ext=c
 
2671
ac_cpp='$CPP $CPPFLAGS'
 
2672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2675
if test -n "$ac_tool_prefix"; then
 
2676
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2677
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2678
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2680
if test "${ac_cv_prog_CC+set}" = set; then
 
2681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2682
else
 
2683
  if test -n "$CC"; then
 
2684
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2685
else
 
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2687
for as_dir in $PATH
 
2688
do
 
2689
  IFS=$as_save_IFS
 
2690
  test -z "$as_dir" && as_dir=.
 
2691
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2692
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2693
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2695
    break 2
 
2696
  fi
 
2697
done
 
2698
done
 
2699
 
 
2700
fi
 
2701
fi
 
2702
CC=$ac_cv_prog_CC
 
2703
if test -n "$CC"; then
 
2704
  echo "$as_me:$LINENO: result: $CC" >&5
 
2705
echo "${ECHO_T}$CC" >&6
 
2706
else
 
2707
  echo "$as_me:$LINENO: result: no" >&5
 
2708
echo "${ECHO_T}no" >&6
 
2709
fi
 
2710
 
 
2711
fi
 
2712
if test -z "$ac_cv_prog_CC"; then
 
2713
  ac_ct_CC=$CC
 
2714
  # Extract the first word of "gcc", so it can be a program name with args.
 
2715
set dummy gcc; ac_word=$2
 
2716
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2718
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2720
else
 
2721
  if test -n "$ac_ct_CC"; then
 
2722
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2723
else
 
2724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2725
for as_dir in $PATH
 
2726
do
 
2727
  IFS=$as_save_IFS
 
2728
  test -z "$as_dir" && as_dir=.
 
2729
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2730
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2731
    ac_cv_prog_ac_ct_CC="gcc"
 
2732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2733
    break 2
 
2734
  fi
 
2735
done
 
2736
done
 
2737
 
 
2738
fi
 
2739
fi
 
2740
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2741
if test -n "$ac_ct_CC"; then
 
2742
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2743
echo "${ECHO_T}$ac_ct_CC" >&6
 
2744
else
 
2745
  echo "$as_me:$LINENO: result: no" >&5
 
2746
echo "${ECHO_T}no" >&6
 
2747
fi
 
2748
 
 
2749
  CC=$ac_ct_CC
 
2750
else
 
2751
  CC="$ac_cv_prog_CC"
 
2752
fi
 
2753
 
 
2754
if test -z "$CC"; then
 
2755
  if test -n "$ac_tool_prefix"; then
 
2756
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2757
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2758
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2759
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2760
if test "${ac_cv_prog_CC+set}" = set; then
 
2761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2762
else
 
2763
  if test -n "$CC"; then
 
2764
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2765
else
 
2766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2767
for as_dir in $PATH
 
2768
do
 
2769
  IFS=$as_save_IFS
 
2770
  test -z "$as_dir" && as_dir=.
 
2771
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2772
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2773
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2774
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2775
    break 2
 
2776
  fi
 
2777
done
 
2778
done
 
2779
 
 
2780
fi
 
2781
fi
 
2782
CC=$ac_cv_prog_CC
 
2783
if test -n "$CC"; then
 
2784
  echo "$as_me:$LINENO: result: $CC" >&5
 
2785
echo "${ECHO_T}$CC" >&6
 
2786
else
 
2787
  echo "$as_me:$LINENO: result: no" >&5
 
2788
echo "${ECHO_T}no" >&6
 
2789
fi
 
2790
 
 
2791
fi
 
2792
if test -z "$ac_cv_prog_CC"; then
 
2793
  ac_ct_CC=$CC
 
2794
  # Extract the first word of "cc", so it can be a program name with args.
 
2795
set dummy cc; ac_word=$2
 
2796
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2797
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2798
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2799
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2800
else
 
2801
  if test -n "$ac_ct_CC"; then
 
2802
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2803
else
 
2804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2805
for as_dir in $PATH
 
2806
do
 
2807
  IFS=$as_save_IFS
 
2808
  test -z "$as_dir" && as_dir=.
 
2809
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2810
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2811
    ac_cv_prog_ac_ct_CC="cc"
 
2812
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2813
    break 2
 
2814
  fi
 
2815
done
 
2816
done
 
2817
 
 
2818
fi
 
2819
fi
 
2820
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2821
if test -n "$ac_ct_CC"; then
 
2822
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2823
echo "${ECHO_T}$ac_ct_CC" >&6
 
2824
else
 
2825
  echo "$as_me:$LINENO: result: no" >&5
 
2826
echo "${ECHO_T}no" >&6
 
2827
fi
 
2828
 
 
2829
  CC=$ac_ct_CC
 
2830
else
 
2831
  CC="$ac_cv_prog_CC"
 
2832
fi
 
2833
 
 
2834
fi
 
2835
if test -z "$CC"; then
 
2836
  # Extract the first word of "cc", so it can be a program name with args.
 
2837
set dummy cc; ac_word=$2
 
2838
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2839
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2840
if test "${ac_cv_prog_CC+set}" = set; then
 
2841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2842
else
 
2843
  if test -n "$CC"; then
 
2844
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2845
else
 
2846
  ac_prog_rejected=no
 
2847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2848
for as_dir in $PATH
 
2849
do
 
2850
  IFS=$as_save_IFS
 
2851
  test -z "$as_dir" && as_dir=.
 
2852
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2853
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2854
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2855
       ac_prog_rejected=yes
 
2856
       continue
 
2857
     fi
 
2858
    ac_cv_prog_CC="cc"
 
2859
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2860
    break 2
 
2861
  fi
 
2862
done
 
2863
done
 
2864
 
 
2865
if test $ac_prog_rejected = yes; then
 
2866
  # We found a bogon in the path, so make sure we never use it.
 
2867
  set dummy $ac_cv_prog_CC
 
2868
  shift
 
2869
  if test $# != 0; then
 
2870
    # We chose a different compiler from the bogus one.
 
2871
    # However, it has the same basename, so the bogon will be chosen
 
2872
    # first if we set CC to just the basename; use the full file name.
 
2873
    shift
 
2874
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2875
  fi
 
2876
fi
 
2877
fi
 
2878
fi
 
2879
CC=$ac_cv_prog_CC
 
2880
if test -n "$CC"; then
 
2881
  echo "$as_me:$LINENO: result: $CC" >&5
 
2882
echo "${ECHO_T}$CC" >&6
 
2883
else
 
2884
  echo "$as_me:$LINENO: result: no" >&5
 
2885
echo "${ECHO_T}no" >&6
 
2886
fi
 
2887
 
 
2888
fi
 
2889
if test -z "$CC"; then
 
2890
  if test -n "$ac_tool_prefix"; then
 
2891
  for ac_prog in cl
 
2892
  do
 
2893
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2894
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2895
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2897
if test "${ac_cv_prog_CC+set}" = set; then
 
2898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2899
else
 
2900
  if test -n "$CC"; then
 
2901
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2902
else
 
2903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2904
for as_dir in $PATH
 
2905
do
 
2906
  IFS=$as_save_IFS
 
2907
  test -z "$as_dir" && as_dir=.
 
2908
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2909
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2910
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2911
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2912
    break 2
 
2913
  fi
 
2914
done
 
2915
done
 
2916
 
 
2917
fi
 
2918
fi
 
2919
CC=$ac_cv_prog_CC
 
2920
if test -n "$CC"; then
 
2921
  echo "$as_me:$LINENO: result: $CC" >&5
 
2922
echo "${ECHO_T}$CC" >&6
 
2923
else
 
2924
  echo "$as_me:$LINENO: result: no" >&5
 
2925
echo "${ECHO_T}no" >&6
 
2926
fi
 
2927
 
 
2928
    test -n "$CC" && break
 
2929
  done
 
2930
fi
 
2931
if test -z "$CC"; then
 
2932
  ac_ct_CC=$CC
 
2933
  for ac_prog in cl
 
2934
do
 
2935
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2936
set dummy $ac_prog; ac_word=$2
 
2937
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2938
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2939
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2940
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2941
else
 
2942
  if test -n "$ac_ct_CC"; then
 
2943
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2944
else
 
2945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2946
for as_dir in $PATH
 
2947
do
 
2948
  IFS=$as_save_IFS
 
2949
  test -z "$as_dir" && as_dir=.
 
2950
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2951
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2952
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2953
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2954
    break 2
 
2955
  fi
 
2956
done
 
2957
done
 
2958
 
 
2959
fi
 
2960
fi
 
2961
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2962
if test -n "$ac_ct_CC"; then
 
2963
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2964
echo "${ECHO_T}$ac_ct_CC" >&6
 
2965
else
 
2966
  echo "$as_me:$LINENO: result: no" >&5
 
2967
echo "${ECHO_T}no" >&6
 
2968
fi
 
2969
 
 
2970
  test -n "$ac_ct_CC" && break
 
2971
done
 
2972
 
 
2973
  CC=$ac_ct_CC
 
2974
fi
 
2975
 
 
2976
fi
 
2977
 
 
2978
 
 
2979
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2980
See \`config.log' for more details." >&5
 
2981
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2982
See \`config.log' for more details." >&2;}
 
2983
   { (exit 1); exit 1; }; }
 
2984
 
 
2985
# Provide some information about the compiler.
 
2986
echo "$as_me:$LINENO:" \
 
2987
     "checking for C compiler version" >&5
 
2988
ac_compiler=`set X $ac_compile; echo $2`
 
2989
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2990
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2991
  ac_status=$?
 
2992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2993
  (exit $ac_status); }
 
2994
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2995
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2996
  ac_status=$?
 
2997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2998
  (exit $ac_status); }
 
2999
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3000
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3001
  ac_status=$?
 
3002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3003
  (exit $ac_status); }
 
3004
 
 
3005
cat >conftest.$ac_ext <<_ACEOF
 
3006
/* confdefs.h.  */
 
3007
_ACEOF
 
3008
cat confdefs.h >>conftest.$ac_ext
 
3009
cat >>conftest.$ac_ext <<_ACEOF
 
3010
/* end confdefs.h.  */
 
3011
 
 
3012
int
 
3013
main ()
 
3014
{
 
3015
 
 
3016
  ;
 
3017
  return 0;
 
3018
}
 
3019
_ACEOF
 
3020
ac_clean_files_save=$ac_clean_files
 
3021
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3022
# Try to create an executable without -o first, disregard a.out.
 
3023
# It will help us diagnose broken compilers, and finding out an intuition
 
3024
# of exeext.
 
3025
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3026
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
3027
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3028
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
3029
  (eval $ac_link_default) 2>&5
 
3030
  ac_status=$?
 
3031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3032
  (exit $ac_status); }; then
 
3033
  # Find the output, starting from the most likely.  This scheme is
 
3034
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
3035
# resort.
 
3036
 
 
3037
# Be careful to initialize this variable, since it used to be cached.
 
3038
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
3039
ac_cv_exeext=
 
3040
# b.out is created by i960 compilers.
 
3041
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3042
do
 
3043
  test -f "$ac_file" || continue
 
3044
  case $ac_file in
 
3045
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
3046
        ;;
 
3047
    conftest.$ac_ext )
 
3048
        # This is the source file.
 
3049
        ;;
 
3050
    [ab].out )
 
3051
        # We found the default executable, but exeext='' is most
 
3052
        # certainly right.
 
3053
        break;;
 
3054
    *.* )
 
3055
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3056
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
3057
        # but it would be cool to find out if it's true.  Does anybody
 
3058
        # maintain Libtool? --akim.
 
3059
        export ac_cv_exeext
 
3060
        break;;
 
3061
    * )
 
3062
        break;;
 
3063
  esac
 
3064
done
 
3065
else
 
3066
  echo "$as_me: failed program was:" >&5
 
3067
sed 's/^/| /' conftest.$ac_ext >&5
 
3068
 
 
3069
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3070
See \`config.log' for more details." >&5
 
3071
echo "$as_me: error: C compiler cannot create executables
 
3072
See \`config.log' for more details." >&2;}
 
3073
   { (exit 77); exit 77; }; }
 
3074
fi
 
3075
 
 
3076
ac_exeext=$ac_cv_exeext
 
3077
echo "$as_me:$LINENO: result: $ac_file" >&5
 
3078
echo "${ECHO_T}$ac_file" >&6
 
3079
 
 
3080
# Check the compiler produces executables we can run.  If not, either
 
3081
# the compiler is broken, or we cross compile.
 
3082
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3083
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3084
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3085
# If not cross compiling, check that we can run a simple program.
 
3086
if test "$cross_compiling" != yes; then
 
3087
  if { ac_try='./$ac_file'
 
3088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3089
  (eval $ac_try) 2>&5
 
3090
  ac_status=$?
 
3091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3092
  (exit $ac_status); }; }; then
 
3093
    cross_compiling=no
 
3094
  else
 
3095
    if test "$cross_compiling" = maybe; then
 
3096
        cross_compiling=yes
 
3097
    else
 
3098
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3099
If you meant to cross compile, use \`--host'.
 
3100
See \`config.log' for more details." >&5
 
3101
echo "$as_me: error: cannot run C compiled programs.
 
3102
If you meant to cross compile, use \`--host'.
 
3103
See \`config.log' for more details." >&2;}
 
3104
   { (exit 1); exit 1; }; }
 
3105
    fi
 
3106
  fi
 
3107
fi
 
3108
echo "$as_me:$LINENO: result: yes" >&5
 
3109
echo "${ECHO_T}yes" >&6
 
3110
 
 
3111
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3112
ac_clean_files=$ac_clean_files_save
 
3113
# Check the compiler produces executables we can run.  If not, either
 
3114
# the compiler is broken, or we cross compile.
 
3115
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3116
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
3117
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3118
echo "${ECHO_T}$cross_compiling" >&6
 
3119
 
 
3120
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3121
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
3122
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3123
  (eval $ac_link) 2>&5
 
3124
  ac_status=$?
 
3125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3126
  (exit $ac_status); }; then
 
3127
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3128
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3129
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3130
# `rm'.
 
3131
for ac_file in conftest.exe conftest conftest.*; do
 
3132
  test -f "$ac_file" || continue
 
3133
  case $ac_file in
 
3134
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3135
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3136
          export ac_cv_exeext
 
3137
          break;;
 
3138
    * ) break;;
 
3139
  esac
 
3140
done
 
3141
else
 
3142
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3143
See \`config.log' for more details." >&5
 
3144
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3145
See \`config.log' for more details." >&2;}
 
3146
   { (exit 1); exit 1; }; }
 
3147
fi
 
3148
 
 
3149
rm -f conftest$ac_cv_exeext
 
3150
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3151
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3152
 
 
3153
rm -f conftest.$ac_ext
 
3154
EXEEXT=$ac_cv_exeext
 
3155
ac_exeext=$EXEEXT
 
3156
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3157
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3158
if test "${ac_cv_objext+set}" = set; then
 
3159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3160
else
 
3161
  cat >conftest.$ac_ext <<_ACEOF
 
3162
/* confdefs.h.  */
 
3163
_ACEOF
 
3164
cat confdefs.h >>conftest.$ac_ext
 
3165
cat >>conftest.$ac_ext <<_ACEOF
 
3166
/* end confdefs.h.  */
 
3167
 
 
3168
int
 
3169
main ()
 
3170
{
 
3171
 
 
3172
  ;
 
3173
  return 0;
 
3174
}
 
3175
_ACEOF
 
3176
rm -f conftest.o conftest.obj
 
3177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3178
  (eval $ac_compile) 2>&5
 
3179
  ac_status=$?
 
3180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3181
  (exit $ac_status); }; then
 
3182
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3183
  case $ac_file in
 
3184
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3185
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3186
       break;;
 
3187
  esac
 
3188
done
 
3189
else
 
3190
  echo "$as_me: failed program was:" >&5
 
3191
sed 's/^/| /' conftest.$ac_ext >&5
 
3192
 
 
3193
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3194
See \`config.log' for more details." >&5
 
3195
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3196
See \`config.log' for more details." >&2;}
 
3197
   { (exit 1); exit 1; }; }
 
3198
fi
 
3199
 
 
3200
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3201
fi
 
3202
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3203
echo "${ECHO_T}$ac_cv_objext" >&6
 
3204
OBJEXT=$ac_cv_objext
 
3205
ac_objext=$OBJEXT
 
3206
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3207
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3208
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3210
else
 
3211
  cat >conftest.$ac_ext <<_ACEOF
 
3212
/* confdefs.h.  */
 
3213
_ACEOF
 
3214
cat confdefs.h >>conftest.$ac_ext
 
3215
cat >>conftest.$ac_ext <<_ACEOF
 
3216
/* end confdefs.h.  */
 
3217
 
 
3218
int
 
3219
main ()
 
3220
{
 
3221
#ifndef __GNUC__
 
3222
       choke me
 
3223
#endif
 
3224
 
 
3225
  ;
 
3226
  return 0;
 
3227
}
 
3228
_ACEOF
 
3229
rm -f conftest.$ac_objext
 
3230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3231
  (eval $ac_compile) 2>conftest.er1
 
3232
  ac_status=$?
 
3233
  grep -v '^ *+' conftest.er1 >conftest.err
 
3234
  rm -f conftest.er1
 
3235
  cat conftest.err >&5
 
3236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3237
  (exit $ac_status); } &&
 
3238
         { ac_try='test -z "$ac_c_werror_flag"
 
3239
                         || test ! -s conftest.err'
 
3240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3241
  (eval $ac_try) 2>&5
 
3242
  ac_status=$?
 
3243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3244
  (exit $ac_status); }; } &&
 
3245
         { ac_try='test -s conftest.$ac_objext'
 
3246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3247
  (eval $ac_try) 2>&5
 
3248
  ac_status=$?
 
3249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3250
  (exit $ac_status); }; }; then
 
3251
  ac_compiler_gnu=yes
 
3252
else
 
3253
  echo "$as_me: failed program was:" >&5
 
3254
sed 's/^/| /' conftest.$ac_ext >&5
 
3255
 
 
3256
ac_compiler_gnu=no
 
3257
fi
 
3258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3259
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3260
 
 
3261
fi
 
3262
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3263
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3264
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3265
ac_test_CFLAGS=${CFLAGS+set}
 
3266
ac_save_CFLAGS=$CFLAGS
 
3267
CFLAGS="-g"
 
3268
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3269
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3270
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3272
else
 
3273
  cat >conftest.$ac_ext <<_ACEOF
 
3274
/* confdefs.h.  */
 
3275
_ACEOF
 
3276
cat confdefs.h >>conftest.$ac_ext
 
3277
cat >>conftest.$ac_ext <<_ACEOF
 
3278
/* end confdefs.h.  */
 
3279
 
 
3280
int
 
3281
main ()
 
3282
{
 
3283
 
 
3284
  ;
 
3285
  return 0;
 
3286
}
 
3287
_ACEOF
 
3288
rm -f conftest.$ac_objext
 
3289
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3290
  (eval $ac_compile) 2>conftest.er1
 
3291
  ac_status=$?
 
3292
  grep -v '^ *+' conftest.er1 >conftest.err
 
3293
  rm -f conftest.er1
 
3294
  cat conftest.err >&5
 
3295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3296
  (exit $ac_status); } &&
 
3297
         { ac_try='test -z "$ac_c_werror_flag"
 
3298
                         || test ! -s conftest.err'
 
3299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3300
  (eval $ac_try) 2>&5
 
3301
  ac_status=$?
 
3302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3303
  (exit $ac_status); }; } &&
 
3304
         { ac_try='test -s conftest.$ac_objext'
 
3305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3306
  (eval $ac_try) 2>&5
 
3307
  ac_status=$?
 
3308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3309
  (exit $ac_status); }; }; then
 
3310
  ac_cv_prog_cc_g=yes
 
3311
else
 
3312
  echo "$as_me: failed program was:" >&5
 
3313
sed 's/^/| /' conftest.$ac_ext >&5
 
3314
 
 
3315
ac_cv_prog_cc_g=no
 
3316
fi
 
3317
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3318
fi
 
3319
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3320
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3321
if test "$ac_test_CFLAGS" = set; then
 
3322
  CFLAGS=$ac_save_CFLAGS
 
3323
elif test $ac_cv_prog_cc_g = yes; then
 
3324
  if test "$GCC" = yes; then
 
3325
    CFLAGS="-g -O2"
 
3326
  else
 
3327
    CFLAGS="-g"
 
3328
  fi
 
3329
else
 
3330
  if test "$GCC" = yes; then
 
3331
    CFLAGS="-O2"
 
3332
  else
 
3333
    CFLAGS=
 
3334
  fi
 
3335
fi
 
3336
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3337
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3338
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3340
else
 
3341
  ac_cv_prog_cc_stdc=no
 
3342
ac_save_CC=$CC
 
3343
cat >conftest.$ac_ext <<_ACEOF
 
3344
/* confdefs.h.  */
 
3345
_ACEOF
 
3346
cat confdefs.h >>conftest.$ac_ext
 
3347
cat >>conftest.$ac_ext <<_ACEOF
 
3348
/* end confdefs.h.  */
 
3349
#include <stdarg.h>
 
3350
#include <stdio.h>
 
3351
#include <sys/types.h>
 
3352
#include <sys/stat.h>
 
3353
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3354
struct buf { int x; };
 
3355
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3356
static char *e (p, i)
 
3357
     char **p;
 
3358
     int i;
 
3359
{
 
3360
  return p[i];
 
3361
}
 
3362
static char *f (char * (*g) (char **, int), char **p, ...)
 
3363
{
 
3364
  char *s;
 
3365
  va_list v;
 
3366
  va_start (v,p);
 
3367
  s = g (p, va_arg (v,int));
 
3368
  va_end (v);
 
3369
  return s;
 
3370
}
 
3371
 
 
3372
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3373
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3374
   These don't provoke an error unfortunately, instead are silently treated
 
3375
   as 'x'.  The following induces an error, until -std1 is added to get
 
3376
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3377
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3378
   that's true only with -std1.  */
 
3379
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3380
 
 
3381
int test (int i, double x);
 
3382
struct s1 {int (*f) (int a);};
 
3383
struct s2 {int (*f) (double a);};
 
3384
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3385
int argc;
 
3386
char **argv;
 
3387
int
 
3388
main ()
 
3389
{
 
3390
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3391
  ;
 
3392
  return 0;
 
3393
}
 
3394
_ACEOF
 
3395
# Don't try gcc -ansi; that turns off useful extensions and
 
3396
# breaks some systems' header files.
 
3397
# AIX                   -qlanglvl=ansi
 
3398
# Ultrix and OSF/1      -std1
 
3399
# HP-UX 10.20 and later -Ae
 
3400
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3401
# SVR4                  -Xc -D__EXTENSIONS__
 
3402
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3403
do
 
3404
  CC="$ac_save_CC $ac_arg"
 
3405
  rm -f conftest.$ac_objext
 
3406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3407
  (eval $ac_compile) 2>conftest.er1
 
3408
  ac_status=$?
 
3409
  grep -v '^ *+' conftest.er1 >conftest.err
 
3410
  rm -f conftest.er1
 
3411
  cat conftest.err >&5
 
3412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3413
  (exit $ac_status); } &&
 
3414
         { ac_try='test -z "$ac_c_werror_flag"
 
3415
                         || test ! -s conftest.err'
 
3416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3417
  (eval $ac_try) 2>&5
 
3418
  ac_status=$?
 
3419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3420
  (exit $ac_status); }; } &&
 
3421
         { ac_try='test -s conftest.$ac_objext'
 
3422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3423
  (eval $ac_try) 2>&5
 
3424
  ac_status=$?
 
3425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3426
  (exit $ac_status); }; }; then
 
3427
  ac_cv_prog_cc_stdc=$ac_arg
 
3428
break
 
3429
else
 
3430
  echo "$as_me: failed program was:" >&5
 
3431
sed 's/^/| /' conftest.$ac_ext >&5
 
3432
 
 
3433
fi
 
3434
rm -f conftest.err conftest.$ac_objext
 
3435
done
 
3436
rm -f conftest.$ac_ext conftest.$ac_objext
 
3437
CC=$ac_save_CC
 
3438
 
 
3439
fi
 
3440
 
 
3441
case "x$ac_cv_prog_cc_stdc" in
 
3442
  x|xno)
 
3443
    echo "$as_me:$LINENO: result: none needed" >&5
 
3444
echo "${ECHO_T}none needed" >&6 ;;
 
3445
  *)
 
3446
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3447
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3448
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3449
esac
 
3450
 
 
3451
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3452
# in C++ we need to declare it.  In case someone uses the same compiler
 
3453
# for both compiling C and C++ we need to have the C++ compiler decide
 
3454
# the declaration of exit, since it's the most demanding environment.
 
3455
cat >conftest.$ac_ext <<_ACEOF
 
3456
#ifndef __cplusplus
 
3457
  choke me
 
3458
#endif
 
3459
_ACEOF
 
3460
rm -f conftest.$ac_objext
 
3461
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3462
  (eval $ac_compile) 2>conftest.er1
 
3463
  ac_status=$?
 
3464
  grep -v '^ *+' conftest.er1 >conftest.err
 
3465
  rm -f conftest.er1
 
3466
  cat conftest.err >&5
 
3467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3468
  (exit $ac_status); } &&
 
3469
         { ac_try='test -z "$ac_c_werror_flag"
 
3470
                         || test ! -s conftest.err'
 
3471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3472
  (eval $ac_try) 2>&5
 
3473
  ac_status=$?
 
3474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3475
  (exit $ac_status); }; } &&
 
3476
         { ac_try='test -s conftest.$ac_objext'
 
3477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3478
  (eval $ac_try) 2>&5
 
3479
  ac_status=$?
 
3480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3481
  (exit $ac_status); }; }; then
 
3482
  for ac_declaration in \
 
3483
   '' \
 
3484
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3485
   'extern "C" void std::exit (int); using std::exit;' \
 
3486
   'extern "C" void exit (int) throw ();' \
 
3487
   'extern "C" void exit (int);' \
 
3488
   'void exit (int);'
 
3489
do
 
3490
  cat >conftest.$ac_ext <<_ACEOF
 
3491
/* confdefs.h.  */
 
3492
_ACEOF
 
3493
cat confdefs.h >>conftest.$ac_ext
 
3494
cat >>conftest.$ac_ext <<_ACEOF
 
3495
/* end confdefs.h.  */
 
3496
$ac_declaration
 
3497
#include <stdlib.h>
 
3498
int
 
3499
main ()
 
3500
{
 
3501
exit (42);
 
3502
  ;
 
3503
  return 0;
 
3504
}
 
3505
_ACEOF
 
3506
rm -f conftest.$ac_objext
 
3507
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3508
  (eval $ac_compile) 2>conftest.er1
 
3509
  ac_status=$?
 
3510
  grep -v '^ *+' conftest.er1 >conftest.err
 
3511
  rm -f conftest.er1
 
3512
  cat conftest.err >&5
 
3513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3514
  (exit $ac_status); } &&
 
3515
         { ac_try='test -z "$ac_c_werror_flag"
 
3516
                         || test ! -s conftest.err'
 
3517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3518
  (eval $ac_try) 2>&5
 
3519
  ac_status=$?
 
3520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3521
  (exit $ac_status); }; } &&
 
3522
         { ac_try='test -s conftest.$ac_objext'
 
3523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3524
  (eval $ac_try) 2>&5
 
3525
  ac_status=$?
 
3526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3527
  (exit $ac_status); }; }; then
 
3528
  :
 
3529
else
 
3530
  echo "$as_me: failed program was:" >&5
 
3531
sed 's/^/| /' conftest.$ac_ext >&5
 
3532
 
 
3533
continue
 
3534
fi
 
3535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3536
  cat >conftest.$ac_ext <<_ACEOF
 
3537
/* confdefs.h.  */
 
3538
_ACEOF
 
3539
cat confdefs.h >>conftest.$ac_ext
 
3540
cat >>conftest.$ac_ext <<_ACEOF
 
3541
/* end confdefs.h.  */
 
3542
$ac_declaration
 
3543
int
 
3544
main ()
 
3545
{
 
3546
exit (42);
 
3547
  ;
 
3548
  return 0;
 
3549
}
 
3550
_ACEOF
 
3551
rm -f conftest.$ac_objext
 
3552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3553
  (eval $ac_compile) 2>conftest.er1
 
3554
  ac_status=$?
 
3555
  grep -v '^ *+' conftest.er1 >conftest.err
 
3556
  rm -f conftest.er1
 
3557
  cat conftest.err >&5
 
3558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3559
  (exit $ac_status); } &&
 
3560
         { ac_try='test -z "$ac_c_werror_flag"
 
3561
                         || test ! -s conftest.err'
 
3562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3563
  (eval $ac_try) 2>&5
 
3564
  ac_status=$?
 
3565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3566
  (exit $ac_status); }; } &&
 
3567
         { ac_try='test -s conftest.$ac_objext'
 
3568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3569
  (eval $ac_try) 2>&5
 
3570
  ac_status=$?
 
3571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3572
  (exit $ac_status); }; }; then
 
3573
  break
 
3574
else
 
3575
  echo "$as_me: failed program was:" >&5
 
3576
sed 's/^/| /' conftest.$ac_ext >&5
 
3577
 
 
3578
fi
 
3579
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3580
done
 
3581
rm -f conftest*
 
3582
if test -n "$ac_declaration"; then
 
3583
  echo '#ifdef __cplusplus' >>confdefs.h
 
3584
  echo $ac_declaration      >>confdefs.h
 
3585
  echo '#endif'             >>confdefs.h
 
3586
fi
 
3587
 
 
3588
else
 
3589
  echo "$as_me: failed program was:" >&5
 
3590
sed 's/^/| /' conftest.$ac_ext >&5
 
3591
 
 
3592
fi
 
3593
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3594
ac_ext=c
 
3595
ac_cpp='$CPP $CPPFLAGS'
 
3596
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3597
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3598
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3599
 
 
3600
 
 
3601
 
 
3602
if test "x$apr_preload_done" != "xyes" ; then
 
3603
 
 
3604
  apr_preload_done="yes"
 
3605
 
 
3606
  echo "Applying APR hints file rules for $host"
 
3607
 
 
3608
  case "$host" in
 
3609
    *mint)
 
3610
 
 
3611
  if test "x$CPPFLAGS" = "x"; then
 
3612
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMINT\""
 
3613
    CPPFLAGS="-DMINT"
 
3614
  else
 
3615
    apr_addto_bugger="-DMINT"
 
3616
    for i in $apr_addto_bugger; do
 
3617
      apr_addto_duplicate="0"
 
3618
      for j in $CPPFLAGS; do
 
3619
        if test "x$i" = "x$j"; then
 
3620
          apr_addto_duplicate="1"
 
3621
          break
 
3622
        fi
 
3623
      done
 
3624
      if test $apr_addto_duplicate = "0"; then
 
3625
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3626
        CPPFLAGS="$CPPFLAGS $i"
 
3627
      fi
 
3628
    done
 
3629
  fi
 
3630
 
 
3631
 
 
3632
  if test "x$LIBS" = "x"; then
 
3633
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lportlib\""
 
3634
    LIBS="-lportlib"
 
3635
  else
 
3636
    apr_addto_bugger="-lportlib"
 
3637
    for i in $apr_addto_bugger; do
 
3638
      apr_addto_duplicate="0"
 
3639
      for j in $LIBS; do
 
3640
        if test "x$i" = "x$j"; then
 
3641
          apr_addto_duplicate="1"
 
3642
          break
 
3643
        fi
 
3644
      done
 
3645
      if test $apr_addto_duplicate = "0"; then
 
3646
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
3647
        LIBS="$LIBS $i"
 
3648
      fi
 
3649
    done
 
3650
  fi
 
3651
 
 
3652
        ;;
 
3653
    *MPE/iX*)
 
3654
 
 
3655
  if test "x$CPPFLAGS" = "x"; then
 
3656
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
 
3657
    CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
 
3658
  else
 
3659
    apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
 
3660
    for i in $apr_addto_bugger; do
 
3661
      apr_addto_duplicate="0"
 
3662
      for j in $CPPFLAGS; do
 
3663
        if test "x$i" = "x$j"; then
 
3664
          apr_addto_duplicate="1"
 
3665
          break
 
3666
        fi
 
3667
      done
 
3668
      if test $apr_addto_duplicate = "0"; then
 
3669
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3670
        CPPFLAGS="$CPPFLAGS $i"
 
3671
      fi
 
3672
    done
 
3673
  fi
 
3674
 
 
3675
 
 
3676
  if test "x$LIBS" = "x"; then
 
3677
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsvipc -lcurses\""
 
3678
    LIBS="-lsvipc -lcurses"
 
3679
  else
 
3680
    apr_addto_bugger="-lsvipc -lcurses"
 
3681
    for i in $apr_addto_bugger; do
 
3682
      apr_addto_duplicate="0"
 
3683
      for j in $LIBS; do
 
3684
        if test "x$i" = "x$j"; then
 
3685
          apr_addto_duplicate="1"
 
3686
          break
 
3687
        fi
 
3688
      done
 
3689
      if test $apr_addto_duplicate = "0"; then
 
3690
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
3691
        LIBS="$LIBS $i"
 
3692
      fi
 
3693
    done
 
3694
  fi
 
3695
 
 
3696
 
 
3697
  if test "x$LDFLAGS" = "x"; then
 
3698
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
 
3699
    LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
 
3700
  else
 
3701
    apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
 
3702
    for i in $apr_addto_bugger; do
 
3703
      apr_addto_duplicate="0"
 
3704
      for j in $LDFLAGS; do
 
3705
        if test "x$i" = "x$j"; then
 
3706
          apr_addto_duplicate="1"
 
3707
          break
 
3708
        fi
 
3709
      done
 
3710
      if test $apr_addto_duplicate = "0"; then
 
3711
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
3712
        LDFLAGS="$LDFLAGS $i"
 
3713
      fi
 
3714
    done
 
3715
  fi
 
3716
 
 
3717
        ;;
 
3718
    *-apple-aux3*)
 
3719
 
 
3720
  if test "x$CPPFLAGS" = "x"; then
 
3721
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
 
3722
    CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
 
3723
  else
 
3724
    apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
 
3725
    for i in $apr_addto_bugger; do
 
3726
      apr_addto_duplicate="0"
 
3727
      for j in $CPPFLAGS; do
 
3728
        if test "x$i" = "x$j"; then
 
3729
          apr_addto_duplicate="1"
 
3730
          break
 
3731
        fi
 
3732
      done
 
3733
      if test $apr_addto_duplicate = "0"; then
 
3734
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3735
        CPPFLAGS="$CPPFLAGS $i"
 
3736
      fi
 
3737
    done
 
3738
  fi
 
3739
 
 
3740
 
 
3741
  if test "x$LIBS" = "x"; then
 
3742
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lposix -lbsd\""
 
3743
    LIBS="-lposix -lbsd"
 
3744
  else
 
3745
    apr_addto_bugger="-lposix -lbsd"
 
3746
    for i in $apr_addto_bugger; do
 
3747
      apr_addto_duplicate="0"
 
3748
      for j in $LIBS; do
 
3749
        if test "x$i" = "x$j"; then
 
3750
          apr_addto_duplicate="1"
 
3751
          break
 
3752
        fi
 
3753
      done
 
3754
      if test $apr_addto_duplicate = "0"; then
 
3755
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
3756
        LIBS="$LIBS $i"
 
3757
      fi
 
3758
    done
 
3759
  fi
 
3760
 
 
3761
 
 
3762
  if test "x$LDFLAGS" = "x"; then
 
3763
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-s\""
 
3764
    LDFLAGS="-s"
 
3765
  else
 
3766
    apr_addto_bugger="-s"
 
3767
    for i in $apr_addto_bugger; do
 
3768
      apr_addto_duplicate="0"
 
3769
      for j in $LDFLAGS; do
 
3770
        if test "x$i" = "x$j"; then
 
3771
          apr_addto_duplicate="1"
 
3772
          break
 
3773
        fi
 
3774
      done
 
3775
      if test $apr_addto_duplicate = "0"; then
 
3776
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
3777
        LDFLAGS="$LDFLAGS $i"
 
3778
      fi
 
3779
    done
 
3780
  fi
 
3781
 
 
3782
 
 
3783
  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/ksh\""
 
3784
  SHELL="/bin/ksh"
 
3785
 
 
3786
        ;;
 
3787
    *-ibm-aix*)
 
3788
 
 
3789
  if test "x$CPPFLAGS" = "x"; then
 
3790
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
 
3791
    CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
 
3792
  else
 
3793
    apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
 
3794
    for i in $apr_addto_bugger; do
 
3795
      apr_addto_duplicate="0"
 
3796
      for j in $CPPFLAGS; do
 
3797
        if test "x$i" = "x$j"; then
 
3798
          apr_addto_duplicate="1"
 
3799
          break
 
3800
        fi
 
3801
      done
 
3802
      if test $apr_addto_duplicate = "0"; then
 
3803
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3804
        CPPFLAGS="$CPPFLAGS $i"
 
3805
      fi
 
3806
    done
 
3807
  fi
 
3808
 
 
3809
                case $host in
 
3810
            *-ibm-aix4.3)
 
3811
 
 
3812
  if test "x$CPPFLAGS" = "x"; then
 
3813
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
 
3814
    CPPFLAGS="-D_USE_IRS"
 
3815
  else
 
3816
    apr_addto_bugger="-D_USE_IRS"
 
3817
    for i in $apr_addto_bugger; do
 
3818
      apr_addto_duplicate="0"
 
3819
      for j in $CPPFLAGS; do
 
3820
        if test "x$i" = "x$j"; then
 
3821
          apr_addto_duplicate="1"
 
3822
          break
 
3823
        fi
 
3824
      done
 
3825
      if test $apr_addto_duplicate = "0"; then
 
3826
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3827
        CPPFLAGS="$CPPFLAGS $i"
 
3828
      fi
 
3829
    done
 
3830
  fi
 
3831
 
 
3832
                ;;
 
3833
            *-ibm-aix5*)
 
3834
 
 
3835
  if test "x$CPPFLAGS" = "x"; then
 
3836
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
 
3837
    CPPFLAGS="-D_USE_IRS"
 
3838
  else
 
3839
    apr_addto_bugger="-D_USE_IRS"
 
3840
    for i in $apr_addto_bugger; do
 
3841
      apr_addto_duplicate="0"
 
3842
      for j in $CPPFLAGS; do
 
3843
        if test "x$i" = "x$j"; then
 
3844
          apr_addto_duplicate="1"
 
3845
          break
 
3846
        fi
 
3847
      done
 
3848
      if test $apr_addto_duplicate = "0"; then
 
3849
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3850
        CPPFLAGS="$CPPFLAGS $i"
 
3851
      fi
 
3852
    done
 
3853
  fi
 
3854
 
 
3855
                ;;
 
3856
            *-ibm-aix4.3.*)
 
3857
 
 
3858
  if test "x$CPPFLAGS" = "x"; then
 
3859
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
 
3860
    CPPFLAGS="-D_USE_IRS"
 
3861
  else
 
3862
    apr_addto_bugger="-D_USE_IRS"
 
3863
    for i in $apr_addto_bugger; do
 
3864
      apr_addto_duplicate="0"
 
3865
      for j in $CPPFLAGS; do
 
3866
        if test "x$i" = "x$j"; then
 
3867
          apr_addto_duplicate="1"
 
3868
          break
 
3869
        fi
 
3870
      done
 
3871
      if test $apr_addto_duplicate = "0"; then
 
3872
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3873
        CPPFLAGS="$CPPFLAGS $i"
 
3874
      fi
 
3875
    done
 
3876
  fi
 
3877
 
 
3878
                ;;
 
3879
        esac
 
3880
                if $CC 2>&1 | grep 'xlc' > /dev/null; then
 
3881
 
 
3882
  if test -z "$AIX_XLC"; then
 
3883
    test "x$silent" != "xyes" && echo "  setting AIX_XLC to \"yes\""
 
3884
    AIX_XLC="yes"
 
3885
  fi
 
3886
 
 
3887
 
 
3888
  if test "x$CFLAGS" = "x"; then
 
3889
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qHALT=E\""
 
3890
    CFLAGS="-qHALT=E"
 
3891
  else
 
3892
    apr_addto_bugger="-qHALT=E"
 
3893
    for i in $apr_addto_bugger; do
 
3894
      apr_addto_duplicate="0"
 
3895
      for j in $CFLAGS; do
 
3896
        if test "x$i" = "x$j"; then
 
3897
          apr_addto_duplicate="1"
 
3898
          break
 
3899
        fi
 
3900
      done
 
3901
      if test $apr_addto_duplicate = "0"; then
 
3902
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
3903
        CFLAGS="$CFLAGS $i"
 
3904
      fi
 
3905
    done
 
3906
  fi
 
3907
 
 
3908
        fi
 
3909
 
 
3910
  if test -z "$apr_sysvsem_is_global"; then
 
3911
    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
 
3912
    apr_sysvsem_is_global="yes"
 
3913
  fi
 
3914
 
 
3915
 
 
3916
  if test -z "$apr_lock_method"; then
 
3917
    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
 
3918
    apr_lock_method="USE_SYSVSEM_SERIALIZE"
 
3919
  fi
 
3920
 
 
3921
        case $host in
 
3922
            *-ibm-aix3* | *-ibm-aix4.1.*)
 
3923
                ;;
 
3924
            *)
 
3925
 
 
3926
  if test "x$LDFLAGS" = "x"; then
 
3927
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,-brtl\""
 
3928
    LDFLAGS="-Wl,-brtl"
 
3929
  else
 
3930
    apr_addto_bugger="-Wl,-brtl"
 
3931
    for i in $apr_addto_bugger; do
 
3932
      apr_addto_duplicate="0"
 
3933
      for j in $LDFLAGS; do
 
3934
        if test "x$i" = "x$j"; then
 
3935
          apr_addto_duplicate="1"
 
3936
          break
 
3937
        fi
 
3938
      done
 
3939
      if test $apr_addto_duplicate = "0"; then
 
3940
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
3941
        LDFLAGS="$LDFLAGS $i"
 
3942
      fi
 
3943
    done
 
3944
  fi
 
3945
 
 
3946
                ;;
 
3947
        esac
 
3948
        ;;
 
3949
    *-apollo-*)
 
3950
 
 
3951
  if test "x$CPPFLAGS" = "x"; then
 
3952
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPOLLO\""
 
3953
    CPPFLAGS="-DAPOLLO"
 
3954
  else
 
3955
    apr_addto_bugger="-DAPOLLO"
 
3956
    for i in $apr_addto_bugger; do
 
3957
      apr_addto_duplicate="0"
 
3958
      for j in $CPPFLAGS; do
 
3959
        if test "x$i" = "x$j"; then
 
3960
          apr_addto_duplicate="1"
 
3961
          break
 
3962
        fi
 
3963
      done
 
3964
      if test $apr_addto_duplicate = "0"; then
 
3965
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3966
        CPPFLAGS="$CPPFLAGS $i"
 
3967
      fi
 
3968
    done
 
3969
  fi
 
3970
 
 
3971
        ;;
 
3972
    *-dg-dgux*)
 
3973
 
 
3974
  if test "x$CPPFLAGS" = "x"; then
 
3975
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDGUX\""
 
3976
    CPPFLAGS="-DDGUX"
 
3977
  else
 
3978
    apr_addto_bugger="-DDGUX"
 
3979
    for i in $apr_addto_bugger; do
 
3980
      apr_addto_duplicate="0"
 
3981
      for j in $CPPFLAGS; do
 
3982
        if test "x$i" = "x$j"; then
 
3983
          apr_addto_duplicate="1"
 
3984
          break
 
3985
        fi
 
3986
      done
 
3987
      if test $apr_addto_duplicate = "0"; then
 
3988
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
3989
        CPPFLAGS="$CPPFLAGS $i"
 
3990
      fi
 
3991
    done
 
3992
  fi
 
3993
 
 
3994
        ;;
 
3995
    *-os2*)
 
3996
 
 
3997
  test "x$silent" != "xyes" && echo "  forcing SHELL to \"sh\""
 
3998
  SHELL="sh"
 
3999
 
 
4000
 
 
4001
  if test -z "$apr_gethostbyname_is_thread_safe"; then
 
4002
    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
 
4003
    apr_gethostbyname_is_thread_safe="yes"
 
4004
  fi
 
4005
 
 
4006
 
 
4007
  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
 
4008
    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
 
4009
    apr_gethostbyaddr_is_thread_safe="yes"
 
4010
  fi
 
4011
 
 
4012
        ;;
 
4013
    *-hi-hiux)
 
4014
 
 
4015
  if test "x$CPPFLAGS" = "x"; then
 
4016
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHIUX\""
 
4017
    CPPFLAGS="-DHIUX"
 
4018
  else
 
4019
    apr_addto_bugger="-DHIUX"
 
4020
    for i in $apr_addto_bugger; do
 
4021
      apr_addto_duplicate="0"
 
4022
      for j in $CPPFLAGS; do
 
4023
        if test "x$i" = "x$j"; then
 
4024
          apr_addto_duplicate="1"
 
4025
          break
 
4026
        fi
 
4027
      done
 
4028
      if test $apr_addto_duplicate = "0"; then
 
4029
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4030
        CPPFLAGS="$CPPFLAGS $i"
 
4031
      fi
 
4032
    done
 
4033
  fi
 
4034
 
 
4035
        ;;
 
4036
    *-hp-hpux11.*)
 
4037
 
 
4038
  if test "x$CPPFLAGS" = "x"; then
 
4039
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED\""
 
4040
    CPPFLAGS="-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED"
 
4041
  else
 
4042
    apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED"
 
4043
    for i in $apr_addto_bugger; do
 
4044
      apr_addto_duplicate="0"
 
4045
      for j in $CPPFLAGS; do
 
4046
        if test "x$i" = "x$j"; then
 
4047
          apr_addto_duplicate="1"
 
4048
          break
 
4049
        fi
 
4050
      done
 
4051
      if test $apr_addto_duplicate = "0"; then
 
4052
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4053
        CPPFLAGS="$CPPFLAGS $i"
 
4054
      fi
 
4055
    done
 
4056
  fi
 
4057
 
 
4058
        ;;
 
4059
    *-hp-hpux10.*)
 
4060
        case $host in
 
4061
          *-hp-hpux10.01)
 
4062
 
 
4063
  if test "x$CPPFLAGS" = "x"; then
 
4064
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
 
4065
    CPPFLAGS="-DSELECT_NEEDS_CAST"
 
4066
  else
 
4067
    apr_addto_bugger="-DSELECT_NEEDS_CAST"
 
4068
    for i in $apr_addto_bugger; do
 
4069
      apr_addto_duplicate="0"
 
4070
      for j in $CPPFLAGS; do
 
4071
        if test "x$i" = "x$j"; then
 
4072
          apr_addto_duplicate="1"
 
4073
          break
 
4074
        fi
 
4075
      done
 
4076
      if test $apr_addto_duplicate = "0"; then
 
4077
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4078
        CPPFLAGS="$CPPFLAGS $i"
 
4079
      fi
 
4080
    done
 
4081
  fi
 
4082
 
 
4083
               ;;
 
4084
        esac
 
4085
 
 
4086
  if test "x$CPPFLAGS" = "x"; then
 
4087
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT\""
 
4088
    CPPFLAGS="-D_REENTRANT"
 
4089
  else
 
4090
    apr_addto_bugger="-D_REENTRANT"
 
4091
    for i in $apr_addto_bugger; do
 
4092
      apr_addto_duplicate="0"
 
4093
      for j in $CPPFLAGS; do
 
4094
        if test "x$i" = "x$j"; then
 
4095
          apr_addto_duplicate="1"
 
4096
          break
 
4097
        fi
 
4098
      done
 
4099
      if test $apr_addto_duplicate = "0"; then
 
4100
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4101
        CPPFLAGS="$CPPFLAGS $i"
 
4102
      fi
 
4103
    done
 
4104
  fi
 
4105
 
 
4106
        ;;
 
4107
    *-hp-hpux*)
 
4108
 
 
4109
  if test "x$CPPFLAGS" = "x"; then
 
4110
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
 
4111
    CPPFLAGS="-DHPUX -D_REENTRANT"
 
4112
  else
 
4113
    apr_addto_bugger="-DHPUX -D_REENTRANT"
 
4114
    for i in $apr_addto_bugger; do
 
4115
      apr_addto_duplicate="0"
 
4116
      for j in $CPPFLAGS; do
 
4117
        if test "x$i" = "x$j"; then
 
4118
          apr_addto_duplicate="1"
 
4119
          break
 
4120
        fi
 
4121
      done
 
4122
      if test $apr_addto_duplicate = "0"; then
 
4123
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4124
        CPPFLAGS="$CPPFLAGS $i"
 
4125
      fi
 
4126
    done
 
4127
  fi
 
4128
 
 
4129
        ;;
 
4130
    *-linux-*)
 
4131
        case `uname -r` in
 
4132
            2.* )
 
4133
  if test "x$CPPFLAGS" = "x"; then
 
4134
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX=2\""
 
4135
    CPPFLAGS="-DLINUX=2"
 
4136
  else
 
4137
    apr_addto_bugger="-DLINUX=2"
 
4138
    for i in $apr_addto_bugger; do
 
4139
      apr_addto_duplicate="0"
 
4140
      for j in $CPPFLAGS; do
 
4141
        if test "x$i" = "x$j"; then
 
4142
          apr_addto_duplicate="1"
 
4143
          break
 
4144
        fi
 
4145
      done
 
4146
      if test $apr_addto_duplicate = "0"; then
 
4147
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4148
        CPPFLAGS="$CPPFLAGS $i"
 
4149
      fi
 
4150
    done
 
4151
  fi
 
4152
 
 
4153
                   ;;
 
4154
            1.* )
 
4155
  if test "x$CPPFLAGS" = "x"; then
 
4156
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX=1\""
 
4157
    CPPFLAGS="-DLINUX=1"
 
4158
  else
 
4159
    apr_addto_bugger="-DLINUX=1"
 
4160
    for i in $apr_addto_bugger; do
 
4161
      apr_addto_duplicate="0"
 
4162
      for j in $CPPFLAGS; do
 
4163
        if test "x$i" = "x$j"; then
 
4164
          apr_addto_duplicate="1"
 
4165
          break
 
4166
        fi
 
4167
      done
 
4168
      if test $apr_addto_duplicate = "0"; then
 
4169
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4170
        CPPFLAGS="$CPPFLAGS $i"
 
4171
      fi
 
4172
    done
 
4173
  fi
 
4174
 
 
4175
                   ;;
 
4176
            * )
 
4177
                   ;;
 
4178
        esac
 
4179
 
 
4180
  if test "x$CPPFLAGS" = "x"; then
 
4181
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
 
4182
    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
 
4183
  else
 
4184
    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
 
4185
    for i in $apr_addto_bugger; do
 
4186
      apr_addto_duplicate="0"
 
4187
      for j in $CPPFLAGS; do
 
4188
        if test "x$i" = "x$j"; then
 
4189
          apr_addto_duplicate="1"
 
4190
          break
 
4191
        fi
 
4192
      done
 
4193
      if test $apr_addto_duplicate = "0"; then
 
4194
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4195
        CPPFLAGS="$CPPFLAGS $i"
 
4196
      fi
 
4197
    done
 
4198
  fi
 
4199
 
 
4200
        ;;
 
4201
    *-GNU*)
 
4202
 
 
4203
  if test "x$CPPFLAGS" = "x"; then
 
4204
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHURD -D_GNU_SOURCE\""
 
4205
    CPPFLAGS="-DHURD -D_GNU_SOURCE"
 
4206
  else
 
4207
    apr_addto_bugger="-DHURD -D_GNU_SOURCE"
 
4208
    for i in $apr_addto_bugger; do
 
4209
      apr_addto_duplicate="0"
 
4210
      for j in $CPPFLAGS; do
 
4211
        if test "x$i" = "x$j"; then
 
4212
          apr_addto_duplicate="1"
 
4213
          break
 
4214
        fi
 
4215
      done
 
4216
      if test $apr_addto_duplicate = "0"; then
 
4217
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4218
        CPPFLAGS="$CPPFLAGS $i"
 
4219
      fi
 
4220
    done
 
4221
  fi
 
4222
 
 
4223
        ;;
 
4224
    *-lynx-lynxos)
 
4225
 
 
4226
  if test "x$CPPFLAGS" = "x"; then
 
4227
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
 
4228
    CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
 
4229
  else
 
4230
    apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
 
4231
    for i in $apr_addto_bugger; do
 
4232
      apr_addto_duplicate="0"
 
4233
      for j in $CPPFLAGS; do
 
4234
        if test "x$i" = "x$j"; then
 
4235
          apr_addto_duplicate="1"
 
4236
          break
 
4237
        fi
 
4238
      done
 
4239
      if test $apr_addto_duplicate = "0"; then
 
4240
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4241
        CPPFLAGS="$CPPFLAGS $i"
 
4242
      fi
 
4243
    done
 
4244
  fi
 
4245
 
 
4246
 
 
4247
  if test "x$LIBS" = "x"; then
 
4248
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd\""
 
4249
    LIBS="-lbsd"
 
4250
  else
 
4251
    apr_addto_bugger="-lbsd"
 
4252
    for i in $apr_addto_bugger; do
 
4253
      apr_addto_duplicate="0"
 
4254
      for j in $LIBS; do
 
4255
        if test "x$i" = "x$j"; then
 
4256
          apr_addto_duplicate="1"
 
4257
          break
 
4258
        fi
 
4259
      done
 
4260
      if test $apr_addto_duplicate = "0"; then
 
4261
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
4262
        LIBS="$LIBS $i"
 
4263
      fi
 
4264
    done
 
4265
  fi
 
4266
 
 
4267
        ;;
 
4268
    *486-*-bsdi*)
 
4269
 
 
4270
  if test "x$CFLAGS" = "x"; then
 
4271
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-m486\""
 
4272
    CFLAGS="-m486"
 
4273
  else
 
4274
    apr_addto_bugger="-m486"
 
4275
    for i in $apr_addto_bugger; do
 
4276
      apr_addto_duplicate="0"
 
4277
      for j in $CFLAGS; do
 
4278
        if test "x$i" = "x$j"; then
 
4279
          apr_addto_duplicate="1"
 
4280
          break
 
4281
        fi
 
4282
      done
 
4283
      if test $apr_addto_duplicate = "0"; then
 
4284
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
4285
        CFLAGS="$CFLAGS $i"
 
4286
      fi
 
4287
    done
 
4288
  fi
 
4289
 
 
4290
        ;;
 
4291
    *-*-bsdi*)
 
4292
        case $host in
 
4293
            *bsdi4.1)
 
4294
 
 
4295
  if test "x$CFLAGS" = "x"; then
 
4296
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-D_REENTRANT\""
 
4297
    CFLAGS="-D_REENTRANT"
 
4298
  else
 
4299
    apr_addto_bugger="-D_REENTRANT"
 
4300
    for i in $apr_addto_bugger; do
 
4301
      apr_addto_duplicate="0"
 
4302
      for j in $CFLAGS; do
 
4303
        if test "x$i" = "x$j"; then
 
4304
          apr_addto_duplicate="1"
 
4305
          break
 
4306
        fi
 
4307
      done
 
4308
      if test $apr_addto_duplicate = "0"; then
 
4309
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
4310
        CFLAGS="$CFLAGS $i"
 
4311
      fi
 
4312
    done
 
4313
  fi
 
4314
 
 
4315
                ;;
 
4316
        esac
 
4317
        ;;
 
4318
    *-openbsd*)
 
4319
 
 
4320
  if test "x$CPPFLAGS" = "x"; then
 
4321
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
 
4322
    CPPFLAGS="-D_POSIX_THREADS"
 
4323
  else
 
4324
    apr_addto_bugger="-D_POSIX_THREADS"
 
4325
    for i in $apr_addto_bugger; do
 
4326
      apr_addto_duplicate="0"
 
4327
      for j in $CPPFLAGS; do
 
4328
        if test "x$i" = "x$j"; then
 
4329
          apr_addto_duplicate="1"
 
4330
          break
 
4331
        fi
 
4332
      done
 
4333
      if test $apr_addto_duplicate = "0"; then
 
4334
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4335
        CPPFLAGS="$CPPFLAGS $i"
 
4336
      fi
 
4337
    done
 
4338
  fi
 
4339
 
 
4340
        # binding to an ephemeral port fails on OpenBSD so override
 
4341
        # the test for O_NONBLOCK inheritance across accept().
 
4342
 
 
4343
  if test -z "$ac_cv_o_nonblock_inherited"; then
 
4344
    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
 
4345
    ac_cv_o_nonblock_inherited="yes"
 
4346
  fi
 
4347
 
 
4348
        ;;
 
4349
    *-netbsd*)
 
4350
 
 
4351
  if test "x$CPPFLAGS" = "x"; then
 
4352
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNETBSD\""
 
4353
    CPPFLAGS="-DNETBSD"
 
4354
  else
 
4355
    apr_addto_bugger="-DNETBSD"
 
4356
    for i in $apr_addto_bugger; do
 
4357
      apr_addto_duplicate="0"
 
4358
      for j in $CPPFLAGS; do
 
4359
        if test "x$i" = "x$j"; then
 
4360
          apr_addto_duplicate="1"
 
4361
          break
 
4362
        fi
 
4363
      done
 
4364
      if test $apr_addto_duplicate = "0"; then
 
4365
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4366
        CPPFLAGS="$CPPFLAGS $i"
 
4367
      fi
 
4368
    done
 
4369
  fi
 
4370
 
 
4371
        # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
 
4372
 
 
4373
  if test -z "$ac_cv_o_nonblock_inherited"; then
 
4374
    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
 
4375
    ac_cv_o_nonblock_inherited="yes"
 
4376
  fi
 
4377
 
 
4378
        ;;
 
4379
    *-freebsd*)
 
4380
 
 
4381
  if test -z "$apr_lock_method"; then
 
4382
    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
 
4383
    apr_lock_method="USE_FLOCK_SERIALIZE"
 
4384
  fi
 
4385
 
 
4386
        if test -x /sbin/sysctl; then
 
4387
            os_version=`/sbin/sysctl -n kern.osreldate`
 
4388
        else
 
4389
            os_version=000000
 
4390
        fi
 
4391
        # 502102 is when libc_r switched to libpthread (aka libkse).
 
4392
        if test $os_version -ge "502102"; then
 
4393
          apr_cv_pthreads_cflags="none"
 
4394
          apr_cv_pthreads_lib="-lpthread"
 
4395
        else
 
4396
 
 
4397
  if test "x$CPPFLAGS" = "x"; then
 
4398
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
 
4399
    CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
 
4400
  else
 
4401
    apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
 
4402
    for i in $apr_addto_bugger; do
 
4403
      apr_addto_duplicate="0"
 
4404
      for j in $CPPFLAGS; do
 
4405
        if test "x$i" = "x$j"; then
 
4406
          apr_addto_duplicate="1"
 
4407
          break
 
4408
        fi
 
4409
      done
 
4410
      if test $apr_addto_duplicate = "0"; then
 
4411
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4412
        CPPFLAGS="$CPPFLAGS $i"
 
4413
      fi
 
4414
    done
 
4415
  fi
 
4416
 
 
4417
 
 
4418
  if test -z "$enable_threads"; then
 
4419
    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
 
4420
    enable_threads="no"
 
4421
  fi
 
4422
 
 
4423
        fi
 
4424
        # prevent use of KQueue before FreeBSD 4.8
 
4425
        if test $os_version -lt "480000"; then
 
4426
 
 
4427
  if test -z "$ac_cv_func_kqueue"; then
 
4428
    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
 
4429
    ac_cv_func_kqueue="no"
 
4430
  fi
 
4431
 
 
4432
        fi
 
4433
        ;;
 
4434
    *-next-nextstep*)
 
4435
 
 
4436
  if test -z "$CFLAGS"; then
 
4437
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
 
4438
    CFLAGS="-O"
 
4439
  fi
 
4440
 
 
4441
 
 
4442
  if test "x$CPPFLAGS" = "x"; then
 
4443
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
 
4444
    CPPFLAGS="-DNEXT"
 
4445
  else
 
4446
    apr_addto_bugger="-DNEXT"
 
4447
    for i in $apr_addto_bugger; do
 
4448
      apr_addto_duplicate="0"
 
4449
      for j in $CPPFLAGS; do
 
4450
        if test "x$i" = "x$j"; then
 
4451
          apr_addto_duplicate="1"
 
4452
          break
 
4453
        fi
 
4454
      done
 
4455
      if test $apr_addto_duplicate = "0"; then
 
4456
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4457
        CPPFLAGS="$CPPFLAGS $i"
 
4458
      fi
 
4459
    done
 
4460
  fi
 
4461
 
 
4462
        ;;
 
4463
    *-next-openstep*)
 
4464
 
 
4465
  if test -z "$CFLAGS"; then
 
4466
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
 
4467
    CFLAGS="-O"
 
4468
  fi
 
4469
 
 
4470
 
 
4471
  if test "x$CPPFLAGS" = "x"; then
 
4472
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
 
4473
    CPPFLAGS="-DNEXT"
 
4474
  else
 
4475
    apr_addto_bugger="-DNEXT"
 
4476
    for i in $apr_addto_bugger; do
 
4477
      apr_addto_duplicate="0"
 
4478
      for j in $CPPFLAGS; do
 
4479
        if test "x$i" = "x$j"; then
 
4480
          apr_addto_duplicate="1"
 
4481
          break
 
4482
        fi
 
4483
      done
 
4484
      if test $apr_addto_duplicate = "0"; then
 
4485
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4486
        CPPFLAGS="$CPPFLAGS $i"
 
4487
      fi
 
4488
    done
 
4489
  fi
 
4490
 
 
4491
        ;;
 
4492
    *-apple-rhapsody*)
 
4493
 
 
4494
  if test "x$CPPFLAGS" = "x"; then
 
4495
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRHAPSODY\""
 
4496
    CPPFLAGS="-DRHAPSODY"
 
4497
  else
 
4498
    apr_addto_bugger="-DRHAPSODY"
 
4499
    for i in $apr_addto_bugger; do
 
4500
      apr_addto_duplicate="0"
 
4501
      for j in $CPPFLAGS; do
 
4502
        if test "x$i" = "x$j"; then
 
4503
          apr_addto_duplicate="1"
 
4504
          break
 
4505
        fi
 
4506
      done
 
4507
      if test $apr_addto_duplicate = "0"; then
 
4508
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4509
        CPPFLAGS="$CPPFLAGS $i"
 
4510
      fi
 
4511
    done
 
4512
  fi
 
4513
 
 
4514
        ;;
 
4515
    *-apple-darwin*)
 
4516
 
 
4517
  if test "x$CPPFLAGS" = "x"; then
 
4518
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
 
4519
    CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
 
4520
  else
 
4521
    apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
 
4522
    for i in $apr_addto_bugger; do
 
4523
      apr_addto_duplicate="0"
 
4524
      for j in $CPPFLAGS; do
 
4525
        if test "x$i" = "x$j"; then
 
4526
          apr_addto_duplicate="1"
 
4527
          break
 
4528
        fi
 
4529
      done
 
4530
      if test $apr_addto_duplicate = "0"; then
 
4531
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4532
        CPPFLAGS="$CPPFLAGS $i"
 
4533
      fi
 
4534
    done
 
4535
  fi
 
4536
 
 
4537
 
 
4538
  if test -z "$apr_posixsem_is_global"; then
 
4539
    test "x$silent" != "xyes" && echo "  setting apr_posixsem_is_global to \"yes\""
 
4540
    apr_posixsem_is_global="yes"
 
4541
  fi
 
4542
 
 
4543
 
 
4544
  if test -z "$ac_cv_func_poll"; then
 
4545
    test "x$silent" != "xyes" && echo "  setting ac_cv_func_poll to \"no\""
 
4546
    ac_cv_func_poll="no"
 
4547
  fi
 
4548
 # See issue 34332
 
4549
 
 
4550
        # kqueue is broken on OS X, the poll tests work, but the socket tests
 
4551
        # hang when it's turned on.  if you decide to reenable this please be
 
4552
        # sure to test that ALL the tests continue to work with it turned on.
 
4553
 
 
4554
  if test -z "$ac_cv_func_kqueue"; then
 
4555
    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
 
4556
    ac_cv_func_kqueue="no"
 
4557
  fi
 
4558
 
 
4559
        ;;
 
4560
    *-dec-osf*)
 
4561
 
 
4562
  if test "x$CPPFLAGS" = "x"; then
 
4563
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOSF1\""
 
4564
    CPPFLAGS="-DOSF1"
 
4565
  else
 
4566
    apr_addto_bugger="-DOSF1"
 
4567
    for i in $apr_addto_bugger; do
 
4568
      apr_addto_duplicate="0"
 
4569
      for j in $CPPFLAGS; do
 
4570
        if test "x$i" = "x$j"; then
 
4571
          apr_addto_duplicate="1"
 
4572
          break
 
4573
        fi
 
4574
      done
 
4575
      if test $apr_addto_duplicate = "0"; then
 
4576
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4577
        CPPFLAGS="$CPPFLAGS $i"
 
4578
      fi
 
4579
    done
 
4580
  fi
 
4581
 
 
4582
        # process-shared mutexes don't seem to work in Tru64 5.0
 
4583
 
 
4584
  if test -z "$apr_cv_process_shared_works"; then
 
4585
    test "x$silent" != "xyes" && echo "  setting apr_cv_process_shared_works to \"no\""
 
4586
    apr_cv_process_shared_works="no"
 
4587
  fi
 
4588
 
 
4589
        ;;
 
4590
    *-nto-qnx*)
 
4591
        ;;
 
4592
    *-qnx)
 
4593
 
 
4594
  if test "x$CPPFLAGS" = "x"; then
 
4595
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
 
4596
    CPPFLAGS="-DQNX"
 
4597
  else
 
4598
    apr_addto_bugger="-DQNX"
 
4599
    for i in $apr_addto_bugger; do
 
4600
      apr_addto_duplicate="0"
 
4601
      for j in $CPPFLAGS; do
 
4602
        if test "x$i" = "x$j"; then
 
4603
          apr_addto_duplicate="1"
 
4604
          break
 
4605
        fi
 
4606
      done
 
4607
      if test $apr_addto_duplicate = "0"; then
 
4608
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4609
        CPPFLAGS="$CPPFLAGS $i"
 
4610
      fi
 
4611
    done
 
4612
  fi
 
4613
 
 
4614
 
 
4615
  if test "x$LIBS" = "x"; then
 
4616
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
 
4617
    LIBS="-N128k -lunix"
 
4618
  else
 
4619
    apr_addto_bugger="-N128k -lunix"
 
4620
    for i in $apr_addto_bugger; do
 
4621
      apr_addto_duplicate="0"
 
4622
      for j in $LIBS; do
 
4623
        if test "x$i" = "x$j"; then
 
4624
          apr_addto_duplicate="1"
 
4625
          break
 
4626
        fi
 
4627
      done
 
4628
      if test $apr_addto_duplicate = "0"; then
 
4629
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
4630
        LIBS="$LIBS $i"
 
4631
      fi
 
4632
    done
 
4633
  fi
 
4634
 
 
4635
        ;;
 
4636
    *-qnx32)
 
4637
 
 
4638
  if test "x$CPPFLAGS" = "x"; then
 
4639
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
 
4640
    CPPFLAGS="-DQNX"
 
4641
  else
 
4642
    apr_addto_bugger="-DQNX"
 
4643
    for i in $apr_addto_bugger; do
 
4644
      apr_addto_duplicate="0"
 
4645
      for j in $CPPFLAGS; do
 
4646
        if test "x$i" = "x$j"; then
 
4647
          apr_addto_duplicate="1"
 
4648
          break
 
4649
        fi
 
4650
      done
 
4651
      if test $apr_addto_duplicate = "0"; then
 
4652
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4653
        CPPFLAGS="$CPPFLAGS $i"
 
4654
      fi
 
4655
    done
 
4656
  fi
 
4657
 
 
4658
 
 
4659
  if test "x$CFLAGS" = "x"; then
 
4660
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-mf -3\""
 
4661
    CFLAGS="-mf -3"
 
4662
  else
 
4663
    apr_addto_bugger="-mf -3"
 
4664
    for i in $apr_addto_bugger; do
 
4665
      apr_addto_duplicate="0"
 
4666
      for j in $CFLAGS; do
 
4667
        if test "x$i" = "x$j"; then
 
4668
          apr_addto_duplicate="1"
 
4669
          break
 
4670
        fi
 
4671
      done
 
4672
      if test $apr_addto_duplicate = "0"; then
 
4673
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
4674
        CFLAGS="$CFLAGS $i"
 
4675
      fi
 
4676
    done
 
4677
  fi
 
4678
 
 
4679
 
 
4680
  if test "x$LIBS" = "x"; then
 
4681
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
 
4682
    LIBS="-N128k -lunix"
 
4683
  else
 
4684
    apr_addto_bugger="-N128k -lunix"
 
4685
    for i in $apr_addto_bugger; do
 
4686
      apr_addto_duplicate="0"
 
4687
      for j in $LIBS; do
 
4688
        if test "x$i" = "x$j"; then
 
4689
          apr_addto_duplicate="1"
 
4690
          break
 
4691
        fi
 
4692
      done
 
4693
      if test $apr_addto_duplicate = "0"; then
 
4694
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
4695
        LIBS="$LIBS $i"
 
4696
      fi
 
4697
    done
 
4698
  fi
 
4699
 
 
4700
        ;;
 
4701
    *-isc4*)
 
4702
 
 
4703
  if test "x$CPPFLAGS" = "x"; then
 
4704
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-posix -DISC\""
 
4705
    CPPFLAGS="-posix -DISC"
 
4706
  else
 
4707
    apr_addto_bugger="-posix -DISC"
 
4708
    for i in $apr_addto_bugger; do
 
4709
      apr_addto_duplicate="0"
 
4710
      for j in $CPPFLAGS; do
 
4711
        if test "x$i" = "x$j"; then
 
4712
          apr_addto_duplicate="1"
 
4713
          break
 
4714
        fi
 
4715
      done
 
4716
      if test $apr_addto_duplicate = "0"; then
 
4717
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4718
        CPPFLAGS="$CPPFLAGS $i"
 
4719
      fi
 
4720
    done
 
4721
  fi
 
4722
 
 
4723
 
 
4724
  if test "x$LDFLAGS" = "x"; then
 
4725
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-posix\""
 
4726
    LDFLAGS="-posix"
 
4727
  else
 
4728
    apr_addto_bugger="-posix"
 
4729
    for i in $apr_addto_bugger; do
 
4730
      apr_addto_duplicate="0"
 
4731
      for j in $LDFLAGS; do
 
4732
        if test "x$i" = "x$j"; then
 
4733
          apr_addto_duplicate="1"
 
4734
          break
 
4735
        fi
 
4736
      done
 
4737
      if test $apr_addto_duplicate = "0"; then
 
4738
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
4739
        LDFLAGS="$LDFLAGS $i"
 
4740
      fi
 
4741
    done
 
4742
  fi
 
4743
 
 
4744
 
 
4745
  if test "x$LIBS" = "x"; then
 
4746
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet\""
 
4747
    LIBS="-linet"
 
4748
  else
 
4749
    apr_addto_bugger="-linet"
 
4750
    for i in $apr_addto_bugger; do
 
4751
      apr_addto_duplicate="0"
 
4752
      for j in $LIBS; do
 
4753
        if test "x$i" = "x$j"; then
 
4754
          apr_addto_duplicate="1"
 
4755
          break
 
4756
        fi
 
4757
      done
 
4758
      if test $apr_addto_duplicate = "0"; then
 
4759
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
4760
        LIBS="$LIBS $i"
 
4761
      fi
 
4762
    done
 
4763
  fi
 
4764
 
 
4765
        ;;
 
4766
    *-sco3.2v[234]*)
 
4767
 
 
4768
  if test "x$CPPFLAGS" = "x"; then
 
4769
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
 
4770
    CPPFLAGS="-DSCO -D_REENTRANT"
 
4771
  else
 
4772
    apr_addto_bugger="-DSCO -D_REENTRANT"
 
4773
    for i in $apr_addto_bugger; do
 
4774
      apr_addto_duplicate="0"
 
4775
      for j in $CPPFLAGS; do
 
4776
        if test "x$i" = "x$j"; then
 
4777
          apr_addto_duplicate="1"
 
4778
          break
 
4779
        fi
 
4780
      done
 
4781
      if test $apr_addto_duplicate = "0"; then
 
4782
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4783
        CPPFLAGS="$CPPFLAGS $i"
 
4784
      fi
 
4785
    done
 
4786
  fi
 
4787
 
 
4788
        if test "$GCC" = "no"; then
 
4789
 
 
4790
  if test "x$CFLAGS" = "x"; then
 
4791
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Oacgiltz\""
 
4792
    CFLAGS="-Oacgiltz"
 
4793
  else
 
4794
    apr_addto_bugger="-Oacgiltz"
 
4795
    for i in $apr_addto_bugger; do
 
4796
      apr_addto_duplicate="0"
 
4797
      for j in $CFLAGS; do
 
4798
        if test "x$i" = "x$j"; then
 
4799
          apr_addto_duplicate="1"
 
4800
          break
 
4801
        fi
 
4802
      done
 
4803
      if test $apr_addto_duplicate = "0"; then
 
4804
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
4805
        CFLAGS="$CFLAGS $i"
 
4806
      fi
 
4807
    done
 
4808
  fi
 
4809
 
 
4810
        fi
 
4811
 
 
4812
  if test "x$LIBS" = "x"; then
 
4813
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
 
4814
    LIBS="-lPW -lmalloc"
 
4815
  else
 
4816
    apr_addto_bugger="-lPW -lmalloc"
 
4817
    for i in $apr_addto_bugger; do
 
4818
      apr_addto_duplicate="0"
 
4819
      for j in $LIBS; do
 
4820
        if test "x$i" = "x$j"; then
 
4821
          apr_addto_duplicate="1"
 
4822
          break
 
4823
        fi
 
4824
      done
 
4825
      if test $apr_addto_duplicate = "0"; then
 
4826
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
4827
        LIBS="$LIBS $i"
 
4828
      fi
 
4829
    done
 
4830
  fi
 
4831
 
 
4832
        ;;
 
4833
    *-sco3.2v5*)
 
4834
 
 
4835
  if test "x$CPPFLAGS" = "x"; then
 
4836
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
 
4837
    CPPFLAGS="-DSCO5 -D_REENTRANT"
 
4838
  else
 
4839
    apr_addto_bugger="-DSCO5 -D_REENTRANT"
 
4840
    for i in $apr_addto_bugger; do
 
4841
      apr_addto_duplicate="0"
 
4842
      for j in $CPPFLAGS; do
 
4843
        if test "x$i" = "x$j"; then
 
4844
          apr_addto_duplicate="1"
 
4845
          break
 
4846
        fi
 
4847
      done
 
4848
      if test $apr_addto_duplicate = "0"; then
 
4849
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4850
        CPPFLAGS="$CPPFLAGS $i"
 
4851
      fi
 
4852
    done
 
4853
  fi
 
4854
 
 
4855
        ;;
 
4856
    *-sco_sv*|*-SCO_SV*)
 
4857
 
 
4858
  if test "x$CPPFLAGS" = "x"; then
 
4859
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
 
4860
    CPPFLAGS="-DSCO -D_REENTRANT"
 
4861
  else
 
4862
    apr_addto_bugger="-DSCO -D_REENTRANT"
 
4863
    for i in $apr_addto_bugger; do
 
4864
      apr_addto_duplicate="0"
 
4865
      for j in $CPPFLAGS; do
 
4866
        if test "x$i" = "x$j"; then
 
4867
          apr_addto_duplicate="1"
 
4868
          break
 
4869
        fi
 
4870
      done
 
4871
      if test $apr_addto_duplicate = "0"; then
 
4872
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4873
        CPPFLAGS="$CPPFLAGS $i"
 
4874
      fi
 
4875
    done
 
4876
  fi
 
4877
 
 
4878
 
 
4879
  if test "x$LIBS" = "x"; then
 
4880
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
 
4881
    LIBS="-lPW -lmalloc"
 
4882
  else
 
4883
    apr_addto_bugger="-lPW -lmalloc"
 
4884
    for i in $apr_addto_bugger; do
 
4885
      apr_addto_duplicate="0"
 
4886
      for j in $LIBS; do
 
4887
        if test "x$i" = "x$j"; then
 
4888
          apr_addto_duplicate="1"
 
4889
          break
 
4890
        fi
 
4891
      done
 
4892
      if test $apr_addto_duplicate = "0"; then
 
4893
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
4894
        LIBS="$LIBS $i"
 
4895
      fi
 
4896
    done
 
4897
  fi
 
4898
 
 
4899
        ;;
 
4900
    *-solaris2*)
 
4901
        PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
 
4902
 
 
4903
  if test "x$CPPFLAGS" = "x"; then
 
4904
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
 
4905
    CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
 
4906
  else
 
4907
    apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
 
4908
    for i in $apr_addto_bugger; do
 
4909
      apr_addto_duplicate="0"
 
4910
      for j in $CPPFLAGS; do
 
4911
        if test "x$i" = "x$j"; then
 
4912
          apr_addto_duplicate="1"
 
4913
          break
 
4914
        fi
 
4915
      done
 
4916
      if test $apr_addto_duplicate = "0"; then
 
4917
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4918
        CPPFLAGS="$CPPFLAGS $i"
 
4919
      fi
 
4920
    done
 
4921
  fi
 
4922
 
 
4923
 
 
4924
  if test -z "$apr_lock_method"; then
 
4925
    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
 
4926
    apr_lock_method="USE_FCNTL_SERIALIZE"
 
4927
  fi
 
4928
 
 
4929
        ;;
 
4930
    *-sunos4*)
 
4931
 
 
4932
  if test "x$CPPFLAGS" = "x"; then
 
4933
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSUNOS4\""
 
4934
    CPPFLAGS="-DSUNOS4"
 
4935
  else
 
4936
    apr_addto_bugger="-DSUNOS4"
 
4937
    for i in $apr_addto_bugger; do
 
4938
      apr_addto_duplicate="0"
 
4939
      for j in $CPPFLAGS; do
 
4940
        if test "x$i" = "x$j"; then
 
4941
          apr_addto_duplicate="1"
 
4942
          break
 
4943
        fi
 
4944
      done
 
4945
      if test $apr_addto_duplicate = "0"; then
 
4946
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4947
        CPPFLAGS="$CPPFLAGS $i"
 
4948
      fi
 
4949
    done
 
4950
  fi
 
4951
 
 
4952
        ;;
 
4953
    *-unixware1)
 
4954
 
 
4955
  if test "x$CPPFLAGS" = "x"; then
 
4956
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=100\""
 
4957
    CPPFLAGS="-DUW=100"
 
4958
  else
 
4959
    apr_addto_bugger="-DUW=100"
 
4960
    for i in $apr_addto_bugger; do
 
4961
      apr_addto_duplicate="0"
 
4962
      for j in $CPPFLAGS; do
 
4963
        if test "x$i" = "x$j"; then
 
4964
          apr_addto_duplicate="1"
 
4965
          break
 
4966
        fi
 
4967
      done
 
4968
      if test $apr_addto_duplicate = "0"; then
 
4969
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4970
        CPPFLAGS="$CPPFLAGS $i"
 
4971
      fi
 
4972
    done
 
4973
  fi
 
4974
 
 
4975
        ;;
 
4976
    *-unixware2)
 
4977
 
 
4978
  if test "x$CPPFLAGS" = "x"; then
 
4979
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=200\""
 
4980
    CPPFLAGS="-DUW=200"
 
4981
  else
 
4982
    apr_addto_bugger="-DUW=200"
 
4983
    for i in $apr_addto_bugger; do
 
4984
      apr_addto_duplicate="0"
 
4985
      for j in $CPPFLAGS; do
 
4986
        if test "x$i" = "x$j"; then
 
4987
          apr_addto_duplicate="1"
 
4988
          break
 
4989
        fi
 
4990
      done
 
4991
      if test $apr_addto_duplicate = "0"; then
 
4992
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
4993
        CPPFLAGS="$CPPFLAGS $i"
 
4994
      fi
 
4995
    done
 
4996
  fi
 
4997
 
 
4998
 
 
4999
  if test "x$LIBS" = "x"; then
 
5000
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
 
5001
    LIBS="-lgen"
 
5002
  else
 
5003
    apr_addto_bugger="-lgen"
 
5004
    for i in $apr_addto_bugger; do
 
5005
      apr_addto_duplicate="0"
 
5006
      for j in $LIBS; do
 
5007
        if test "x$i" = "x$j"; then
 
5008
          apr_addto_duplicate="1"
 
5009
          break
 
5010
        fi
 
5011
      done
 
5012
      if test $apr_addto_duplicate = "0"; then
 
5013
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5014
        LIBS="$LIBS $i"
 
5015
      fi
 
5016
    done
 
5017
  fi
 
5018
 
 
5019
        ;;
 
5020
    *-unixware211)
 
5021
 
 
5022
  if test "x$CPPFLAGS" = "x"; then
 
5023
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=211\""
 
5024
    CPPFLAGS="-DUW=211"
 
5025
  else
 
5026
    apr_addto_bugger="-DUW=211"
 
5027
    for i in $apr_addto_bugger; do
 
5028
      apr_addto_duplicate="0"
 
5029
      for j in $CPPFLAGS; do
 
5030
        if test "x$i" = "x$j"; then
 
5031
          apr_addto_duplicate="1"
 
5032
          break
 
5033
        fi
 
5034
      done
 
5035
      if test $apr_addto_duplicate = "0"; then
 
5036
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5037
        CPPFLAGS="$CPPFLAGS $i"
 
5038
      fi
 
5039
    done
 
5040
  fi
 
5041
 
 
5042
 
 
5043
  if test "x$LIBS" = "x"; then
 
5044
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
 
5045
    LIBS="-lgen"
 
5046
  else
 
5047
    apr_addto_bugger="-lgen"
 
5048
    for i in $apr_addto_bugger; do
 
5049
      apr_addto_duplicate="0"
 
5050
      for j in $LIBS; do
 
5051
        if test "x$i" = "x$j"; then
 
5052
          apr_addto_duplicate="1"
 
5053
          break
 
5054
        fi
 
5055
      done
 
5056
      if test $apr_addto_duplicate = "0"; then
 
5057
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5058
        LIBS="$LIBS $i"
 
5059
      fi
 
5060
    done
 
5061
  fi
 
5062
 
 
5063
        ;;
 
5064
    *-unixware212)
 
5065
 
 
5066
  if test "x$CPPFLAGS" = "x"; then
 
5067
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=212\""
 
5068
    CPPFLAGS="-DUW=212"
 
5069
  else
 
5070
    apr_addto_bugger="-DUW=212"
 
5071
    for i in $apr_addto_bugger; do
 
5072
      apr_addto_duplicate="0"
 
5073
      for j in $CPPFLAGS; do
 
5074
        if test "x$i" = "x$j"; then
 
5075
          apr_addto_duplicate="1"
 
5076
          break
 
5077
        fi
 
5078
      done
 
5079
      if test $apr_addto_duplicate = "0"; then
 
5080
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5081
        CPPFLAGS="$CPPFLAGS $i"
 
5082
      fi
 
5083
    done
 
5084
  fi
 
5085
 
 
5086
 
 
5087
  if test "x$LIBS" = "x"; then
 
5088
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
 
5089
    LIBS="-lgen"
 
5090
  else
 
5091
    apr_addto_bugger="-lgen"
 
5092
    for i in $apr_addto_bugger; do
 
5093
      apr_addto_duplicate="0"
 
5094
      for j in $LIBS; do
 
5095
        if test "x$i" = "x$j"; then
 
5096
          apr_addto_duplicate="1"
 
5097
          break
 
5098
        fi
 
5099
      done
 
5100
      if test $apr_addto_duplicate = "0"; then
 
5101
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5102
        LIBS="$LIBS $i"
 
5103
      fi
 
5104
    done
 
5105
  fi
 
5106
 
 
5107
        ;;
 
5108
    *-unixware7)
 
5109
 
 
5110
  if test "x$CPPFLAGS" = "x"; then
 
5111
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=700\""
 
5112
    CPPFLAGS="-DUW=700"
 
5113
  else
 
5114
    apr_addto_bugger="-DUW=700"
 
5115
    for i in $apr_addto_bugger; do
 
5116
      apr_addto_duplicate="0"
 
5117
      for j in $CPPFLAGS; do
 
5118
        if test "x$i" = "x$j"; then
 
5119
          apr_addto_duplicate="1"
 
5120
          break
 
5121
        fi
 
5122
      done
 
5123
      if test $apr_addto_duplicate = "0"; then
 
5124
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5125
        CPPFLAGS="$CPPFLAGS $i"
 
5126
      fi
 
5127
    done
 
5128
  fi
 
5129
 
 
5130
 
 
5131
  if test "x$LIBS" = "x"; then
 
5132
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
 
5133
    LIBS="-lgen"
 
5134
  else
 
5135
    apr_addto_bugger="-lgen"
 
5136
    for i in $apr_addto_bugger; do
 
5137
      apr_addto_duplicate="0"
 
5138
      for j in $LIBS; do
 
5139
        if test "x$i" = "x$j"; then
 
5140
          apr_addto_duplicate="1"
 
5141
          break
 
5142
        fi
 
5143
      done
 
5144
      if test $apr_addto_duplicate = "0"; then
 
5145
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5146
        LIBS="$LIBS $i"
 
5147
      fi
 
5148
    done
 
5149
  fi
 
5150
 
 
5151
        ;;
 
5152
    maxion-*-sysv4*)
 
5153
 
 
5154
  if test "x$CPPFLAGS" = "x"; then
 
5155
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
 
5156
    CPPFLAGS="-DSVR4"
 
5157
  else
 
5158
    apr_addto_bugger="-DSVR4"
 
5159
    for i in $apr_addto_bugger; do
 
5160
      apr_addto_duplicate="0"
 
5161
      for j in $CPPFLAGS; do
 
5162
        if test "x$i" = "x$j"; then
 
5163
          apr_addto_duplicate="1"
 
5164
          break
 
5165
        fi
 
5166
      done
 
5167
      if test $apr_addto_duplicate = "0"; then
 
5168
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5169
        CPPFLAGS="$CPPFLAGS $i"
 
5170
      fi
 
5171
    done
 
5172
  fi
 
5173
 
 
5174
 
 
5175
  if test "x$LIBS" = "x"; then
 
5176
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -lgen\""
 
5177
    LIBS="-lc -lgen"
 
5178
  else
 
5179
    apr_addto_bugger="-lc -lgen"
 
5180
    for i in $apr_addto_bugger; do
 
5181
      apr_addto_duplicate="0"
 
5182
      for j in $LIBS; do
 
5183
        if test "x$i" = "x$j"; then
 
5184
          apr_addto_duplicate="1"
 
5185
          break
 
5186
        fi
 
5187
      done
 
5188
      if test $apr_addto_duplicate = "0"; then
 
5189
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5190
        LIBS="$LIBS $i"
 
5191
      fi
 
5192
    done
 
5193
  fi
 
5194
 
 
5195
        ;;
 
5196
    *-*-powermax*)
 
5197
 
 
5198
  if test "x$CPPFLAGS" = "x"; then
 
5199
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
 
5200
    CPPFLAGS="-DSVR4"
 
5201
  else
 
5202
    apr_addto_bugger="-DSVR4"
 
5203
    for i in $apr_addto_bugger; do
 
5204
      apr_addto_duplicate="0"
 
5205
      for j in $CPPFLAGS; do
 
5206
        if test "x$i" = "x$j"; then
 
5207
          apr_addto_duplicate="1"
 
5208
          break
 
5209
        fi
 
5210
      done
 
5211
      if test $apr_addto_duplicate = "0"; then
 
5212
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5213
        CPPFLAGS="$CPPFLAGS $i"
 
5214
      fi
 
5215
    done
 
5216
  fi
 
5217
 
 
5218
 
 
5219
  if test "x$LIBS" = "x"; then
 
5220
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
 
5221
    LIBS="-lgen"
 
5222
  else
 
5223
    apr_addto_bugger="-lgen"
 
5224
    for i in $apr_addto_bugger; do
 
5225
      apr_addto_duplicate="0"
 
5226
      for j in $LIBS; do
 
5227
        if test "x$i" = "x$j"; then
 
5228
          apr_addto_duplicate="1"
 
5229
          break
 
5230
        fi
 
5231
      done
 
5232
      if test $apr_addto_duplicate = "0"; then
 
5233
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5234
        LIBS="$LIBS $i"
 
5235
      fi
 
5236
    done
 
5237
  fi
 
5238
 
 
5239
        ;;
 
5240
    TPF)
 
5241
 
 
5242
  if test "x$CPPFLAGS" = "x"; then
 
5243
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
 
5244
    CPPFLAGS="-DTPF -D_POSIX_SOURCE"
 
5245
  else
 
5246
    apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
 
5247
    for i in $apr_addto_bugger; do
 
5248
      apr_addto_duplicate="0"
 
5249
      for j in $CPPFLAGS; do
 
5250
        if test "x$i" = "x$j"; then
 
5251
          apr_addto_duplicate="1"
 
5252
          break
 
5253
        fi
 
5254
      done
 
5255
      if test $apr_addto_duplicate = "0"; then
 
5256
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5257
        CPPFLAGS="$CPPFLAGS $i"
 
5258
      fi
 
5259
    done
 
5260
  fi
 
5261
 
 
5262
       ;;
 
5263
    bs2000*-siemens-sysv*)
 
5264
 
 
5265
  if test -z "$CFLAGS"; then
 
5266
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
 
5267
    CFLAGS="-O"
 
5268
  fi
 
5269
 
 
5270
 
 
5271
  if test "x$CPPFLAGS" = "x"; then
 
5272
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
 
5273
    CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
 
5274
  else
 
5275
    apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
 
5276
    for i in $apr_addto_bugger; do
 
5277
      apr_addto_duplicate="0"
 
5278
      for j in $CPPFLAGS; do
 
5279
        if test "x$i" = "x$j"; then
 
5280
          apr_addto_duplicate="1"
 
5281
          break
 
5282
        fi
 
5283
      done
 
5284
      if test $apr_addto_duplicate = "0"; then
 
5285
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5286
        CPPFLAGS="$CPPFLAGS $i"
 
5287
      fi
 
5288
    done
 
5289
  fi
 
5290
 
 
5291
 
 
5292
  if test "x$LIBS" = "x"; then
 
5293
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsocket\""
 
5294
    LIBS="-lsocket"
 
5295
  else
 
5296
    apr_addto_bugger="-lsocket"
 
5297
    for i in $apr_addto_bugger; do
 
5298
      apr_addto_duplicate="0"
 
5299
      for j in $LIBS; do
 
5300
        if test "x$i" = "x$j"; then
 
5301
          apr_addto_duplicate="1"
 
5302
          break
 
5303
        fi
 
5304
      done
 
5305
      if test $apr_addto_duplicate = "0"; then
 
5306
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5307
        LIBS="$LIBS $i"
 
5308
      fi
 
5309
    done
 
5310
  fi
 
5311
 
 
5312
 
 
5313
  if test -z "$enable_threads"; then
 
5314
    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
 
5315
    enable_threads="no"
 
5316
  fi
 
5317
 
 
5318
        ;;
 
5319
    *-siemens-sysv4*)
 
5320
 
 
5321
  if test "x$CPPFLAGS" = "x"; then
 
5322
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
 
5323
    CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
 
5324
  else
 
5325
    apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
 
5326
    for i in $apr_addto_bugger; do
 
5327
      apr_addto_duplicate="0"
 
5328
      for j in $CPPFLAGS; do
 
5329
        if test "x$i" = "x$j"; then
 
5330
          apr_addto_duplicate="1"
 
5331
          break
 
5332
        fi
 
5333
      done
 
5334
      if test $apr_addto_duplicate = "0"; then
 
5335
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5336
        CPPFLAGS="$CPPFLAGS $i"
 
5337
      fi
 
5338
    done
 
5339
  fi
 
5340
 
 
5341
 
 
5342
  if test "x$LIBS" = "x"; then
 
5343
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
 
5344
    LIBS="-lc"
 
5345
  else
 
5346
    apr_addto_bugger="-lc"
 
5347
    for i in $apr_addto_bugger; do
 
5348
      apr_addto_duplicate="0"
 
5349
      for j in $LIBS; do
 
5350
        if test "x$i" = "x$j"; then
 
5351
          apr_addto_duplicate="1"
 
5352
          break
 
5353
        fi
 
5354
      done
 
5355
      if test $apr_addto_duplicate = "0"; then
 
5356
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5357
        LIBS="$LIBS $i"
 
5358
      fi
 
5359
    done
 
5360
  fi
 
5361
 
 
5362
        ;;
 
5363
    pyramid-pyramid-svr4)
 
5364
 
 
5365
  if test "x$CPPFLAGS" = "x"; then
 
5366
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
 
5367
    CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
 
5368
  else
 
5369
    apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
 
5370
    for i in $apr_addto_bugger; do
 
5371
      apr_addto_duplicate="0"
 
5372
      for j in $CPPFLAGS; do
 
5373
        if test "x$i" = "x$j"; then
 
5374
          apr_addto_duplicate="1"
 
5375
          break
 
5376
        fi
 
5377
      done
 
5378
      if test $apr_addto_duplicate = "0"; then
 
5379
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5380
        CPPFLAGS="$CPPFLAGS $i"
 
5381
      fi
 
5382
    done
 
5383
  fi
 
5384
 
 
5385
 
 
5386
  if test "x$LIBS" = "x"; then
 
5387
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
 
5388
    LIBS="-lc"
 
5389
  else
 
5390
    apr_addto_bugger="-lc"
 
5391
    for i in $apr_addto_bugger; do
 
5392
      apr_addto_duplicate="0"
 
5393
      for j in $LIBS; do
 
5394
        if test "x$i" = "x$j"; then
 
5395
          apr_addto_duplicate="1"
 
5396
          break
 
5397
        fi
 
5398
      done
 
5399
      if test $apr_addto_duplicate = "0"; then
 
5400
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5401
        LIBS="$LIBS $i"
 
5402
      fi
 
5403
    done
 
5404
  fi
 
5405
 
 
5406
        ;;
 
5407
    DS/90\ 7000-*-sysv4*)
 
5408
 
 
5409
  if test "x$CPPFLAGS" = "x"; then
 
5410
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUXPDS\""
 
5411
    CPPFLAGS="-DUXPDS"
 
5412
  else
 
5413
    apr_addto_bugger="-DUXPDS"
 
5414
    for i in $apr_addto_bugger; do
 
5415
      apr_addto_duplicate="0"
 
5416
      for j in $CPPFLAGS; do
 
5417
        if test "x$i" = "x$j"; then
 
5418
          apr_addto_duplicate="1"
 
5419
          break
 
5420
        fi
 
5421
      done
 
5422
      if test $apr_addto_duplicate = "0"; then
 
5423
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5424
        CPPFLAGS="$CPPFLAGS $i"
 
5425
      fi
 
5426
    done
 
5427
  fi
 
5428
 
 
5429
        ;;
 
5430
    *-tandem-sysv4*)
 
5431
 
 
5432
  if test "x$CPPFLAGS" = "x"; then
 
5433
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
 
5434
    CPPFLAGS="-DSVR4"
 
5435
  else
 
5436
    apr_addto_bugger="-DSVR4"
 
5437
    for i in $apr_addto_bugger; do
 
5438
      apr_addto_duplicate="0"
 
5439
      for j in $CPPFLAGS; do
 
5440
        if test "x$i" = "x$j"; then
 
5441
          apr_addto_duplicate="1"
 
5442
          break
 
5443
        fi
 
5444
      done
 
5445
      if test $apr_addto_duplicate = "0"; then
 
5446
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5447
        CPPFLAGS="$CPPFLAGS $i"
 
5448
      fi
 
5449
    done
 
5450
  fi
 
5451
 
 
5452
        ;;
 
5453
    *-ncr-sysv4)
 
5454
 
 
5455
  if test "x$CPPFLAGS" = "x"; then
 
5456
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
 
5457
    CPPFLAGS="-DSVR4 -DMPRAS"
 
5458
  else
 
5459
    apr_addto_bugger="-DSVR4 -DMPRAS"
 
5460
    for i in $apr_addto_bugger; do
 
5461
      apr_addto_duplicate="0"
 
5462
      for j in $CPPFLAGS; do
 
5463
        if test "x$i" = "x$j"; then
 
5464
          apr_addto_duplicate="1"
 
5465
          break
 
5466
        fi
 
5467
      done
 
5468
      if test $apr_addto_duplicate = "0"; then
 
5469
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5470
        CPPFLAGS="$CPPFLAGS $i"
 
5471
      fi
 
5472
    done
 
5473
  fi
 
5474
 
 
5475
 
 
5476
  if test "x$LIBS" = "x"; then
 
5477
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
 
5478
    LIBS="-lc -L/usr/ucblib -lucb"
 
5479
  else
 
5480
    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
 
5481
    for i in $apr_addto_bugger; do
 
5482
      apr_addto_duplicate="0"
 
5483
      for j in $LIBS; do
 
5484
        if test "x$i" = "x$j"; then
 
5485
          apr_addto_duplicate="1"
 
5486
          break
 
5487
        fi
 
5488
      done
 
5489
      if test $apr_addto_duplicate = "0"; then
 
5490
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5491
        LIBS="$LIBS $i"
 
5492
      fi
 
5493
    done
 
5494
  fi
 
5495
 
 
5496
        ;;
 
5497
    *-sysv4*)
 
5498
 
 
5499
  if test "x$CPPFLAGS" = "x"; then
 
5500
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
 
5501
    CPPFLAGS="-DSVR4"
 
5502
  else
 
5503
    apr_addto_bugger="-DSVR4"
 
5504
    for i in $apr_addto_bugger; do
 
5505
      apr_addto_duplicate="0"
 
5506
      for j in $CPPFLAGS; do
 
5507
        if test "x$i" = "x$j"; then
 
5508
          apr_addto_duplicate="1"
 
5509
          break
 
5510
        fi
 
5511
      done
 
5512
      if test $apr_addto_duplicate = "0"; then
 
5513
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5514
        CPPFLAGS="$CPPFLAGS $i"
 
5515
      fi
 
5516
    done
 
5517
  fi
 
5518
 
 
5519
 
 
5520
  if test "x$LIBS" = "x"; then
 
5521
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
 
5522
    LIBS="-lc"
 
5523
  else
 
5524
    apr_addto_bugger="-lc"
 
5525
    for i in $apr_addto_bugger; do
 
5526
      apr_addto_duplicate="0"
 
5527
      for j in $LIBS; do
 
5528
        if test "x$i" = "x$j"; then
 
5529
          apr_addto_duplicate="1"
 
5530
          break
 
5531
        fi
 
5532
      done
 
5533
      if test $apr_addto_duplicate = "0"; then
 
5534
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5535
        LIBS="$LIBS $i"
 
5536
      fi
 
5537
    done
 
5538
  fi
 
5539
 
 
5540
        ;;
 
5541
    88k-encore-sysv4)
 
5542
 
 
5543
  if test "x$CPPFLAGS" = "x"; then
 
5544
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DENCORE\""
 
5545
    CPPFLAGS="-DSVR4 -DENCORE"
 
5546
  else
 
5547
    apr_addto_bugger="-DSVR4 -DENCORE"
 
5548
    for i in $apr_addto_bugger; do
 
5549
      apr_addto_duplicate="0"
 
5550
      for j in $CPPFLAGS; do
 
5551
        if test "x$i" = "x$j"; then
 
5552
          apr_addto_duplicate="1"
 
5553
          break
 
5554
        fi
 
5555
      done
 
5556
      if test $apr_addto_duplicate = "0"; then
 
5557
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5558
        CPPFLAGS="$CPPFLAGS $i"
 
5559
      fi
 
5560
    done
 
5561
  fi
 
5562
 
 
5563
 
 
5564
  if test "x$LIBS" = "x"; then
 
5565
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW\""
 
5566
    LIBS="-lPW"
 
5567
  else
 
5568
    apr_addto_bugger="-lPW"
 
5569
    for i in $apr_addto_bugger; do
 
5570
      apr_addto_duplicate="0"
 
5571
      for j in $LIBS; do
 
5572
        if test "x$i" = "x$j"; then
 
5573
          apr_addto_duplicate="1"
 
5574
          break
 
5575
        fi
 
5576
      done
 
5577
      if test $apr_addto_duplicate = "0"; then
 
5578
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5579
        LIBS="$LIBS $i"
 
5580
      fi
 
5581
    done
 
5582
  fi
 
5583
 
 
5584
        ;;
 
5585
    *-uts*)
 
5586
        PLATOSVERS=`echo $host | sed 's/^.*,//'`
 
5587
        case $PLATOSVERS in
 
5588
            2*)
 
5589
  if test "x$CPPFLAGS" = "x"; then
 
5590
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUTS21\""
 
5591
    CPPFLAGS="-DUTS21"
 
5592
  else
 
5593
    apr_addto_bugger="-DUTS21"
 
5594
    for i in $apr_addto_bugger; do
 
5595
      apr_addto_duplicate="0"
 
5596
      for j in $CPPFLAGS; do
 
5597
        if test "x$i" = "x$j"; then
 
5598
          apr_addto_duplicate="1"
 
5599
          break
 
5600
        fi
 
5601
      done
 
5602
      if test $apr_addto_duplicate = "0"; then
 
5603
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5604
        CPPFLAGS="$CPPFLAGS $i"
 
5605
      fi
 
5606
    done
 
5607
  fi
 
5608
 
 
5609
 
 
5610
  if test "x$CFLAGS" = "x"; then
 
5611
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa -eft\""
 
5612
    CFLAGS="-Xa -eft"
 
5613
  else
 
5614
    apr_addto_bugger="-Xa -eft"
 
5615
    for i in $apr_addto_bugger; do
 
5616
      apr_addto_duplicate="0"
 
5617
      for j in $CFLAGS; do
 
5618
        if test "x$i" = "x$j"; then
 
5619
          apr_addto_duplicate="1"
 
5620
          break
 
5621
        fi
 
5622
      done
 
5623
      if test $apr_addto_duplicate = "0"; then
 
5624
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
5625
        CFLAGS="$CFLAGS $i"
 
5626
      fi
 
5627
    done
 
5628
  fi
 
5629
 
 
5630
 
 
5631
  if test "x$LIBS" = "x"; then
 
5632
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd -la\""
 
5633
    LIBS="-lbsd -la"
 
5634
  else
 
5635
    apr_addto_bugger="-lbsd -la"
 
5636
    for i in $apr_addto_bugger; do
 
5637
      apr_addto_duplicate="0"
 
5638
      for j in $LIBS; do
 
5639
        if test "x$i" = "x$j"; then
 
5640
          apr_addto_duplicate="1"
 
5641
          break
 
5642
        fi
 
5643
      done
 
5644
      if test $apr_addto_duplicate = "0"; then
 
5645
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5646
        LIBS="$LIBS $i"
 
5647
      fi
 
5648
    done
 
5649
  fi
 
5650
 
 
5651
                ;;
 
5652
            *)
 
5653
  if test "x$CPPFLAGS" = "x"; then
 
5654
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
 
5655
    CPPFLAGS="-DSVR4"
 
5656
  else
 
5657
    apr_addto_bugger="-DSVR4"
 
5658
    for i in $apr_addto_bugger; do
 
5659
      apr_addto_duplicate="0"
 
5660
      for j in $CPPFLAGS; do
 
5661
        if test "x$i" = "x$j"; then
 
5662
          apr_addto_duplicate="1"
 
5663
          break
 
5664
        fi
 
5665
      done
 
5666
      if test $apr_addto_duplicate = "0"; then
 
5667
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5668
        CPPFLAGS="$CPPFLAGS $i"
 
5669
      fi
 
5670
    done
 
5671
  fi
 
5672
 
 
5673
 
 
5674
  if test "x$CFLAGS" = "x"; then
 
5675
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
 
5676
    CFLAGS="-Xa"
 
5677
  else
 
5678
    apr_addto_bugger="-Xa"
 
5679
    for i in $apr_addto_bugger; do
 
5680
      apr_addto_duplicate="0"
 
5681
      for j in $CFLAGS; do
 
5682
        if test "x$i" = "x$j"; then
 
5683
          apr_addto_duplicate="1"
 
5684
          break
 
5685
        fi
 
5686
      done
 
5687
      if test $apr_addto_duplicate = "0"; then
 
5688
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
5689
        CFLAGS="$CFLAGS $i"
 
5690
      fi
 
5691
    done
 
5692
  fi
 
5693
 
 
5694
                ;;
 
5695
        esac
 
5696
        ;;
 
5697
    *-ultrix)
 
5698
 
 
5699
  if test "x$CPPFLAGS" = "x"; then
 
5700
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DULTRIX\""
 
5701
    CPPFLAGS="-DULTRIX"
 
5702
  else
 
5703
    apr_addto_bugger="-DULTRIX"
 
5704
    for i in $apr_addto_bugger; do
 
5705
      apr_addto_duplicate="0"
 
5706
      for j in $CPPFLAGS; do
 
5707
        if test "x$i" = "x$j"; then
 
5708
          apr_addto_duplicate="1"
 
5709
          break
 
5710
        fi
 
5711
      done
 
5712
      if test $apr_addto_duplicate = "0"; then
 
5713
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5714
        CPPFLAGS="$CPPFLAGS $i"
 
5715
      fi
 
5716
    done
 
5717
  fi
 
5718
 
 
5719
 
 
5720
  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/sh5\""
 
5721
  SHELL="/bin/sh5"
 
5722
 
 
5723
        ;;
 
5724
    *powerpc-tenon-machten*)
 
5725
 
 
5726
  if test "x$LDFLAGS" = "x"; then
 
5727
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
 
5728
    LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
 
5729
  else
 
5730
    apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
 
5731
    for i in $apr_addto_bugger; do
 
5732
      apr_addto_duplicate="0"
 
5733
      for j in $LDFLAGS; do
 
5734
        if test "x$i" = "x$j"; then
 
5735
          apr_addto_duplicate="1"
 
5736
          break
 
5737
        fi
 
5738
      done
 
5739
      if test $apr_addto_duplicate = "0"; then
 
5740
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
5741
        LDFLAGS="$LDFLAGS $i"
 
5742
      fi
 
5743
    done
 
5744
  fi
 
5745
 
 
5746
        ;;
 
5747
    *-machten*)
 
5748
 
 
5749
  if test "x$LDFLAGS" = "x"; then
 
5750
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-stack 0x14000\""
 
5751
    LDFLAGS="-stack 0x14000"
 
5752
  else
 
5753
    apr_addto_bugger="-stack 0x14000"
 
5754
    for i in $apr_addto_bugger; do
 
5755
      apr_addto_duplicate="0"
 
5756
      for j in $LDFLAGS; do
 
5757
        if test "x$i" = "x$j"; then
 
5758
          apr_addto_duplicate="1"
 
5759
          break
 
5760
        fi
 
5761
      done
 
5762
      if test $apr_addto_duplicate = "0"; then
 
5763
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
5764
        LDFLAGS="$LDFLAGS $i"
 
5765
      fi
 
5766
    done
 
5767
  fi
 
5768
 
 
5769
        ;;
 
5770
    *convex-v11*)
 
5771
 
 
5772
  if test "x$CPPFLAGS" = "x"; then
 
5773
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCONVEXOS11\""
 
5774
    CPPFLAGS="-DCONVEXOS11"
 
5775
  else
 
5776
    apr_addto_bugger="-DCONVEXOS11"
 
5777
    for i in $apr_addto_bugger; do
 
5778
      apr_addto_duplicate="0"
 
5779
      for j in $CPPFLAGS; do
 
5780
        if test "x$i" = "x$j"; then
 
5781
          apr_addto_duplicate="1"
 
5782
          break
 
5783
        fi
 
5784
      done
 
5785
      if test $apr_addto_duplicate = "0"; then
 
5786
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5787
        CPPFLAGS="$CPPFLAGS $i"
 
5788
      fi
 
5789
    done
 
5790
  fi
 
5791
 
 
5792
 
 
5793
  if test -z "$CFLAGS"; then
 
5794
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
 
5795
    CFLAGS="-O1"
 
5796
  fi
 
5797
 
 
5798
 
 
5799
  if test "x$CFLAGS" = "x"; then
 
5800
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-ext\""
 
5801
    CFLAGS="-ext"
 
5802
  else
 
5803
    apr_addto_bugger="-ext"
 
5804
    for i in $apr_addto_bugger; do
 
5805
      apr_addto_duplicate="0"
 
5806
      for j in $CFLAGS; do
 
5807
        if test "x$i" = "x$j"; then
 
5808
          apr_addto_duplicate="1"
 
5809
          break
 
5810
        fi
 
5811
      done
 
5812
      if test $apr_addto_duplicate = "0"; then
 
5813
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
5814
        CFLAGS="$CFLAGS $i"
 
5815
      fi
 
5816
    done
 
5817
  fi
 
5818
 
 
5819
        ;;
 
5820
    i860-intel-osf1)
 
5821
 
 
5822
  if test "x$CPPFLAGS" = "x"; then
 
5823
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DPARAGON\""
 
5824
    CPPFLAGS="-DPARAGON"
 
5825
  else
 
5826
    apr_addto_bugger="-DPARAGON"
 
5827
    for i in $apr_addto_bugger; do
 
5828
      apr_addto_duplicate="0"
 
5829
      for j in $CPPFLAGS; do
 
5830
        if test "x$i" = "x$j"; then
 
5831
          apr_addto_duplicate="1"
 
5832
          break
 
5833
        fi
 
5834
      done
 
5835
      if test $apr_addto_duplicate = "0"; then
 
5836
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5837
        CPPFLAGS="$CPPFLAGS $i"
 
5838
      fi
 
5839
    done
 
5840
  fi
 
5841
 
 
5842
        ;;
 
5843
    *-sequent-ptx2.*.*)
 
5844
 
 
5845
  if test "x$CPPFLAGS" = "x"; then
 
5846
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=20\""
 
5847
    CPPFLAGS="-DSEQUENT=20"
 
5848
  else
 
5849
    apr_addto_bugger="-DSEQUENT=20"
 
5850
    for i in $apr_addto_bugger; do
 
5851
      apr_addto_duplicate="0"
 
5852
      for j in $CPPFLAGS; do
 
5853
        if test "x$i" = "x$j"; then
 
5854
          apr_addto_duplicate="1"
 
5855
          break
 
5856
        fi
 
5857
      done
 
5858
      if test $apr_addto_duplicate = "0"; then
 
5859
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5860
        CPPFLAGS="$CPPFLAGS $i"
 
5861
      fi
 
5862
    done
 
5863
  fi
 
5864
 
 
5865
 
 
5866
  if test "x$CFLAGS" = "x"; then
 
5867
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
 
5868
    CFLAGS="-Wc,-pw"
 
5869
  else
 
5870
    apr_addto_bugger="-Wc,-pw"
 
5871
    for i in $apr_addto_bugger; do
 
5872
      apr_addto_duplicate="0"
 
5873
      for j in $CFLAGS; do
 
5874
        if test "x$i" = "x$j"; then
 
5875
          apr_addto_duplicate="1"
 
5876
          break
 
5877
        fi
 
5878
      done
 
5879
      if test $apr_addto_duplicate = "0"; then
 
5880
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
5881
        CFLAGS="$CFLAGS $i"
 
5882
      fi
 
5883
    done
 
5884
  fi
 
5885
 
 
5886
 
 
5887
  if test "x$LIBS" = "x"; then
 
5888
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc -lseq\""
 
5889
    LIBS="-linet -lc -lseq"
 
5890
  else
 
5891
    apr_addto_bugger="-linet -lc -lseq"
 
5892
    for i in $apr_addto_bugger; do
 
5893
      apr_addto_duplicate="0"
 
5894
      for j in $LIBS; do
 
5895
        if test "x$i" = "x$j"; then
 
5896
          apr_addto_duplicate="1"
 
5897
          break
 
5898
        fi
 
5899
      done
 
5900
      if test $apr_addto_duplicate = "0"; then
 
5901
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5902
        LIBS="$LIBS $i"
 
5903
      fi
 
5904
    done
 
5905
  fi
 
5906
 
 
5907
        ;;
 
5908
    *-sequent-ptx4.0.*)
 
5909
 
 
5910
  if test "x$CPPFLAGS" = "x"; then
 
5911
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=40\""
 
5912
    CPPFLAGS="-DSEQUENT=40"
 
5913
  else
 
5914
    apr_addto_bugger="-DSEQUENT=40"
 
5915
    for i in $apr_addto_bugger; do
 
5916
      apr_addto_duplicate="0"
 
5917
      for j in $CPPFLAGS; do
 
5918
        if test "x$i" = "x$j"; then
 
5919
          apr_addto_duplicate="1"
 
5920
          break
 
5921
        fi
 
5922
      done
 
5923
      if test $apr_addto_duplicate = "0"; then
 
5924
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5925
        CPPFLAGS="$CPPFLAGS $i"
 
5926
      fi
 
5927
    done
 
5928
  fi
 
5929
 
 
5930
 
 
5931
  if test "x$CFLAGS" = "x"; then
 
5932
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
 
5933
    CFLAGS="-Wc,-pw"
 
5934
  else
 
5935
    apr_addto_bugger="-Wc,-pw"
 
5936
    for i in $apr_addto_bugger; do
 
5937
      apr_addto_duplicate="0"
 
5938
      for j in $CFLAGS; do
 
5939
        if test "x$i" = "x$j"; then
 
5940
          apr_addto_duplicate="1"
 
5941
          break
 
5942
        fi
 
5943
      done
 
5944
      if test $apr_addto_duplicate = "0"; then
 
5945
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
5946
        CFLAGS="$CFLAGS $i"
 
5947
      fi
 
5948
    done
 
5949
  fi
 
5950
 
 
5951
 
 
5952
  if test "x$LIBS" = "x"; then
 
5953
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc\""
 
5954
    LIBS="-linet -lc"
 
5955
  else
 
5956
    apr_addto_bugger="-linet -lc"
 
5957
    for i in $apr_addto_bugger; do
 
5958
      apr_addto_duplicate="0"
 
5959
      for j in $LIBS; do
 
5960
        if test "x$i" = "x$j"; then
 
5961
          apr_addto_duplicate="1"
 
5962
          break
 
5963
        fi
 
5964
      done
 
5965
      if test $apr_addto_duplicate = "0"; then
 
5966
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
5967
        LIBS="$LIBS $i"
 
5968
      fi
 
5969
    done
 
5970
  fi
 
5971
 
 
5972
        ;;
 
5973
    *-sequent-ptx4.[123].*)
 
5974
 
 
5975
  if test "x$CPPFLAGS" = "x"; then
 
5976
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=41\""
 
5977
    CPPFLAGS="-DSEQUENT=41"
 
5978
  else
 
5979
    apr_addto_bugger="-DSEQUENT=41"
 
5980
    for i in $apr_addto_bugger; do
 
5981
      apr_addto_duplicate="0"
 
5982
      for j in $CPPFLAGS; do
 
5983
        if test "x$i" = "x$j"; then
 
5984
          apr_addto_duplicate="1"
 
5985
          break
 
5986
        fi
 
5987
      done
 
5988
      if test $apr_addto_duplicate = "0"; then
 
5989
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
5990
        CPPFLAGS="$CPPFLAGS $i"
 
5991
      fi
 
5992
    done
 
5993
  fi
 
5994
 
 
5995
 
 
5996
  if test "x$CFLAGS" = "x"; then
 
5997
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
 
5998
    CFLAGS="-Wc,-pw"
 
5999
  else
 
6000
    apr_addto_bugger="-Wc,-pw"
 
6001
    for i in $apr_addto_bugger; do
 
6002
      apr_addto_duplicate="0"
 
6003
      for j in $CFLAGS; do
 
6004
        if test "x$i" = "x$j"; then
 
6005
          apr_addto_duplicate="1"
 
6006
          break
 
6007
        fi
 
6008
      done
 
6009
      if test $apr_addto_duplicate = "0"; then
 
6010
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
6011
        CFLAGS="$CFLAGS $i"
 
6012
      fi
 
6013
    done
 
6014
  fi
 
6015
 
 
6016
 
 
6017
  if test "x$LIBS" = "x"; then
 
6018
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
 
6019
    LIBS="-lc"
 
6020
  else
 
6021
    apr_addto_bugger="-lc"
 
6022
    for i in $apr_addto_bugger; do
 
6023
      apr_addto_duplicate="0"
 
6024
      for j in $LIBS; do
 
6025
        if test "x$i" = "x$j"; then
 
6026
          apr_addto_duplicate="1"
 
6027
          break
 
6028
        fi
 
6029
      done
 
6030
      if test $apr_addto_duplicate = "0"; then
 
6031
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6032
        LIBS="$LIBS $i"
 
6033
      fi
 
6034
    done
 
6035
  fi
 
6036
 
 
6037
        ;;
 
6038
    *-sequent-ptx4.4.*)
 
6039
 
 
6040
  if test "x$CPPFLAGS" = "x"; then
 
6041
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=44\""
 
6042
    CPPFLAGS="-DSEQUENT=44"
 
6043
  else
 
6044
    apr_addto_bugger="-DSEQUENT=44"
 
6045
    for i in $apr_addto_bugger; do
 
6046
      apr_addto_duplicate="0"
 
6047
      for j in $CPPFLAGS; do
 
6048
        if test "x$i" = "x$j"; then
 
6049
          apr_addto_duplicate="1"
 
6050
          break
 
6051
        fi
 
6052
      done
 
6053
      if test $apr_addto_duplicate = "0"; then
 
6054
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6055
        CPPFLAGS="$CPPFLAGS $i"
 
6056
      fi
 
6057
    done
 
6058
  fi
 
6059
 
 
6060
 
 
6061
  if test "x$CFLAGS" = "x"; then
 
6062
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
 
6063
    CFLAGS="-Wc,-pw"
 
6064
  else
 
6065
    apr_addto_bugger="-Wc,-pw"
 
6066
    for i in $apr_addto_bugger; do
 
6067
      apr_addto_duplicate="0"
 
6068
      for j in $CFLAGS; do
 
6069
        if test "x$i" = "x$j"; then
 
6070
          apr_addto_duplicate="1"
 
6071
          break
 
6072
        fi
 
6073
      done
 
6074
      if test $apr_addto_duplicate = "0"; then
 
6075
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
6076
        CFLAGS="$CFLAGS $i"
 
6077
      fi
 
6078
    done
 
6079
  fi
 
6080
 
 
6081
 
 
6082
  if test "x$LIBS" = "x"; then
 
6083
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
 
6084
    LIBS="-lc"
 
6085
  else
 
6086
    apr_addto_bugger="-lc"
 
6087
    for i in $apr_addto_bugger; do
 
6088
      apr_addto_duplicate="0"
 
6089
      for j in $LIBS; do
 
6090
        if test "x$i" = "x$j"; then
 
6091
          apr_addto_duplicate="1"
 
6092
          break
 
6093
        fi
 
6094
      done
 
6095
      if test $apr_addto_duplicate = "0"; then
 
6096
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6097
        LIBS="$LIBS $i"
 
6098
      fi
 
6099
    done
 
6100
  fi
 
6101
 
 
6102
        ;;
 
6103
    *-sequent-ptx4.5.*)
 
6104
 
 
6105
  if test "x$CPPFLAGS" = "x"; then
 
6106
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=45\""
 
6107
    CPPFLAGS="-DSEQUENT=45"
 
6108
  else
 
6109
    apr_addto_bugger="-DSEQUENT=45"
 
6110
    for i in $apr_addto_bugger; do
 
6111
      apr_addto_duplicate="0"
 
6112
      for j in $CPPFLAGS; do
 
6113
        if test "x$i" = "x$j"; then
 
6114
          apr_addto_duplicate="1"
 
6115
          break
 
6116
        fi
 
6117
      done
 
6118
      if test $apr_addto_duplicate = "0"; then
 
6119
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6120
        CPPFLAGS="$CPPFLAGS $i"
 
6121
      fi
 
6122
    done
 
6123
  fi
 
6124
 
 
6125
 
 
6126
  if test "x$CFLAGS" = "x"; then
 
6127
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
 
6128
    CFLAGS="-Wc,-pw"
 
6129
  else
 
6130
    apr_addto_bugger="-Wc,-pw"
 
6131
    for i in $apr_addto_bugger; do
 
6132
      apr_addto_duplicate="0"
 
6133
      for j in $CFLAGS; do
 
6134
        if test "x$i" = "x$j"; then
 
6135
          apr_addto_duplicate="1"
 
6136
          break
 
6137
        fi
 
6138
      done
 
6139
      if test $apr_addto_duplicate = "0"; then
 
6140
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
6141
        CFLAGS="$CFLAGS $i"
 
6142
      fi
 
6143
    done
 
6144
  fi
 
6145
 
 
6146
 
 
6147
  if test "x$LIBS" = "x"; then
 
6148
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
 
6149
    LIBS="-lc"
 
6150
  else
 
6151
    apr_addto_bugger="-lc"
 
6152
    for i in $apr_addto_bugger; do
 
6153
      apr_addto_duplicate="0"
 
6154
      for j in $LIBS; do
 
6155
        if test "x$i" = "x$j"; then
 
6156
          apr_addto_duplicate="1"
 
6157
          break
 
6158
        fi
 
6159
      done
 
6160
      if test $apr_addto_duplicate = "0"; then
 
6161
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6162
        LIBS="$LIBS $i"
 
6163
      fi
 
6164
    done
 
6165
  fi
 
6166
 
 
6167
        ;;
 
6168
    *-sequent-ptx5.0.*)
 
6169
 
 
6170
  if test "x$CPPFLAGS" = "x"; then
 
6171
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=50\""
 
6172
    CPPFLAGS="-DSEQUENT=50"
 
6173
  else
 
6174
    apr_addto_bugger="-DSEQUENT=50"
 
6175
    for i in $apr_addto_bugger; do
 
6176
      apr_addto_duplicate="0"
 
6177
      for j in $CPPFLAGS; do
 
6178
        if test "x$i" = "x$j"; then
 
6179
          apr_addto_duplicate="1"
 
6180
          break
 
6181
        fi
 
6182
      done
 
6183
      if test $apr_addto_duplicate = "0"; then
 
6184
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6185
        CPPFLAGS="$CPPFLAGS $i"
 
6186
      fi
 
6187
    done
 
6188
  fi
 
6189
 
 
6190
 
 
6191
  if test "x$CFLAGS" = "x"; then
 
6192
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
 
6193
    CFLAGS="-Wc,-pw"
 
6194
  else
 
6195
    apr_addto_bugger="-Wc,-pw"
 
6196
    for i in $apr_addto_bugger; do
 
6197
      apr_addto_duplicate="0"
 
6198
      for j in $CFLAGS; do
 
6199
        if test "x$i" = "x$j"; then
 
6200
          apr_addto_duplicate="1"
 
6201
          break
 
6202
        fi
 
6203
      done
 
6204
      if test $apr_addto_duplicate = "0"; then
 
6205
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
6206
        CFLAGS="$CFLAGS $i"
 
6207
      fi
 
6208
    done
 
6209
  fi
 
6210
 
 
6211
 
 
6212
  if test "x$LIBS" = "x"; then
 
6213
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
 
6214
    LIBS="-lc"
 
6215
  else
 
6216
    apr_addto_bugger="-lc"
 
6217
    for i in $apr_addto_bugger; do
 
6218
      apr_addto_duplicate="0"
 
6219
      for j in $LIBS; do
 
6220
        if test "x$i" = "x$j"; then
 
6221
          apr_addto_duplicate="1"
 
6222
          break
 
6223
        fi
 
6224
      done
 
6225
      if test $apr_addto_duplicate = "0"; then
 
6226
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6227
        LIBS="$LIBS $i"
 
6228
      fi
 
6229
    done
 
6230
  fi
 
6231
 
 
6232
        ;;
 
6233
    *NEWS-OS*)
 
6234
 
 
6235
  if test "x$CPPFLAGS" = "x"; then
 
6236
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEWSOS\""
 
6237
    CPPFLAGS="-DNEWSOS"
 
6238
  else
 
6239
    apr_addto_bugger="-DNEWSOS"
 
6240
    for i in $apr_addto_bugger; do
 
6241
      apr_addto_duplicate="0"
 
6242
      for j in $CPPFLAGS; do
 
6243
        if test "x$i" = "x$j"; then
 
6244
          apr_addto_duplicate="1"
 
6245
          break
 
6246
        fi
 
6247
      done
 
6248
      if test $apr_addto_duplicate = "0"; then
 
6249
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6250
        CPPFLAGS="$CPPFLAGS $i"
 
6251
      fi
 
6252
    done
 
6253
  fi
 
6254
 
 
6255
        ;;
 
6256
    *-riscix)
 
6257
 
 
6258
  if test "x$CPPFLAGS" = "x"; then
 
6259
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRISCIX\""
 
6260
    CPPFLAGS="-DRISCIX"
 
6261
  else
 
6262
    apr_addto_bugger="-DRISCIX"
 
6263
    for i in $apr_addto_bugger; do
 
6264
      apr_addto_duplicate="0"
 
6265
      for j in $CPPFLAGS; do
 
6266
        if test "x$i" = "x$j"; then
 
6267
          apr_addto_duplicate="1"
 
6268
          break
 
6269
        fi
 
6270
      done
 
6271
      if test $apr_addto_duplicate = "0"; then
 
6272
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6273
        CPPFLAGS="$CPPFLAGS $i"
 
6274
      fi
 
6275
    done
 
6276
  fi
 
6277
 
 
6278
 
 
6279
  if test -z "$CFLAGS"; then
 
6280
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
 
6281
    CFLAGS="-O"
 
6282
  fi
 
6283
 
 
6284
        ;;
 
6285
    *-irix*)
 
6286
 
 
6287
  if test "x$CPPFLAGS" = "x"; then
 
6288
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
 
6289
    CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
 
6290
  else
 
6291
    apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
 
6292
    for i in $apr_addto_bugger; do
 
6293
      apr_addto_duplicate="0"
 
6294
      for j in $CPPFLAGS; do
 
6295
        if test "x$i" = "x$j"; then
 
6296
          apr_addto_duplicate="1"
 
6297
          break
 
6298
        fi
 
6299
      done
 
6300
      if test $apr_addto_duplicate = "0"; then
 
6301
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6302
        CPPFLAGS="$CPPFLAGS $i"
 
6303
      fi
 
6304
    done
 
6305
  fi
 
6306
 
 
6307
        ;;
 
6308
    *beos*)
 
6309
 
 
6310
  if test "x$CPPFLAGS" = "x"; then
 
6311
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
 
6312
    CPPFLAGS="-DBEOS"
 
6313
  else
 
6314
    apr_addto_bugger="-DBEOS"
 
6315
    for i in $apr_addto_bugger; do
 
6316
      apr_addto_duplicate="0"
 
6317
      for j in $CPPFLAGS; do
 
6318
        if test "x$i" = "x$j"; then
 
6319
          apr_addto_duplicate="1"
 
6320
          break
 
6321
        fi
 
6322
      done
 
6323
      if test $apr_addto_duplicate = "0"; then
 
6324
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6325
        CPPFLAGS="$CPPFLAGS $i"
 
6326
      fi
 
6327
    done
 
6328
  fi
 
6329
 
 
6330
        PLATOSVERS=`uname -r`
 
6331
 
 
6332
  if test -z "$apr_process_lock_is_global"; then
 
6333
    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
 
6334
    apr_process_lock_is_global="yes"
 
6335
  fi
 
6336
 
 
6337
        case $PLATOSVERS in
 
6338
            5.0.4)
 
6339
 
 
6340
  if test "x$LDFLAGS" = "x"; then
 
6341
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
 
6342
    LDFLAGS="-L/boot/beos/system/lib"
 
6343
  else
 
6344
    apr_addto_bugger="-L/boot/beos/system/lib"
 
6345
    for i in $apr_addto_bugger; do
 
6346
      apr_addto_duplicate="0"
 
6347
      for j in $LDFLAGS; do
 
6348
        if test "x$i" = "x$j"; then
 
6349
          apr_addto_duplicate="1"
 
6350
          break
 
6351
        fi
 
6352
      done
 
6353
      if test $apr_addto_duplicate = "0"; then
 
6354
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
6355
        LDFLAGS="$LDFLAGS $i"
 
6356
      fi
 
6357
    done
 
6358
  fi
 
6359
 
 
6360
 
 
6361
  if test "x$LIBS" = "x"; then
 
6362
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
 
6363
    LIBS="-lbind -lsocket"
 
6364
  else
 
6365
    apr_addto_bugger="-lbind -lsocket"
 
6366
    for i in $apr_addto_bugger; do
 
6367
      apr_addto_duplicate="0"
 
6368
      for j in $LIBS; do
 
6369
        if test "x$i" = "x$j"; then
 
6370
          apr_addto_duplicate="1"
 
6371
          break
 
6372
        fi
 
6373
      done
 
6374
      if test $apr_addto_duplicate = "0"; then
 
6375
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6376
        LIBS="$LIBS $i"
 
6377
      fi
 
6378
    done
 
6379
  fi
 
6380
 
 
6381
 
 
6382
  if test "x$CPPFLAGS" = "x"; then
 
6383
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBONE7\""
 
6384
    CPPFLAGS="-DBONE7"
 
6385
  else
 
6386
    apr_addto_bugger="-DBONE7"
 
6387
    for i in $apr_addto_bugger; do
 
6388
      apr_addto_duplicate="0"
 
6389
      for j in $CPPFLAGS; do
 
6390
        if test "x$i" = "x$j"; then
 
6391
          apr_addto_duplicate="1"
 
6392
          break
 
6393
        fi
 
6394
      done
 
6395
      if test $apr_addto_duplicate = "0"; then
 
6396
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6397
        CPPFLAGS="$CPPFLAGS $i"
 
6398
      fi
 
6399
    done
 
6400
  fi
 
6401
 
 
6402
                ;;
 
6403
            5.1)
 
6404
 
 
6405
  if test "x$LDFLAGS" = "x"; then
 
6406
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
 
6407
    LDFLAGS="-L/boot/beos/system/lib"
 
6408
  else
 
6409
    apr_addto_bugger="-L/boot/beos/system/lib"
 
6410
    for i in $apr_addto_bugger; do
 
6411
      apr_addto_duplicate="0"
 
6412
      for j in $LDFLAGS; do
 
6413
        if test "x$i" = "x$j"; then
 
6414
          apr_addto_duplicate="1"
 
6415
          break
 
6416
        fi
 
6417
      done
 
6418
      if test $apr_addto_duplicate = "0"; then
 
6419
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
6420
        LDFLAGS="$LDFLAGS $i"
 
6421
      fi
 
6422
    done
 
6423
  fi
 
6424
 
 
6425
 
 
6426
  if test "x$LIBS" = "x"; then
 
6427
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
 
6428
    LIBS="-lbind -lsocket"
 
6429
  else
 
6430
    apr_addto_bugger="-lbind -lsocket"
 
6431
    for i in $apr_addto_bugger; do
 
6432
      apr_addto_duplicate="0"
 
6433
      for j in $LIBS; do
 
6434
        if test "x$i" = "x$j"; then
 
6435
          apr_addto_duplicate="1"
 
6436
          break
 
6437
        fi
 
6438
      done
 
6439
      if test $apr_addto_duplicate = "0"; then
 
6440
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6441
        LIBS="$LIBS $i"
 
6442
      fi
 
6443
    done
 
6444
  fi
 
6445
 
 
6446
                ;;
 
6447
        esac
 
6448
 
 
6449
  if test "x$CPPFLAGS" = "x"; then
 
6450
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK -DAP_AUTH_DBM_USE_APR\""
 
6451
    CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK -DAP_AUTH_DBM_USE_APR"
 
6452
  else
 
6453
    apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK -DAP_AUTH_DBM_USE_APR"
 
6454
    for i in $apr_addto_bugger; do
 
6455
      apr_addto_duplicate="0"
 
6456
      for j in $CPPFLAGS; do
 
6457
        if test "x$i" = "x$j"; then
 
6458
          apr_addto_duplicate="1"
 
6459
          break
 
6460
        fi
 
6461
      done
 
6462
      if test $apr_addto_duplicate = "0"; then
 
6463
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6464
        CPPFLAGS="$CPPFLAGS $i"
 
6465
      fi
 
6466
    done
 
6467
  fi
 
6468
 
 
6469
        ;;
 
6470
    4850-*.*)
 
6471
 
 
6472
  if test "x$CPPFLAGS" = "x"; then
 
6473
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
 
6474
    CPPFLAGS="-DSVR4 -DMPRAS"
 
6475
  else
 
6476
    apr_addto_bugger="-DSVR4 -DMPRAS"
 
6477
    for i in $apr_addto_bugger; do
 
6478
      apr_addto_duplicate="0"
 
6479
      for j in $CPPFLAGS; do
 
6480
        if test "x$i" = "x$j"; then
 
6481
          apr_addto_duplicate="1"
 
6482
          break
 
6483
        fi
 
6484
      done
 
6485
      if test $apr_addto_duplicate = "0"; then
 
6486
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6487
        CPPFLAGS="$CPPFLAGS $i"
 
6488
      fi
 
6489
    done
 
6490
  fi
 
6491
 
 
6492
 
 
6493
  if test "x$LIBS" = "x"; then
 
6494
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
 
6495
    LIBS="-lc -L/usr/ucblib -lucb"
 
6496
  else
 
6497
    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
 
6498
    for i in $apr_addto_bugger; do
 
6499
      apr_addto_duplicate="0"
 
6500
      for j in $LIBS; do
 
6501
        if test "x$i" = "x$j"; then
 
6502
          apr_addto_duplicate="1"
 
6503
          break
 
6504
        fi
 
6505
      done
 
6506
      if test $apr_addto_duplicate = "0"; then
 
6507
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6508
        LIBS="$LIBS $i"
 
6509
      fi
 
6510
    done
 
6511
  fi
 
6512
 
 
6513
        ;;
 
6514
    drs6000*)
 
6515
 
 
6516
  if test "x$CPPFLAGS" = "x"; then
 
6517
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
 
6518
    CPPFLAGS="-DSVR4"
 
6519
  else
 
6520
    apr_addto_bugger="-DSVR4"
 
6521
    for i in $apr_addto_bugger; do
 
6522
      apr_addto_duplicate="0"
 
6523
      for j in $CPPFLAGS; do
 
6524
        if test "x$i" = "x$j"; then
 
6525
          apr_addto_duplicate="1"
 
6526
          break
 
6527
        fi
 
6528
      done
 
6529
      if test $apr_addto_duplicate = "0"; then
 
6530
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6531
        CPPFLAGS="$CPPFLAGS $i"
 
6532
      fi
 
6533
    done
 
6534
  fi
 
6535
 
 
6536
 
 
6537
  if test "x$LIBS" = "x"; then
 
6538
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
 
6539
    LIBS="-lc -L/usr/ucblib -lucb"
 
6540
  else
 
6541
    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
 
6542
    for i in $apr_addto_bugger; do
 
6543
      apr_addto_duplicate="0"
 
6544
      for j in $LIBS; do
 
6545
        if test "x$i" = "x$j"; then
 
6546
          apr_addto_duplicate="1"
 
6547
          break
 
6548
        fi
 
6549
      done
 
6550
      if test $apr_addto_duplicate = "0"; then
 
6551
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6552
        LIBS="$LIBS $i"
 
6553
      fi
 
6554
    done
 
6555
  fi
 
6556
 
 
6557
        ;;
 
6558
    m88k-*-CX/SX|CYBER)
 
6559
 
 
6560
  if test "x$CPPFLAGS" = "x"; then
 
6561
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_CX_SX\""
 
6562
    CPPFLAGS="-D_CX_SX"
 
6563
  else
 
6564
    apr_addto_bugger="-D_CX_SX"
 
6565
    for i in $apr_addto_bugger; do
 
6566
      apr_addto_duplicate="0"
 
6567
      for j in $CPPFLAGS; do
 
6568
        if test "x$i" = "x$j"; then
 
6569
          apr_addto_duplicate="1"
 
6570
          break
 
6571
        fi
 
6572
      done
 
6573
      if test $apr_addto_duplicate = "0"; then
 
6574
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6575
        CPPFLAGS="$CPPFLAGS $i"
 
6576
      fi
 
6577
    done
 
6578
  fi
 
6579
 
 
6580
 
 
6581
  if test "x$CFLAGS" = "x"; then
 
6582
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
 
6583
    CFLAGS="-Xa"
 
6584
  else
 
6585
    apr_addto_bugger="-Xa"
 
6586
    for i in $apr_addto_bugger; do
 
6587
      apr_addto_duplicate="0"
 
6588
      for j in $CFLAGS; do
 
6589
        if test "x$i" = "x$j"; then
 
6590
          apr_addto_duplicate="1"
 
6591
          break
 
6592
        fi
 
6593
      done
 
6594
      if test $apr_addto_duplicate = "0"; then
 
6595
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
6596
        CFLAGS="$CFLAGS $i"
 
6597
      fi
 
6598
    done
 
6599
  fi
 
6600
 
 
6601
        ;;
 
6602
    *-tandem-oss)
 
6603
 
 
6604
  if test "x$CPPFLAGS" = "x"; then
 
6605
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
 
6606
    CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
 
6607
  else
 
6608
    apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
 
6609
    for i in $apr_addto_bugger; do
 
6610
      apr_addto_duplicate="0"
 
6611
      for j in $CPPFLAGS; do
 
6612
        if test "x$i" = "x$j"; then
 
6613
          apr_addto_duplicate="1"
 
6614
          break
 
6615
        fi
 
6616
      done
 
6617
      if test $apr_addto_duplicate = "0"; then
 
6618
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6619
        CPPFLAGS="$CPPFLAGS $i"
 
6620
      fi
 
6621
    done
 
6622
  fi
 
6623
 
 
6624
        ;;
 
6625
    *-ibm-os390)
 
6626
 
 
6627
  if test -z "$apr_lock_method"; then
 
6628
    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
 
6629
    apr_lock_method="USE_SYSVSEM_SERIALIZE"
 
6630
  fi
 
6631
 
 
6632
 
 
6633
  if test -z "$apr_sysvsem_is_global"; then
 
6634
    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
 
6635
    apr_sysvsem_is_global="yes"
 
6636
  fi
 
6637
 
 
6638
 
 
6639
  if test -z "$apr_gethostbyname_is_thread_safe"; then
 
6640
    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
 
6641
    apr_gethostbyname_is_thread_safe="yes"
 
6642
  fi
 
6643
 
 
6644
 
 
6645
  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
 
6646
    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
 
6647
    apr_gethostbyaddr_is_thread_safe="yes"
 
6648
  fi
 
6649
 
 
6650
 
 
6651
  if test "x$CPPFLAGS" = "x"; then
 
6652
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
 
6653
    CPPFLAGS="-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
 
6654
  else
 
6655
    apr_addto_bugger="-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
 
6656
    for i in $apr_addto_bugger; do
 
6657
      apr_addto_duplicate="0"
 
6658
      for j in $CPPFLAGS; do
 
6659
        if test "x$i" = "x$j"; then
 
6660
          apr_addto_duplicate="1"
 
6661
          break
 
6662
        fi
 
6663
      done
 
6664
      if test $apr_addto_duplicate = "0"; then
 
6665
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6666
        CPPFLAGS="$CPPFLAGS $i"
 
6667
      fi
 
6668
    done
 
6669
  fi
 
6670
 
 
6671
       ;;
 
6672
    *-ibm-as400)
 
6673
 
 
6674
  if test -z "$apr_lock_method"; then
 
6675
    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
 
6676
    apr_lock_method="USE_SYSVSEM_SERIALIZE"
 
6677
  fi
 
6678
 
 
6679
 
 
6680
  if test -z "$apr_process_lock_is_global"; then
 
6681
    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
 
6682
    apr_process_lock_is_global="yes"
 
6683
  fi
 
6684
 
 
6685
 
 
6686
  if test -z "$apr_gethostbyname_is_thread_safe"; then
 
6687
    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
 
6688
    apr_gethostbyname_is_thread_safe="yes"
 
6689
  fi
 
6690
 
 
6691
 
 
6692
  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
 
6693
    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
 
6694
    apr_gethostbyaddr_is_thread_safe="yes"
 
6695
  fi
 
6696
 
 
6697
       ;;
 
6698
    *cygwin*)
 
6699
 
 
6700
  if test "x$CPPFLAGS" = "x"; then
 
6701
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCYGWIN\""
 
6702
    CPPFLAGS="-DCYGWIN"
 
6703
  else
 
6704
    apr_addto_bugger="-DCYGWIN"
 
6705
    for i in $apr_addto_bugger; do
 
6706
      apr_addto_duplicate="0"
 
6707
      for j in $CPPFLAGS; do
 
6708
        if test "x$i" = "x$j"; then
 
6709
          apr_addto_duplicate="1"
 
6710
          break
 
6711
        fi
 
6712
      done
 
6713
      if test $apr_addto_duplicate = "0"; then
 
6714
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
6715
        CPPFLAGS="$CPPFLAGS $i"
 
6716
      fi
 
6717
    done
 
6718
  fi
 
6719
 
 
6720
 
 
6721
  if test "x$LIBS" = "x"; then
 
6722
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lcrypt\""
 
6723
    LIBS="-lcrypt"
 
6724
  else
 
6725
    apr_addto_bugger="-lcrypt"
 
6726
    for i in $apr_addto_bugger; do
 
6727
      apr_addto_duplicate="0"
 
6728
      for j in $LIBS; do
 
6729
        if test "x$i" = "x$j"; then
 
6730
          apr_addto_duplicate="1"
 
6731
          break
 
6732
        fi
 
6733
      done
 
6734
      if test $apr_addto_duplicate = "0"; then
 
6735
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
6736
        LIBS="$LIBS $i"
 
6737
      fi
 
6738
    done
 
6739
  fi
 
6740
 
 
6741
        ;;
 
6742
  esac
 
6743
 
 
6744
fi
 
6745
 
 
6746
 
 
6747
DEFAULT_OSDIR="unix"
 
6748
echo "(Default will be ${DEFAULT_OSDIR})"
 
6749
 
 
6750
apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
 
6751
 
 
6752
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
6753
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
6754
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
6755
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
6756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6757
else
 
6758
  cat >conftest.make <<\_ACEOF
 
6759
all:
 
6760
        @echo 'ac_maketemp="$(MAKE)"'
 
6761
_ACEOF
 
6762
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
6763
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
6764
if test -n "$ac_maketemp"; then
 
6765
  eval ac_cv_prog_make_${ac_make}_set=yes
 
6766
else
 
6767
  eval ac_cv_prog_make_${ac_make}_set=no
 
6768
fi
 
6769
rm -f conftest.make
 
6770
fi
 
6771
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
6772
  echo "$as_me:$LINENO: result: yes" >&5
 
6773
echo "${ECHO_T}yes" >&6
 
6774
  SET_MAKE=
 
6775
else
 
6776
  echo "$as_me:$LINENO: result: no" >&5
 
6777
echo "${ECHO_T}no" >&6
 
6778
  SET_MAKE="MAKE=${MAKE-make}"
 
6779
fi
 
6780
 
 
6781
ac_ext=c
 
6782
ac_cpp='$CPP $CPPFLAGS'
 
6783
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6784
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6785
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6786
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6787
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
6788
# On Suns, sometimes $CPP names a directory.
 
6789
if test -n "$CPP" && test -d "$CPP"; then
 
6790
  CPP=
 
6791
fi
 
6792
if test -z "$CPP"; then
 
6793
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6795
else
 
6796
      # Double quotes because CPP needs to be expanded
 
6797
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6798
    do
 
6799
      ac_preproc_ok=false
 
6800
for ac_c_preproc_warn_flag in '' yes
 
6801
do
 
6802
  # Use a header file that comes with gcc, so configuring glibc
 
6803
  # with a fresh cross-compiler works.
 
6804
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6805
  # <limits.h> exists even on freestanding compilers.
 
6806
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6807
  # not just through cpp. "Syntax error" is here to catch this case.
 
6808
  cat >conftest.$ac_ext <<_ACEOF
 
6809
/* confdefs.h.  */
 
6810
_ACEOF
 
6811
cat confdefs.h >>conftest.$ac_ext
 
6812
cat >>conftest.$ac_ext <<_ACEOF
 
6813
/* end confdefs.h.  */
 
6814
#ifdef __STDC__
 
6815
# include <limits.h>
 
6816
#else
 
6817
# include <assert.h>
 
6818
#endif
 
6819
                     Syntax error
 
6820
_ACEOF
 
6821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6822
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6823
  ac_status=$?
 
6824
  grep -v '^ *+' conftest.er1 >conftest.err
 
6825
  rm -f conftest.er1
 
6826
  cat conftest.err >&5
 
6827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6828
  (exit $ac_status); } >/dev/null; then
 
6829
  if test -s conftest.err; then
 
6830
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6831
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6832
  else
 
6833
    ac_cpp_err=
 
6834
  fi
 
6835
else
 
6836
  ac_cpp_err=yes
 
6837
fi
 
6838
if test -z "$ac_cpp_err"; then
 
6839
  :
 
6840
else
 
6841
  echo "$as_me: failed program was:" >&5
 
6842
sed 's/^/| /' conftest.$ac_ext >&5
 
6843
 
 
6844
  # Broken: fails on valid input.
 
6845
continue
 
6846
fi
 
6847
rm -f conftest.err conftest.$ac_ext
 
6848
 
 
6849
  # OK, works on sane cases.  Now check whether non-existent headers
 
6850
  # can be detected and how.
 
6851
  cat >conftest.$ac_ext <<_ACEOF
 
6852
/* confdefs.h.  */
 
6853
_ACEOF
 
6854
cat confdefs.h >>conftest.$ac_ext
 
6855
cat >>conftest.$ac_ext <<_ACEOF
 
6856
/* end confdefs.h.  */
 
6857
#include <ac_nonexistent.h>
 
6858
_ACEOF
 
6859
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6860
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6861
  ac_status=$?
 
6862
  grep -v '^ *+' conftest.er1 >conftest.err
 
6863
  rm -f conftest.er1
 
6864
  cat conftest.err >&5
 
6865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6866
  (exit $ac_status); } >/dev/null; then
 
6867
  if test -s conftest.err; then
 
6868
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6869
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6870
  else
 
6871
    ac_cpp_err=
 
6872
  fi
 
6873
else
 
6874
  ac_cpp_err=yes
 
6875
fi
 
6876
if test -z "$ac_cpp_err"; then
 
6877
  # Broken: success on invalid input.
 
6878
continue
 
6879
else
 
6880
  echo "$as_me: failed program was:" >&5
 
6881
sed 's/^/| /' conftest.$ac_ext >&5
 
6882
 
 
6883
  # Passes both tests.
 
6884
ac_preproc_ok=:
 
6885
break
 
6886
fi
 
6887
rm -f conftest.err conftest.$ac_ext
 
6888
 
 
6889
done
 
6890
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6891
rm -f conftest.err conftest.$ac_ext
 
6892
if $ac_preproc_ok; then
 
6893
  break
 
6894
fi
 
6895
 
 
6896
    done
 
6897
    ac_cv_prog_CPP=$CPP
 
6898
 
 
6899
fi
 
6900
  CPP=$ac_cv_prog_CPP
 
6901
else
 
6902
  ac_cv_prog_CPP=$CPP
 
6903
fi
 
6904
echo "$as_me:$LINENO: result: $CPP" >&5
 
6905
echo "${ECHO_T}$CPP" >&6
 
6906
ac_preproc_ok=false
 
6907
for ac_c_preproc_warn_flag in '' yes
 
6908
do
 
6909
  # Use a header file that comes with gcc, so configuring glibc
 
6910
  # with a fresh cross-compiler works.
 
6911
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6912
  # <limits.h> exists even on freestanding compilers.
 
6913
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6914
  # not just through cpp. "Syntax error" is here to catch this case.
 
6915
  cat >conftest.$ac_ext <<_ACEOF
 
6916
/* confdefs.h.  */
 
6917
_ACEOF
 
6918
cat confdefs.h >>conftest.$ac_ext
 
6919
cat >>conftest.$ac_ext <<_ACEOF
 
6920
/* end confdefs.h.  */
 
6921
#ifdef __STDC__
 
6922
# include <limits.h>
 
6923
#else
 
6924
# include <assert.h>
 
6925
#endif
 
6926
                     Syntax error
 
6927
_ACEOF
 
6928
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6929
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6930
  ac_status=$?
 
6931
  grep -v '^ *+' conftest.er1 >conftest.err
 
6932
  rm -f conftest.er1
 
6933
  cat conftest.err >&5
 
6934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6935
  (exit $ac_status); } >/dev/null; then
 
6936
  if test -s conftest.err; then
 
6937
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6938
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6939
  else
 
6940
    ac_cpp_err=
 
6941
  fi
 
6942
else
 
6943
  ac_cpp_err=yes
 
6944
fi
 
6945
if test -z "$ac_cpp_err"; then
 
6946
  :
 
6947
else
 
6948
  echo "$as_me: failed program was:" >&5
 
6949
sed 's/^/| /' conftest.$ac_ext >&5
 
6950
 
 
6951
  # Broken: fails on valid input.
 
6952
continue
 
6953
fi
 
6954
rm -f conftest.err conftest.$ac_ext
 
6955
 
 
6956
  # OK, works on sane cases.  Now check whether non-existent headers
 
6957
  # can be detected and how.
 
6958
  cat >conftest.$ac_ext <<_ACEOF
 
6959
/* confdefs.h.  */
 
6960
_ACEOF
 
6961
cat confdefs.h >>conftest.$ac_ext
 
6962
cat >>conftest.$ac_ext <<_ACEOF
 
6963
/* end confdefs.h.  */
 
6964
#include <ac_nonexistent.h>
 
6965
_ACEOF
 
6966
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6967
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6968
  ac_status=$?
 
6969
  grep -v '^ *+' conftest.er1 >conftest.err
 
6970
  rm -f conftest.er1
 
6971
  cat conftest.err >&5
 
6972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6973
  (exit $ac_status); } >/dev/null; then
 
6974
  if test -s conftest.err; then
 
6975
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6976
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6977
  else
 
6978
    ac_cpp_err=
 
6979
  fi
 
6980
else
 
6981
  ac_cpp_err=yes
 
6982
fi
 
6983
if test -z "$ac_cpp_err"; then
 
6984
  # Broken: success on invalid input.
 
6985
continue
 
6986
else
 
6987
  echo "$as_me: failed program was:" >&5
 
6988
sed 's/^/| /' conftest.$ac_ext >&5
 
6989
 
 
6990
  # Passes both tests.
 
6991
ac_preproc_ok=:
 
6992
break
 
6993
fi
 
6994
rm -f conftest.err conftest.$ac_ext
 
6995
 
 
6996
done
 
6997
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6998
rm -f conftest.err conftest.$ac_ext
 
6999
if $ac_preproc_ok; then
 
7000
  :
 
7001
else
 
7002
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
7003
See \`config.log' for more details." >&5
 
7004
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
7005
See \`config.log' for more details." >&2;}
 
7006
   { (exit 1); exit 1; }; }
 
7007
fi
 
7008
 
 
7009
ac_ext=c
 
7010
ac_cpp='$CPP $CPPFLAGS'
 
7011
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7012
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7013
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7014
 
 
7015
for ac_prog in gawk mawk nawk awk
 
7016
do
 
7017
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7018
set dummy $ac_prog; ac_word=$2
 
7019
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7021
if test "${ac_cv_prog_AWK+set}" = set; then
 
7022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7023
else
 
7024
  if test -n "$AWK"; then
 
7025
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
7026
else
 
7027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7028
for as_dir in $PATH
 
7029
do
 
7030
  IFS=$as_save_IFS
 
7031
  test -z "$as_dir" && as_dir=.
 
7032
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7033
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7034
    ac_cv_prog_AWK="$ac_prog"
 
7035
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7036
    break 2
 
7037
  fi
 
7038
done
 
7039
done
 
7040
 
 
7041
fi
 
7042
fi
 
7043
AWK=$ac_cv_prog_AWK
 
7044
if test -n "$AWK"; then
 
7045
  echo "$as_me:$LINENO: result: $AWK" >&5
 
7046
echo "${ECHO_T}$AWK" >&6
 
7047
else
 
7048
  echo "$as_me:$LINENO: result: no" >&5
 
7049
echo "${ECHO_T}no" >&6
 
7050
fi
 
7051
 
 
7052
  test -n "$AWK" && break
 
7053
done
 
7054
 
 
7055
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
7056
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
7057
LN_S=$as_ln_s
 
7058
if test "$LN_S" = "ln -s"; then
 
7059
  echo "$as_me:$LINENO: result: yes" >&5
 
7060
echo "${ECHO_T}yes" >&6
 
7061
else
 
7062
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
7063
echo "${ECHO_T}no, using $LN_S" >&6
 
7064
fi
 
7065
 
 
7066
if test -n "$ac_tool_prefix"; then
 
7067
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7068
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7069
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7071
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7073
else
 
7074
  if test -n "$RANLIB"; then
 
7075
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7076
else
 
7077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7078
for as_dir in $PATH
 
7079
do
 
7080
  IFS=$as_save_IFS
 
7081
  test -z "$as_dir" && as_dir=.
 
7082
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7084
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7086
    break 2
 
7087
  fi
 
7088
done
 
7089
done
 
7090
 
 
7091
fi
 
7092
fi
 
7093
RANLIB=$ac_cv_prog_RANLIB
 
7094
if test -n "$RANLIB"; then
 
7095
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7096
echo "${ECHO_T}$RANLIB" >&6
 
7097
else
 
7098
  echo "$as_me:$LINENO: result: no" >&5
 
7099
echo "${ECHO_T}no" >&6
 
7100
fi
 
7101
 
 
7102
fi
 
7103
if test -z "$ac_cv_prog_RANLIB"; then
 
7104
  ac_ct_RANLIB=$RANLIB
 
7105
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7106
set dummy ranlib; ac_word=$2
 
7107
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7109
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7111
else
 
7112
  if test -n "$ac_ct_RANLIB"; then
 
7113
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7114
else
 
7115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7116
for as_dir in $PATH
 
7117
do
 
7118
  IFS=$as_save_IFS
 
7119
  test -z "$as_dir" && as_dir=.
 
7120
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7121
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7122
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7123
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7124
    break 2
 
7125
  fi
 
7126
done
 
7127
done
 
7128
 
 
7129
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7130
fi
 
7131
fi
 
7132
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7133
if test -n "$ac_ct_RANLIB"; then
 
7134
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7135
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7136
else
 
7137
  echo "$as_me:$LINENO: result: no" >&5
 
7138
echo "${ECHO_T}no" >&6
 
7139
fi
 
7140
 
 
7141
  RANLIB=$ac_ct_RANLIB
 
7142
else
 
7143
  RANLIB="$ac_cv_prog_RANLIB"
 
7144
fi
 
7145
 
 
7146
# Find a good install program.  We prefer a C program (faster),
 
7147
# so one script is as good as another.  But avoid the broken or
 
7148
# incompatible versions:
 
7149
# SysV /etc/install, /usr/sbin/install
 
7150
# SunOS /usr/etc/install
 
7151
# IRIX /sbin/install
 
7152
# AIX /bin/install
 
7153
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
7154
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
7155
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
7156
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
7157
# OS/2's system install, which has a completely different semantic
 
7158
# ./install, which can be erroneously created by make from ./install.sh.
 
7159
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
7160
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
7161
if test -z "$INSTALL"; then
 
7162
if test "${ac_cv_path_install+set}" = set; then
 
7163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7164
else
 
7165
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7166
for as_dir in $PATH
 
7167
do
 
7168
  IFS=$as_save_IFS
 
7169
  test -z "$as_dir" && as_dir=.
 
7170
  # Account for people who put trailing slashes in PATH elements.
 
7171
case $as_dir/ in
 
7172
  ./ | .// | /cC/* | \
 
7173
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
7174
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
7175
  /usr/ucb/* ) ;;
 
7176
  *)
 
7177
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
7178
    # Don't use installbsd from OSF since it installs stuff as root
 
7179
    # by default.
 
7180
    for ac_prog in ginstall scoinst install; do
 
7181
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7182
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
7183
          if test $ac_prog = install &&
 
7184
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
7185
            # AIX install.  It has an incompatible calling convention.
 
7186
            :
 
7187
          elif test $ac_prog = install &&
 
7188
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
7189
            # program-specific install script used by HP pwplus--don't use.
 
7190
            :
 
7191
          else
 
7192
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
7193
            break 3
 
7194
          fi
 
7195
        fi
 
7196
      done
 
7197
    done
 
7198
    ;;
 
7199
esac
 
7200
done
 
7201
 
 
7202
 
 
7203
fi
 
7204
  if test "${ac_cv_path_install+set}" = set; then
 
7205
    INSTALL=$ac_cv_path_install
 
7206
  else
 
7207
    # As a last resort, use the slow shell script.  We don't cache a
 
7208
    # path for INSTALL within a source directory, because that will
 
7209
    # break other packages using the cache if that directory is
 
7210
    # removed, or if the path is relative.
 
7211
    INSTALL=$ac_install_sh
 
7212
  fi
 
7213
fi
 
7214
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
7215
echo "${ECHO_T}$INSTALL" >&6
 
7216
 
 
7217
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
7218
# It thinks the first close brace ends the variable substitution.
 
7219
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
7220
 
 
7221
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
7222
 
 
7223
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
7224
 
 
7225
# Extract the first word of "rm", so it can be a program name with args.
 
7226
set dummy rm; ac_word=$2
 
7227
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7229
if test "${ac_cv_prog_RM+set}" = set; then
 
7230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7231
else
 
7232
  if test -n "$RM"; then
 
7233
  ac_cv_prog_RM="$RM" # Let the user override the test.
 
7234
else
 
7235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7236
for as_dir in $PATH
 
7237
do
 
7238
  IFS=$as_save_IFS
 
7239
  test -z "$as_dir" && as_dir=.
 
7240
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7241
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7242
    ac_cv_prog_RM="rm"
 
7243
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7244
    break 2
 
7245
  fi
 
7246
done
 
7247
done
 
7248
 
 
7249
fi
 
7250
fi
 
7251
RM=$ac_cv_prog_RM
 
7252
if test -n "$RM"; then
 
7253
  echo "$as_me:$LINENO: result: $RM" >&5
 
7254
echo "${ECHO_T}$RM" >&6
 
7255
else
 
7256
  echo "$as_me:$LINENO: result: no" >&5
 
7257
echo "${ECHO_T}no" >&6
 
7258
fi
 
7259
 
 
7260
# Extract the first word of "as", so it can be a program name with args.
 
7261
set dummy as; ac_word=$2
 
7262
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7264
if test "${ac_cv_prog_AS+set}" = set; then
 
7265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7266
else
 
7267
  if test -n "$AS"; then
 
7268
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
7269
else
 
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7271
for as_dir in $PATH
 
7272
do
 
7273
  IFS=$as_save_IFS
 
7274
  test -z "$as_dir" && as_dir=.
 
7275
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7276
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7277
    ac_cv_prog_AS="as"
 
7278
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7279
    break 2
 
7280
  fi
 
7281
done
 
7282
done
 
7283
 
 
7284
fi
 
7285
fi
 
7286
AS=$ac_cv_prog_AS
 
7287
if test -n "$AS"; then
 
7288
  echo "$as_me:$LINENO: result: $AS" >&5
 
7289
echo "${ECHO_T}$AS" >&6
 
7290
else
 
7291
  echo "$as_me:$LINENO: result: no" >&5
 
7292
echo "${ECHO_T}no" >&6
 
7293
fi
 
7294
 
 
7295
# Extract the first word of "cpp", so it can be a program name with args.
 
7296
set dummy cpp; ac_word=$2
 
7297
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7298
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7299
if test "${ac_cv_prog_ASCPP+set}" = set; then
 
7300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7301
else
 
7302
  if test -n "$ASCPP"; then
 
7303
  ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
 
7304
else
 
7305
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7306
for as_dir in $PATH
 
7307
do
 
7308
  IFS=$as_save_IFS
 
7309
  test -z "$as_dir" && as_dir=.
 
7310
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7311
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7312
    ac_cv_prog_ASCPP="cpp"
 
7313
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7314
    break 2
 
7315
  fi
 
7316
done
 
7317
done
 
7318
 
 
7319
fi
 
7320
fi
 
7321
ASCPP=$ac_cv_prog_ASCPP
 
7322
if test -n "$ASCPP"; then
 
7323
  echo "$as_me:$LINENO: result: $ASCPP" >&5
 
7324
echo "${ECHO_T}$ASCPP" >&6
 
7325
else
 
7326
  echo "$as_me:$LINENO: result: no" >&5
 
7327
echo "${ECHO_T}no" >&6
 
7328
fi
 
7329
 
 
7330
if test -n "$ac_tool_prefix"; then
 
7331
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7332
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7333
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7335
if test "${ac_cv_prog_AR+set}" = set; then
 
7336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7337
else
 
7338
  if test -n "$AR"; then
 
7339
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7340
else
 
7341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7342
for as_dir in $PATH
 
7343
do
 
7344
  IFS=$as_save_IFS
 
7345
  test -z "$as_dir" && as_dir=.
 
7346
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7347
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7348
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7349
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7350
    break 2
 
7351
  fi
 
7352
done
 
7353
done
 
7354
 
 
7355
fi
 
7356
fi
 
7357
AR=$ac_cv_prog_AR
 
7358
if test -n "$AR"; then
 
7359
  echo "$as_me:$LINENO: result: $AR" >&5
 
7360
echo "${ECHO_T}$AR" >&6
 
7361
else
 
7362
  echo "$as_me:$LINENO: result: no" >&5
 
7363
echo "${ECHO_T}no" >&6
 
7364
fi
 
7365
 
 
7366
fi
 
7367
if test -z "$ac_cv_prog_AR"; then
 
7368
  ac_ct_AR=$AR
 
7369
  # Extract the first word of "ar", so it can be a program name with args.
 
7370
set dummy ar; ac_word=$2
 
7371
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7373
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7375
else
 
7376
  if test -n "$ac_ct_AR"; then
 
7377
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7378
else
 
7379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7380
for as_dir in $PATH
 
7381
do
 
7382
  IFS=$as_save_IFS
 
7383
  test -z "$as_dir" && as_dir=.
 
7384
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7385
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7386
    ac_cv_prog_ac_ct_AR="ar"
 
7387
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7388
    break 2
 
7389
  fi
 
7390
done
 
7391
done
 
7392
 
 
7393
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
 
7394
fi
 
7395
fi
 
7396
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7397
if test -n "$ac_ct_AR"; then
 
7398
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7399
echo "${ECHO_T}$ac_ct_AR" >&6
 
7400
else
 
7401
  echo "$as_me:$LINENO: result: no" >&5
 
7402
echo "${ECHO_T}no" >&6
 
7403
fi
 
7404
 
 
7405
  AR=$ac_ct_AR
 
7406
else
 
7407
  AR="$ac_cv_prog_AR"
 
7408
fi
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
echo "$as_me:$LINENO: checking for egrep" >&5
 
7414
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
7415
if test "${ac_cv_prog_egrep+set}" = set; then
 
7416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7417
else
 
7418
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
7419
    then ac_cv_prog_egrep='grep -E'
 
7420
    else ac_cv_prog_egrep='egrep'
 
7421
    fi
 
7422
fi
 
7423
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
7424
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
7425
 EGREP=$ac_cv_prog_egrep
 
7426
 
 
7427
 
 
7428
 
 
7429
echo "$as_me:$LINENO: checking for AIX" >&5
 
7430
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
7431
cat >conftest.$ac_ext <<_ACEOF
 
7432
/* confdefs.h.  */
 
7433
_ACEOF
 
7434
cat confdefs.h >>conftest.$ac_ext
 
7435
cat >>conftest.$ac_ext <<_ACEOF
 
7436
/* end confdefs.h.  */
 
7437
#ifdef _AIX
 
7438
  yes
 
7439
#endif
 
7440
 
 
7441
_ACEOF
 
7442
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7443
  $EGREP "yes" >/dev/null 2>&1; then
 
7444
  echo "$as_me:$LINENO: result: yes" >&5
 
7445
echo "${ECHO_T}yes" >&6
 
7446
cat >>confdefs.h <<\_ACEOF
 
7447
#define _ALL_SOURCE 1
 
7448
_ACEOF
 
7449
 
 
7450
else
 
7451
  echo "$as_me:$LINENO: result: no" >&5
 
7452
echo "${ECHO_T}no" >&6
 
7453
fi
 
7454
rm -f conftest*
 
7455
 
 
7456
 
 
7457
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
7458
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
7459
if test "${ac_cv_search_strerror+set}" = set; then
 
7460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7461
else
 
7462
  ac_func_search_save_LIBS=$LIBS
 
7463
ac_cv_search_strerror=no
 
7464
cat >conftest.$ac_ext <<_ACEOF
 
7465
/* confdefs.h.  */
 
7466
_ACEOF
 
7467
cat confdefs.h >>conftest.$ac_ext
 
7468
cat >>conftest.$ac_ext <<_ACEOF
 
7469
/* end confdefs.h.  */
 
7470
 
 
7471
/* Override any gcc2 internal prototype to avoid an error.  */
 
7472
#ifdef __cplusplus
 
7473
extern "C"
 
7474
#endif
 
7475
/* We use char because int might match the return type of a gcc2
 
7476
   builtin and then its argument prototype would still apply.  */
 
7477
char strerror ();
 
7478
int
 
7479
main ()
 
7480
{
 
7481
strerror ();
 
7482
  ;
 
7483
  return 0;
 
7484
}
 
7485
_ACEOF
 
7486
rm -f conftest.$ac_objext conftest$ac_exeext
 
7487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7488
  (eval $ac_link) 2>conftest.er1
 
7489
  ac_status=$?
 
7490
  grep -v '^ *+' conftest.er1 >conftest.err
 
7491
  rm -f conftest.er1
 
7492
  cat conftest.err >&5
 
7493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7494
  (exit $ac_status); } &&
 
7495
         { ac_try='test -z "$ac_c_werror_flag"
 
7496
                         || test ! -s conftest.err'
 
7497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7498
  (eval $ac_try) 2>&5
 
7499
  ac_status=$?
 
7500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7501
  (exit $ac_status); }; } &&
 
7502
         { ac_try='test -s conftest$ac_exeext'
 
7503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7504
  (eval $ac_try) 2>&5
 
7505
  ac_status=$?
 
7506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7507
  (exit $ac_status); }; }; then
 
7508
  ac_cv_search_strerror="none required"
 
7509
else
 
7510
  echo "$as_me: failed program was:" >&5
 
7511
sed 's/^/| /' conftest.$ac_ext >&5
 
7512
 
 
7513
fi
 
7514
rm -f conftest.err conftest.$ac_objext \
 
7515
      conftest$ac_exeext conftest.$ac_ext
 
7516
if test "$ac_cv_search_strerror" = no; then
 
7517
  for ac_lib in cposix; do
 
7518
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7519
    cat >conftest.$ac_ext <<_ACEOF
 
7520
/* confdefs.h.  */
 
7521
_ACEOF
 
7522
cat confdefs.h >>conftest.$ac_ext
 
7523
cat >>conftest.$ac_ext <<_ACEOF
 
7524
/* end confdefs.h.  */
 
7525
 
 
7526
/* Override any gcc2 internal prototype to avoid an error.  */
 
7527
#ifdef __cplusplus
 
7528
extern "C"
 
7529
#endif
 
7530
/* We use char because int might match the return type of a gcc2
 
7531
   builtin and then its argument prototype would still apply.  */
 
7532
char strerror ();
 
7533
int
 
7534
main ()
 
7535
{
 
7536
strerror ();
 
7537
  ;
 
7538
  return 0;
 
7539
}
 
7540
_ACEOF
 
7541
rm -f conftest.$ac_objext conftest$ac_exeext
 
7542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7543
  (eval $ac_link) 2>conftest.er1
 
7544
  ac_status=$?
 
7545
  grep -v '^ *+' conftest.er1 >conftest.err
 
7546
  rm -f conftest.er1
 
7547
  cat conftest.err >&5
 
7548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7549
  (exit $ac_status); } &&
 
7550
         { ac_try='test -z "$ac_c_werror_flag"
 
7551
                         || test ! -s conftest.err'
 
7552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7553
  (eval $ac_try) 2>&5
 
7554
  ac_status=$?
 
7555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7556
  (exit $ac_status); }; } &&
 
7557
         { ac_try='test -s conftest$ac_exeext'
 
7558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7559
  (eval $ac_try) 2>&5
 
7560
  ac_status=$?
 
7561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7562
  (exit $ac_status); }; }; then
 
7563
  ac_cv_search_strerror="-l$ac_lib"
 
7564
break
 
7565
else
 
7566
  echo "$as_me: failed program was:" >&5
 
7567
sed 's/^/| /' conftest.$ac_ext >&5
 
7568
 
 
7569
fi
 
7570
rm -f conftest.err conftest.$ac_objext \
 
7571
      conftest$ac_exeext conftest.$ac_ext
 
7572
  done
 
7573
fi
 
7574
LIBS=$ac_func_search_save_LIBS
 
7575
fi
 
7576
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
7577
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
7578
if test "$ac_cv_search_strerror" != no; then
 
7579
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
7580
 
 
7581
fi
 
7582
 
 
7583
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7584
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
7585
if test "${ac_cv_header_stdc+set}" = set; then
 
7586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7587
else
 
7588
  cat >conftest.$ac_ext <<_ACEOF
 
7589
/* confdefs.h.  */
 
7590
_ACEOF
 
7591
cat confdefs.h >>conftest.$ac_ext
 
7592
cat >>conftest.$ac_ext <<_ACEOF
 
7593
/* end confdefs.h.  */
 
7594
#include <stdlib.h>
 
7595
#include <stdarg.h>
 
7596
#include <string.h>
 
7597
#include <float.h>
 
7598
 
 
7599
int
 
7600
main ()
 
7601
{
 
7602
 
 
7603
  ;
 
7604
  return 0;
 
7605
}
 
7606
_ACEOF
 
7607
rm -f conftest.$ac_objext
 
7608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7609
  (eval $ac_compile) 2>conftest.er1
 
7610
  ac_status=$?
 
7611
  grep -v '^ *+' conftest.er1 >conftest.err
 
7612
  rm -f conftest.er1
 
7613
  cat conftest.err >&5
 
7614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7615
  (exit $ac_status); } &&
 
7616
         { ac_try='test -z "$ac_c_werror_flag"
 
7617
                         || test ! -s conftest.err'
 
7618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7619
  (eval $ac_try) 2>&5
 
7620
  ac_status=$?
 
7621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7622
  (exit $ac_status); }; } &&
 
7623
         { ac_try='test -s conftest.$ac_objext'
 
7624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7625
  (eval $ac_try) 2>&5
 
7626
  ac_status=$?
 
7627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7628
  (exit $ac_status); }; }; then
 
7629
  ac_cv_header_stdc=yes
 
7630
else
 
7631
  echo "$as_me: failed program was:" >&5
 
7632
sed 's/^/| /' conftest.$ac_ext >&5
 
7633
 
 
7634
ac_cv_header_stdc=no
 
7635
fi
 
7636
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7637
 
 
7638
if test $ac_cv_header_stdc = yes; then
 
7639
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7640
  cat >conftest.$ac_ext <<_ACEOF
 
7641
/* confdefs.h.  */
 
7642
_ACEOF
 
7643
cat confdefs.h >>conftest.$ac_ext
 
7644
cat >>conftest.$ac_ext <<_ACEOF
 
7645
/* end confdefs.h.  */
 
7646
#include <string.h>
 
7647
 
 
7648
_ACEOF
 
7649
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7650
  $EGREP "memchr" >/dev/null 2>&1; then
 
7651
  :
 
7652
else
 
7653
  ac_cv_header_stdc=no
 
7654
fi
 
7655
rm -f conftest*
 
7656
 
 
7657
fi
 
7658
 
 
7659
if test $ac_cv_header_stdc = yes; then
 
7660
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7661
  cat >conftest.$ac_ext <<_ACEOF
 
7662
/* confdefs.h.  */
 
7663
_ACEOF
 
7664
cat confdefs.h >>conftest.$ac_ext
 
7665
cat >>conftest.$ac_ext <<_ACEOF
 
7666
/* end confdefs.h.  */
 
7667
#include <stdlib.h>
 
7668
 
 
7669
_ACEOF
 
7670
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7671
  $EGREP "free" >/dev/null 2>&1; then
 
7672
  :
 
7673
else
 
7674
  ac_cv_header_stdc=no
 
7675
fi
 
7676
rm -f conftest*
 
7677
 
 
7678
fi
 
7679
 
 
7680
if test $ac_cv_header_stdc = yes; then
 
7681
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7682
  if test "$cross_compiling" = yes; then
 
7683
  :
 
7684
else
 
7685
  cat >conftest.$ac_ext <<_ACEOF
 
7686
/* confdefs.h.  */
 
7687
_ACEOF
 
7688
cat confdefs.h >>conftest.$ac_ext
 
7689
cat >>conftest.$ac_ext <<_ACEOF
 
7690
/* end confdefs.h.  */
 
7691
#include <ctype.h>
 
7692
#if ((' ' & 0x0FF) == 0x020)
 
7693
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7694
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7695
#else
 
7696
# define ISLOWER(c) \
 
7697
                   (('a' <= (c) && (c) <= 'i') \
 
7698
                     || ('j' <= (c) && (c) <= 'r') \
 
7699
                     || ('s' <= (c) && (c) <= 'z'))
 
7700
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7701
#endif
 
7702
 
 
7703
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7704
int
 
7705
main ()
 
7706
{
 
7707
  int i;
 
7708
  for (i = 0; i < 256; i++)
 
7709
    if (XOR (islower (i), ISLOWER (i))
 
7710
        || toupper (i) != TOUPPER (i))
 
7711
      exit(2);
 
7712
  exit (0);
 
7713
}
 
7714
_ACEOF
 
7715
rm -f conftest$ac_exeext
 
7716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7717
  (eval $ac_link) 2>&5
 
7718
  ac_status=$?
 
7719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7720
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7722
  (eval $ac_try) 2>&5
 
7723
  ac_status=$?
 
7724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7725
  (exit $ac_status); }; }; then
 
7726
  :
 
7727
else
 
7728
  echo "$as_me: program exited with status $ac_status" >&5
 
7729
echo "$as_me: failed program was:" >&5
 
7730
sed 's/^/| /' conftest.$ac_ext >&5
 
7731
 
 
7732
( exit $ac_status )
 
7733
ac_cv_header_stdc=no
 
7734
fi
 
7735
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7736
fi
 
7737
fi
 
7738
fi
 
7739
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7740
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
7741
if test $ac_cv_header_stdc = yes; then
 
7742
 
 
7743
cat >>confdefs.h <<\_ACEOF
 
7744
#define STDC_HEADERS 1
 
7745
_ACEOF
 
7746
 
 
7747
fi
 
7748
 
 
7749
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7750
 
 
7751
 
 
7752
 
 
7753
 
 
7754
 
 
7755
 
 
7756
 
 
7757
 
 
7758
 
 
7759
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7760
                  inttypes.h stdint.h unistd.h
 
7761
do
 
7762
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7763
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7764
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7765
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7767
else
 
7768
  cat >conftest.$ac_ext <<_ACEOF
 
7769
/* confdefs.h.  */
 
7770
_ACEOF
 
7771
cat confdefs.h >>conftest.$ac_ext
 
7772
cat >>conftest.$ac_ext <<_ACEOF
 
7773
/* end confdefs.h.  */
 
7774
$ac_includes_default
 
7775
 
 
7776
#include <$ac_header>
 
7777
_ACEOF
 
7778
rm -f conftest.$ac_objext
 
7779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7780
  (eval $ac_compile) 2>conftest.er1
 
7781
  ac_status=$?
 
7782
  grep -v '^ *+' conftest.er1 >conftest.err
 
7783
  rm -f conftest.er1
 
7784
  cat conftest.err >&5
 
7785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7786
  (exit $ac_status); } &&
 
7787
         { ac_try='test -z "$ac_c_werror_flag"
 
7788
                         || test ! -s conftest.err'
 
7789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7790
  (eval $ac_try) 2>&5
 
7791
  ac_status=$?
 
7792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7793
  (exit $ac_status); }; } &&
 
7794
         { ac_try='test -s conftest.$ac_objext'
 
7795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7796
  (eval $ac_try) 2>&5
 
7797
  ac_status=$?
 
7798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7799
  (exit $ac_status); }; }; then
 
7800
  eval "$as_ac_Header=yes"
 
7801
else
 
7802
  echo "$as_me: failed program was:" >&5
 
7803
sed 's/^/| /' conftest.$ac_ext >&5
 
7804
 
 
7805
eval "$as_ac_Header=no"
 
7806
fi
 
7807
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7808
fi
 
7809
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7810
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7811
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7812
  cat >>confdefs.h <<_ACEOF
 
7813
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7814
_ACEOF
 
7815
 
 
7816
fi
 
7817
 
 
7818
done
 
7819
 
 
7820
 
 
7821
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
7822
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
7823
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
7824
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
7825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7826
fi
 
7827
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
7828
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
7829
else
 
7830
  # Is the header compilable?
 
7831
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
7832
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
 
7833
cat >conftest.$ac_ext <<_ACEOF
 
7834
/* confdefs.h.  */
 
7835
_ACEOF
 
7836
cat confdefs.h >>conftest.$ac_ext
 
7837
cat >>conftest.$ac_ext <<_ACEOF
 
7838
/* end confdefs.h.  */
 
7839
$ac_includes_default
 
7840
#include <minix/config.h>
 
7841
_ACEOF
 
7842
rm -f conftest.$ac_objext
 
7843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7844
  (eval $ac_compile) 2>conftest.er1
 
7845
  ac_status=$?
 
7846
  grep -v '^ *+' conftest.er1 >conftest.err
 
7847
  rm -f conftest.er1
 
7848
  cat conftest.err >&5
 
7849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7850
  (exit $ac_status); } &&
 
7851
         { ac_try='test -z "$ac_c_werror_flag"
 
7852
                         || test ! -s conftest.err'
 
7853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7854
  (eval $ac_try) 2>&5
 
7855
  ac_status=$?
 
7856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7857
  (exit $ac_status); }; } &&
 
7858
         { ac_try='test -s conftest.$ac_objext'
 
7859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7860
  (eval $ac_try) 2>&5
 
7861
  ac_status=$?
 
7862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7863
  (exit $ac_status); }; }; then
 
7864
  ac_header_compiler=yes
 
7865
else
 
7866
  echo "$as_me: failed program was:" >&5
 
7867
sed 's/^/| /' conftest.$ac_ext >&5
 
7868
 
 
7869
ac_header_compiler=no
 
7870
fi
 
7871
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7872
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7873
echo "${ECHO_T}$ac_header_compiler" >&6
 
7874
 
 
7875
# Is the header present?
 
7876
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
7877
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
 
7878
cat >conftest.$ac_ext <<_ACEOF
 
7879
/* confdefs.h.  */
 
7880
_ACEOF
 
7881
cat confdefs.h >>conftest.$ac_ext
 
7882
cat >>conftest.$ac_ext <<_ACEOF
 
7883
/* end confdefs.h.  */
 
7884
#include <minix/config.h>
 
7885
_ACEOF
 
7886
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7887
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7888
  ac_status=$?
 
7889
  grep -v '^ *+' conftest.er1 >conftest.err
 
7890
  rm -f conftest.er1
 
7891
  cat conftest.err >&5
 
7892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7893
  (exit $ac_status); } >/dev/null; then
 
7894
  if test -s conftest.err; then
 
7895
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7896
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7897
  else
 
7898
    ac_cpp_err=
 
7899
  fi
 
7900
else
 
7901
  ac_cpp_err=yes
 
7902
fi
 
7903
if test -z "$ac_cpp_err"; then
 
7904
  ac_header_preproc=yes
 
7905
else
 
7906
  echo "$as_me: failed program was:" >&5
 
7907
sed 's/^/| /' conftest.$ac_ext >&5
 
7908
 
 
7909
  ac_header_preproc=no
 
7910
fi
 
7911
rm -f conftest.err conftest.$ac_ext
 
7912
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7913
echo "${ECHO_T}$ac_header_preproc" >&6
 
7914
 
 
7915
# So?  What about this header?
 
7916
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7917
  yes:no: )
 
7918
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
7919
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7920
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
7921
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
7922
    ac_header_preproc=yes
 
7923
    ;;
 
7924
  no:yes:* )
 
7925
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
7926
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
7927
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
7928
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
7929
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
7930
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
7931
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
7932
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7933
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
7934
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
7935
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
7936
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
7937
    (
 
7938
      cat <<\_ASBOX
 
7939
## ------------------------------------------ ##
 
7940
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7941
## ------------------------------------------ ##
 
7942
_ASBOX
 
7943
    ) |
 
7944
      sed "s/^/$as_me: WARNING:     /" >&2
 
7945
    ;;
 
7946
esac
 
7947
echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
7948
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
 
7949
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
7950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7951
else
 
7952
  ac_cv_header_minix_config_h=$ac_header_preproc
 
7953
fi
 
7954
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
7955
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
 
7956
 
 
7957
fi
 
7958
if test $ac_cv_header_minix_config_h = yes; then
 
7959
  MINIX=yes
 
7960
else
 
7961
  MINIX=
 
7962
fi
 
7963
 
 
7964
 
 
7965
if test "$MINIX" = yes; then
 
7966
 
 
7967
cat >>confdefs.h <<\_ACEOF
 
7968
#define _POSIX_SOURCE 1
 
7969
_ACEOF
 
7970
 
 
7971
 
 
7972
cat >>confdefs.h <<\_ACEOF
 
7973
#define _POSIX_1_SOURCE 2
 
7974
_ACEOF
 
7975
 
 
7976
 
 
7977
cat >>confdefs.h <<\_ACEOF
 
7978
#define _MINIX 1
 
7979
_ACEOF
 
7980
 
 
7981
fi
 
7982
 
 
7983
 
 
7984
 
 
7985
  echo "$as_me:$LINENO: checking whether system uses EBCDIC" >&5
 
7986
echo $ECHO_N "checking whether system uses EBCDIC... $ECHO_C" >&6
 
7987
if test "${ac_cv_ebcdic+set}" = set; then
 
7988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7989
else
 
7990
 
 
7991
  if test "$cross_compiling" = yes; then
 
7992
 
 
7993
  ac_cv_ebcdic="no"
 
7994
 
 
7995
else
 
7996
  cat >conftest.$ac_ext <<_ACEOF
 
7997
/* confdefs.h.  */
 
7998
_ACEOF
 
7999
cat confdefs.h >>conftest.$ac_ext
 
8000
cat >>conftest.$ac_ext <<_ACEOF
 
8001
/* end confdefs.h.  */
 
8002
 
 
8003
int main(void) {
 
8004
  return (unsigned char)'A' != (unsigned char)0xC1;
 
8005
}
 
8006
 
 
8007
_ACEOF
 
8008
rm -f conftest$ac_exeext
 
8009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8010
  (eval $ac_link) 2>&5
 
8011
  ac_status=$?
 
8012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8013
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8015
  (eval $ac_try) 2>&5
 
8016
  ac_status=$?
 
8017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8018
  (exit $ac_status); }; }; then
 
8019
 
 
8020
  ac_cv_ebcdic="yes"
 
8021
 
 
8022
else
 
8023
  echo "$as_me: program exited with status $ac_status" >&5
 
8024
echo "$as_me: failed program was:" >&5
 
8025
sed 's/^/| /' conftest.$ac_ext >&5
 
8026
 
 
8027
( exit $ac_status )
 
8028
 
 
8029
  ac_cv_ebcdic="no"
 
8030
 
 
8031
fi
 
8032
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8033
fi
 
8034
fi
 
8035
echo "$as_me:$LINENO: result: $ac_cv_ebcdic" >&5
 
8036
echo "${ECHO_T}$ac_cv_ebcdic" >&6
 
8037
  if test "$ac_cv_ebcdic" = "yes"; then
 
8038
    apr_charset_ebcdic=1
 
8039
  else
 
8040
    apr_charset_ebcdic=0
 
8041
  fi
 
8042
 
 
8043
 
 
8044
 
 
8045
APR_LIBNAME="apr${libsuffix}"
 
8046
 
 
8047
 
 
8048
echo "performing libtool configuration..."
 
8049
 
 
8050
# Check whether --enable-experimental-libtool or --disable-experimental-libtool was given.
 
8051
if test "${enable_experimental_libtool+set}" = set; then
 
8052
  enableval="$enable_experimental_libtool"
 
8053
  experimental_libtool=$enableval
 
8054
else
 
8055
  experimental_libtool=no
 
8056
fi;
 
8057
 
 
8058
case $host in
 
8059
*-os2*)
 
8060
    # Use a custom-made libtool replacement
 
8061
    echo "using aplibtool"
 
8062
    LIBTOOL="$srcdir/build/aplibtool"
 
8063
    gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
 
8064
    ;;
 
8065
*)
 
8066
    if test "x$LTFLAGS" = "x"; then
 
8067
        LTFLAGS='--silent'
 
8068
    fi
 
8069
    if test "$experimental_libtool" = "yes"; then
 
8070
        # Use a custom-made libtool replacement
 
8071
        echo "using jlibtool"
 
8072
        LIBTOOL="$apr_builddir/libtool"
 
8073
        LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
 
8074
        $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
 
8075
        eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
 
8076
        if test "x$shlibpath_var" = "x"; then
 
8077
            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
 
8078
        fi
 
8079
    else
 
8080
    # Check whether --enable-shared or --disable-shared was given.
 
8081
if test "${enable_shared+set}" = set; then
 
8082
  enableval="$enable_shared"
 
8083
  p=${PACKAGE-default}
 
8084
    case $enableval in
 
8085
    yes) enable_shared=yes ;;
 
8086
    no) enable_shared=no ;;
 
8087
    *)
 
8088
      enable_shared=no
 
8089
      # Look at the argument we got.  We use all the common list separators.
 
8090
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8091
      for pkg in $enableval; do
 
8092
        IFS="$lt_save_ifs"
 
8093
        if test "X$pkg" = "X$p"; then
 
8094
          enable_shared=yes
 
8095
        fi
 
8096
      done
 
8097
      IFS="$lt_save_ifs"
 
8098
      ;;
 
8099
    esac
 
8100
else
 
8101
  enable_shared=yes
 
8102
fi;
 
8103
 
 
8104
# Check whether --enable-static or --disable-static was given.
 
8105
if test "${enable_static+set}" = set; then
 
8106
  enableval="$enable_static"
 
8107
  p=${PACKAGE-default}
 
8108
    case $enableval in
 
8109
    yes) enable_static=yes ;;
 
8110
    no) enable_static=no ;;
 
8111
    *)
 
8112
     enable_static=no
 
8113
      # Look at the argument we got.  We use all the common list separators.
 
8114
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8115
      for pkg in $enableval; do
 
8116
        IFS="$lt_save_ifs"
 
8117
        if test "X$pkg" = "X$p"; then
 
8118
          enable_static=yes
 
8119
        fi
 
8120
      done
 
8121
      IFS="$lt_save_ifs"
 
8122
      ;;
 
8123
    esac
 
8124
else
 
8125
  enable_static=yes
 
8126
fi;
 
8127
 
 
8128
# Check whether --enable-fast-install or --disable-fast-install was given.
 
8129
if test "${enable_fast_install+set}" = set; then
 
8130
  enableval="$enable_fast_install"
 
8131
  p=${PACKAGE-default}
 
8132
    case $enableval in
 
8133
    yes) enable_fast_install=yes ;;
 
8134
    no) enable_fast_install=no ;;
 
8135
    *)
 
8136
      enable_fast_install=no
 
8137
      # Look at the argument we got.  We use all the common list separators.
 
8138
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8139
      for pkg in $enableval; do
 
8140
        IFS="$lt_save_ifs"
 
8141
        if test "X$pkg" = "X$p"; then
 
8142
          enable_fast_install=yes
 
8143
        fi
 
8144
      done
 
8145
      IFS="$lt_save_ifs"
 
8146
      ;;
 
8147
    esac
 
8148
else
 
8149
  enable_fast_install=yes
 
8150
fi;
 
8151
 
 
8152
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
8153
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
8154
if test "${lt_cv_path_SED+set}" = set; then
 
8155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8156
else
 
8157
  # Loop through the user's path and test for sed and gsed.
 
8158
# Then use that list of sed's as ones to test for truncation.
 
8159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8160
for as_dir in $PATH
 
8161
do
 
8162
  IFS=$as_save_IFS
 
8163
  test -z "$as_dir" && as_dir=.
 
8164
  for lt_ac_prog in sed gsed; do
 
8165
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8166
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
8167
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
8168
      fi
 
8169
    done
 
8170
  done
 
8171
done
 
8172
lt_ac_max=0
 
8173
lt_ac_count=0
 
8174
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
8175
# along with /bin/sed that truncates output.
 
8176
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
8177
  test ! -f $lt_ac_sed && continue
 
8178
  cat /dev/null > conftest.in
 
8179
  lt_ac_count=0
 
8180
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
8181
  # Check for GNU sed and select it if it is found.
 
8182
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
8183
    lt_cv_path_SED=$lt_ac_sed
 
8184
    break
 
8185
  fi
 
8186
  while true; do
 
8187
    cat conftest.in conftest.in >conftest.tmp
 
8188
    mv conftest.tmp conftest.in
 
8189
    cp conftest.in conftest.nl
 
8190
    echo >>conftest.nl
 
8191
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
8192
    cmp -s conftest.out conftest.nl || break
 
8193
    # 10000 chars as input seems more than enough
 
8194
    test $lt_ac_count -gt 10 && break
 
8195
    lt_ac_count=`expr $lt_ac_count + 1`
 
8196
    if test $lt_ac_count -gt $lt_ac_max; then
 
8197
      lt_ac_max=$lt_ac_count
 
8198
      lt_cv_path_SED=$lt_ac_sed
 
8199
    fi
 
8200
  done
 
8201
done
 
8202
 
 
8203
fi
 
8204
 
 
8205
SED=$lt_cv_path_SED
 
8206
echo "$as_me:$LINENO: result: $SED" >&5
 
8207
echo "${ECHO_T}$SED" >&6
 
8208
 
 
8209
 
 
8210
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
8211
if test "${with_gnu_ld+set}" = set; then
 
8212
  withval="$with_gnu_ld"
 
8213
  test "$withval" = no || with_gnu_ld=yes
 
8214
else
 
8215
  with_gnu_ld=no
 
8216
fi;
 
8217
ac_prog=ld
 
8218
if test "$GCC" = yes; then
 
8219
  # Check if gcc -print-prog-name=ld gives a path.
 
8220
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
8221
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
8222
  case $host in
 
8223
  *-*-mingw*)
 
8224
    # gcc leaves a trailing carriage return which upsets mingw
 
8225
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
8226
  *)
 
8227
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
8228
  esac
 
8229
  case $ac_prog in
 
8230
    # Accept absolute paths.
 
8231
    [\\/]* | ?:[\\/]*)
 
8232
      re_direlt='/[^/][^/]*/\.\./'
 
8233
      # Canonicalize the pathname of ld
 
8234
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
8235
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
8236
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
8237
      done
 
8238
      test -z "$LD" && LD="$ac_prog"
 
8239
      ;;
 
8240
  "")
 
8241
    # If it fails, then pretend we aren't using GCC.
 
8242
    ac_prog=ld
 
8243
    ;;
 
8244
  *)
 
8245
    # If it is relative, then search for the first ld in PATH.
 
8246
    with_gnu_ld=unknown
 
8247
    ;;
 
8248
  esac
 
8249
elif test "$with_gnu_ld" = yes; then
 
8250
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
8251
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
8252
else
 
8253
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
8254
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
8255
fi
 
8256
if test "${lt_cv_path_LD+set}" = set; then
 
8257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8258
else
 
8259
  if test -z "$LD"; then
 
8260
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8261
  for ac_dir in $PATH; do
 
8262
    IFS="$lt_save_ifs"
 
8263
    test -z "$ac_dir" && ac_dir=.
 
8264
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
8265
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
8266
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
8267
      # but apparently some variants of GNU ld only accept -v.
 
8268
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
8269
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
8270
      *GNU* | *'with BFD'*)
 
8271
        test "$with_gnu_ld" != no && break
 
8272
        ;;
 
8273
      *)
 
8274
        test "$with_gnu_ld" != yes && break
 
8275
        ;;
 
8276
      esac
 
8277
    fi
 
8278
  done
 
8279
  IFS="$lt_save_ifs"
 
8280
else
 
8281
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
8282
fi
 
8283
fi
 
8284
 
 
8285
LD="$lt_cv_path_LD"
 
8286
if test -n "$LD"; then
 
8287
  echo "$as_me:$LINENO: result: $LD" >&5
 
8288
echo "${ECHO_T}$LD" >&6
 
8289
else
 
8290
  echo "$as_me:$LINENO: result: no" >&5
 
8291
echo "${ECHO_T}no" >&6
 
8292
fi
 
8293
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
8294
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
8295
   { (exit 1); exit 1; }; }
 
8296
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
8297
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
8298
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
8299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8300
else
 
8301
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
8302
case `$LD -v 2>&1 </dev/null` in
 
8303
*GNU* | *'with BFD'*)
 
8304
  lt_cv_prog_gnu_ld=yes
 
8305
  ;;
 
8306
*)
 
8307
  lt_cv_prog_gnu_ld=no
 
8308
  ;;
 
8309
esac
 
8310
fi
 
8311
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
8312
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
8313
with_gnu_ld=$lt_cv_prog_gnu_ld
 
8314
 
 
8315
 
 
8316
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
8317
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
8318
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
8319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8320
else
 
8321
  lt_cv_ld_reload_flag='-r'
 
8322
fi
 
8323
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
8324
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
8325
reload_flag=$lt_cv_ld_reload_flag
 
8326
case $reload_flag in
 
8327
"" | " "*) ;;
 
8328
*) reload_flag=" $reload_flag" ;;
 
8329
esac
 
8330
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
8331
case $host_os in
 
8332
  darwin*)
 
8333
    if test "$GCC" = yes; then
 
8334
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
8335
    else
 
8336
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
8337
    fi
 
8338
    ;;
 
8339
esac
 
8340
 
 
8341
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
8342
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
8343
if test "${lt_cv_path_NM+set}" = set; then
 
8344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8345
else
 
8346
  if test -n "$NM"; then
 
8347
  # Let the user override the test.
 
8348
  lt_cv_path_NM="$NM"
 
8349
else
 
8350
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8351
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
8352
    IFS="$lt_save_ifs"
 
8353
    test -z "$ac_dir" && ac_dir=.
 
8354
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
8355
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
8356
      # Check to see if the nm accepts a BSD-compat flag.
 
8357
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
8358
      #   nm: unknown option "B" ignored
 
8359
      # Tru64's nm complains that /dev/null is an invalid object file
 
8360
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
8361
      */dev/null* | *'Invalid file or object type'*)
 
8362
        lt_cv_path_NM="$tmp_nm -B"
 
8363
        break
 
8364
        ;;
 
8365
      *)
 
8366
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
8367
        */dev/null*)
 
8368
          lt_cv_path_NM="$tmp_nm -p"
 
8369
          break
 
8370
          ;;
 
8371
        *)
 
8372
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
8373
          continue # so that we can try to find one that supports BSD flags
 
8374
          ;;
 
8375
        esac
 
8376
      esac
 
8377
    fi
 
8378
  done
 
8379
  IFS="$lt_save_ifs"
 
8380
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
8381
fi
 
8382
fi
 
8383
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
8384
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
8385
NM="$lt_cv_path_NM"
 
8386
 
 
8387
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
8388
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
8389
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
8390
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8391
else
 
8392
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
8393
lt_cv_file_magic_test_file=
 
8394
lt_cv_deplibs_check_method='unknown'
 
8395
# Need to set the preceding variable on all platforms that support
 
8396
# interlibrary dependencies.
 
8397
# 'none' -- dependencies not supported.
 
8398
# `unknown' -- same as none, but documents that we really don't know.
 
8399
# 'pass_all' -- all dependencies passed with no checks.
 
8400
# 'test_compile' -- check by making test program.
 
8401
# 'file_magic [[regex]]' -- check by looking for files in library path
 
8402
# which responds to the $file_magic_cmd with a given extended regex.
 
8403
# If you have `file' or equivalent on your system and you're not sure
 
8404
# whether `pass_all' will *always* work, you probably want this one.
 
8405
 
 
8406
case $host_os in
 
8407
aix4* | aix5*)
 
8408
  lt_cv_deplibs_check_method=pass_all
 
8409
  ;;
 
8410
 
 
8411
beos*)
 
8412
  lt_cv_deplibs_check_method=pass_all
 
8413
  ;;
 
8414
 
 
8415
bsdi[45]*)
 
8416
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
8417
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
8418
  lt_cv_file_magic_test_file=/shlib/libc.so
 
8419
  ;;
 
8420
 
 
8421
cygwin*)
 
8422
  # func_win32_libid is a shell function defined in ltmain.sh
 
8423
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
8424
  lt_cv_file_magic_cmd='func_win32_libid'
 
8425
  ;;
 
8426
 
 
8427
mingw* | pw32*)
 
8428
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
8429
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
8430
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
8431
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
8432
  ;;
 
8433
 
 
8434
darwin* | rhapsody*)
 
8435
  lt_cv_deplibs_check_method=pass_all
 
8436
  ;;
 
8437
 
 
8438
freebsd* | kfreebsd*-gnu | dragonfly*)
 
8439
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
8440
    case $host_cpu in
 
8441
    i*86 )
 
8442
      # Not sure whether the presence of OpenBSD here was a mistake.
 
8443
      # Let's accept both of them until this is cleared up.
 
8444
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
8445
      lt_cv_file_magic_cmd=/usr/bin/file
 
8446
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
8447
      ;;
 
8448
    esac
 
8449
  else
 
8450
    lt_cv_deplibs_check_method=pass_all
 
8451
  fi
 
8452
  ;;
 
8453
 
 
8454
gnu*)
 
8455
  lt_cv_deplibs_check_method=pass_all
 
8456
  ;;
 
8457
 
 
8458
hpux10.20* | hpux11*)
 
8459
  lt_cv_file_magic_cmd=/usr/bin/file
 
8460
  case $host_cpu in
 
8461
  ia64*)
 
8462
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
8463
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
8464
    ;;
 
8465
  hppa*64*)
 
8466
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
8467
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
8468
    ;;
 
8469
  *)
 
8470
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
8471
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
8472
    ;;
 
8473
  esac
 
8474
  ;;
 
8475
 
 
8476
irix5* | irix6* | nonstopux*)
 
8477
  case $LD in
 
8478
  *-32|*"-32 ") libmagic=32-bit;;
 
8479
  *-n32|*"-n32 ") libmagic=N32;;
 
8480
  *-64|*"-64 ") libmagic=64-bit;;
 
8481
  *) libmagic=never-match;;
 
8482
  esac
 
8483
  lt_cv_deplibs_check_method=pass_all
 
8484
  ;;
 
8485
 
 
8486
# This must be Linux ELF.
 
8487
linux*)
 
8488
  lt_cv_deplibs_check_method=pass_all
 
8489
  ;;
 
8490
 
 
8491
netbsd*)
 
8492
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
8493
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
8494
  else
 
8495
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
8496
  fi
 
8497
  ;;
 
8498
 
 
8499
newos6*)
 
8500
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
8501
  lt_cv_file_magic_cmd=/usr/bin/file
 
8502
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
8503
  ;;
 
8504
 
 
8505
nto-qnx*)
 
8506
  lt_cv_deplibs_check_method=unknown
 
8507
  ;;
 
8508
 
 
8509
openbsd*)
 
8510
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8511
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
8512
  else
 
8513
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
8514
  fi
 
8515
  ;;
 
8516
 
 
8517
osf3* | osf4* | osf5*)
 
8518
  lt_cv_deplibs_check_method=pass_all
 
8519
  ;;
 
8520
 
 
8521
sco3.2v5*)
 
8522
  lt_cv_deplibs_check_method=pass_all
 
8523
  ;;
 
8524
 
 
8525
solaris*)
 
8526
  lt_cv_deplibs_check_method=pass_all
 
8527
  ;;
 
8528
 
 
8529
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8530
  case $host_vendor in
 
8531
  motorola)
 
8532
    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]'
 
8533
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
8534
    ;;
 
8535
  ncr)
 
8536
    lt_cv_deplibs_check_method=pass_all
 
8537
    ;;
 
8538
  sequent)
 
8539
    lt_cv_file_magic_cmd='/bin/file'
 
8540
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
8541
    ;;
 
8542
  sni)
 
8543
    lt_cv_file_magic_cmd='/bin/file'
 
8544
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
8545
    lt_cv_file_magic_test_file=/lib/libc.so
 
8546
    ;;
 
8547
  siemens)
 
8548
    lt_cv_deplibs_check_method=pass_all
 
8549
    ;;
 
8550
  esac
 
8551
  ;;
 
8552
 
 
8553
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
8554
  lt_cv_deplibs_check_method=pass_all
 
8555
  ;;
 
8556
esac
 
8557
 
 
8558
fi
 
8559
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
8560
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
8561
file_magic_cmd=$lt_cv_file_magic_cmd
 
8562
deplibs_check_method=$lt_cv_deplibs_check_method
 
8563
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
8564
 
 
8565
 
 
8566
 
 
8567
 
 
8568
# If no C compiler was specified, use CC.
 
8569
LTCC=${LTCC-"$CC"}
 
8570
 
 
8571
# Allow CC to be a program name with arguments.
 
8572
compiler=$CC
 
8573
 
 
8574
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8575
if test "${enable_libtool_lock+set}" = set; then
 
8576
  enableval="$enable_libtool_lock"
 
8577
 
 
8578
fi;
 
8579
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8580
 
 
8581
# Some flags need to be propagated to the compiler or linker for good
 
8582
# libtool support.
 
8583
case $host in
 
8584
ia64-*-hpux*)
 
8585
  # Find out which ABI we are using.
 
8586
  echo 'int i;' > conftest.$ac_ext
 
8587
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8588
  (eval $ac_compile) 2>&5
 
8589
  ac_status=$?
 
8590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8591
  (exit $ac_status); }; then
 
8592
    case `/usr/bin/file conftest.$ac_objext` in
 
8593
    *ELF-32*)
 
8594
      HPUX_IA64_MODE="32"
 
8595
      ;;
 
8596
    *ELF-64*)
 
8597
      HPUX_IA64_MODE="64"
 
8598
      ;;
 
8599
    esac
 
8600
  fi
 
8601
  rm -rf conftest*
 
8602
  ;;
 
8603
*-*-irix6*)
 
8604
  # Find out which ABI we are using.
 
8605
  echo '#line 8605 "configure"' > conftest.$ac_ext
 
8606
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8607
  (eval $ac_compile) 2>&5
 
8608
  ac_status=$?
 
8609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8610
  (exit $ac_status); }; then
 
8611
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
8612
    case `/usr/bin/file conftest.$ac_objext` in
 
8613
    *32-bit*)
 
8614
      LD="${LD-ld} -melf32bsmip"
 
8615
      ;;
 
8616
    *N32*)
 
8617
      LD="${LD-ld} -melf32bmipn32"
 
8618
      ;;
 
8619
    *64-bit*)
 
8620
      LD="${LD-ld} -melf64bmip"
 
8621
      ;;
 
8622
    esac
 
8623
   else
 
8624
    case `/usr/bin/file conftest.$ac_objext` in
 
8625
    *32-bit*)
 
8626
      LD="${LD-ld} -32"
 
8627
      ;;
 
8628
    *N32*)
 
8629
      LD="${LD-ld} -n32"
 
8630
      ;;
 
8631
    *64-bit*)
 
8632
      LD="${LD-ld} -64"
 
8633
      ;;
 
8634
    esac
 
8635
   fi
 
8636
  fi
 
8637
  rm -rf conftest*
 
8638
  ;;
 
8639
 
 
8640
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
8641
  # Find out which ABI we are using.
 
8642
  echo 'int i;' > conftest.$ac_ext
 
8643
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8644
  (eval $ac_compile) 2>&5
 
8645
  ac_status=$?
 
8646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8647
  (exit $ac_status); }; then
 
8648
    case `/usr/bin/file conftest.o` in
 
8649
    *32-bit*)
 
8650
      case $host in
 
8651
        x86_64-*linux*)
 
8652
          LD="${LD-ld} -m elf_i386"
 
8653
          ;;
 
8654
        ppc64-*linux*|powerpc64-*linux*)
 
8655
          LD="${LD-ld} -m elf32ppclinux"
 
8656
          ;;
 
8657
        s390x-*linux*)
 
8658
          LD="${LD-ld} -m elf_s390"
 
8659
          ;;
 
8660
        sparc64-*linux*)
 
8661
          LD="${LD-ld} -m elf32_sparc"
 
8662
          ;;
 
8663
      esac
 
8664
      ;;
 
8665
    *64-bit*)
 
8666
      case $host in
 
8667
        x86_64-*linux*)
 
8668
          LD="${LD-ld} -m elf_x86_64"
 
8669
          ;;
 
8670
        ppc*-*linux*|powerpc*-*linux*)
 
8671
          LD="${LD-ld} -m elf64ppc"
 
8672
          ;;
 
8673
        s390*-*linux*)
 
8674
          LD="${LD-ld} -m elf64_s390"
 
8675
          ;;
 
8676
        sparc*-*linux*)
 
8677
          LD="${LD-ld} -m elf64_sparc"
 
8678
          ;;
 
8679
      esac
 
8680
      ;;
 
8681
    esac
 
8682
  fi
 
8683
  rm -rf conftest*
 
8684
  ;;
 
8685
 
 
8686
*-*-sco3.2v5*)
 
8687
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
8688
  SAVE_CFLAGS="$CFLAGS"
 
8689
  CFLAGS="$CFLAGS -belf"
 
8690
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
8691
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
8692
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
8693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8694
else
 
8695
  ac_ext=c
 
8696
ac_cpp='$CPP $CPPFLAGS'
 
8697
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8698
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8699
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8700
 
 
8701
     cat >conftest.$ac_ext <<_ACEOF
 
8702
/* confdefs.h.  */
 
8703
_ACEOF
 
8704
cat confdefs.h >>conftest.$ac_ext
 
8705
cat >>conftest.$ac_ext <<_ACEOF
 
8706
/* end confdefs.h.  */
 
8707
 
 
8708
int
 
8709
main ()
 
8710
{
 
8711
 
 
8712
  ;
 
8713
  return 0;
 
8714
}
 
8715
_ACEOF
 
8716
rm -f conftest.$ac_objext conftest$ac_exeext
 
8717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8718
  (eval $ac_link) 2>conftest.er1
 
8719
  ac_status=$?
 
8720
  grep -v '^ *+' conftest.er1 >conftest.err
 
8721
  rm -f conftest.er1
 
8722
  cat conftest.err >&5
 
8723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8724
  (exit $ac_status); } &&
 
8725
         { ac_try='test -z "$ac_c_werror_flag"
 
8726
                         || test ! -s conftest.err'
 
8727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8728
  (eval $ac_try) 2>&5
 
8729
  ac_status=$?
 
8730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8731
  (exit $ac_status); }; } &&
 
8732
         { ac_try='test -s conftest$ac_exeext'
 
8733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8734
  (eval $ac_try) 2>&5
 
8735
  ac_status=$?
 
8736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8737
  (exit $ac_status); }; }; then
 
8738
  lt_cv_cc_needs_belf=yes
 
8739
else
 
8740
  echo "$as_me: failed program was:" >&5
 
8741
sed 's/^/| /' conftest.$ac_ext >&5
 
8742
 
 
8743
lt_cv_cc_needs_belf=no
 
8744
fi
 
8745
rm -f conftest.err conftest.$ac_objext \
 
8746
      conftest$ac_exeext conftest.$ac_ext
 
8747
     ac_ext=c
 
8748
ac_cpp='$CPP $CPPFLAGS'
 
8749
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8750
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8751
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8752
 
 
8753
fi
 
8754
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
8755
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
8756
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
8757
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
8758
    CFLAGS="$SAVE_CFLAGS"
 
8759
  fi
 
8760
  ;;
 
8761
 
 
8762
esac
 
8763
 
 
8764
need_locks="$enable_libtool_lock"
 
8765
 
 
8766
 
 
8767
 
 
8768
for ac_header in dlfcn.h
 
8769
do
 
8770
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8771
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8772
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8773
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8774
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8776
fi
 
8777
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8778
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8779
else
 
8780
  # Is the header compilable?
 
8781
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8782
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8783
cat >conftest.$ac_ext <<_ACEOF
 
8784
/* confdefs.h.  */
 
8785
_ACEOF
 
8786
cat confdefs.h >>conftest.$ac_ext
 
8787
cat >>conftest.$ac_ext <<_ACEOF
 
8788
/* end confdefs.h.  */
 
8789
$ac_includes_default
 
8790
#include <$ac_header>
 
8791
_ACEOF
 
8792
rm -f conftest.$ac_objext
 
8793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8794
  (eval $ac_compile) 2>conftest.er1
 
8795
  ac_status=$?
 
8796
  grep -v '^ *+' conftest.er1 >conftest.err
 
8797
  rm -f conftest.er1
 
8798
  cat conftest.err >&5
 
8799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8800
  (exit $ac_status); } &&
 
8801
         { ac_try='test -z "$ac_c_werror_flag"
 
8802
                         || test ! -s conftest.err'
 
8803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8804
  (eval $ac_try) 2>&5
 
8805
  ac_status=$?
 
8806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8807
  (exit $ac_status); }; } &&
 
8808
         { ac_try='test -s conftest.$ac_objext'
 
8809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8810
  (eval $ac_try) 2>&5
 
8811
  ac_status=$?
 
8812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8813
  (exit $ac_status); }; }; then
 
8814
  ac_header_compiler=yes
 
8815
else
 
8816
  echo "$as_me: failed program was:" >&5
 
8817
sed 's/^/| /' conftest.$ac_ext >&5
 
8818
 
 
8819
ac_header_compiler=no
 
8820
fi
 
8821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8822
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8823
echo "${ECHO_T}$ac_header_compiler" >&6
 
8824
 
 
8825
# Is the header present?
 
8826
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8827
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8828
cat >conftest.$ac_ext <<_ACEOF
 
8829
/* confdefs.h.  */
 
8830
_ACEOF
 
8831
cat confdefs.h >>conftest.$ac_ext
 
8832
cat >>conftest.$ac_ext <<_ACEOF
 
8833
/* end confdefs.h.  */
 
8834
#include <$ac_header>
 
8835
_ACEOF
 
8836
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8837
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8838
  ac_status=$?
 
8839
  grep -v '^ *+' conftest.er1 >conftest.err
 
8840
  rm -f conftest.er1
 
8841
  cat conftest.err >&5
 
8842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8843
  (exit $ac_status); } >/dev/null; then
 
8844
  if test -s conftest.err; then
 
8845
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8846
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8847
  else
 
8848
    ac_cpp_err=
 
8849
  fi
 
8850
else
 
8851
  ac_cpp_err=yes
 
8852
fi
 
8853
if test -z "$ac_cpp_err"; then
 
8854
  ac_header_preproc=yes
 
8855
else
 
8856
  echo "$as_me: failed program was:" >&5
 
8857
sed 's/^/| /' conftest.$ac_ext >&5
 
8858
 
 
8859
  ac_header_preproc=no
 
8860
fi
 
8861
rm -f conftest.err conftest.$ac_ext
 
8862
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8863
echo "${ECHO_T}$ac_header_preproc" >&6
 
8864
 
 
8865
# So?  What about this header?
 
8866
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8867
  yes:no: )
 
8868
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8869
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8870
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8871
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8872
    ac_header_preproc=yes
 
8873
    ;;
 
8874
  no:yes:* )
 
8875
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8876
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8877
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8878
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8879
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8880
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8881
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8882
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8883
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8884
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8885
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8886
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8887
    (
 
8888
      cat <<\_ASBOX
 
8889
## ------------------------------------------ ##
 
8890
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8891
## ------------------------------------------ ##
 
8892
_ASBOX
 
8893
    ) |
 
8894
      sed "s/^/$as_me: WARNING:     /" >&2
 
8895
    ;;
 
8896
esac
 
8897
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8898
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8899
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8901
else
 
8902
  eval "$as_ac_Header=\$ac_header_preproc"
 
8903
fi
 
8904
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8905
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8906
 
 
8907
fi
 
8908
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8909
  cat >>confdefs.h <<_ACEOF
 
8910
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8911
_ACEOF
 
8912
 
 
8913
fi
 
8914
 
 
8915
done
 
8916
 
 
8917
ac_ext=cc
 
8918
ac_cpp='$CXXCPP $CPPFLAGS'
 
8919
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8920
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8921
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
8922
if test -n "$ac_tool_prefix"; then
 
8923
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
8924
  do
 
8925
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
8926
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
8927
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8929
if test "${ac_cv_prog_CXX+set}" = set; then
 
8930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8931
else
 
8932
  if test -n "$CXX"; then
 
8933
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
8934
else
 
8935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8936
for as_dir in $PATH
 
8937
do
 
8938
  IFS=$as_save_IFS
 
8939
  test -z "$as_dir" && as_dir=.
 
8940
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8941
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8942
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
8943
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8944
    break 2
 
8945
  fi
 
8946
done
 
8947
done
 
8948
 
 
8949
fi
 
8950
fi
 
8951
CXX=$ac_cv_prog_CXX
 
8952
if test -n "$CXX"; then
 
8953
  echo "$as_me:$LINENO: result: $CXX" >&5
 
8954
echo "${ECHO_T}$CXX" >&6
 
8955
else
 
8956
  echo "$as_me:$LINENO: result: no" >&5
 
8957
echo "${ECHO_T}no" >&6
 
8958
fi
 
8959
 
 
8960
    test -n "$CXX" && break
 
8961
  done
 
8962
fi
 
8963
if test -z "$CXX"; then
 
8964
  ac_ct_CXX=$CXX
 
8965
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
8966
do
 
8967
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
8968
set dummy $ac_prog; ac_word=$2
 
8969
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8971
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
8972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8973
else
 
8974
  if test -n "$ac_ct_CXX"; then
 
8975
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
8976
else
 
8977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8978
for as_dir in $PATH
 
8979
do
 
8980
  IFS=$as_save_IFS
 
8981
  test -z "$as_dir" && as_dir=.
 
8982
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8983
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8984
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
8985
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8986
    break 2
 
8987
  fi
 
8988
done
 
8989
done
 
8990
 
 
8991
fi
 
8992
fi
 
8993
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
8994
if test -n "$ac_ct_CXX"; then
 
8995
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
8996
echo "${ECHO_T}$ac_ct_CXX" >&6
 
8997
else
 
8998
  echo "$as_me:$LINENO: result: no" >&5
 
8999
echo "${ECHO_T}no" >&6
 
9000
fi
 
9001
 
 
9002
  test -n "$ac_ct_CXX" && break
 
9003
done
 
9004
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
9005
 
 
9006
  CXX=$ac_ct_CXX
 
9007
fi
 
9008
 
 
9009
 
 
9010
# Provide some information about the compiler.
 
9011
echo "$as_me:$LINENO:" \
 
9012
     "checking for C++ compiler version" >&5
 
9013
ac_compiler=`set X $ac_compile; echo $2`
 
9014
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
9015
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
9016
  ac_status=$?
 
9017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9018
  (exit $ac_status); }
 
9019
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
9020
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
9021
  ac_status=$?
 
9022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9023
  (exit $ac_status); }
 
9024
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
9025
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
9026
  ac_status=$?
 
9027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9028
  (exit $ac_status); }
 
9029
 
 
9030
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
9031
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
9032
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
9033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9034
else
 
9035
  cat >conftest.$ac_ext <<_ACEOF
 
9036
/* confdefs.h.  */
 
9037
_ACEOF
 
9038
cat confdefs.h >>conftest.$ac_ext
 
9039
cat >>conftest.$ac_ext <<_ACEOF
 
9040
/* end confdefs.h.  */
 
9041
 
 
9042
int
 
9043
main ()
 
9044
{
 
9045
#ifndef __GNUC__
 
9046
       choke me
 
9047
#endif
 
9048
 
 
9049
  ;
 
9050
  return 0;
 
9051
}
 
9052
_ACEOF
 
9053
rm -f conftest.$ac_objext
 
9054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9055
  (eval $ac_compile) 2>conftest.er1
 
9056
  ac_status=$?
 
9057
  grep -v '^ *+' conftest.er1 >conftest.err
 
9058
  rm -f conftest.er1
 
9059
  cat conftest.err >&5
 
9060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9061
  (exit $ac_status); } &&
 
9062
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9063
                         || test ! -s conftest.err'
 
9064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9065
  (eval $ac_try) 2>&5
 
9066
  ac_status=$?
 
9067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9068
  (exit $ac_status); }; } &&
 
9069
         { ac_try='test -s conftest.$ac_objext'
 
9070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9071
  (eval $ac_try) 2>&5
 
9072
  ac_status=$?
 
9073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9074
  (exit $ac_status); }; }; then
 
9075
  ac_compiler_gnu=yes
 
9076
else
 
9077
  echo "$as_me: failed program was:" >&5
 
9078
sed 's/^/| /' conftest.$ac_ext >&5
 
9079
 
 
9080
ac_compiler_gnu=no
 
9081
fi
 
9082
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9083
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
9084
 
 
9085
fi
 
9086
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
9087
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
9088
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
9089
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
9090
ac_save_CXXFLAGS=$CXXFLAGS
 
9091
CXXFLAGS="-g"
 
9092
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
9093
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
9094
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
9095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9096
else
 
9097
  cat >conftest.$ac_ext <<_ACEOF
 
9098
/* confdefs.h.  */
 
9099
_ACEOF
 
9100
cat confdefs.h >>conftest.$ac_ext
 
9101
cat >>conftest.$ac_ext <<_ACEOF
 
9102
/* end confdefs.h.  */
 
9103
 
 
9104
int
 
9105
main ()
 
9106
{
 
9107
 
 
9108
  ;
 
9109
  return 0;
 
9110
}
 
9111
_ACEOF
 
9112
rm -f conftest.$ac_objext
 
9113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9114
  (eval $ac_compile) 2>conftest.er1
 
9115
  ac_status=$?
 
9116
  grep -v '^ *+' conftest.er1 >conftest.err
 
9117
  rm -f conftest.er1
 
9118
  cat conftest.err >&5
 
9119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9120
  (exit $ac_status); } &&
 
9121
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9122
                         || test ! -s conftest.err'
 
9123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9124
  (eval $ac_try) 2>&5
 
9125
  ac_status=$?
 
9126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9127
  (exit $ac_status); }; } &&
 
9128
         { ac_try='test -s conftest.$ac_objext'
 
9129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9130
  (eval $ac_try) 2>&5
 
9131
  ac_status=$?
 
9132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9133
  (exit $ac_status); }; }; then
 
9134
  ac_cv_prog_cxx_g=yes
 
9135
else
 
9136
  echo "$as_me: failed program was:" >&5
 
9137
sed 's/^/| /' conftest.$ac_ext >&5
 
9138
 
 
9139
ac_cv_prog_cxx_g=no
 
9140
fi
 
9141
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9142
fi
 
9143
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
9144
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
9145
if test "$ac_test_CXXFLAGS" = set; then
 
9146
  CXXFLAGS=$ac_save_CXXFLAGS
 
9147
elif test $ac_cv_prog_cxx_g = yes; then
 
9148
  if test "$GXX" = yes; then
 
9149
    CXXFLAGS="-g -O2"
 
9150
  else
 
9151
    CXXFLAGS="-g"
 
9152
  fi
 
9153
else
 
9154
  if test "$GXX" = yes; then
 
9155
    CXXFLAGS="-O2"
 
9156
  else
 
9157
    CXXFLAGS=
 
9158
  fi
 
9159
fi
 
9160
for ac_declaration in \
 
9161
   '' \
 
9162
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
9163
   'extern "C" void std::exit (int); using std::exit;' \
 
9164
   'extern "C" void exit (int) throw ();' \
 
9165
   'extern "C" void exit (int);' \
 
9166
   'void exit (int);'
 
9167
do
 
9168
  cat >conftest.$ac_ext <<_ACEOF
 
9169
/* confdefs.h.  */
 
9170
_ACEOF
 
9171
cat confdefs.h >>conftest.$ac_ext
 
9172
cat >>conftest.$ac_ext <<_ACEOF
 
9173
/* end confdefs.h.  */
 
9174
$ac_declaration
 
9175
#include <stdlib.h>
 
9176
int
 
9177
main ()
 
9178
{
 
9179
exit (42);
 
9180
  ;
 
9181
  return 0;
 
9182
}
 
9183
_ACEOF
 
9184
rm -f conftest.$ac_objext
 
9185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9186
  (eval $ac_compile) 2>conftest.er1
 
9187
  ac_status=$?
 
9188
  grep -v '^ *+' conftest.er1 >conftest.err
 
9189
  rm -f conftest.er1
 
9190
  cat conftest.err >&5
 
9191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9192
  (exit $ac_status); } &&
 
9193
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9194
                         || test ! -s conftest.err'
 
9195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9196
  (eval $ac_try) 2>&5
 
9197
  ac_status=$?
 
9198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9199
  (exit $ac_status); }; } &&
 
9200
         { ac_try='test -s conftest.$ac_objext'
 
9201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9202
  (eval $ac_try) 2>&5
 
9203
  ac_status=$?
 
9204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9205
  (exit $ac_status); }; }; then
 
9206
  :
 
9207
else
 
9208
  echo "$as_me: failed program was:" >&5
 
9209
sed 's/^/| /' conftest.$ac_ext >&5
 
9210
 
 
9211
continue
 
9212
fi
 
9213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9214
  cat >conftest.$ac_ext <<_ACEOF
 
9215
/* confdefs.h.  */
 
9216
_ACEOF
 
9217
cat confdefs.h >>conftest.$ac_ext
 
9218
cat >>conftest.$ac_ext <<_ACEOF
 
9219
/* end confdefs.h.  */
 
9220
$ac_declaration
 
9221
int
 
9222
main ()
 
9223
{
 
9224
exit (42);
 
9225
  ;
 
9226
  return 0;
 
9227
}
 
9228
_ACEOF
 
9229
rm -f conftest.$ac_objext
 
9230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9231
  (eval $ac_compile) 2>conftest.er1
 
9232
  ac_status=$?
 
9233
  grep -v '^ *+' conftest.er1 >conftest.err
 
9234
  rm -f conftest.er1
 
9235
  cat conftest.err >&5
 
9236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9237
  (exit $ac_status); } &&
 
9238
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9239
                         || test ! -s conftest.err'
 
9240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9241
  (eval $ac_try) 2>&5
 
9242
  ac_status=$?
 
9243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9244
  (exit $ac_status); }; } &&
 
9245
         { ac_try='test -s conftest.$ac_objext'
 
9246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9247
  (eval $ac_try) 2>&5
 
9248
  ac_status=$?
 
9249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9250
  (exit $ac_status); }; }; then
 
9251
  break
 
9252
else
 
9253
  echo "$as_me: failed program was:" >&5
 
9254
sed 's/^/| /' conftest.$ac_ext >&5
 
9255
 
 
9256
fi
 
9257
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9258
done
 
9259
rm -f conftest*
 
9260
if test -n "$ac_declaration"; then
 
9261
  echo '#ifdef __cplusplus' >>confdefs.h
 
9262
  echo $ac_declaration      >>confdefs.h
 
9263
  echo '#endif'             >>confdefs.h
 
9264
fi
 
9265
 
 
9266
ac_ext=cc
 
9267
ac_cpp='$CXXCPP $CPPFLAGS'
 
9268
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9269
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9270
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9271
 
 
9272
 
 
9273
 
 
9274
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9275
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9276
    (test "X$CXX" != "Xg++"))) ; then
 
9277
  ac_ext=cc
 
9278
ac_cpp='$CXXCPP $CPPFLAGS'
 
9279
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9280
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9281
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9282
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
9283
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
9284
if test -z "$CXXCPP"; then
 
9285
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
9286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9287
else
 
9288
      # Double quotes because CXXCPP needs to be expanded
 
9289
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
9290
    do
 
9291
      ac_preproc_ok=false
 
9292
for ac_cxx_preproc_warn_flag in '' yes
 
9293
do
 
9294
  # Use a header file that comes with gcc, so configuring glibc
 
9295
  # with a fresh cross-compiler works.
 
9296
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9297
  # <limits.h> exists even on freestanding compilers.
 
9298
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
9299
  # not just through cpp. "Syntax error" is here to catch this case.
 
9300
  cat >conftest.$ac_ext <<_ACEOF
 
9301
/* confdefs.h.  */
 
9302
_ACEOF
 
9303
cat confdefs.h >>conftest.$ac_ext
 
9304
cat >>conftest.$ac_ext <<_ACEOF
 
9305
/* end confdefs.h.  */
 
9306
#ifdef __STDC__
 
9307
# include <limits.h>
 
9308
#else
 
9309
# include <assert.h>
 
9310
#endif
 
9311
                     Syntax error
 
9312
_ACEOF
 
9313
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9314
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9315
  ac_status=$?
 
9316
  grep -v '^ *+' conftest.er1 >conftest.err
 
9317
  rm -f conftest.er1
 
9318
  cat conftest.err >&5
 
9319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9320
  (exit $ac_status); } >/dev/null; then
 
9321
  if test -s conftest.err; then
 
9322
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
9323
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
9324
  else
 
9325
    ac_cpp_err=
 
9326
  fi
 
9327
else
 
9328
  ac_cpp_err=yes
 
9329
fi
 
9330
if test -z "$ac_cpp_err"; then
 
9331
  :
 
9332
else
 
9333
  echo "$as_me: failed program was:" >&5
 
9334
sed 's/^/| /' conftest.$ac_ext >&5
 
9335
 
 
9336
  # Broken: fails on valid input.
 
9337
continue
 
9338
fi
 
9339
rm -f conftest.err conftest.$ac_ext
 
9340
 
 
9341
  # OK, works on sane cases.  Now check whether non-existent headers
 
9342
  # can be detected and how.
 
9343
  cat >conftest.$ac_ext <<_ACEOF
 
9344
/* confdefs.h.  */
 
9345
_ACEOF
 
9346
cat confdefs.h >>conftest.$ac_ext
 
9347
cat >>conftest.$ac_ext <<_ACEOF
 
9348
/* end confdefs.h.  */
 
9349
#include <ac_nonexistent.h>
 
9350
_ACEOF
 
9351
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9352
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9353
  ac_status=$?
 
9354
  grep -v '^ *+' conftest.er1 >conftest.err
 
9355
  rm -f conftest.er1
 
9356
  cat conftest.err >&5
 
9357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9358
  (exit $ac_status); } >/dev/null; then
 
9359
  if test -s conftest.err; then
 
9360
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
9361
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
9362
  else
 
9363
    ac_cpp_err=
 
9364
  fi
 
9365
else
 
9366
  ac_cpp_err=yes
 
9367
fi
 
9368
if test -z "$ac_cpp_err"; then
 
9369
  # Broken: success on invalid input.
 
9370
continue
 
9371
else
 
9372
  echo "$as_me: failed program was:" >&5
 
9373
sed 's/^/| /' conftest.$ac_ext >&5
 
9374
 
 
9375
  # Passes both tests.
 
9376
ac_preproc_ok=:
 
9377
break
 
9378
fi
 
9379
rm -f conftest.err conftest.$ac_ext
 
9380
 
 
9381
done
 
9382
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
9383
rm -f conftest.err conftest.$ac_ext
 
9384
if $ac_preproc_ok; then
 
9385
  break
 
9386
fi
 
9387
 
 
9388
    done
 
9389
    ac_cv_prog_CXXCPP=$CXXCPP
 
9390
 
 
9391
fi
 
9392
  CXXCPP=$ac_cv_prog_CXXCPP
 
9393
else
 
9394
  ac_cv_prog_CXXCPP=$CXXCPP
 
9395
fi
 
9396
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
9397
echo "${ECHO_T}$CXXCPP" >&6
 
9398
ac_preproc_ok=false
 
9399
for ac_cxx_preproc_warn_flag in '' yes
 
9400
do
 
9401
  # Use a header file that comes with gcc, so configuring glibc
 
9402
  # with a fresh cross-compiler works.
 
9403
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9404
  # <limits.h> exists even on freestanding compilers.
 
9405
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
9406
  # not just through cpp. "Syntax error" is here to catch this case.
 
9407
  cat >conftest.$ac_ext <<_ACEOF
 
9408
/* confdefs.h.  */
 
9409
_ACEOF
 
9410
cat confdefs.h >>conftest.$ac_ext
 
9411
cat >>conftest.$ac_ext <<_ACEOF
 
9412
/* end confdefs.h.  */
 
9413
#ifdef __STDC__
 
9414
# include <limits.h>
 
9415
#else
 
9416
# include <assert.h>
 
9417
#endif
 
9418
                     Syntax error
 
9419
_ACEOF
 
9420
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9421
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9422
  ac_status=$?
 
9423
  grep -v '^ *+' conftest.er1 >conftest.err
 
9424
  rm -f conftest.er1
 
9425
  cat conftest.err >&5
 
9426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9427
  (exit $ac_status); } >/dev/null; then
 
9428
  if test -s conftest.err; then
 
9429
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
9430
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
9431
  else
 
9432
    ac_cpp_err=
 
9433
  fi
 
9434
else
 
9435
  ac_cpp_err=yes
 
9436
fi
 
9437
if test -z "$ac_cpp_err"; then
 
9438
  :
 
9439
else
 
9440
  echo "$as_me: failed program was:" >&5
 
9441
sed 's/^/| /' conftest.$ac_ext >&5
 
9442
 
 
9443
  # Broken: fails on valid input.
 
9444
continue
 
9445
fi
 
9446
rm -f conftest.err conftest.$ac_ext
 
9447
 
 
9448
  # OK, works on sane cases.  Now check whether non-existent headers
 
9449
  # can be detected and how.
 
9450
  cat >conftest.$ac_ext <<_ACEOF
 
9451
/* confdefs.h.  */
 
9452
_ACEOF
 
9453
cat confdefs.h >>conftest.$ac_ext
 
9454
cat >>conftest.$ac_ext <<_ACEOF
 
9455
/* end confdefs.h.  */
 
9456
#include <ac_nonexistent.h>
 
9457
_ACEOF
 
9458
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9459
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9460
  ac_status=$?
 
9461
  grep -v '^ *+' conftest.er1 >conftest.err
 
9462
  rm -f conftest.er1
 
9463
  cat conftest.err >&5
 
9464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9465
  (exit $ac_status); } >/dev/null; then
 
9466
  if test -s conftest.err; then
 
9467
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
9468
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
9469
  else
 
9470
    ac_cpp_err=
 
9471
  fi
 
9472
else
 
9473
  ac_cpp_err=yes
 
9474
fi
 
9475
if test -z "$ac_cpp_err"; then
 
9476
  # Broken: success on invalid input.
 
9477
continue
 
9478
else
 
9479
  echo "$as_me: failed program was:" >&5
 
9480
sed 's/^/| /' conftest.$ac_ext >&5
 
9481
 
 
9482
  # Passes both tests.
 
9483
ac_preproc_ok=:
 
9484
break
 
9485
fi
 
9486
rm -f conftest.err conftest.$ac_ext
 
9487
 
 
9488
done
 
9489
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
9490
rm -f conftest.err conftest.$ac_ext
 
9491
if $ac_preproc_ok; then
 
9492
  :
 
9493
else
 
9494
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
9495
See \`config.log' for more details." >&5
 
9496
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
9497
See \`config.log' for more details." >&2;}
 
9498
   { (exit 1); exit 1; }; }
 
9499
fi
 
9500
 
 
9501
ac_ext=cc
 
9502
ac_cpp='$CXXCPP $CPPFLAGS'
 
9503
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9504
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9505
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9506
 
 
9507
fi
 
9508
 
 
9509
 
 
9510
ac_ext=f
 
9511
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
9512
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9513
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
9514
if test -n "$ac_tool_prefix"; then
 
9515
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
9516
  do
 
9517
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
9518
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
9519
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9520
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9521
if test "${ac_cv_prog_F77+set}" = set; then
 
9522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9523
else
 
9524
  if test -n "$F77"; then
 
9525
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
9526
else
 
9527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9528
for as_dir in $PATH
 
9529
do
 
9530
  IFS=$as_save_IFS
 
9531
  test -z "$as_dir" && as_dir=.
 
9532
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9533
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9534
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
9535
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9536
    break 2
 
9537
  fi
 
9538
done
 
9539
done
 
9540
 
 
9541
fi
 
9542
fi
 
9543
F77=$ac_cv_prog_F77
 
9544
if test -n "$F77"; then
 
9545
  echo "$as_me:$LINENO: result: $F77" >&5
 
9546
echo "${ECHO_T}$F77" >&6
 
9547
else
 
9548
  echo "$as_me:$LINENO: result: no" >&5
 
9549
echo "${ECHO_T}no" >&6
 
9550
fi
 
9551
 
 
9552
    test -n "$F77" && break
 
9553
  done
 
9554
fi
 
9555
if test -z "$F77"; then
 
9556
  ac_ct_F77=$F77
 
9557
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
9558
do
 
9559
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
9560
set dummy $ac_prog; ac_word=$2
 
9561
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9562
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9563
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
9564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9565
else
 
9566
  if test -n "$ac_ct_F77"; then
 
9567
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
9568
else
 
9569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9570
for as_dir in $PATH
 
9571
do
 
9572
  IFS=$as_save_IFS
 
9573
  test -z "$as_dir" && as_dir=.
 
9574
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9575
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9576
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
9577
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9578
    break 2
 
9579
  fi
 
9580
done
 
9581
done
 
9582
 
 
9583
fi
 
9584
fi
 
9585
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
9586
if test -n "$ac_ct_F77"; then
 
9587
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
9588
echo "${ECHO_T}$ac_ct_F77" >&6
 
9589
else
 
9590
  echo "$as_me:$LINENO: result: no" >&5
 
9591
echo "${ECHO_T}no" >&6
 
9592
fi
 
9593
 
 
9594
  test -n "$ac_ct_F77" && break
 
9595
done
 
9596
 
 
9597
  F77=$ac_ct_F77
 
9598
fi
 
9599
 
 
9600
 
 
9601
# Provide some information about the compiler.
 
9602
echo "$as_me:9602:" \
 
9603
     "checking for Fortran 77 compiler version" >&5
 
9604
ac_compiler=`set X $ac_compile; echo $2`
 
9605
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
9606
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
9607
  ac_status=$?
 
9608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9609
  (exit $ac_status); }
 
9610
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
9611
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
9612
  ac_status=$?
 
9613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9614
  (exit $ac_status); }
 
9615
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
9616
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
9617
  ac_status=$?
 
9618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9619
  (exit $ac_status); }
 
9620
rm -f a.out
 
9621
 
 
9622
# If we don't use `.F' as extension, the preprocessor is not run on the
 
9623
# input file.  (Note that this only needs to work for GNU compilers.)
 
9624
ac_save_ext=$ac_ext
 
9625
ac_ext=F
 
9626
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
9627
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
9628
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
9629
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9630
else
 
9631
  cat >conftest.$ac_ext <<_ACEOF
 
9632
      program main
 
9633
#ifndef __GNUC__
 
9634
       choke me
 
9635
#endif
 
9636
 
 
9637
      end
 
9638
_ACEOF
 
9639
rm -f conftest.$ac_objext
 
9640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9641
  (eval $ac_compile) 2>conftest.er1
 
9642
  ac_status=$?
 
9643
  grep -v '^ *+' conftest.er1 >conftest.err
 
9644
  rm -f conftest.er1
 
9645
  cat conftest.err >&5
 
9646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9647
  (exit $ac_status); } &&
 
9648
         { ac_try='test -z "$ac_f77_werror_flag"
 
9649
                         || test ! -s conftest.err'
 
9650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9651
  (eval $ac_try) 2>&5
 
9652
  ac_status=$?
 
9653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9654
  (exit $ac_status); }; } &&
 
9655
         { ac_try='test -s conftest.$ac_objext'
 
9656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9657
  (eval $ac_try) 2>&5
 
9658
  ac_status=$?
 
9659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9660
  (exit $ac_status); }; }; then
 
9661
  ac_compiler_gnu=yes
 
9662
else
 
9663
  echo "$as_me: failed program was:" >&5
 
9664
sed 's/^/| /' conftest.$ac_ext >&5
 
9665
 
 
9666
ac_compiler_gnu=no
 
9667
fi
 
9668
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9669
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
9670
 
 
9671
fi
 
9672
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
9673
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
9674
ac_ext=$ac_save_ext
 
9675
ac_test_FFLAGS=${FFLAGS+set}
 
9676
ac_save_FFLAGS=$FFLAGS
 
9677
FFLAGS=
 
9678
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
9679
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
9680
if test "${ac_cv_prog_f77_g+set}" = set; then
 
9681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9682
else
 
9683
  FFLAGS=-g
 
9684
cat >conftest.$ac_ext <<_ACEOF
 
9685
      program main
 
9686
 
 
9687
      end
 
9688
_ACEOF
 
9689
rm -f conftest.$ac_objext
 
9690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9691
  (eval $ac_compile) 2>conftest.er1
 
9692
  ac_status=$?
 
9693
  grep -v '^ *+' conftest.er1 >conftest.err
 
9694
  rm -f conftest.er1
 
9695
  cat conftest.err >&5
 
9696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9697
  (exit $ac_status); } &&
 
9698
         { ac_try='test -z "$ac_f77_werror_flag"
 
9699
                         || test ! -s conftest.err'
 
9700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9701
  (eval $ac_try) 2>&5
 
9702
  ac_status=$?
 
9703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9704
  (exit $ac_status); }; } &&
 
9705
         { ac_try='test -s conftest.$ac_objext'
 
9706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9707
  (eval $ac_try) 2>&5
 
9708
  ac_status=$?
 
9709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9710
  (exit $ac_status); }; }; then
 
9711
  ac_cv_prog_f77_g=yes
 
9712
else
 
9713
  echo "$as_me: failed program was:" >&5
 
9714
sed 's/^/| /' conftest.$ac_ext >&5
 
9715
 
 
9716
ac_cv_prog_f77_g=no
 
9717
fi
 
9718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9719
 
 
9720
fi
 
9721
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
9722
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
9723
if test "$ac_test_FFLAGS" = set; then
 
9724
  FFLAGS=$ac_save_FFLAGS
 
9725
elif test $ac_cv_prog_f77_g = yes; then
 
9726
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
9727
    FFLAGS="-g -O2"
 
9728
  else
 
9729
    FFLAGS="-g"
 
9730
  fi
 
9731
else
 
9732
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
9733
    FFLAGS="-O2"
 
9734
  else
 
9735
    FFLAGS=
 
9736
  fi
 
9737
fi
 
9738
 
 
9739
G77=`test $ac_compiler_gnu = yes && echo yes`
 
9740
ac_ext=c
 
9741
ac_cpp='$CPP $CPPFLAGS'
 
9742
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9743
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9744
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9745
 
 
9746
 
 
9747
 
 
9748
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
9749
 
 
9750
# find the maximum length of command line arguments
 
9751
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
9752
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
9753
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
9754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9755
else
 
9756
    i=0
 
9757
  teststring="ABCD"
 
9758
 
 
9759
  case $build_os in
 
9760
  msdosdjgpp*)
 
9761
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
9762
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
9763
    # during glob expansion).  Even if it were fixed, the result of this
 
9764
    # check would be larger than it should be.
 
9765
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
9766
    ;;
 
9767
 
 
9768
  gnu*)
 
9769
    # Under GNU Hurd, this test is not required because there is
 
9770
    # no limit to the length of command line arguments.
 
9771
    # Libtool will interpret -1 as no limit whatsoever
 
9772
    lt_cv_sys_max_cmd_len=-1;
 
9773
    ;;
 
9774
 
 
9775
  cygwin* | mingw*)
 
9776
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
9777
    # about 5 minutes as the teststring grows exponentially.
 
9778
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
9779
    # you end up with a "frozen" computer, even though with patience
 
9780
    # the test eventually succeeds (with a max line length of 256k).
 
9781
    # Instead, let's just punt: use the minimum linelength reported by
 
9782
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
9783
    lt_cv_sys_max_cmd_len=8192;
 
9784
    ;;
 
9785
 
 
9786
  amigaos*)
 
9787
    # On AmigaOS with pdksh, this test takes hours, literally.
 
9788
    # So we just punt and use a minimum line length of 8192.
 
9789
    lt_cv_sys_max_cmd_len=8192;
 
9790
    ;;
 
9791
 
 
9792
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
9793
    # This has been around since 386BSD, at least.  Likely further.
 
9794
    if test -x /sbin/sysctl; then
 
9795
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
9796
    elif test -x /usr/sbin/sysctl; then
 
9797
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
9798
    else
 
9799
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
9800
    fi
 
9801
    # And add a safety zone
 
9802
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
9803
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
9804
    ;;
 
9805
  osf*)
 
9806
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
9807
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
9808
    # nice to cause kernel panics so lets avoid the loop below.
 
9809
    # First set a reasonable default.
 
9810
    lt_cv_sys_max_cmd_len=16384
 
9811
    #
 
9812
    if test -x /sbin/sysconfig; then
 
9813
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
9814
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
9815
      esac
 
9816
    fi
 
9817
    ;;
 
9818
  *)
 
9819
    # If test is not a shell built-in, we'll probably end up computing a
 
9820
    # maximum length that is only half of the actual maximum length, but
 
9821
    # we can't tell.
 
9822
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
9823
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
9824
               = "XX$teststring") >/dev/null 2>&1 &&
 
9825
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
9826
            lt_cv_sys_max_cmd_len=$new_result &&
 
9827
            test $i != 17 # 1/2 MB should be enough
 
9828
    do
 
9829
      i=`expr $i + 1`
 
9830
      teststring=$teststring$teststring
 
9831
    done
 
9832
    teststring=
 
9833
    # Add a significant safety factor because C++ compilers can tack on massive
 
9834
    # amounts of additional arguments before passing them to the linker.
 
9835
    # It appears as though 1/2 is a usable value.
 
9836
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
9837
    ;;
 
9838
  esac
 
9839
 
 
9840
fi
 
9841
 
 
9842
if test -n $lt_cv_sys_max_cmd_len ; then
 
9843
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
9844
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
9845
else
 
9846
  echo "$as_me:$LINENO: result: none" >&5
 
9847
echo "${ECHO_T}none" >&6
 
9848
fi
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
9854
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
9855
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
9856
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
9857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9858
else
 
9859
 
 
9860
# These are sane defaults that work on at least a few old systems.
 
9861
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
9862
 
 
9863
# Character class describing NM global symbol codes.
 
9864
symcode='[BCDEGRST]'
 
9865
 
 
9866
# Regexp to match symbols that can be accessed directly from C.
 
9867
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
9868
 
 
9869
# Transform an extracted symbol line into a proper C declaration
 
9870
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
9871
 
 
9872
# Transform an extracted symbol line into symbol name and symbol address
 
9873
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
9874
 
 
9875
# Define system-specific variables.
 
9876
case $host_os in
 
9877
aix*)
 
9878
  symcode='[BCDT]'
 
9879
  ;;
 
9880
cygwin* | mingw* | pw32*)
 
9881
  symcode='[ABCDGISTW]'
 
9882
  ;;
 
9883
hpux*) # Its linker distinguishes data from code symbols
 
9884
  if test "$host_cpu" = ia64; then
 
9885
    symcode='[ABCDEGRST]'
 
9886
  fi
 
9887
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
9888
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
9889
  ;;
 
9890
linux*)
 
9891
  if test "$host_cpu" = ia64; then
 
9892
    symcode='[ABCDGIRSTW]'
 
9893
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
9894
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
9895
  fi
 
9896
  ;;
 
9897
irix* | nonstopux*)
 
9898
  symcode='[BCDEGRST]'
 
9899
  ;;
 
9900
osf*)
 
9901
  symcode='[BCDEGQRST]'
 
9902
  ;;
 
9903
solaris* | sysv5*)
 
9904
  symcode='[BDRT]'
 
9905
  ;;
 
9906
sysv4)
 
9907
  symcode='[DFNSTU]'
 
9908
  ;;
 
9909
esac
 
9910
 
 
9911
# Handle CRLF in mingw tool chain
 
9912
opt_cr=
 
9913
case $build_os in
 
9914
mingw*)
 
9915
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
9916
  ;;
 
9917
esac
 
9918
 
 
9919
# If we're using GNU nm, then use its standard symbol codes.
 
9920
case `$NM -V 2>&1` in
 
9921
*GNU* | *'with BFD'*)
 
9922
  symcode='[ABCDGIRSTW]' ;;
 
9923
esac
 
9924
 
 
9925
# Try without a prefix undercore, then with it.
 
9926
for ac_symprfx in "" "_"; do
 
9927
 
 
9928
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
9929
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
9930
 
 
9931
  # Write the raw and C identifiers.
 
9932
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
9933
 
 
9934
  # Check to see that the pipe works correctly.
 
9935
  pipe_works=no
 
9936
 
 
9937
  rm -f conftest*
 
9938
  cat > conftest.$ac_ext <<EOF
 
9939
#ifdef __cplusplus
 
9940
extern "C" {
 
9941
#endif
 
9942
char nm_test_var;
 
9943
void nm_test_func(){}
 
9944
#ifdef __cplusplus
 
9945
}
 
9946
#endif
 
9947
int main(){nm_test_var='a';nm_test_func();return(0);}
 
9948
EOF
 
9949
 
 
9950
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9951
  (eval $ac_compile) 2>&5
 
9952
  ac_status=$?
 
9953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9954
  (exit $ac_status); }; then
 
9955
    # Now try to grab the symbols.
 
9956
    nlist=conftest.nm
 
9957
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
9958
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
9959
  ac_status=$?
 
9960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9961
  (exit $ac_status); } && test -s "$nlist"; then
 
9962
      # Try sorting and uniquifying the output.
 
9963
      if sort "$nlist" | uniq > "$nlist"T; then
 
9964
        mv -f "$nlist"T "$nlist"
 
9965
      else
 
9966
        rm -f "$nlist"T
 
9967
      fi
 
9968
 
 
9969
      # Make sure that we snagged all the symbols we need.
 
9970
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
9971
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
9972
          cat <<EOF > conftest.$ac_ext
 
9973
#ifdef __cplusplus
 
9974
extern "C" {
 
9975
#endif
 
9976
 
 
9977
EOF
 
9978
          # Now generate the symbol file.
 
9979
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
9980
 
 
9981
          cat <<EOF >> conftest.$ac_ext
 
9982
#if defined (__STDC__) && __STDC__
 
9983
# define lt_ptr_t void *
 
9984
#else
 
9985
# define lt_ptr_t char *
 
9986
# define const
 
9987
#endif
 
9988
 
 
9989
/* The mapping between symbol names and symbols. */
 
9990
const struct {
 
9991
  const char *name;
 
9992
  lt_ptr_t address;
 
9993
}
 
9994
lt_preloaded_symbols[] =
 
9995
{
 
9996
EOF
 
9997
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
9998
          cat <<\EOF >> conftest.$ac_ext
 
9999
  {0, (lt_ptr_t) 0}
 
10000
};
 
10001
 
 
10002
#ifdef __cplusplus
 
10003
}
 
10004
#endif
 
10005
EOF
 
10006
          # Now try linking the two files.
 
10007
          mv conftest.$ac_objext conftstm.$ac_objext
 
10008
          lt_save_LIBS="$LIBS"
 
10009
          lt_save_CFLAGS="$CFLAGS"
 
10010
          LIBS="conftstm.$ac_objext"
 
10011
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
10012
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10013
  (eval $ac_link) 2>&5
 
10014
  ac_status=$?
 
10015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10016
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
10017
            pipe_works=yes
 
10018
          fi
 
10019
          LIBS="$lt_save_LIBS"
 
10020
          CFLAGS="$lt_save_CFLAGS"
 
10021
        else
 
10022
          echo "cannot find nm_test_func in $nlist" >&5
 
10023
        fi
 
10024
      else
 
10025
        echo "cannot find nm_test_var in $nlist" >&5
 
10026
      fi
 
10027
    else
 
10028
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
10029
    fi
 
10030
  else
 
10031
    echo "$progname: failed program was:" >&5
 
10032
    cat conftest.$ac_ext >&5
 
10033
  fi
 
10034
  rm -f conftest* conftst*
 
10035
 
 
10036
  # Do not use the global_symbol_pipe unless it works.
 
10037
  if test "$pipe_works" = yes; then
 
10038
    break
 
10039
  else
 
10040
    lt_cv_sys_global_symbol_pipe=
 
10041
  fi
 
10042
done
 
10043
 
 
10044
fi
 
10045
 
 
10046
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
10047
  lt_cv_sys_global_symbol_to_cdecl=
 
10048
fi
 
10049
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
10050
  echo "$as_me:$LINENO: result: failed" >&5
 
10051
echo "${ECHO_T}failed" >&6
 
10052
else
 
10053
  echo "$as_me:$LINENO: result: ok" >&5
 
10054
echo "${ECHO_T}ok" >&6
 
10055
fi
 
10056
 
 
10057
echo "$as_me:$LINENO: checking for objdir" >&5
 
10058
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
10059
if test "${lt_cv_objdir+set}" = set; then
 
10060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10061
else
 
10062
  rm -f .libs 2>/dev/null
 
10063
mkdir .libs 2>/dev/null
 
10064
if test -d .libs; then
 
10065
  lt_cv_objdir=.libs
 
10066
else
 
10067
  # MS-DOS does not allow filenames that begin with a dot.
 
10068
  lt_cv_objdir=_libs
 
10069
fi
 
10070
rmdir .libs 2>/dev/null
 
10071
fi
 
10072
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
10073
echo "${ECHO_T}$lt_cv_objdir" >&6
 
10074
objdir=$lt_cv_objdir
 
10075
 
 
10076
 
 
10077
 
 
10078
 
 
10079
 
 
10080
case $host_os in
 
10081
aix3*)
 
10082
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
10083
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
10084
  # vanish in a puff of smoke.
 
10085
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
10086
    COLLECT_NAMES=
 
10087
    export COLLECT_NAMES
 
10088
  fi
 
10089
  ;;
 
10090
esac
 
10091
 
 
10092
# Sed substitution that helps us do robust quoting.  It backslashifies
 
10093
# metacharacters that are still active within double-quoted strings.
 
10094
Xsed='sed -e 1s/^X//'
 
10095
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
10096
 
 
10097
# Same as above, but do not quote variable references.
 
10098
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
10099
 
 
10100
# Sed substitution to delay expansion of an escaped shell variable in a
 
10101
# double_quote_subst'ed string.
 
10102
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
10103
 
 
10104
# Sed substitution to avoid accidental globbing in evaled expressions
 
10105
no_glob_subst='s/\*/\\\*/g'
 
10106
 
 
10107
# Constants:
 
10108
rm="rm -f"
 
10109
 
 
10110
# Global variables:
 
10111
default_ofile=libtool
 
10112
can_build_shared=yes
 
10113
 
 
10114
# All known linkers require a `.a' archive for static linking (except MSVC,
 
10115
# which needs '.lib').
 
10116
libext=a
 
10117
ltmain="$ac_aux_dir/ltmain.sh"
 
10118
ofile="$default_ofile"
 
10119
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
10120
 
 
10121
if test -n "$ac_tool_prefix"; then
 
10122
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
10123
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
10124
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10126
if test "${ac_cv_prog_AR+set}" = set; then
 
10127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10128
else
 
10129
  if test -n "$AR"; then
 
10130
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
10131
else
 
10132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10133
for as_dir in $PATH
 
10134
do
 
10135
  IFS=$as_save_IFS
 
10136
  test -z "$as_dir" && as_dir=.
 
10137
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10138
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10139
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
10140
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10141
    break 2
 
10142
  fi
 
10143
done
 
10144
done
 
10145
 
 
10146
fi
 
10147
fi
 
10148
AR=$ac_cv_prog_AR
 
10149
if test -n "$AR"; then
 
10150
  echo "$as_me:$LINENO: result: $AR" >&5
 
10151
echo "${ECHO_T}$AR" >&6
 
10152
else
 
10153
  echo "$as_me:$LINENO: result: no" >&5
 
10154
echo "${ECHO_T}no" >&6
 
10155
fi
 
10156
 
 
10157
fi
 
10158
if test -z "$ac_cv_prog_AR"; then
 
10159
  ac_ct_AR=$AR
 
10160
  # Extract the first word of "ar", so it can be a program name with args.
 
10161
set dummy ar; ac_word=$2
 
10162
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10163
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10164
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
10165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10166
else
 
10167
  if test -n "$ac_ct_AR"; then
 
10168
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
10169
else
 
10170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10171
for as_dir in $PATH
 
10172
do
 
10173
  IFS=$as_save_IFS
 
10174
  test -z "$as_dir" && as_dir=.
 
10175
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10176
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10177
    ac_cv_prog_ac_ct_AR="ar"
 
10178
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10179
    break 2
 
10180
  fi
 
10181
done
 
10182
done
 
10183
 
 
10184
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
10185
fi
 
10186
fi
 
10187
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
10188
if test -n "$ac_ct_AR"; then
 
10189
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
10190
echo "${ECHO_T}$ac_ct_AR" >&6
 
10191
else
 
10192
  echo "$as_me:$LINENO: result: no" >&5
 
10193
echo "${ECHO_T}no" >&6
 
10194
fi
 
10195
 
 
10196
  AR=$ac_ct_AR
 
10197
else
 
10198
  AR="$ac_cv_prog_AR"
 
10199
fi
 
10200
 
 
10201
if test -n "$ac_tool_prefix"; then
 
10202
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
10203
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
10204
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10206
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
10207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10208
else
 
10209
  if test -n "$RANLIB"; then
 
10210
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
10211
else
 
10212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10213
for as_dir in $PATH
 
10214
do
 
10215
  IFS=$as_save_IFS
 
10216
  test -z "$as_dir" && as_dir=.
 
10217
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10218
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10219
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
10220
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10221
    break 2
 
10222
  fi
 
10223
done
 
10224
done
 
10225
 
 
10226
fi
 
10227
fi
 
10228
RANLIB=$ac_cv_prog_RANLIB
 
10229
if test -n "$RANLIB"; then
 
10230
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
10231
echo "${ECHO_T}$RANLIB" >&6
 
10232
else
 
10233
  echo "$as_me:$LINENO: result: no" >&5
 
10234
echo "${ECHO_T}no" >&6
 
10235
fi
 
10236
 
 
10237
fi
 
10238
if test -z "$ac_cv_prog_RANLIB"; then
 
10239
  ac_ct_RANLIB=$RANLIB
 
10240
  # Extract the first word of "ranlib", so it can be a program name with args.
 
10241
set dummy ranlib; ac_word=$2
 
10242
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10243
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10244
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
10245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10246
else
 
10247
  if test -n "$ac_ct_RANLIB"; then
 
10248
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
10249
else
 
10250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10251
for as_dir in $PATH
 
10252
do
 
10253
  IFS=$as_save_IFS
 
10254
  test -z "$as_dir" && as_dir=.
 
10255
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10256
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10257
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
10258
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10259
    break 2
 
10260
  fi
 
10261
done
 
10262
done
 
10263
 
 
10264
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
10265
fi
 
10266
fi
 
10267
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
10268
if test -n "$ac_ct_RANLIB"; then
 
10269
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
10270
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
10271
else
 
10272
  echo "$as_me:$LINENO: result: no" >&5
 
10273
echo "${ECHO_T}no" >&6
 
10274
fi
 
10275
 
 
10276
  RANLIB=$ac_ct_RANLIB
 
10277
else
 
10278
  RANLIB="$ac_cv_prog_RANLIB"
 
10279
fi
 
10280
 
 
10281
if test -n "$ac_tool_prefix"; then
 
10282
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
10283
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
10284
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10285
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10286
if test "${ac_cv_prog_STRIP+set}" = set; then
 
10287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10288
else
 
10289
  if test -n "$STRIP"; then
 
10290
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
10291
else
 
10292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10293
for as_dir in $PATH
 
10294
do
 
10295
  IFS=$as_save_IFS
 
10296
  test -z "$as_dir" && as_dir=.
 
10297
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10298
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10299
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
10300
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10301
    break 2
 
10302
  fi
 
10303
done
 
10304
done
 
10305
 
 
10306
fi
 
10307
fi
 
10308
STRIP=$ac_cv_prog_STRIP
 
10309
if test -n "$STRIP"; then
 
10310
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
10311
echo "${ECHO_T}$STRIP" >&6
 
10312
else
 
10313
  echo "$as_me:$LINENO: result: no" >&5
 
10314
echo "${ECHO_T}no" >&6
 
10315
fi
 
10316
 
 
10317
fi
 
10318
if test -z "$ac_cv_prog_STRIP"; then
 
10319
  ac_ct_STRIP=$STRIP
 
10320
  # Extract the first word of "strip", so it can be a program name with args.
 
10321
set dummy strip; ac_word=$2
 
10322
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10323
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10324
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
10325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10326
else
 
10327
  if test -n "$ac_ct_STRIP"; then
 
10328
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
10329
else
 
10330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10331
for as_dir in $PATH
 
10332
do
 
10333
  IFS=$as_save_IFS
 
10334
  test -z "$as_dir" && as_dir=.
 
10335
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10336
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10337
    ac_cv_prog_ac_ct_STRIP="strip"
 
10338
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10339
    break 2
 
10340
  fi
 
10341
done
 
10342
done
 
10343
 
 
10344
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
10345
fi
 
10346
fi
 
10347
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
10348
if test -n "$ac_ct_STRIP"; then
 
10349
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
10350
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
10351
else
 
10352
  echo "$as_me:$LINENO: result: no" >&5
 
10353
echo "${ECHO_T}no" >&6
 
10354
fi
 
10355
 
 
10356
  STRIP=$ac_ct_STRIP
 
10357
else
 
10358
  STRIP="$ac_cv_prog_STRIP"
 
10359
fi
 
10360
 
 
10361
 
 
10362
old_CC="$CC"
 
10363
old_CFLAGS="$CFLAGS"
 
10364
 
 
10365
# Set sane defaults for various variables
 
10366
test -z "$AR" && AR=ar
 
10367
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
10368
test -z "$AS" && AS=as
 
10369
test -z "$CC" && CC=cc
 
10370
test -z "$LTCC" && LTCC=$CC
 
10371
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
10372
test -z "$LD" && LD=ld
 
10373
test -z "$LN_S" && LN_S="ln -s"
 
10374
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
10375
test -z "$NM" && NM=nm
 
10376
test -z "$SED" && SED=sed
 
10377
test -z "$OBJDUMP" && OBJDUMP=objdump
 
10378
test -z "$RANLIB" && RANLIB=:
 
10379
test -z "$STRIP" && STRIP=:
 
10380
test -z "$ac_objext" && ac_objext=o
 
10381
 
 
10382
# Determine commands to create old-style static archives.
 
10383
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
10384
old_postinstall_cmds='chmod 644 $oldlib'
 
10385
old_postuninstall_cmds=
 
10386
 
 
10387
if test -n "$RANLIB"; then
 
10388
  case $host_os in
 
10389
  openbsd*)
 
10390
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
10391
    ;;
 
10392
  *)
 
10393
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
10394
    ;;
 
10395
  esac
 
10396
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
10397
fi
 
10398
 
 
10399
for cc_temp in $compiler""; do
 
10400
  case $cc_temp in
 
10401
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10402
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10403
    \-*) ;;
 
10404
    *) break;;
 
10405
  esac
 
10406
done
 
10407
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10408
 
 
10409
 
 
10410
# Only perform the check for file, if the check method requires it
 
10411
case $deplibs_check_method in
 
10412
file_magic*)
 
10413
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
10414
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
10415
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
10416
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
10417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10418
else
 
10419
  case $MAGIC_CMD in
 
10420
[\\/*] |  ?:[\\/]*)
 
10421
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
10422
  ;;
 
10423
*)
 
10424
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
10425
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10426
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
10427
  for ac_dir in $ac_dummy; do
 
10428
    IFS="$lt_save_ifs"
 
10429
    test -z "$ac_dir" && ac_dir=.
 
10430
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
10431
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
10432
      if test -n "$file_magic_test_file"; then
 
10433
        case $deplibs_check_method in
 
10434
        "file_magic "*)
 
10435
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
10436
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10437
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
10438
            $EGREP "$file_magic_regex" > /dev/null; then
 
10439
            :
 
10440
          else
 
10441
            cat <<EOF 1>&2
 
10442
 
 
10443
*** Warning: the command libtool uses to detect shared libraries,
 
10444
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
10445
*** The result is that libtool may fail to recognize shared libraries
 
10446
*** as such.  This will affect the creation of libtool libraries that
 
10447
*** depend on shared libraries, but programs linked with such libtool
 
10448
*** libraries will work regardless of this problem.  Nevertheless, you
 
10449
*** may want to report the problem to your system manager and/or to
 
10450
*** bug-libtool@gnu.org
 
10451
 
 
10452
EOF
 
10453
          fi ;;
 
10454
        esac
 
10455
      fi
 
10456
      break
 
10457
    fi
 
10458
  done
 
10459
  IFS="$lt_save_ifs"
 
10460
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
10461
  ;;
 
10462
esac
 
10463
fi
 
10464
 
 
10465
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10466
if test -n "$MAGIC_CMD"; then
 
10467
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
10468
echo "${ECHO_T}$MAGIC_CMD" >&6
 
10469
else
 
10470
  echo "$as_me:$LINENO: result: no" >&5
 
10471
echo "${ECHO_T}no" >&6
 
10472
fi
 
10473
 
 
10474
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
10475
  if test -n "$ac_tool_prefix"; then
 
10476
    echo "$as_me:$LINENO: checking for file" >&5
 
10477
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
10478
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
10479
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10480
else
 
10481
  case $MAGIC_CMD in
 
10482
[\\/*] |  ?:[\\/]*)
 
10483
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
10484
  ;;
 
10485
*)
 
10486
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
10487
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10488
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
10489
  for ac_dir in $ac_dummy; do
 
10490
    IFS="$lt_save_ifs"
 
10491
    test -z "$ac_dir" && ac_dir=.
 
10492
    if test -f $ac_dir/file; then
 
10493
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
10494
      if test -n "$file_magic_test_file"; then
 
10495
        case $deplibs_check_method in
 
10496
        "file_magic "*)
 
10497
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
10498
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10499
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
10500
            $EGREP "$file_magic_regex" > /dev/null; then
 
10501
            :
 
10502
          else
 
10503
            cat <<EOF 1>&2
 
10504
 
 
10505
*** Warning: the command libtool uses to detect shared libraries,
 
10506
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
10507
*** The result is that libtool may fail to recognize shared libraries
 
10508
*** as such.  This will affect the creation of libtool libraries that
 
10509
*** depend on shared libraries, but programs linked with such libtool
 
10510
*** libraries will work regardless of this problem.  Nevertheless, you
 
10511
*** may want to report the problem to your system manager and/or to
 
10512
*** bug-libtool@gnu.org
 
10513
 
 
10514
EOF
 
10515
          fi ;;
 
10516
        esac
 
10517
      fi
 
10518
      break
 
10519
    fi
 
10520
  done
 
10521
  IFS="$lt_save_ifs"
 
10522
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
10523
  ;;
 
10524
esac
 
10525
fi
 
10526
 
 
10527
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
10528
if test -n "$MAGIC_CMD"; then
 
10529
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
10530
echo "${ECHO_T}$MAGIC_CMD" >&6
 
10531
else
 
10532
  echo "$as_me:$LINENO: result: no" >&5
 
10533
echo "${ECHO_T}no" >&6
 
10534
fi
 
10535
 
 
10536
  else
 
10537
    MAGIC_CMD=:
 
10538
  fi
 
10539
fi
 
10540
 
 
10541
  fi
 
10542
  ;;
 
10543
esac
 
10544
 
 
10545
enable_dlopen=no
 
10546
enable_win32_dll=no
 
10547
 
 
10548
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
10549
if test "${enable_libtool_lock+set}" = set; then
 
10550
  enableval="$enable_libtool_lock"
 
10551
 
 
10552
fi;
 
10553
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
10554
 
 
10555
 
 
10556
# Check whether --with-pic or --without-pic was given.
 
10557
if test "${with_pic+set}" = set; then
 
10558
  withval="$with_pic"
 
10559
  pic_mode="$withval"
 
10560
else
 
10561
  pic_mode=default
 
10562
fi;
 
10563
test -z "$pic_mode" && pic_mode=default
 
10564
 
 
10565
# Use C for the default configuration in the libtool script
 
10566
tagname=
 
10567
lt_save_CC="$CC"
 
10568
ac_ext=c
 
10569
ac_cpp='$CPP $CPPFLAGS'
 
10570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10573
 
 
10574
 
 
10575
# Source file extension for C test sources.
 
10576
ac_ext=c
 
10577
 
 
10578
# Object file extension for compiled C test sources.
 
10579
objext=o
 
10580
objext=$objext
 
10581
 
 
10582
# Code to be used in simple compile tests
 
10583
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10584
 
 
10585
# Code to be used in simple link tests
 
10586
lt_simple_link_test_code='int main(){return(0);}\n'
 
10587
 
 
10588
 
 
10589
# If no C compiler was specified, use CC.
 
10590
LTCC=${LTCC-"$CC"}
 
10591
 
 
10592
# Allow CC to be a program name with arguments.
 
10593
compiler=$CC
 
10594
 
 
10595
 
 
10596
# save warnings/boilerplate of simple test code
 
10597
ac_outfile=conftest.$ac_objext
 
10598
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10599
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
10600
_lt_compiler_boilerplate=`cat conftest.err`
 
10601
$rm conftest*
 
10602
 
 
10603
ac_outfile=conftest.$ac_objext
 
10604
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10605
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
10606
_lt_linker_boilerplate=`cat conftest.err`
 
10607
$rm conftest*
 
10608
 
 
10609
 
 
10610
#
 
10611
# Check for any special shared library compilation flags.
 
10612
#
 
10613
lt_prog_cc_shlib=
 
10614
if test "$GCC" = no; then
 
10615
  case $host_os in
 
10616
  sco3.2v5*)
 
10617
    lt_prog_cc_shlib='-belf'
 
10618
    ;;
 
10619
  esac
 
10620
fi
 
10621
if test -n "$lt_prog_cc_shlib"; then
 
10622
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
10623
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
10624
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
10625
  else
 
10626
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
10627
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
10628
    lt_cv_prog_cc_can_build_shared=no
 
10629
  fi
 
10630
fi
 
10631
 
 
10632
 
 
10633
#
 
10634
# Check to make sure the static flag actually works.
 
10635
#
 
10636
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
10637
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
10638
if test "${lt_prog_compiler_static_works+set}" = set; then
 
10639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10640
else
 
10641
  lt_prog_compiler_static_works=no
 
10642
   save_LDFLAGS="$LDFLAGS"
 
10643
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
10644
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
10645
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10646
     # The linker can only warn and ignore the option if not recognized
 
10647
     # So say no if there are warnings
 
10648
     if test -s conftest.err; then
 
10649
       # Append any errors to the config.log.
 
10650
       cat conftest.err 1>&5
 
10651
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
10652
       $SED '/^$/d' conftest.err >conftest.er2
 
10653
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10654
         lt_prog_compiler_static_works=yes
 
10655
       fi
 
10656
     else
 
10657
       lt_prog_compiler_static_works=yes
 
10658
     fi
 
10659
   fi
 
10660
   $rm conftest*
 
10661
   LDFLAGS="$save_LDFLAGS"
 
10662
 
 
10663
fi
 
10664
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
10665
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
10666
 
 
10667
if test x"$lt_prog_compiler_static_works" = xyes; then
 
10668
    :
 
10669
else
 
10670
    lt_prog_compiler_static=
 
10671
fi
 
10672
 
 
10673
 
 
10674
 
 
10675
## CAVEAT EMPTOR:
 
10676
## There is no encapsulation within the following macros, do not change
 
10677
## the running order or otherwise move them around unless you know exactly
 
10678
## what you are doing...
 
10679
 
 
10680
lt_prog_compiler_no_builtin_flag=
 
10681
 
 
10682
if test "$GCC" = yes; then
 
10683
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
10684
 
 
10685
 
 
10686
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
10687
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
10688
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
10689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10690
else
 
10691
  lt_cv_prog_compiler_rtti_exceptions=no
 
10692
  ac_outfile=conftest.$ac_objext
 
10693
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10694
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
10695
   # Insert the option either (1) after the last *FLAGS variable, or
 
10696
   # (2) before a word containing "conftest.", or (3) at the end.
 
10697
   # Note that $ac_compile itself does not contain backslashes and begins
 
10698
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10699
   # The option is referenced via a variable to avoid confusing sed.
 
10700
   lt_compile=`echo "$ac_compile" | $SED \
 
10701
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10702
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10703
   -e 's:$: $lt_compiler_flag:'`
 
10704
   (eval echo "\"\$as_me:10704: $lt_compile\"" >&5)
 
10705
   (eval "$lt_compile" 2>conftest.err)
 
10706
   ac_status=$?
 
10707
   cat conftest.err >&5
 
10708
   echo "$as_me:10708: \$? = $ac_status" >&5
 
10709
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10710
     # The compiler can only warn and ignore the option if not recognized
 
10711
     # So say no if there are warnings other than the usual output.
 
10712
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
10713
     $SED '/^$/d' conftest.err >conftest.er2
 
10714
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
10715
       lt_cv_prog_compiler_rtti_exceptions=yes
 
10716
     fi
 
10717
   fi
 
10718
   $rm conftest*
 
10719
 
 
10720
fi
 
10721
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
10722
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
10723
 
 
10724
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
10725
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
10726
else
 
10727
    :
 
10728
fi
 
10729
 
 
10730
fi
 
10731
 
 
10732
lt_prog_compiler_wl=
 
10733
lt_prog_compiler_pic=
 
10734
lt_prog_compiler_static=
 
10735
 
 
10736
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10737
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10738
 
 
10739
  if test "$GCC" = yes; then
 
10740
    lt_prog_compiler_wl='-Wl,'
 
10741
    lt_prog_compiler_static='-static'
 
10742
 
 
10743
    case $host_os in
 
10744
      aix*)
 
10745
      # All AIX code is PIC.
 
10746
      if test "$host_cpu" = ia64; then
 
10747
        # AIX 5 now supports IA64 processor
 
10748
        lt_prog_compiler_static='-Bstatic'
 
10749
      fi
 
10750
      ;;
 
10751
 
 
10752
    amigaos*)
 
10753
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10754
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10755
      # like `-m68040'.
 
10756
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
10757
      ;;
 
10758
 
 
10759
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10760
      # PIC is the default for these OSes.
 
10761
      ;;
 
10762
 
 
10763
    mingw* | pw32* | os2*)
 
10764
      # This hack is so that the source file can tell whether it is being
 
10765
      # built for inclusion in a dll (and should export symbols for example).
 
10766
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
10767
      ;;
 
10768
 
 
10769
    darwin* | rhapsody*)
 
10770
      # PIC is the default on this platform
 
10771
      # Common symbols not allowed in MH_DYLIB files
 
10772
      lt_prog_compiler_pic='-fno-common'
 
10773
      ;;
 
10774
 
 
10775
    msdosdjgpp*)
 
10776
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
10777
      # on systems that don't support them.
 
10778
      lt_prog_compiler_can_build_shared=no
 
10779
      enable_shared=no
 
10780
      ;;
 
10781
 
 
10782
    sysv4*MP*)
 
10783
      if test -d /usr/nec; then
 
10784
        lt_prog_compiler_pic=-Kconform_pic
 
10785
      fi
 
10786
      ;;
 
10787
 
 
10788
    hpux*)
 
10789
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10790
      # not for PA HP-UX.
 
10791
      case $host_cpu in
 
10792
      hppa*64*|ia64*)
 
10793
        # +Z the default
 
10794
        ;;
 
10795
      *)
 
10796
        lt_prog_compiler_pic='-fPIC'
 
10797
        ;;
 
10798
      esac
 
10799
      ;;
 
10800
 
 
10801
    *)
 
10802
      lt_prog_compiler_pic='-fPIC'
 
10803
      ;;
 
10804
    esac
 
10805
  else
 
10806
    # PORTME Check for flag to pass linker flags through the system compiler.
 
10807
    case $host_os in
 
10808
    aix*)
 
10809
      lt_prog_compiler_wl='-Wl,'
 
10810
      if test "$host_cpu" = ia64; then
 
10811
        # AIX 5 now supports IA64 processor
 
10812
        lt_prog_compiler_static='-Bstatic'
 
10813
      else
 
10814
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
10815
      fi
 
10816
      ;;
 
10817
      darwin*)
 
10818
        # PIC is the default on this platform
 
10819
        # Common symbols not allowed in MH_DYLIB files
 
10820
       case $cc_basename in
 
10821
         xlc*)
 
10822
         lt_prog_compiler_pic='-qnocommon'
 
10823
         lt_prog_compiler_wl='-Wl,'
 
10824
         ;;
 
10825
       esac
 
10826
       ;;
 
10827
 
 
10828
    mingw* | pw32* | os2*)
 
10829
      # This hack is so that the source file can tell whether it is being
 
10830
      # built for inclusion in a dll (and should export symbols for example).
 
10831
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
10832
      ;;
 
10833
 
 
10834
    hpux9* | hpux10* | hpux11*)
 
10835
      lt_prog_compiler_wl='-Wl,'
 
10836
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10837
      # not for PA HP-UX.
 
10838
      case $host_cpu in
 
10839
      hppa*64*|ia64*)
 
10840
        # +Z the default
 
10841
        ;;
 
10842
      *)
 
10843
        lt_prog_compiler_pic='+Z'
 
10844
        ;;
 
10845
      esac
 
10846
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
10847
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
10848
      ;;
 
10849
 
 
10850
    irix5* | irix6* | nonstopux*)
 
10851
      lt_prog_compiler_wl='-Wl,'
 
10852
      # PIC (with -KPIC) is the default.
 
10853
      lt_prog_compiler_static='-non_shared'
 
10854
      ;;
 
10855
 
 
10856
    newsos6)
 
10857
      lt_prog_compiler_pic='-KPIC'
 
10858
      lt_prog_compiler_static='-Bstatic'
 
10859
      ;;
 
10860
 
 
10861
    linux*)
 
10862
      case $cc_basename in
 
10863
      icc* | ecc*)
 
10864
        lt_prog_compiler_wl='-Wl,'
 
10865
        lt_prog_compiler_pic='-KPIC'
 
10866
        lt_prog_compiler_static='-static'
 
10867
        ;;
 
10868
      pgcc* | pgf77* | pgf90* | pgf95*)
 
10869
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
10870
        # which looks to be a dead project)
 
10871
        lt_prog_compiler_wl='-Wl,'
 
10872
        lt_prog_compiler_pic='-fpic'
 
10873
        lt_prog_compiler_static='-Bstatic'
 
10874
        ;;
 
10875
      ccc*)
 
10876
        lt_prog_compiler_wl='-Wl,'
 
10877
        # All Alpha code is PIC.
 
10878
        lt_prog_compiler_static='-non_shared'
 
10879
        ;;
 
10880
      esac
 
10881
      ;;
 
10882
 
 
10883
    osf3* | osf4* | osf5*)
 
10884
      lt_prog_compiler_wl='-Wl,'
 
10885
      # All OSF/1 code is PIC.
 
10886
      lt_prog_compiler_static='-non_shared'
 
10887
      ;;
 
10888
 
 
10889
    sco3.2v5*)
 
10890
      lt_prog_compiler_pic='-Kpic'
 
10891
      lt_prog_compiler_static='-dn'
 
10892
      ;;
 
10893
 
 
10894
    solaris*)
 
10895
      lt_prog_compiler_pic='-KPIC'
 
10896
      lt_prog_compiler_static='-Bstatic'
 
10897
      case $cc_basename in
 
10898
      f77* | f90* | f95*)
 
10899
        lt_prog_compiler_wl='-Qoption ld ';;
 
10900
      *)
 
10901
        lt_prog_compiler_wl='-Wl,';;
 
10902
      esac
 
10903
      ;;
 
10904
 
 
10905
    sunos4*)
 
10906
      lt_prog_compiler_wl='-Qoption ld '
 
10907
      lt_prog_compiler_pic='-PIC'
 
10908
      lt_prog_compiler_static='-Bstatic'
 
10909
      ;;
 
10910
 
 
10911
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10912
      lt_prog_compiler_wl='-Wl,'
 
10913
      lt_prog_compiler_pic='-KPIC'
 
10914
      lt_prog_compiler_static='-Bstatic'
 
10915
      ;;
 
10916
 
 
10917
    sysv4*MP*)
 
10918
      if test -d /usr/nec ;then
 
10919
        lt_prog_compiler_pic='-Kconform_pic'
 
10920
        lt_prog_compiler_static='-Bstatic'
 
10921
      fi
 
10922
      ;;
 
10923
 
 
10924
    unicos*)
 
10925
      lt_prog_compiler_wl='-Wl,'
 
10926
      lt_prog_compiler_can_build_shared=no
 
10927
      ;;
 
10928
 
 
10929
    uts4*)
 
10930
      lt_prog_compiler_pic='-pic'
 
10931
      lt_prog_compiler_static='-Bstatic'
 
10932
      ;;
 
10933
 
 
10934
    *)
 
10935
      lt_prog_compiler_can_build_shared=no
 
10936
      ;;
 
10937
    esac
 
10938
  fi
 
10939
 
 
10940
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
10941
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
10942
 
 
10943
#
 
10944
# Check to make sure the PIC flag actually works.
 
10945
#
 
10946
if test -n "$lt_prog_compiler_pic"; then
 
10947
 
 
10948
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
10949
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
10950
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
10951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10952
else
 
10953
  lt_prog_compiler_pic_works=no
 
10954
  ac_outfile=conftest.$ac_objext
 
10955
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10956
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
10957
   # Insert the option either (1) after the last *FLAGS variable, or
 
10958
   # (2) before a word containing "conftest.", or (3) at the end.
 
10959
   # Note that $ac_compile itself does not contain backslashes and begins
 
10960
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10961
   # The option is referenced via a variable to avoid confusing sed.
 
10962
   lt_compile=`echo "$ac_compile" | $SED \
 
10963
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10964
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10965
   -e 's:$: $lt_compiler_flag:'`
 
10966
   (eval echo "\"\$as_me:10966: $lt_compile\"" >&5)
 
10967
   (eval "$lt_compile" 2>conftest.err)
 
10968
   ac_status=$?
 
10969
   cat conftest.err >&5
 
10970
   echo "$as_me:10970: \$? = $ac_status" >&5
 
10971
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10972
     # The compiler can only warn and ignore the option if not recognized
 
10973
     # So say no if there are warnings other than the usual output.
 
10974
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
10975
     $SED '/^$/d' conftest.err >conftest.er2
 
10976
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
10977
       lt_prog_compiler_pic_works=yes
 
10978
     fi
 
10979
   fi
 
10980
   $rm conftest*
 
10981
 
 
10982
fi
 
10983
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
10984
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
10985
 
 
10986
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
10987
    case $lt_prog_compiler_pic in
 
10988
     "" | " "*) ;;
 
10989
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
10990
     esac
 
10991
else
 
10992
    lt_prog_compiler_pic=
 
10993
     lt_prog_compiler_can_build_shared=no
 
10994
fi
 
10995
 
 
10996
fi
 
10997
case $host_os in
 
10998
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10999
  *djgpp*)
 
11000
    lt_prog_compiler_pic=
 
11001
    ;;
 
11002
  *)
 
11003
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
11004
    ;;
 
11005
esac
 
11006
 
 
11007
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11008
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11009
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
11010
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11011
else
 
11012
  lt_cv_prog_compiler_c_o=no
 
11013
   $rm -r conftest 2>/dev/null
 
11014
   mkdir conftest
 
11015
   cd conftest
 
11016
   mkdir out
 
11017
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11018
 
 
11019
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11020
   # Insert the option either (1) after the last *FLAGS variable, or
 
11021
   # (2) before a word containing "conftest.", or (3) at the end.
 
11022
   # Note that $ac_compile itself does not contain backslashes and begins
 
11023
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11024
   lt_compile=`echo "$ac_compile" | $SED \
 
11025
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11026
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11027
   -e 's:$: $lt_compiler_flag:'`
 
11028
   (eval echo "\"\$as_me:11028: $lt_compile\"" >&5)
 
11029
   (eval "$lt_compile" 2>out/conftest.err)
 
11030
   ac_status=$?
 
11031
   cat out/conftest.err >&5
 
11032
   echo "$as_me:11032: \$? = $ac_status" >&5
 
11033
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11034
   then
 
11035
     # The compiler can only warn and ignore the option if not recognized
 
11036
     # So say no if there are warnings
 
11037
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
11038
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
11039
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11040
       lt_cv_prog_compiler_c_o=yes
 
11041
     fi
 
11042
   fi
 
11043
   chmod u+w . 2>&5
 
11044
   $rm conftest*
 
11045
   # SGI C++ compiler will create directory out/ii_files/ for
 
11046
   # template instantiation
 
11047
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11048
   $rm out/* && rmdir out
 
11049
   cd ..
 
11050
   rmdir conftest
 
11051
   $rm conftest*
 
11052
 
 
11053
fi
 
11054
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
11055
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
11056
 
 
11057
 
 
11058
hard_links="nottested"
 
11059
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
11060
  # do not overwrite the value of need_locks provided by the user
 
11061
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11062
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11063
  hard_links=yes
 
11064
  $rm conftest*
 
11065
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11066
  touch conftest.a
 
11067
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11068
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11069
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11070
echo "${ECHO_T}$hard_links" >&6
 
11071
  if test "$hard_links" = no; then
 
11072
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11073
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11074
    need_locks=warn
 
11075
  fi
 
11076
else
 
11077
  need_locks=no
 
11078
fi
 
11079
 
 
11080
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11081
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11082
 
 
11083
  runpath_var=
 
11084
  allow_undefined_flag=
 
11085
  enable_shared_with_static_runtimes=no
 
11086
  archive_cmds=
 
11087
  archive_expsym_cmds=
 
11088
  old_archive_From_new_cmds=
 
11089
  old_archive_from_expsyms_cmds=
 
11090
  export_dynamic_flag_spec=
 
11091
  whole_archive_flag_spec=
 
11092
  thread_safe_flag_spec=
 
11093
  hardcode_libdir_flag_spec=
 
11094
  hardcode_libdir_flag_spec_ld=
 
11095
  hardcode_libdir_separator=
 
11096
  hardcode_direct=no
 
11097
  hardcode_minus_L=no
 
11098
  hardcode_shlibpath_var=unsupported
 
11099
  link_all_deplibs=unknown
 
11100
  hardcode_automatic=no
 
11101
  module_cmds=
 
11102
  module_expsym_cmds=
 
11103
  always_export_symbols=no
 
11104
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11105
  # include_expsyms should be a list of space-separated symbols to be *always*
 
11106
  # included in the symbol list
 
11107
  include_expsyms=
 
11108
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
11109
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
11110
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
11111
  # as well as any symbol that contains `d'.
 
11112
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
11113
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
11114
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
11115
  # the symbol is explicitly referenced.  Since portable code cannot
 
11116
  # rely on this symbol name, it's probably fine to never include it in
 
11117
  # preloaded symbol tables.
 
11118
  extract_expsyms_cmds=
 
11119
  # Just being paranoid about ensuring that cc_basename is set.
 
11120
  for cc_temp in $compiler""; do
 
11121
  case $cc_temp in
 
11122
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11123
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11124
    \-*) ;;
 
11125
    *) break;;
 
11126
  esac
 
11127
done
 
11128
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11129
 
 
11130
  case $host_os in
 
11131
  cygwin* | mingw* | pw32*)
 
11132
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
11133
    # When not using gcc, we currently assume that we are using
 
11134
    # Microsoft Visual C++.
 
11135
    if test "$GCC" != yes; then
 
11136
      with_gnu_ld=no
 
11137
    fi
 
11138
    ;;
 
11139
  openbsd*)
 
11140
    with_gnu_ld=no
 
11141
    ;;
 
11142
  esac
 
11143
 
 
11144
  ld_shlibs=yes
 
11145
  if test "$with_gnu_ld" = yes; then
 
11146
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11147
    wlarc='${wl}'
 
11148
 
 
11149
    # Set some defaults for GNU ld with shared library support. These
 
11150
    # are reset later if shared libraries are not supported. Putting them
 
11151
    # here allows them to be overridden if necessary.
 
11152
    runpath_var=LD_RUN_PATH
 
11153
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
11154
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
11155
    # ancient GNU ld didn't support --whole-archive et. al.
 
11156
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
11157
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11158
      else
 
11159
        whole_archive_flag_spec=
 
11160
    fi
 
11161
    supports_anon_versioning=no
 
11162
    case `$LD -v 2>/dev/null` in
 
11163
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
11164
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
11165
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
11166
      *\ 2.11.*) ;; # other 2.11 versions
 
11167
      *) supports_anon_versioning=yes ;;
 
11168
    esac
 
11169
 
 
11170
    # See if GNU ld supports shared libraries.
 
11171
    case $host_os in
 
11172
    aix3* | aix4* | aix5*)
 
11173
      # On AIX/PPC, the GNU linker is very broken
 
11174
      if test "$host_cpu" != ia64; then
 
11175
        ld_shlibs=no
 
11176
        cat <<EOF 1>&2
 
11177
 
 
11178
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
11179
*** to be unable to reliably create shared libraries on AIX.
 
11180
*** Therefore, libtool is disabling shared libraries support.  If you
 
11181
*** really care for shared libraries, you may want to modify your PATH
 
11182
*** so that a non-GNU linker is found, and then restart.
 
11183
 
 
11184
EOF
 
11185
      fi
 
11186
      ;;
 
11187
 
 
11188
    amigaos*)
 
11189
      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)'
 
11190
      hardcode_libdir_flag_spec='-L$libdir'
 
11191
      hardcode_minus_L=yes
 
11192
 
 
11193
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
11194
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
11195
      # to version 4, is to share data among multiple programs linked
 
11196
      # with the same dynamic library.  Since this doesn't match the
 
11197
      # behavior of shared libraries on other platforms, we can't use
 
11198
      # them.
 
11199
      ld_shlibs=no
 
11200
      ;;
 
11201
 
 
11202
    beos*)
 
11203
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11204
        allow_undefined_flag=unsupported
 
11205
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11206
        # support --undefined.  This deserves some investigation.  FIXME
 
11207
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11208
      else
 
11209
        ld_shlibs=no
 
11210
      fi
 
11211
      ;;
 
11212
 
 
11213
    cygwin* | mingw* | pw32*)
 
11214
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
11215
      # as there is no search path for DLLs.
 
11216
      hardcode_libdir_flag_spec='-L$libdir'
 
11217
      allow_undefined_flag=unsupported
 
11218
      always_export_symbols=no
 
11219
      enable_shared_with_static_runtimes=yes
 
11220
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11221
 
 
11222
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11223
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11224
        # If the export-symbols file already is a .def file (1st line
 
11225
        # is EXPORTS), use it as is; otherwise, prepend...
 
11226
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11227
          cp $export_symbols $output_objdir/$soname.def;
 
11228
        else
 
11229
          echo EXPORTS > $output_objdir/$soname.def;
 
11230
          cat $export_symbols >> $output_objdir/$soname.def;
 
11231
        fi~
 
11232
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
11233
      else
 
11234
        ld_shlibs=no
 
11235
      fi
 
11236
      ;;
 
11237
 
 
11238
    linux*)
 
11239
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11240
        tmp_addflag=
 
11241
        case $cc_basename,$host_cpu in
 
11242
        pgcc*)                          # Portland Group C compiler
 
11243
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11244
          tmp_addflag=' $pic_flag'
 
11245
          ;;
 
11246
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
11247
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11248
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
11249
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
11250
          tmp_addflag=' -i_dynamic' ;;
 
11251
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
11252
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
11253
        ifc* | ifort*)                  # Intel Fortran compiler
 
11254
          tmp_addflag=' -nofor_main' ;;
 
11255
        esac
 
11256
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11257
 
 
11258
        if test $supports_anon_versioning = yes; then
 
11259
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
11260
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
11261
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
11262
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
11263
        fi
 
11264
      else
 
11265
        ld_shlibs=no
 
11266
      fi
 
11267
      ;;
 
11268
 
 
11269
    netbsd*)
 
11270
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11271
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
11272
        wlarc=
 
11273
      else
 
11274
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11275
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11276
      fi
 
11277
      ;;
 
11278
 
 
11279
    solaris* | sysv5*)
 
11280
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
11281
        ld_shlibs=no
 
11282
        cat <<EOF 1>&2
 
11283
 
 
11284
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
11285
*** create shared libraries on Solaris systems.  Therefore, libtool
 
11286
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
11287
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
11288
*** your PATH or compiler configuration so that the native linker is
 
11289
*** used, and then restart.
 
11290
 
 
11291
EOF
 
11292
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11293
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11294
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11295
      else
 
11296
        ld_shlibs=no
 
11297
      fi
 
11298
      ;;
 
11299
 
 
11300
    sunos4*)
 
11301
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
11302
      wlarc=
 
11303
      hardcode_direct=yes
 
11304
      hardcode_shlibpath_var=no
 
11305
      ;;
 
11306
 
 
11307
    *)
 
11308
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11309
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11310
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11311
      else
 
11312
        ld_shlibs=no
 
11313
      fi
 
11314
      ;;
 
11315
    esac
 
11316
 
 
11317
    if test "$ld_shlibs" = no; then
 
11318
      runpath_var=
 
11319
      hardcode_libdir_flag_spec=
 
11320
      export_dynamic_flag_spec=
 
11321
      whole_archive_flag_spec=
 
11322
    fi
 
11323
  else
 
11324
    # PORTME fill in a description of your system's linker (not GNU ld)
 
11325
    case $host_os in
 
11326
    aix3*)
 
11327
      allow_undefined_flag=unsupported
 
11328
      always_export_symbols=yes
 
11329
      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'
 
11330
      # Note: this linker hardcodes the directories in LIBPATH if there
 
11331
      # are no directories specified by -L.
 
11332
      hardcode_minus_L=yes
 
11333
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
11334
        # Neither direct hardcoding nor static linking is supported with a
 
11335
        # broken collect2.
 
11336
        hardcode_direct=unsupported
 
11337
      fi
 
11338
      ;;
 
11339
 
 
11340
    aix4* | aix5*)
 
11341
      if test "$host_cpu" = ia64; then
 
11342
        # On IA64, the linker does run time linking by default, so we don't
 
11343
        # have to do anything special.
 
11344
        aix_use_runtimelinking=no
 
11345
        exp_sym_flag='-Bexport'
 
11346
        no_entry_flag=""
 
11347
      else
 
11348
        # If we're using GNU nm, then we don't want the "-C" option.
 
11349
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11350
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11351
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
11352
        else
 
11353
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
11354
        fi
 
11355
        aix_use_runtimelinking=no
 
11356
 
 
11357
        # Test if we are trying to use run time linking or normal
 
11358
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11359
        # need to do runtime linking.
 
11360
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11361
          for ld_flag in $LDFLAGS; do
 
11362
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
11363
            aix_use_runtimelinking=yes
 
11364
            break
 
11365
          fi
 
11366
          done
 
11367
        esac
 
11368
 
 
11369
        exp_sym_flag='-bexport'
 
11370
        no_entry_flag='-bnoentry'
 
11371
      fi
 
11372
 
 
11373
      # When large executables or shared objects are built, AIX ld can
 
11374
      # have problems creating the table of contents.  If linking a library
 
11375
      # or program results in "error TOC overflow" add -mminimal-toc to
 
11376
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11377
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11378
 
 
11379
      archive_cmds=''
 
11380
      hardcode_direct=yes
 
11381
      hardcode_libdir_separator=':'
 
11382
      link_all_deplibs=yes
 
11383
 
 
11384
      if test "$GCC" = yes; then
 
11385
        case $host_os in aix4.[012]|aix4.[012].*)
 
11386
        # We only want to do this on AIX 4.2 and lower, the check
 
11387
        # below for broken collect2 doesn't work under 4.3+
 
11388
          collect2name=`${CC} -print-prog-name=collect2`
 
11389
          if test -f "$collect2name" && \
 
11390
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11391
          then
 
11392
          # We have reworked collect2
 
11393
          hardcode_direct=yes
 
11394
          else
 
11395
          # We have old collect2
 
11396
          hardcode_direct=unsupported
 
11397
          # It fails to find uninstalled libraries when the uninstalled
 
11398
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11399
          # to unsupported forces relinking
 
11400
          hardcode_minus_L=yes
 
11401
          hardcode_libdir_flag_spec='-L$libdir'
 
11402
          hardcode_libdir_separator=
 
11403
          fi
 
11404
        esac
 
11405
        shared_flag='-shared'
 
11406
        if test "$aix_use_runtimelinking" = yes; then
 
11407
          shared_flag="$shared_flag "'${wl}-G'
 
11408
        fi
 
11409
      else
 
11410
        # not using gcc
 
11411
        if test "$host_cpu" = ia64; then
 
11412
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11413
        # chokes on -Wl,-G. The following line is correct:
 
11414
          shared_flag='-G'
 
11415
        else
 
11416
        if test "$aix_use_runtimelinking" = yes; then
 
11417
            shared_flag='${wl}-G'
 
11418
          else
 
11419
            shared_flag='${wl}-bM:SRE'
 
11420
        fi
 
11421
        fi
 
11422
      fi
 
11423
 
 
11424
      # It seems that -bexpall does not export symbols beginning with
 
11425
      # underscore (_), so it is better to generate a list of symbols to export.
 
11426
      always_export_symbols=yes
 
11427
      if test "$aix_use_runtimelinking" = yes; then
 
11428
        # Warning - without using the other runtime loading flags (-brtl),
 
11429
        # -berok will link without error, but may produce a broken library.
 
11430
        allow_undefined_flag='-berok'
 
11431
       # Determine the default libpath from the value encoded in an empty executable.
 
11432
       cat >conftest.$ac_ext <<_ACEOF
 
11433
/* confdefs.h.  */
 
11434
_ACEOF
 
11435
cat confdefs.h >>conftest.$ac_ext
 
11436
cat >>conftest.$ac_ext <<_ACEOF
 
11437
/* end confdefs.h.  */
 
11438
 
 
11439
int
 
11440
main ()
 
11441
{
 
11442
 
 
11443
  ;
 
11444
  return 0;
 
11445
}
 
11446
_ACEOF
 
11447
rm -f conftest.$ac_objext conftest$ac_exeext
 
11448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11449
  (eval $ac_link) 2>conftest.er1
 
11450
  ac_status=$?
 
11451
  grep -v '^ *+' conftest.er1 >conftest.err
 
11452
  rm -f conftest.er1
 
11453
  cat conftest.err >&5
 
11454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11455
  (exit $ac_status); } &&
 
11456
         { ac_try='test -z "$ac_c_werror_flag"
 
11457
                         || test ! -s conftest.err'
 
11458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11459
  (eval $ac_try) 2>&5
 
11460
  ac_status=$?
 
11461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11462
  (exit $ac_status); }; } &&
 
11463
         { ac_try='test -s conftest$ac_exeext'
 
11464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11465
  (eval $ac_try) 2>&5
 
11466
  ac_status=$?
 
11467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11468
  (exit $ac_status); }; }; then
 
11469
 
 
11470
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11471
}'`
 
11472
# Check for a 64-bit object if we didn't find anything.
 
11473
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11474
}'`; fi
 
11475
else
 
11476
  echo "$as_me: failed program was:" >&5
 
11477
sed 's/^/| /' conftest.$ac_ext >&5
 
11478
 
 
11479
fi
 
11480
rm -f conftest.err conftest.$ac_objext \
 
11481
      conftest$ac_exeext conftest.$ac_ext
 
11482
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11483
 
 
11484
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11485
        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"
 
11486
       else
 
11487
        if test "$host_cpu" = ia64; then
 
11488
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
11489
          allow_undefined_flag="-z nodefs"
 
11490
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
11491
        else
 
11492
         # Determine the default libpath from the value encoded in an empty executable.
 
11493
         cat >conftest.$ac_ext <<_ACEOF
 
11494
/* confdefs.h.  */
 
11495
_ACEOF
 
11496
cat confdefs.h >>conftest.$ac_ext
 
11497
cat >>conftest.$ac_ext <<_ACEOF
 
11498
/* end confdefs.h.  */
 
11499
 
 
11500
int
 
11501
main ()
 
11502
{
 
11503
 
 
11504
  ;
 
11505
  return 0;
 
11506
}
 
11507
_ACEOF
 
11508
rm -f conftest.$ac_objext conftest$ac_exeext
 
11509
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11510
  (eval $ac_link) 2>conftest.er1
 
11511
  ac_status=$?
 
11512
  grep -v '^ *+' conftest.er1 >conftest.err
 
11513
  rm -f conftest.er1
 
11514
  cat conftest.err >&5
 
11515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11516
  (exit $ac_status); } &&
 
11517
         { ac_try='test -z "$ac_c_werror_flag"
 
11518
                         || test ! -s conftest.err'
 
11519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11520
  (eval $ac_try) 2>&5
 
11521
  ac_status=$?
 
11522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11523
  (exit $ac_status); }; } &&
 
11524
         { ac_try='test -s conftest$ac_exeext'
 
11525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11526
  (eval $ac_try) 2>&5
 
11527
  ac_status=$?
 
11528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11529
  (exit $ac_status); }; }; then
 
11530
 
 
11531
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11532
}'`
 
11533
# Check for a 64-bit object if we didn't find anything.
 
11534
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11535
}'`; fi
 
11536
else
 
11537
  echo "$as_me: failed program was:" >&5
 
11538
sed 's/^/| /' conftest.$ac_ext >&5
 
11539
 
 
11540
fi
 
11541
rm -f conftest.err conftest.$ac_objext \
 
11542
      conftest$ac_exeext conftest.$ac_ext
 
11543
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11544
 
 
11545
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11546
          # Warning - without using the other run time loading flags,
 
11547
          # -berok will link without error, but may produce a broken library.
 
11548
          no_undefined_flag=' ${wl}-bernotok'
 
11549
          allow_undefined_flag=' ${wl}-berok'
 
11550
          # -bexpall does not export symbols beginning with underscore (_)
 
11551
          always_export_symbols=yes
 
11552
          # Exported symbols can be pulled into shared objects from archives
 
11553
          whole_archive_flag_spec=' '
 
11554
          archive_cmds_need_lc=yes
 
11555
          # This is similar to how AIX traditionally builds its shared libraries.
 
11556
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11557
        fi
 
11558
      fi
 
11559
      ;;
 
11560
 
 
11561
    amigaos*)
 
11562
      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)'
 
11563
      hardcode_libdir_flag_spec='-L$libdir'
 
11564
      hardcode_minus_L=yes
 
11565
      # see comment about different semantics on the GNU ld section
 
11566
      ld_shlibs=no
 
11567
      ;;
 
11568
 
 
11569
    bsdi[45]*)
 
11570
      export_dynamic_flag_spec=-rdynamic
 
11571
      ;;
 
11572
 
 
11573
    cygwin* | mingw* | pw32*)
 
11574
      # When not using gcc, we currently assume that we are using
 
11575
      # Microsoft Visual C++.
 
11576
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
11577
      # no search path for DLLs.
 
11578
      hardcode_libdir_flag_spec=' '
 
11579
      allow_undefined_flag=unsupported
 
11580
      # Tell ltmain to make .lib files, not .a files.
 
11581
      libext=lib
 
11582
      # Tell ltmain to make .dll files, not .so files.
 
11583
      shrext_cmds=".dll"
 
11584
      # FIXME: Setting linknames here is a bad hack.
 
11585
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
11586
      # The linker will automatically build a .lib file if we build a DLL.
 
11587
      old_archive_From_new_cmds='true'
 
11588
      # FIXME: Should let the user specify the lib program.
 
11589
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
11590
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
11591
      enable_shared_with_static_runtimes=yes
 
11592
      ;;
 
11593
 
 
11594
    darwin* | rhapsody*)
 
11595
      case $host_os in
 
11596
        rhapsody* | darwin1.[012])
 
11597
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
11598
         ;;
 
11599
       *) # Darwin 1.3 on
 
11600
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11601
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11602
         else
 
11603
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11604
             10.[012])
 
11605
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11606
               ;;
 
11607
             10.*)
 
11608
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
11609
               ;;
 
11610
           esac
 
11611
         fi
 
11612
         ;;
 
11613
      esac
 
11614
      archive_cmds_need_lc=no
 
11615
      hardcode_direct=no
 
11616
      hardcode_automatic=yes
 
11617
      hardcode_shlibpath_var=unsupported
 
11618
      whole_archive_flag_spec=''
 
11619
      link_all_deplibs=yes
 
11620
    if test "$GCC" = yes ; then
 
11621
        output_verbose_link_cmd='echo'
 
11622
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11623
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11624
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11625
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11626
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11627
    else
 
11628
      case $cc_basename in
 
11629
        xlc*)
 
11630
         output_verbose_link_cmd='echo'
 
11631
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11632
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11633
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11634
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11635
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11636
          ;;
 
11637
       *)
 
11638
         ld_shlibs=no
 
11639
          ;;
 
11640
      esac
 
11641
    fi
 
11642
      ;;
 
11643
 
 
11644
    dgux*)
 
11645
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11646
      hardcode_libdir_flag_spec='-L$libdir'
 
11647
      hardcode_shlibpath_var=no
 
11648
      ;;
 
11649
 
 
11650
    freebsd1*)
 
11651
      ld_shlibs=no
 
11652
      ;;
 
11653
 
 
11654
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
11655
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
11656
    # does not break anything, and helps significantly (at the cost of a little
 
11657
    # extra space).
 
11658
    freebsd2.2*)
 
11659
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
11660
      hardcode_libdir_flag_spec='-R$libdir'
 
11661
      hardcode_direct=yes
 
11662
      hardcode_shlibpath_var=no
 
11663
      ;;
 
11664
 
 
11665
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
11666
    freebsd2*)
 
11667
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
11668
      hardcode_direct=yes
 
11669
      hardcode_minus_L=yes
 
11670
      hardcode_shlibpath_var=no
 
11671
      ;;
 
11672
 
 
11673
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
11674
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
11675
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
11676
      hardcode_libdir_flag_spec='-R$libdir'
 
11677
      hardcode_direct=yes
 
11678
      hardcode_shlibpath_var=no
 
11679
      ;;
 
11680
 
 
11681
    hpux9*)
 
11682
      if test "$GCC" = yes; then
 
11683
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11684
      else
 
11685
        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'
 
11686
      fi
 
11687
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11688
      hardcode_libdir_separator=:
 
11689
      hardcode_direct=yes
 
11690
 
 
11691
      # hardcode_minus_L: Not really in the search PATH,
 
11692
      # but as the default location of the library.
 
11693
      hardcode_minus_L=yes
 
11694
      export_dynamic_flag_spec='${wl}-E'
 
11695
      ;;
 
11696
 
 
11697
    hpux10* | hpux11*)
 
11698
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
11699
        case $host_cpu in
 
11700
        hppa*64*|ia64*)
 
11701
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11702
          ;;
 
11703
        *)
 
11704
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11705
          ;;
 
11706
        esac
 
11707
      else
 
11708
        case $host_cpu in
 
11709
        hppa*64*|ia64*)
 
11710
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11711
          ;;
 
11712
        *)
 
11713
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
11714
          ;;
 
11715
        esac
 
11716
      fi
 
11717
      if test "$with_gnu_ld" = no; then
 
11718
        case $host_cpu in
 
11719
        hppa*64*)
 
11720
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11721
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
11722
          hardcode_libdir_separator=:
 
11723
          hardcode_direct=no
 
11724
          hardcode_shlibpath_var=no
 
11725
          ;;
 
11726
        ia64*)
 
11727
          hardcode_libdir_flag_spec='-L$libdir'
 
11728
          hardcode_direct=no
 
11729
          hardcode_shlibpath_var=no
 
11730
 
 
11731
          # hardcode_minus_L: Not really in the search PATH,
 
11732
          # but as the default location of the library.
 
11733
          hardcode_minus_L=yes
 
11734
          ;;
 
11735
        *)
 
11736
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11737
          hardcode_libdir_separator=:
 
11738
          hardcode_direct=yes
 
11739
          export_dynamic_flag_spec='${wl}-E'
 
11740
 
 
11741
          # hardcode_minus_L: Not really in the search PATH,
 
11742
          # but as the default location of the library.
 
11743
          hardcode_minus_L=yes
 
11744
          ;;
 
11745
        esac
 
11746
      fi
 
11747
      ;;
 
11748
 
 
11749
    irix5* | irix6* | nonstopux*)
 
11750
      if test "$GCC" = yes; then
 
11751
        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'
 
11752
      else
 
11753
        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'
 
11754
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
11755
      fi
 
11756
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11757
      hardcode_libdir_separator=:
 
11758
      link_all_deplibs=yes
 
11759
      ;;
 
11760
 
 
11761
    netbsd*)
 
11762
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11763
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
11764
      else
 
11765
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
11766
      fi
 
11767
      hardcode_libdir_flag_spec='-R$libdir'
 
11768
      hardcode_direct=yes
 
11769
      hardcode_shlibpath_var=no
 
11770
      ;;
 
11771
 
 
11772
    newsos6)
 
11773
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11774
      hardcode_direct=yes
 
11775
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11776
      hardcode_libdir_separator=:
 
11777
      hardcode_shlibpath_var=no
 
11778
      ;;
 
11779
 
 
11780
    openbsd*)
 
11781
      hardcode_direct=yes
 
11782
      hardcode_shlibpath_var=no
 
11783
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11784
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11785
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
11786
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
11787
        export_dynamic_flag_spec='${wl}-E'
 
11788
      else
 
11789
       case $host_os in
 
11790
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
11791
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
11792
           hardcode_libdir_flag_spec='-R$libdir'
 
11793
           ;;
 
11794
         *)
 
11795
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11796
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
11797
           ;;
 
11798
       esac
 
11799
      fi
 
11800
      ;;
 
11801
 
 
11802
    os2*)
 
11803
      hardcode_libdir_flag_spec='-L$libdir'
 
11804
      hardcode_minus_L=yes
 
11805
      allow_undefined_flag=unsupported
 
11806
      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'
 
11807
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
11808
      ;;
 
11809
 
 
11810
    osf3*)
 
11811
      if test "$GCC" = yes; then
 
11812
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
11813
        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'
 
11814
      else
 
11815
        allow_undefined_flag=' -expect_unresolved \*'
 
11816
        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'
 
11817
      fi
 
11818
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11819
      hardcode_libdir_separator=:
 
11820
      ;;
 
11821
 
 
11822
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
11823
      if test "$GCC" = yes; then
 
11824
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
11825
        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'
 
11826
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11827
      else
 
11828
        allow_undefined_flag=' -expect_unresolved \*'
 
11829
        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'
 
11830
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
11831
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
11832
 
 
11833
        # Both c and cxx compiler support -rpath directly
 
11834
        hardcode_libdir_flag_spec='-rpath $libdir'
 
11835
      fi
 
11836
      hardcode_libdir_separator=:
 
11837
      ;;
 
11838
 
 
11839
    sco3.2v5*)
 
11840
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11841
      hardcode_shlibpath_var=no
 
11842
      export_dynamic_flag_spec='${wl}-Bexport'
 
11843
      runpath_var=LD_RUN_PATH
 
11844
      hardcode_runpath_var=yes
 
11845
      ;;
 
11846
 
 
11847
    solaris*)
 
11848
      no_undefined_flag=' -z text'
 
11849
      if test "$GCC" = yes; then
 
11850
        wlarc='${wl}'
 
11851
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11852
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11853
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
11854
      else
 
11855
        wlarc=''
 
11856
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11857
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11858
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
11859
      fi
 
11860
      hardcode_libdir_flag_spec='-R$libdir'
 
11861
      hardcode_shlibpath_var=no
 
11862
      case $host_os in
 
11863
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11864
      *)
 
11865
        # The compiler driver will combine linker options so we
 
11866
        # cannot just pass the convience library names through
 
11867
        # without $wl, iff we do not link with $LD.
 
11868
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
11869
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11870
        case $wlarc in
 
11871
        '')
 
11872
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
11873
        *)
 
11874
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
11875
        esac ;;
 
11876
      esac
 
11877
      link_all_deplibs=yes
 
11878
      ;;
 
11879
 
 
11880
    sunos4*)
 
11881
      if test "x$host_vendor" = xsequent; then
 
11882
        # Use $CC to link under sequent, because it throws in some extra .o
 
11883
        # files that make .init and .fini sections work.
 
11884
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11885
      else
 
11886
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
11887
      fi
 
11888
      hardcode_libdir_flag_spec='-L$libdir'
 
11889
      hardcode_direct=yes
 
11890
      hardcode_minus_L=yes
 
11891
      hardcode_shlibpath_var=no
 
11892
      ;;
 
11893
 
 
11894
    sysv4)
 
11895
      case $host_vendor in
 
11896
        sni)
 
11897
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11898
          hardcode_direct=yes # is this really true???
 
11899
        ;;
 
11900
        siemens)
 
11901
          ## LD is ld it makes a PLAMLIB
 
11902
          ## CC just makes a GrossModule.
 
11903
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11904
          reload_cmds='$CC -r -o $output$reload_objs'
 
11905
          hardcode_direct=no
 
11906
        ;;
 
11907
        motorola)
 
11908
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11909
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
11910
        ;;
 
11911
      esac
 
11912
      runpath_var='LD_RUN_PATH'
 
11913
      hardcode_shlibpath_var=no
 
11914
      ;;
 
11915
 
 
11916
    sysv4.3*)
 
11917
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11918
      hardcode_shlibpath_var=no
 
11919
      export_dynamic_flag_spec='-Bexport'
 
11920
      ;;
 
11921
 
 
11922
    sysv4*MP*)
 
11923
      if test -d /usr/nec; then
 
11924
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11925
        hardcode_shlibpath_var=no
 
11926
        runpath_var=LD_RUN_PATH
 
11927
        hardcode_runpath_var=yes
 
11928
        ld_shlibs=yes
 
11929
      fi
 
11930
      ;;
 
11931
 
 
11932
    sysv4.2uw2*)
 
11933
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11934
      hardcode_direct=yes
 
11935
      hardcode_minus_L=no
 
11936
      hardcode_shlibpath_var=no
 
11937
      hardcode_runpath_var=yes
 
11938
      runpath_var=LD_RUN_PATH
 
11939
      ;;
 
11940
 
 
11941
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
11942
      no_undefined_flag='${wl}-z ${wl}text'
 
11943
      if test "$GCC" = yes; then
 
11944
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11945
      else
 
11946
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11947
      fi
 
11948
      runpath_var='LD_RUN_PATH'
 
11949
      hardcode_shlibpath_var=no
 
11950
      ;;
 
11951
 
 
11952
    sysv5*)
 
11953
      no_undefined_flag=' -z text'
 
11954
      # $CC -shared without GNU ld will not create a library from C++
 
11955
      # object files and a static libstdc++, better avoid it by now
 
11956
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11957
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11958
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
11959
      hardcode_libdir_flag_spec=
 
11960
      hardcode_shlibpath_var=no
 
11961
      runpath_var='LD_RUN_PATH'
 
11962
      ;;
 
11963
 
 
11964
    uts4*)
 
11965
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11966
      hardcode_libdir_flag_spec='-L$libdir'
 
11967
      hardcode_shlibpath_var=no
 
11968
      ;;
 
11969
 
 
11970
    *)
 
11971
      ld_shlibs=no
 
11972
      ;;
 
11973
    esac
 
11974
  fi
 
11975
 
 
11976
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
11977
echo "${ECHO_T}$ld_shlibs" >&6
 
11978
test "$ld_shlibs" = no && can_build_shared=no
 
11979
 
 
11980
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11981
if test "$GCC" = yes; then
 
11982
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11983
fi
 
11984
 
 
11985
#
 
11986
# Do we need to explicitly link libc?
 
11987
#
 
11988
case "x$archive_cmds_need_lc" in
 
11989
x|xyes)
 
11990
  # Assume -lc should be added
 
11991
  archive_cmds_need_lc=yes
 
11992
 
 
11993
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11994
    case $archive_cmds in
 
11995
    *'~'*)
 
11996
      # FIXME: we may have to deal with multi-command sequences.
 
11997
      ;;
 
11998
    '$CC '*)
 
11999
      # Test whether the compiler implicitly links with -lc since on some
 
12000
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12001
      # to ld, don't add -lc before -lgcc.
 
12002
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12003
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12004
      $rm conftest*
 
12005
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12006
 
 
12007
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12008
  (eval $ac_compile) 2>&5
 
12009
  ac_status=$?
 
12010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12011
  (exit $ac_status); } 2>conftest.err; then
 
12012
        soname=conftest
 
12013
        lib=conftest
 
12014
        libobjs=conftest.$ac_objext
 
12015
        deplibs=
 
12016
        wl=$lt_prog_compiler_wl
 
12017
        compiler_flags=-v
 
12018
        linker_flags=-v
 
12019
        verstring=
 
12020
        output_objdir=.
 
12021
        libname=conftest
 
12022
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
12023
        allow_undefined_flag=
 
12024
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12025
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12026
  ac_status=$?
 
12027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12028
  (exit $ac_status); }
 
12029
        then
 
12030
          archive_cmds_need_lc=no
 
12031
        else
 
12032
          archive_cmds_need_lc=yes
 
12033
        fi
 
12034
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
12035
      else
 
12036
        cat conftest.err 1>&5
 
12037
      fi
 
12038
      $rm conftest*
 
12039
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
12040
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
12041
      ;;
 
12042
    esac
 
12043
  fi
 
12044
  ;;
 
12045
esac
 
12046
 
 
12047
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12048
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12049
library_names_spec=
 
12050
libname_spec='lib$name'
 
12051
soname_spec=
 
12052
shrext_cmds=".so"
 
12053
postinstall_cmds=
 
12054
postuninstall_cmds=
 
12055
finish_cmds=
 
12056
finish_eval=
 
12057
shlibpath_var=
 
12058
shlibpath_overrides_runpath=unknown
 
12059
version_type=none
 
12060
dynamic_linker="$host_os ld.so"
 
12061
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12062
if test "$GCC" = yes; then
 
12063
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12064
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12065
    # if the path contains ";" then we assume it to be the separator
 
12066
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12067
    # assumed that no part of a normal pathname contains ";" but that should
 
12068
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12069
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12070
  else
 
12071
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12072
  fi
 
12073
else
 
12074
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12075
fi
 
12076
need_lib_prefix=unknown
 
12077
hardcode_into_libs=no
 
12078
 
 
12079
# when you set need_version to no, make sure it does not cause -set_version
 
12080
# flags to be left without arguments
 
12081
need_version=unknown
 
12082
 
 
12083
case $host_os in
 
12084
aix3*)
 
12085
  version_type=linux
 
12086
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12087
  shlibpath_var=LIBPATH
 
12088
 
 
12089
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12090
  soname_spec='${libname}${release}${shared_ext}$major'
 
12091
  ;;
 
12092
 
 
12093
aix4* | aix5*)
 
12094
  version_type=linux
 
12095
  need_lib_prefix=no
 
12096
  need_version=no
 
12097
  hardcode_into_libs=yes
 
12098
  if test "$host_cpu" = ia64; then
 
12099
    # AIX 5 supports IA64
 
12100
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12101
    shlibpath_var=LD_LIBRARY_PATH
 
12102
  else
 
12103
    # With GCC up to 2.95.x, collect2 would create an import file
 
12104
    # for dependence libraries.  The import file would start with
 
12105
    # the line `#! .'.  This would cause the generated library to
 
12106
    # depend on `.', always an invalid library.  This was fixed in
 
12107
    # development snapshots of GCC prior to 3.0.
 
12108
    case $host_os in
 
12109
      aix4 | aix4.[01] | aix4.[01].*)
 
12110
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12111
           echo ' yes '
 
12112
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12113
        :
 
12114
      else
 
12115
        can_build_shared=no
 
12116
      fi
 
12117
      ;;
 
12118
    esac
 
12119
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12120
    # soname into executable. Probably we can add versioning support to
 
12121
    # collect2, so additional links can be useful in future.
 
12122
    if test "$aix_use_runtimelinking" = yes; then
 
12123
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12124
      # instead of lib<name>.a to let people know that these are not
 
12125
      # typical AIX shared libraries.
 
12126
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12127
    else
 
12128
      # We preserve .a as extension for shared libraries through AIX4.2
 
12129
      # and later when we are not doing run time linking.
 
12130
      library_names_spec='${libname}${release}.a $libname.a'
 
12131
      soname_spec='${libname}${release}${shared_ext}$major'
 
12132
    fi
 
12133
    shlibpath_var=LIBPATH
 
12134
  fi
 
12135
  ;;
 
12136
 
 
12137
amigaos*)
 
12138
  library_names_spec='$libname.ixlibrary $libname.a'
 
12139
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12140
  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'
 
12141
  ;;
 
12142
 
 
12143
beos*)
 
12144
  library_names_spec='${libname}${shared_ext}'
 
12145
  dynamic_linker="$host_os ld.so"
 
12146
  shlibpath_var=LIBRARY_PATH
 
12147
  ;;
 
12148
 
 
12149
bsdi[45]*)
 
12150
  version_type=linux
 
12151
  need_version=no
 
12152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12153
  soname_spec='${libname}${release}${shared_ext}$major'
 
12154
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12155
  shlibpath_var=LD_LIBRARY_PATH
 
12156
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12157
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12158
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12159
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12160
  # libtool to hard-code these into programs
 
12161
  ;;
 
12162
 
 
12163
cygwin* | mingw* | pw32*)
 
12164
  version_type=windows
 
12165
  shrext_cmds=".dll"
 
12166
  need_version=no
 
12167
  need_lib_prefix=no
 
12168
 
 
12169
  case $GCC,$host_os in
 
12170
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12171
    library_names_spec='$libname.dll.a'
 
12172
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12173
    postinstall_cmds='base_file=`basename \${file}`~
 
12174
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12175
      dldir=$destdir/`dirname \$dlpath`~
 
12176
      test -d \$dldir || mkdir -p \$dldir~
 
12177
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12178
      chmod a+x \$dldir/$dlname'
 
12179
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12180
      dlpath=$dir/\$dldll~
 
12181
       $rm \$dlpath'
 
12182
    shlibpath_overrides_runpath=yes
 
12183
 
 
12184
    case $host_os in
 
12185
    cygwin*)
 
12186
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12187
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12188
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12189
      ;;
 
12190
    mingw*)
 
12191
      # MinGW DLLs use traditional 'lib' prefix
 
12192
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12193
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12194
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12195
        # It is most probably a Windows format PATH printed by
 
12196
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12197
        # path with ; separators, and with drive letters. We can handle the
 
12198
        # drive letters (cygwin fileutils understands them), so leave them,
 
12199
        # especially as we might pass files found there to a mingw objdump,
 
12200
        # which wouldn't understand a cygwinified path. Ahh.
 
12201
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12202
      else
 
12203
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12204
      fi
 
12205
      ;;
 
12206
    pw32*)
 
12207
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12208
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12209
      ;;
 
12210
    esac
 
12211
    ;;
 
12212
 
 
12213
  *)
 
12214
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12215
    ;;
 
12216
  esac
 
12217
  dynamic_linker='Win32 ld.exe'
 
12218
  # FIXME: first we should search . and the directory the executable is in
 
12219
  shlibpath_var=PATH
 
12220
  ;;
 
12221
 
 
12222
darwin* | rhapsody*)
 
12223
  dynamic_linker="$host_os dyld"
 
12224
  version_type=darwin
 
12225
  need_lib_prefix=no
 
12226
  need_version=no
 
12227
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12228
  soname_spec='${libname}${release}${major}$shared_ext'
 
12229
  shlibpath_overrides_runpath=yes
 
12230
  shlibpath_var=DYLD_LIBRARY_PATH
 
12231
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12232
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12233
  if test "$GCC" = yes; then
 
12234
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12235
  else
 
12236
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12237
  fi
 
12238
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12239
  ;;
 
12240
 
 
12241
dgux*)
 
12242
  version_type=linux
 
12243
  need_lib_prefix=no
 
12244
  need_version=no
 
12245
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12246
  soname_spec='${libname}${release}${shared_ext}$major'
 
12247
  shlibpath_var=LD_LIBRARY_PATH
 
12248
  ;;
 
12249
 
 
12250
freebsd1*)
 
12251
  dynamic_linker=no
 
12252
  ;;
 
12253
 
 
12254
kfreebsd*-gnu)
 
12255
  version_type=linux
 
12256
  need_lib_prefix=no
 
12257
  need_version=no
 
12258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12259
  soname_spec='${libname}${release}${shared_ext}$major'
 
12260
  shlibpath_var=LD_LIBRARY_PATH
 
12261
  shlibpath_overrides_runpath=no
 
12262
  hardcode_into_libs=yes
 
12263
  dynamic_linker='GNU ld.so'
 
12264
  ;;
 
12265
 
 
12266
freebsd* | dragonfly*)
 
12267
  # DragonFly does not have aout.  When/if they implement a new
 
12268
  # versioning mechanism, adjust this.
 
12269
  if test -x /usr/bin/objformat; then
 
12270
    objformat=`/usr/bin/objformat`
 
12271
  else
 
12272
    case $host_os in
 
12273
    freebsd[123]*) objformat=aout ;;
 
12274
    *) objformat=elf ;;
 
12275
    esac
 
12276
  fi
 
12277
  version_type=freebsd-$objformat
 
12278
  case $version_type in
 
12279
    freebsd-elf*)
 
12280
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12281
      need_version=no
 
12282
      need_lib_prefix=no
 
12283
      ;;
 
12284
    freebsd-*)
 
12285
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12286
      need_version=yes
 
12287
      ;;
 
12288
  esac
 
12289
  shlibpath_var=LD_LIBRARY_PATH
 
12290
  case $host_os in
 
12291
  freebsd2*)
 
12292
    shlibpath_overrides_runpath=yes
 
12293
    ;;
 
12294
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12295
    shlibpath_overrides_runpath=yes
 
12296
    hardcode_into_libs=yes
 
12297
    ;;
 
12298
  *) # from 3.2 on
 
12299
    shlibpath_overrides_runpath=no
 
12300
    hardcode_into_libs=yes
 
12301
    ;;
 
12302
  esac
 
12303
  ;;
 
12304
 
 
12305
gnu*)
 
12306
  version_type=linux
 
12307
  need_lib_prefix=no
 
12308
  need_version=no
 
12309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12310
  soname_spec='${libname}${release}${shared_ext}$major'
 
12311
  shlibpath_var=LD_LIBRARY_PATH
 
12312
  hardcode_into_libs=yes
 
12313
  ;;
 
12314
 
 
12315
hpux9* | hpux10* | hpux11*)
 
12316
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12317
  # link against other versions.
 
12318
  version_type=sunos
 
12319
  need_lib_prefix=no
 
12320
  need_version=no
 
12321
  case $host_cpu in
 
12322
  ia64*)
 
12323
    shrext_cmds='.so'
 
12324
    hardcode_into_libs=yes
 
12325
    dynamic_linker="$host_os dld.so"
 
12326
    shlibpath_var=LD_LIBRARY_PATH
 
12327
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12328
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12329
    soname_spec='${libname}${release}${shared_ext}$major'
 
12330
    if test "X$HPUX_IA64_MODE" = X32; then
 
12331
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12332
    else
 
12333
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12334
    fi
 
12335
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12336
    ;;
 
12337
   hppa*64*)
 
12338
     shrext_cmds='.sl'
 
12339
     hardcode_into_libs=yes
 
12340
     dynamic_linker="$host_os dld.sl"
 
12341
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12342
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12343
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12344
     soname_spec='${libname}${release}${shared_ext}$major'
 
12345
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12346
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12347
     ;;
 
12348
   *)
 
12349
    shrext_cmds='.sl'
 
12350
    dynamic_linker="$host_os dld.sl"
 
12351
    shlibpath_var=SHLIB_PATH
 
12352
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12353
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12354
    soname_spec='${libname}${release}${shared_ext}$major'
 
12355
    ;;
 
12356
  esac
 
12357
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12358
  postinstall_cmds='chmod 555 $lib'
 
12359
  ;;
 
12360
 
 
12361
irix5* | irix6* | nonstopux*)
 
12362
  case $host_os in
 
12363
    nonstopux*) version_type=nonstopux ;;
 
12364
    *)
 
12365
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12366
                version_type=linux
 
12367
        else
 
12368
                version_type=irix
 
12369
        fi ;;
 
12370
  esac
 
12371
  need_lib_prefix=no
 
12372
  need_version=no
 
12373
  soname_spec='${libname}${release}${shared_ext}$major'
 
12374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12375
  case $host_os in
 
12376
  irix5* | nonstopux*)
 
12377
    libsuff= shlibsuff=
 
12378
    ;;
 
12379
  *)
 
12380
    case $LD in # libtool.m4 will add one of these switches to LD
 
12381
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12382
      libsuff= shlibsuff= libmagic=32-bit;;
 
12383
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12384
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12385
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12386
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12387
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12388
    esac
 
12389
    ;;
 
12390
  esac
 
12391
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12392
  shlibpath_overrides_runpath=no
 
12393
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12394
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12395
  hardcode_into_libs=yes
 
12396
  ;;
 
12397
 
 
12398
# No shared lib support for Linux oldld, aout, or coff.
 
12399
linux*oldld* | linux*aout* | linux*coff*)
 
12400
  dynamic_linker=no
 
12401
  ;;
 
12402
 
 
12403
# This must be Linux ELF.
 
12404
linux*)
 
12405
  version_type=linux
 
12406
  need_lib_prefix=no
 
12407
  need_version=no
 
12408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12409
  soname_spec='${libname}${release}${shared_ext}$major'
 
12410
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12411
  shlibpath_var=LD_LIBRARY_PATH
 
12412
  shlibpath_overrides_runpath=no
 
12413
  # This implies no fast_install, which is unacceptable.
 
12414
  # Some rework will be needed to allow for fast_install
 
12415
  # before this can be enabled.
 
12416
  hardcode_into_libs=yes
 
12417
 
 
12418
  # Append ld.so.conf contents to the search path
 
12419
  if test -f /etc/ld.so.conf; then
 
12420
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12421
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12422
  fi
 
12423
 
 
12424
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12425
  # powerpc, because MkLinux only supported shared libraries with the
 
12426
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12427
  # most powerpc-linux boxes support dynamic linking these days and
 
12428
  # people can always --disable-shared, the test was removed, and we
 
12429
  # assume the GNU/Linux dynamic linker is in use.
 
12430
  dynamic_linker='GNU/Linux ld.so'
 
12431
  ;;
 
12432
 
 
12433
knetbsd*-gnu)
 
12434
  version_type=linux
 
12435
  need_lib_prefix=no
 
12436
  need_version=no
 
12437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12438
  soname_spec='${libname}${release}${shared_ext}$major'
 
12439
  shlibpath_var=LD_LIBRARY_PATH
 
12440
  shlibpath_overrides_runpath=no
 
12441
  hardcode_into_libs=yes
 
12442
  dynamic_linker='GNU ld.so'
 
12443
  ;;
 
12444
 
 
12445
netbsd*)
 
12446
  version_type=sunos
 
12447
  need_lib_prefix=no
 
12448
  need_version=no
 
12449
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12450
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12451
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12452
    dynamic_linker='NetBSD (a.out) ld.so'
 
12453
  else
 
12454
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12455
    soname_spec='${libname}${release}${shared_ext}$major'
 
12456
    dynamic_linker='NetBSD ld.elf_so'
 
12457
  fi
 
12458
  shlibpath_var=LD_LIBRARY_PATH
 
12459
  shlibpath_overrides_runpath=yes
 
12460
  hardcode_into_libs=yes
 
12461
  ;;
 
12462
 
 
12463
newsos6)
 
12464
  version_type=linux
 
12465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12466
  shlibpath_var=LD_LIBRARY_PATH
 
12467
  shlibpath_overrides_runpath=yes
 
12468
  ;;
 
12469
 
 
12470
nto-qnx*)
 
12471
  version_type=linux
 
12472
  need_lib_prefix=no
 
12473
  need_version=no
 
12474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12475
  soname_spec='${libname}${release}${shared_ext}$major'
 
12476
  shlibpath_var=LD_LIBRARY_PATH
 
12477
  shlibpath_overrides_runpath=yes
 
12478
  ;;
 
12479
 
 
12480
openbsd*)
 
12481
  version_type=sunos
 
12482
  need_lib_prefix=no
 
12483
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12484
  case $host_os in
 
12485
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12486
    *)                         need_version=no  ;;
 
12487
  esac
 
12488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12489
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12490
  shlibpath_var=LD_LIBRARY_PATH
 
12491
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12492
    case $host_os in
 
12493
      openbsd2.[89] | openbsd2.[89].*)
 
12494
        shlibpath_overrides_runpath=no
 
12495
        ;;
 
12496
      *)
 
12497
        shlibpath_overrides_runpath=yes
 
12498
        ;;
 
12499
      esac
 
12500
  else
 
12501
    shlibpath_overrides_runpath=yes
 
12502
  fi
 
12503
  ;;
 
12504
 
 
12505
os2*)
 
12506
  libname_spec='$name'
 
12507
  shrext_cmds=".dll"
 
12508
  need_lib_prefix=no
 
12509
  library_names_spec='$libname${shared_ext} $libname.a'
 
12510
  dynamic_linker='OS/2 ld.exe'
 
12511
  shlibpath_var=LIBPATH
 
12512
  ;;
 
12513
 
 
12514
osf3* | osf4* | osf5*)
 
12515
  version_type=osf
 
12516
  need_lib_prefix=no
 
12517
  need_version=no
 
12518
  soname_spec='${libname}${release}${shared_ext}$major'
 
12519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12520
  shlibpath_var=LD_LIBRARY_PATH
 
12521
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12522
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12523
  ;;
 
12524
 
 
12525
sco3.2v5*)
 
12526
  version_type=osf
 
12527
  soname_spec='${libname}${release}${shared_ext}$major'
 
12528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12529
  shlibpath_var=LD_LIBRARY_PATH
 
12530
  ;;
 
12531
 
 
12532
solaris*)
 
12533
  version_type=linux
 
12534
  need_lib_prefix=no
 
12535
  need_version=no
 
12536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12537
  soname_spec='${libname}${release}${shared_ext}$major'
 
12538
  shlibpath_var=LD_LIBRARY_PATH
 
12539
  shlibpath_overrides_runpath=yes
 
12540
  hardcode_into_libs=yes
 
12541
  # ldd complains unless libraries are executable
 
12542
  postinstall_cmds='chmod +x $lib'
 
12543
  ;;
 
12544
 
 
12545
sunos4*)
 
12546
  version_type=sunos
 
12547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12548
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12549
  shlibpath_var=LD_LIBRARY_PATH
 
12550
  shlibpath_overrides_runpath=yes
 
12551
  if test "$with_gnu_ld" = yes; then
 
12552
    need_lib_prefix=no
 
12553
  fi
 
12554
  need_version=yes
 
12555
  ;;
 
12556
 
 
12557
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12558
  version_type=linux
 
12559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12560
  soname_spec='${libname}${release}${shared_ext}$major'
 
12561
  shlibpath_var=LD_LIBRARY_PATH
 
12562
  case $host_vendor in
 
12563
    sni)
 
12564
      shlibpath_overrides_runpath=no
 
12565
      need_lib_prefix=no
 
12566
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12567
      runpath_var=LD_RUN_PATH
 
12568
      ;;
 
12569
    siemens)
 
12570
      need_lib_prefix=no
 
12571
      ;;
 
12572
    motorola)
 
12573
      need_lib_prefix=no
 
12574
      need_version=no
 
12575
      shlibpath_overrides_runpath=no
 
12576
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12577
      ;;
 
12578
  esac
 
12579
  ;;
 
12580
 
 
12581
sysv4*MP*)
 
12582
  if test -d /usr/nec ;then
 
12583
    version_type=linux
 
12584
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12585
    soname_spec='$libname${shared_ext}.$major'
 
12586
    shlibpath_var=LD_LIBRARY_PATH
 
12587
  fi
 
12588
  ;;
 
12589
 
 
12590
uts4*)
 
12591
  version_type=linux
 
12592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12593
  soname_spec='${libname}${release}${shared_ext}$major'
 
12594
  shlibpath_var=LD_LIBRARY_PATH
 
12595
  ;;
 
12596
 
 
12597
*)
 
12598
  dynamic_linker=no
 
12599
  ;;
 
12600
esac
 
12601
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12602
echo "${ECHO_T}$dynamic_linker" >&6
 
12603
test "$dynamic_linker" = no && can_build_shared=no
 
12604
 
 
12605
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12606
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12607
hardcode_action=
 
12608
if test -n "$hardcode_libdir_flag_spec" || \
 
12609
   test -n "$runpath_var" || \
 
12610
   test "X$hardcode_automatic" = "Xyes" ; then
 
12611
 
 
12612
  # We can hardcode non-existant directories.
 
12613
  if test "$hardcode_direct" != no &&
 
12614
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12615
     # have to relink, otherwise we might link with an installed library
 
12616
     # when we should be linking with a yet-to-be-installed one
 
12617
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
12618
     test "$hardcode_minus_L" != no; then
 
12619
    # Linking always hardcodes the temporary library directory.
 
12620
    hardcode_action=relink
 
12621
  else
 
12622
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12623
    hardcode_action=immediate
 
12624
  fi
 
12625
else
 
12626
  # We cannot hardcode anything, or else we can only hardcode existing
 
12627
  # directories.
 
12628
  hardcode_action=unsupported
 
12629
fi
 
12630
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
12631
echo "${ECHO_T}$hardcode_action" >&6
 
12632
 
 
12633
if test "$hardcode_action" = relink; then
 
12634
  # Fast installation is not supported
 
12635
  enable_fast_install=no
 
12636
elif test "$shlibpath_overrides_runpath" = yes ||
 
12637
     test "$enable_shared" = no; then
 
12638
  # Fast installation is not necessary
 
12639
  enable_fast_install=needless
 
12640
fi
 
12641
 
 
12642
striplib=
 
12643
old_striplib=
 
12644
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12645
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12646
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12647
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12648
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12649
  echo "$as_me:$LINENO: result: yes" >&5
 
12650
echo "${ECHO_T}yes" >&6
 
12651
else
 
12652
# FIXME - insert some real tests, host_os isn't really good enough
 
12653
  case $host_os in
 
12654
   darwin*)
 
12655
       if test -n "$STRIP" ; then
 
12656
         striplib="$STRIP -x"
 
12657
         echo "$as_me:$LINENO: result: yes" >&5
 
12658
echo "${ECHO_T}yes" >&6
 
12659
       else
 
12660
  echo "$as_me:$LINENO: result: no" >&5
 
12661
echo "${ECHO_T}no" >&6
 
12662
fi
 
12663
       ;;
 
12664
   *)
 
12665
  echo "$as_me:$LINENO: result: no" >&5
 
12666
echo "${ECHO_T}no" >&6
 
12667
    ;;
 
12668
  esac
 
12669
fi
 
12670
 
 
12671
if test "x$enable_dlopen" != xyes; then
 
12672
  enable_dlopen=unknown
 
12673
  enable_dlopen_self=unknown
 
12674
  enable_dlopen_self_static=unknown
 
12675
else
 
12676
  lt_cv_dlopen=no
 
12677
  lt_cv_dlopen_libs=
 
12678
 
 
12679
  case $host_os in
 
12680
  beos*)
 
12681
    lt_cv_dlopen="load_add_on"
 
12682
    lt_cv_dlopen_libs=
 
12683
    lt_cv_dlopen_self=yes
 
12684
    ;;
 
12685
 
 
12686
  mingw* | pw32*)
 
12687
    lt_cv_dlopen="LoadLibrary"
 
12688
    lt_cv_dlopen_libs=
 
12689
   ;;
 
12690
 
 
12691
  cygwin*)
 
12692
    lt_cv_dlopen="dlopen"
 
12693
    lt_cv_dlopen_libs=
 
12694
   ;;
 
12695
 
 
12696
  darwin*)
 
12697
  # if libdl is installed we need to link against it
 
12698
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12699
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12700
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12702
else
 
12703
  ac_check_lib_save_LIBS=$LIBS
 
12704
LIBS="-ldl  $LIBS"
 
12705
cat >conftest.$ac_ext <<_ACEOF
 
12706
/* confdefs.h.  */
 
12707
_ACEOF
 
12708
cat confdefs.h >>conftest.$ac_ext
 
12709
cat >>conftest.$ac_ext <<_ACEOF
 
12710
/* end confdefs.h.  */
 
12711
 
 
12712
/* Override any gcc2 internal prototype to avoid an error.  */
 
12713
#ifdef __cplusplus
 
12714
extern "C"
 
12715
#endif
 
12716
/* We use char because int might match the return type of a gcc2
 
12717
   builtin and then its argument prototype would still apply.  */
 
12718
char dlopen ();
 
12719
int
 
12720
main ()
 
12721
{
 
12722
dlopen ();
 
12723
  ;
 
12724
  return 0;
 
12725
}
 
12726
_ACEOF
 
12727
rm -f conftest.$ac_objext conftest$ac_exeext
 
12728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12729
  (eval $ac_link) 2>conftest.er1
 
12730
  ac_status=$?
 
12731
  grep -v '^ *+' conftest.er1 >conftest.err
 
12732
  rm -f conftest.er1
 
12733
  cat conftest.err >&5
 
12734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12735
  (exit $ac_status); } &&
 
12736
         { ac_try='test -z "$ac_c_werror_flag"
 
12737
                         || test ! -s conftest.err'
 
12738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12739
  (eval $ac_try) 2>&5
 
12740
  ac_status=$?
 
12741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12742
  (exit $ac_status); }; } &&
 
12743
         { ac_try='test -s conftest$ac_exeext'
 
12744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12745
  (eval $ac_try) 2>&5
 
12746
  ac_status=$?
 
12747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12748
  (exit $ac_status); }; }; then
 
12749
  ac_cv_lib_dl_dlopen=yes
 
12750
else
 
12751
  echo "$as_me: failed program was:" >&5
 
12752
sed 's/^/| /' conftest.$ac_ext >&5
 
12753
 
 
12754
ac_cv_lib_dl_dlopen=no
 
12755
fi
 
12756
rm -f conftest.err conftest.$ac_objext \
 
12757
      conftest$ac_exeext conftest.$ac_ext
 
12758
LIBS=$ac_check_lib_save_LIBS
 
12759
fi
 
12760
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12761
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12762
if test $ac_cv_lib_dl_dlopen = yes; then
 
12763
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12764
else
 
12765
 
 
12766
    lt_cv_dlopen="dyld"
 
12767
    lt_cv_dlopen_libs=
 
12768
    lt_cv_dlopen_self=yes
 
12769
 
 
12770
fi
 
12771
 
 
12772
   ;;
 
12773
 
 
12774
  *)
 
12775
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12776
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12777
if test "${ac_cv_func_shl_load+set}" = set; then
 
12778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12779
else
 
12780
  cat >conftest.$ac_ext <<_ACEOF
 
12781
/* confdefs.h.  */
 
12782
_ACEOF
 
12783
cat confdefs.h >>conftest.$ac_ext
 
12784
cat >>conftest.$ac_ext <<_ACEOF
 
12785
/* end confdefs.h.  */
 
12786
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12787
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12788
#define shl_load innocuous_shl_load
 
12789
 
 
12790
/* System header to define __stub macros and hopefully few prototypes,
 
12791
    which can conflict with char shl_load (); below.
 
12792
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12793
    <limits.h> exists even on freestanding compilers.  */
 
12794
 
 
12795
#ifdef __STDC__
 
12796
# include <limits.h>
 
12797
#else
 
12798
# include <assert.h>
 
12799
#endif
 
12800
 
 
12801
#undef shl_load
 
12802
 
 
12803
/* Override any gcc2 internal prototype to avoid an error.  */
 
12804
#ifdef __cplusplus
 
12805
extern "C"
 
12806
{
 
12807
#endif
 
12808
/* We use char because int might match the return type of a gcc2
 
12809
   builtin and then its argument prototype would still apply.  */
 
12810
char shl_load ();
 
12811
/* The GNU C library defines this for functions which it implements
 
12812
    to always fail with ENOSYS.  Some functions are actually named
 
12813
    something starting with __ and the normal name is an alias.  */
 
12814
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12815
choke me
 
12816
#else
 
12817
char (*f) () = shl_load;
 
12818
#endif
 
12819
#ifdef __cplusplus
 
12820
}
 
12821
#endif
 
12822
 
 
12823
int
 
12824
main ()
 
12825
{
 
12826
return f != shl_load;
 
12827
  ;
 
12828
  return 0;
 
12829
}
 
12830
_ACEOF
 
12831
rm -f conftest.$ac_objext conftest$ac_exeext
 
12832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12833
  (eval $ac_link) 2>conftest.er1
 
12834
  ac_status=$?
 
12835
  grep -v '^ *+' conftest.er1 >conftest.err
 
12836
  rm -f conftest.er1
 
12837
  cat conftest.err >&5
 
12838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12839
  (exit $ac_status); } &&
 
12840
         { ac_try='test -z "$ac_c_werror_flag"
 
12841
                         || test ! -s conftest.err'
 
12842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12843
  (eval $ac_try) 2>&5
 
12844
  ac_status=$?
 
12845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12846
  (exit $ac_status); }; } &&
 
12847
         { ac_try='test -s conftest$ac_exeext'
 
12848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12849
  (eval $ac_try) 2>&5
 
12850
  ac_status=$?
 
12851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12852
  (exit $ac_status); }; }; then
 
12853
  ac_cv_func_shl_load=yes
 
12854
else
 
12855
  echo "$as_me: failed program was:" >&5
 
12856
sed 's/^/| /' conftest.$ac_ext >&5
 
12857
 
 
12858
ac_cv_func_shl_load=no
 
12859
fi
 
12860
rm -f conftest.err conftest.$ac_objext \
 
12861
      conftest$ac_exeext conftest.$ac_ext
 
12862
fi
 
12863
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12864
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12865
if test $ac_cv_func_shl_load = yes; then
 
12866
  lt_cv_dlopen="shl_load"
 
12867
else
 
12868
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12869
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12870
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12872
else
 
12873
  ac_check_lib_save_LIBS=$LIBS
 
12874
LIBS="-ldld  $LIBS"
 
12875
cat >conftest.$ac_ext <<_ACEOF
 
12876
/* confdefs.h.  */
 
12877
_ACEOF
 
12878
cat confdefs.h >>conftest.$ac_ext
 
12879
cat >>conftest.$ac_ext <<_ACEOF
 
12880
/* end confdefs.h.  */
 
12881
 
 
12882
/* Override any gcc2 internal prototype to avoid an error.  */
 
12883
#ifdef __cplusplus
 
12884
extern "C"
 
12885
#endif
 
12886
/* We use char because int might match the return type of a gcc2
 
12887
   builtin and then its argument prototype would still apply.  */
 
12888
char shl_load ();
 
12889
int
 
12890
main ()
 
12891
{
 
12892
shl_load ();
 
12893
  ;
 
12894
  return 0;
 
12895
}
 
12896
_ACEOF
 
12897
rm -f conftest.$ac_objext conftest$ac_exeext
 
12898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12899
  (eval $ac_link) 2>conftest.er1
 
12900
  ac_status=$?
 
12901
  grep -v '^ *+' conftest.er1 >conftest.err
 
12902
  rm -f conftest.er1
 
12903
  cat conftest.err >&5
 
12904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12905
  (exit $ac_status); } &&
 
12906
         { ac_try='test -z "$ac_c_werror_flag"
 
12907
                         || test ! -s conftest.err'
 
12908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12909
  (eval $ac_try) 2>&5
 
12910
  ac_status=$?
 
12911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12912
  (exit $ac_status); }; } &&
 
12913
         { ac_try='test -s conftest$ac_exeext'
 
12914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12915
  (eval $ac_try) 2>&5
 
12916
  ac_status=$?
 
12917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12918
  (exit $ac_status); }; }; then
 
12919
  ac_cv_lib_dld_shl_load=yes
 
12920
else
 
12921
  echo "$as_me: failed program was:" >&5
 
12922
sed 's/^/| /' conftest.$ac_ext >&5
 
12923
 
 
12924
ac_cv_lib_dld_shl_load=no
 
12925
fi
 
12926
rm -f conftest.err conftest.$ac_objext \
 
12927
      conftest$ac_exeext conftest.$ac_ext
 
12928
LIBS=$ac_check_lib_save_LIBS
 
12929
fi
 
12930
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12931
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12932
if test $ac_cv_lib_dld_shl_load = yes; then
 
12933
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12934
else
 
12935
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12936
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12937
if test "${ac_cv_func_dlopen+set}" = set; then
 
12938
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12939
else
 
12940
  cat >conftest.$ac_ext <<_ACEOF
 
12941
/* confdefs.h.  */
 
12942
_ACEOF
 
12943
cat confdefs.h >>conftest.$ac_ext
 
12944
cat >>conftest.$ac_ext <<_ACEOF
 
12945
/* end confdefs.h.  */
 
12946
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12947
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12948
#define dlopen innocuous_dlopen
 
12949
 
 
12950
/* System header to define __stub macros and hopefully few prototypes,
 
12951
    which can conflict with char dlopen (); below.
 
12952
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12953
    <limits.h> exists even on freestanding compilers.  */
 
12954
 
 
12955
#ifdef __STDC__
 
12956
# include <limits.h>
 
12957
#else
 
12958
# include <assert.h>
 
12959
#endif
 
12960
 
 
12961
#undef dlopen
 
12962
 
 
12963
/* Override any gcc2 internal prototype to avoid an error.  */
 
12964
#ifdef __cplusplus
 
12965
extern "C"
 
12966
{
 
12967
#endif
 
12968
/* We use char because int might match the return type of a gcc2
 
12969
   builtin and then its argument prototype would still apply.  */
 
12970
char dlopen ();
 
12971
/* The GNU C library defines this for functions which it implements
 
12972
    to always fail with ENOSYS.  Some functions are actually named
 
12973
    something starting with __ and the normal name is an alias.  */
 
12974
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12975
choke me
 
12976
#else
 
12977
char (*f) () = dlopen;
 
12978
#endif
 
12979
#ifdef __cplusplus
 
12980
}
 
12981
#endif
 
12982
 
 
12983
int
 
12984
main ()
 
12985
{
 
12986
return f != dlopen;
 
12987
  ;
 
12988
  return 0;
 
12989
}
 
12990
_ACEOF
 
12991
rm -f conftest.$ac_objext conftest$ac_exeext
 
12992
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12993
  (eval $ac_link) 2>conftest.er1
 
12994
  ac_status=$?
 
12995
  grep -v '^ *+' conftest.er1 >conftest.err
 
12996
  rm -f conftest.er1
 
12997
  cat conftest.err >&5
 
12998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12999
  (exit $ac_status); } &&
 
13000
         { ac_try='test -z "$ac_c_werror_flag"
 
13001
                         || test ! -s conftest.err'
 
13002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13003
  (eval $ac_try) 2>&5
 
13004
  ac_status=$?
 
13005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13006
  (exit $ac_status); }; } &&
 
13007
         { ac_try='test -s conftest$ac_exeext'
 
13008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13009
  (eval $ac_try) 2>&5
 
13010
  ac_status=$?
 
13011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13012
  (exit $ac_status); }; }; then
 
13013
  ac_cv_func_dlopen=yes
 
13014
else
 
13015
  echo "$as_me: failed program was:" >&5
 
13016
sed 's/^/| /' conftest.$ac_ext >&5
 
13017
 
 
13018
ac_cv_func_dlopen=no
 
13019
fi
 
13020
rm -f conftest.err conftest.$ac_objext \
 
13021
      conftest$ac_exeext conftest.$ac_ext
 
13022
fi
 
13023
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13024
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13025
if test $ac_cv_func_dlopen = yes; then
 
13026
  lt_cv_dlopen="dlopen"
 
13027
else
 
13028
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13029
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13030
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13032
else
 
13033
  ac_check_lib_save_LIBS=$LIBS
 
13034
LIBS="-ldl  $LIBS"
 
13035
cat >conftest.$ac_ext <<_ACEOF
 
13036
/* confdefs.h.  */
 
13037
_ACEOF
 
13038
cat confdefs.h >>conftest.$ac_ext
 
13039
cat >>conftest.$ac_ext <<_ACEOF
 
13040
/* end confdefs.h.  */
 
13041
 
 
13042
/* Override any gcc2 internal prototype to avoid an error.  */
 
13043
#ifdef __cplusplus
 
13044
extern "C"
 
13045
#endif
 
13046
/* We use char because int might match the return type of a gcc2
 
13047
   builtin and then its argument prototype would still apply.  */
 
13048
char dlopen ();
 
13049
int
 
13050
main ()
 
13051
{
 
13052
dlopen ();
 
13053
  ;
 
13054
  return 0;
 
13055
}
 
13056
_ACEOF
 
13057
rm -f conftest.$ac_objext conftest$ac_exeext
 
13058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13059
  (eval $ac_link) 2>conftest.er1
 
13060
  ac_status=$?
 
13061
  grep -v '^ *+' conftest.er1 >conftest.err
 
13062
  rm -f conftest.er1
 
13063
  cat conftest.err >&5
 
13064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13065
  (exit $ac_status); } &&
 
13066
         { ac_try='test -z "$ac_c_werror_flag"
 
13067
                         || test ! -s conftest.err'
 
13068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13069
  (eval $ac_try) 2>&5
 
13070
  ac_status=$?
 
13071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13072
  (exit $ac_status); }; } &&
 
13073
         { ac_try='test -s conftest$ac_exeext'
 
13074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13075
  (eval $ac_try) 2>&5
 
13076
  ac_status=$?
 
13077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13078
  (exit $ac_status); }; }; then
 
13079
  ac_cv_lib_dl_dlopen=yes
 
13080
else
 
13081
  echo "$as_me: failed program was:" >&5
 
13082
sed 's/^/| /' conftest.$ac_ext >&5
 
13083
 
 
13084
ac_cv_lib_dl_dlopen=no
 
13085
fi
 
13086
rm -f conftest.err conftest.$ac_objext \
 
13087
      conftest$ac_exeext conftest.$ac_ext
 
13088
LIBS=$ac_check_lib_save_LIBS
 
13089
fi
 
13090
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13091
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13092
if test $ac_cv_lib_dl_dlopen = yes; then
 
13093
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13094
else
 
13095
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13096
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13097
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13099
else
 
13100
  ac_check_lib_save_LIBS=$LIBS
 
13101
LIBS="-lsvld  $LIBS"
 
13102
cat >conftest.$ac_ext <<_ACEOF
 
13103
/* confdefs.h.  */
 
13104
_ACEOF
 
13105
cat confdefs.h >>conftest.$ac_ext
 
13106
cat >>conftest.$ac_ext <<_ACEOF
 
13107
/* end confdefs.h.  */
 
13108
 
 
13109
/* Override any gcc2 internal prototype to avoid an error.  */
 
13110
#ifdef __cplusplus
 
13111
extern "C"
 
13112
#endif
 
13113
/* We use char because int might match the return type of a gcc2
 
13114
   builtin and then its argument prototype would still apply.  */
 
13115
char dlopen ();
 
13116
int
 
13117
main ()
 
13118
{
 
13119
dlopen ();
 
13120
  ;
 
13121
  return 0;
 
13122
}
 
13123
_ACEOF
 
13124
rm -f conftest.$ac_objext conftest$ac_exeext
 
13125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13126
  (eval $ac_link) 2>conftest.er1
 
13127
  ac_status=$?
 
13128
  grep -v '^ *+' conftest.er1 >conftest.err
 
13129
  rm -f conftest.er1
 
13130
  cat conftest.err >&5
 
13131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13132
  (exit $ac_status); } &&
 
13133
         { ac_try='test -z "$ac_c_werror_flag"
 
13134
                         || test ! -s conftest.err'
 
13135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13136
  (eval $ac_try) 2>&5
 
13137
  ac_status=$?
 
13138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13139
  (exit $ac_status); }; } &&
 
13140
         { ac_try='test -s conftest$ac_exeext'
 
13141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13142
  (eval $ac_try) 2>&5
 
13143
  ac_status=$?
 
13144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13145
  (exit $ac_status); }; }; then
 
13146
  ac_cv_lib_svld_dlopen=yes
 
13147
else
 
13148
  echo "$as_me: failed program was:" >&5
 
13149
sed 's/^/| /' conftest.$ac_ext >&5
 
13150
 
 
13151
ac_cv_lib_svld_dlopen=no
 
13152
fi
 
13153
rm -f conftest.err conftest.$ac_objext \
 
13154
      conftest$ac_exeext conftest.$ac_ext
 
13155
LIBS=$ac_check_lib_save_LIBS
 
13156
fi
 
13157
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13158
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13159
if test $ac_cv_lib_svld_dlopen = yes; then
 
13160
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13161
else
 
13162
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13163
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13164
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13166
else
 
13167
  ac_check_lib_save_LIBS=$LIBS
 
13168
LIBS="-ldld  $LIBS"
 
13169
cat >conftest.$ac_ext <<_ACEOF
 
13170
/* confdefs.h.  */
 
13171
_ACEOF
 
13172
cat confdefs.h >>conftest.$ac_ext
 
13173
cat >>conftest.$ac_ext <<_ACEOF
 
13174
/* end confdefs.h.  */
 
13175
 
 
13176
/* Override any gcc2 internal prototype to avoid an error.  */
 
13177
#ifdef __cplusplus
 
13178
extern "C"
 
13179
#endif
 
13180
/* We use char because int might match the return type of a gcc2
 
13181
   builtin and then its argument prototype would still apply.  */
 
13182
char dld_link ();
 
13183
int
 
13184
main ()
 
13185
{
 
13186
dld_link ();
 
13187
  ;
 
13188
  return 0;
 
13189
}
 
13190
_ACEOF
 
13191
rm -f conftest.$ac_objext conftest$ac_exeext
 
13192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13193
  (eval $ac_link) 2>conftest.er1
 
13194
  ac_status=$?
 
13195
  grep -v '^ *+' conftest.er1 >conftest.err
 
13196
  rm -f conftest.er1
 
13197
  cat conftest.err >&5
 
13198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13199
  (exit $ac_status); } &&
 
13200
         { ac_try='test -z "$ac_c_werror_flag"
 
13201
                         || test ! -s conftest.err'
 
13202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13203
  (eval $ac_try) 2>&5
 
13204
  ac_status=$?
 
13205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13206
  (exit $ac_status); }; } &&
 
13207
         { ac_try='test -s conftest$ac_exeext'
 
13208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13209
  (eval $ac_try) 2>&5
 
13210
  ac_status=$?
 
13211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13212
  (exit $ac_status); }; }; then
 
13213
  ac_cv_lib_dld_dld_link=yes
 
13214
else
 
13215
  echo "$as_me: failed program was:" >&5
 
13216
sed 's/^/| /' conftest.$ac_ext >&5
 
13217
 
 
13218
ac_cv_lib_dld_dld_link=no
 
13219
fi
 
13220
rm -f conftest.err conftest.$ac_objext \
 
13221
      conftest$ac_exeext conftest.$ac_ext
 
13222
LIBS=$ac_check_lib_save_LIBS
 
13223
fi
 
13224
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13225
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13226
if test $ac_cv_lib_dld_dld_link = yes; then
 
13227
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13228
fi
 
13229
 
 
13230
 
 
13231
fi
 
13232
 
 
13233
 
 
13234
fi
 
13235
 
 
13236
 
 
13237
fi
 
13238
 
 
13239
 
 
13240
fi
 
13241
 
 
13242
 
 
13243
fi
 
13244
 
 
13245
    ;;
 
13246
  esac
 
13247
 
 
13248
  if test "x$lt_cv_dlopen" != xno; then
 
13249
    enable_dlopen=yes
 
13250
  else
 
13251
    enable_dlopen=no
 
13252
  fi
 
13253
 
 
13254
  case $lt_cv_dlopen in
 
13255
  dlopen)
 
13256
    save_CPPFLAGS="$CPPFLAGS"
 
13257
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13258
 
 
13259
    save_LDFLAGS="$LDFLAGS"
 
13260
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13261
 
 
13262
    save_LIBS="$LIBS"
 
13263
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13264
 
 
13265
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13266
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13267
if test "${lt_cv_dlopen_self+set}" = set; then
 
13268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13269
else
 
13270
          if test "$cross_compiling" = yes; then :
 
13271
  lt_cv_dlopen_self=cross
 
13272
else
 
13273
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13274
  lt_status=$lt_dlunknown
 
13275
  cat > conftest.$ac_ext <<EOF
 
13276
#line 13276 "configure"
 
13277
#include "confdefs.h"
 
13278
 
 
13279
#if HAVE_DLFCN_H
 
13280
#include <dlfcn.h>
 
13281
#endif
 
13282
 
 
13283
#include <stdio.h>
 
13284
 
 
13285
#ifdef RTLD_GLOBAL
 
13286
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13287
#else
 
13288
#  ifdef DL_GLOBAL
 
13289
#    define LT_DLGLOBAL         DL_GLOBAL
 
13290
#  else
 
13291
#    define LT_DLGLOBAL         0
 
13292
#  endif
 
13293
#endif
 
13294
 
 
13295
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13296
   find out it does not work in some platform. */
 
13297
#ifndef LT_DLLAZY_OR_NOW
 
13298
#  ifdef RTLD_LAZY
 
13299
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13300
#  else
 
13301
#    ifdef DL_LAZY
 
13302
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13303
#    else
 
13304
#      ifdef RTLD_NOW
 
13305
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13306
#      else
 
13307
#        ifdef DL_NOW
 
13308
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13309
#        else
 
13310
#          define LT_DLLAZY_OR_NOW      0
 
13311
#        endif
 
13312
#      endif
 
13313
#    endif
 
13314
#  endif
 
13315
#endif
 
13316
 
 
13317
#ifdef __cplusplus
 
13318
extern "C" void exit (int);
 
13319
#endif
 
13320
 
 
13321
void fnord() { int i=42;}
 
13322
int main ()
 
13323
{
 
13324
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13325
  int status = $lt_dlunknown;
 
13326
 
 
13327
  if (self)
 
13328
    {
 
13329
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13330
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13331
      /* dlclose (self); */
 
13332
    }
 
13333
 
 
13334
    exit (status);
 
13335
}
 
13336
EOF
 
13337
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13338
  (eval $ac_link) 2>&5
 
13339
  ac_status=$?
 
13340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13341
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13342
    (./conftest; exit; ) >&5 2>/dev/null
 
13343
    lt_status=$?
 
13344
    case x$lt_status in
 
13345
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13346
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13347
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13348
    esac
 
13349
  else :
 
13350
    # compilation failed
 
13351
    lt_cv_dlopen_self=no
 
13352
  fi
 
13353
fi
 
13354
rm -fr conftest*
 
13355
 
 
13356
 
 
13357
fi
 
13358
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13359
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13360
 
 
13361
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13362
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13363
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13364
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13365
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13367
else
 
13368
          if test "$cross_compiling" = yes; then :
 
13369
  lt_cv_dlopen_self_static=cross
 
13370
else
 
13371
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13372
  lt_status=$lt_dlunknown
 
13373
  cat > conftest.$ac_ext <<EOF
 
13374
#line 13374 "configure"
 
13375
#include "confdefs.h"
 
13376
 
 
13377
#if HAVE_DLFCN_H
 
13378
#include <dlfcn.h>
 
13379
#endif
 
13380
 
 
13381
#include <stdio.h>
 
13382
 
 
13383
#ifdef RTLD_GLOBAL
 
13384
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13385
#else
 
13386
#  ifdef DL_GLOBAL
 
13387
#    define LT_DLGLOBAL         DL_GLOBAL
 
13388
#  else
 
13389
#    define LT_DLGLOBAL         0
 
13390
#  endif
 
13391
#endif
 
13392
 
 
13393
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13394
   find out it does not work in some platform. */
 
13395
#ifndef LT_DLLAZY_OR_NOW
 
13396
#  ifdef RTLD_LAZY
 
13397
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13398
#  else
 
13399
#    ifdef DL_LAZY
 
13400
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13401
#    else
 
13402
#      ifdef RTLD_NOW
 
13403
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13404
#      else
 
13405
#        ifdef DL_NOW
 
13406
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13407
#        else
 
13408
#          define LT_DLLAZY_OR_NOW      0
 
13409
#        endif
 
13410
#      endif
 
13411
#    endif
 
13412
#  endif
 
13413
#endif
 
13414
 
 
13415
#ifdef __cplusplus
 
13416
extern "C" void exit (int);
 
13417
#endif
 
13418
 
 
13419
void fnord() { int i=42;}
 
13420
int main ()
 
13421
{
 
13422
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13423
  int status = $lt_dlunknown;
 
13424
 
 
13425
  if (self)
 
13426
    {
 
13427
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13428
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13429
      /* dlclose (self); */
 
13430
    }
 
13431
 
 
13432
    exit (status);
 
13433
}
 
13434
EOF
 
13435
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13436
  (eval $ac_link) 2>&5
 
13437
  ac_status=$?
 
13438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13439
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13440
    (./conftest; exit; ) >&5 2>/dev/null
 
13441
    lt_status=$?
 
13442
    case x$lt_status in
 
13443
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13444
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13445
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13446
    esac
 
13447
  else :
 
13448
    # compilation failed
 
13449
    lt_cv_dlopen_self_static=no
 
13450
  fi
 
13451
fi
 
13452
rm -fr conftest*
 
13453
 
 
13454
 
 
13455
fi
 
13456
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13457
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13458
    fi
 
13459
 
 
13460
    CPPFLAGS="$save_CPPFLAGS"
 
13461
    LDFLAGS="$save_LDFLAGS"
 
13462
    LIBS="$save_LIBS"
 
13463
    ;;
 
13464
  esac
 
13465
 
 
13466
  case $lt_cv_dlopen_self in
 
13467
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13468
  *) enable_dlopen_self=unknown ;;
 
13469
  esac
 
13470
 
 
13471
  case $lt_cv_dlopen_self_static in
 
13472
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13473
  *) enable_dlopen_self_static=unknown ;;
 
13474
  esac
 
13475
fi
 
13476
 
 
13477
 
 
13478
# Report which librarie types wil actually be built
 
13479
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13480
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13481
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13482
echo "${ECHO_T}$can_build_shared" >&6
 
13483
 
 
13484
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13485
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13486
test "$can_build_shared" = "no" && enable_shared=no
 
13487
 
 
13488
# On AIX, shared libraries and static libraries use the same namespace, and
 
13489
# are all built from PIC.
 
13490
case $host_os in
 
13491
aix3*)
 
13492
  test "$enable_shared" = yes && enable_static=no
 
13493
  if test -n "$RANLIB"; then
 
13494
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13495
    postinstall_cmds='$RANLIB $lib'
 
13496
  fi
 
13497
  ;;
 
13498
 
 
13499
aix4* | aix5*)
 
13500
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13501
    test "$enable_shared" = yes && enable_static=no
 
13502
  fi
 
13503
    ;;
 
13504
esac
 
13505
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13506
echo "${ECHO_T}$enable_shared" >&6
 
13507
 
 
13508
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13509
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13510
# Make sure either enable_shared or enable_static is yes.
 
13511
test "$enable_shared" = yes || enable_static=yes
 
13512
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13513
echo "${ECHO_T}$enable_static" >&6
 
13514
 
 
13515
# The else clause should only fire when bootstrapping the
 
13516
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13517
# with your package, and you will get complaints that there are
 
13518
# no rules to generate ltmain.sh.
 
13519
if test -f "$ltmain"; then
 
13520
  # See if we are running on zsh, and set the options which allow our commands through
 
13521
  # without removal of \ escapes.
 
13522
  if test -n "${ZSH_VERSION+set}" ; then
 
13523
    setopt NO_GLOB_SUBST
 
13524
  fi
 
13525
  # Now quote all the things that may contain metacharacters while being
 
13526
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13527
  # variables and quote the copies for generation of the libtool script.
 
13528
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13529
    SED SHELL STRIP \
 
13530
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13531
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13532
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13533
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13534
    lt_cv_sys_global_symbol_to_c_name_address \
 
13535
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13536
    old_postinstall_cmds old_postuninstall_cmds \
 
13537
    compiler \
 
13538
    CC \
 
13539
    LD \
 
13540
    lt_prog_compiler_wl \
 
13541
    lt_prog_compiler_pic \
 
13542
    lt_prog_compiler_static \
 
13543
    lt_prog_compiler_no_builtin_flag \
 
13544
    export_dynamic_flag_spec \
 
13545
    thread_safe_flag_spec \
 
13546
    whole_archive_flag_spec \
 
13547
    enable_shared_with_static_runtimes \
 
13548
    old_archive_cmds \
 
13549
    old_archive_from_new_cmds \
 
13550
    predep_objects \
 
13551
    postdep_objects \
 
13552
    predeps \
 
13553
    postdeps \
 
13554
    compiler_lib_search_path \
 
13555
    archive_cmds \
 
13556
    archive_expsym_cmds \
 
13557
    postinstall_cmds \
 
13558
    postuninstall_cmds \
 
13559
    old_archive_from_expsyms_cmds \
 
13560
    allow_undefined_flag \
 
13561
    no_undefined_flag \
 
13562
    export_symbols_cmds \
 
13563
    hardcode_libdir_flag_spec \
 
13564
    hardcode_libdir_flag_spec_ld \
 
13565
    hardcode_libdir_separator \
 
13566
    hardcode_automatic \
 
13567
    module_cmds \
 
13568
    module_expsym_cmds \
 
13569
    lt_cv_prog_compiler_c_o \
 
13570
    exclude_expsyms \
 
13571
    include_expsyms; do
 
13572
 
 
13573
    case $var in
 
13574
    old_archive_cmds | \
 
13575
    old_archive_from_new_cmds | \
 
13576
    archive_cmds | \
 
13577
    archive_expsym_cmds | \
 
13578
    module_cmds | \
 
13579
    module_expsym_cmds | \
 
13580
    old_archive_from_expsyms_cmds | \
 
13581
    export_symbols_cmds | \
 
13582
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13583
    postinstall_cmds | postuninstall_cmds | \
 
13584
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13585
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13586
      # Double-quote double-evaled strings.
 
13587
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13588
      ;;
 
13589
    *)
 
13590
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13591
      ;;
 
13592
    esac
 
13593
  done
 
13594
 
 
13595
  case $lt_echo in
 
13596
  *'\$0 --fallback-echo"')
 
13597
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13598
    ;;
 
13599
  esac
 
13600
 
 
13601
cfgfile="${ofile}T"
 
13602
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
13603
  $rm -f "$cfgfile"
 
13604
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
13605
echo "$as_me: creating $ofile" >&6;}
 
13606
 
 
13607
  cat <<__EOF__ >> "$cfgfile"
 
13608
#! $SHELL
 
13609
 
 
13610
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
13611
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
13612
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
13613
#
 
13614
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
13615
# Free Software Foundation, Inc.
 
13616
#
 
13617
# This file is part of GNU Libtool:
 
13618
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
13619
#
 
13620
# This program is free software; you can redistribute it and/or modify
 
13621
# it under the terms of the GNU General Public License as published by
 
13622
# the Free Software Foundation; either version 2 of the License, or
 
13623
# (at your option) any later version.
 
13624
#
 
13625
# This program is distributed in the hope that it will be useful, but
 
13626
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
13627
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13628
# General Public License for more details.
 
13629
#
 
13630
# You should have received a copy of the GNU General Public License
 
13631
# along with this program; if not, write to the Free Software
 
13632
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
13633
#
 
13634
# As a special exception to the GNU General Public License, if you
 
13635
# distribute this file as part of a program that contains a
 
13636
# configuration script generated by Autoconf, you may include it under
 
13637
# the same distribution terms that you use for the rest of that program.
 
13638
 
 
13639
# A sed program that does not truncate output.
 
13640
SED=$lt_SED
 
13641
 
 
13642
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
13643
Xsed="$SED -e 1s/^X//"
 
13644
 
 
13645
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
13646
# if CDPATH is set.
 
13647
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13648
 
 
13649
# The names of the tagged configurations supported by this script.
 
13650
available_tags=
 
13651
 
 
13652
# ### BEGIN LIBTOOL CONFIG
 
13653
 
 
13654
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13655
 
 
13656
# Shell to use when invoking shell scripts.
 
13657
SHELL=$lt_SHELL
 
13658
 
 
13659
# Whether or not to build shared libraries.
 
13660
build_libtool_libs=$enable_shared
 
13661
 
 
13662
# Whether or not to build static libraries.
 
13663
build_old_libs=$enable_static
 
13664
 
 
13665
# Whether or not to add -lc for building shared libraries.
 
13666
build_libtool_need_lc=$archive_cmds_need_lc
 
13667
 
 
13668
# Whether or not to disallow shared libs when runtime libs are static
 
13669
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
13670
 
 
13671
# Whether or not to optimize for fast installation.
 
13672
fast_install=$enable_fast_install
 
13673
 
 
13674
# The host system.
 
13675
host_alias=$host_alias
 
13676
host=$host
 
13677
host_os=$host_os
 
13678
 
 
13679
# The build system.
 
13680
build_alias=$build_alias
 
13681
build=$build
 
13682
build_os=$build_os
 
13683
 
 
13684
# An echo program that does not interpret backslashes.
 
13685
echo=$lt_echo
 
13686
 
 
13687
# The archiver.
 
13688
AR=$lt_AR
 
13689
AR_FLAGS=$lt_AR_FLAGS
 
13690
 
 
13691
# A C compiler.
 
13692
LTCC=$lt_LTCC
 
13693
 
 
13694
# A language-specific compiler.
 
13695
CC=$lt_compiler
 
13696
 
 
13697
# Is the compiler the GNU C compiler?
 
13698
with_gcc=$GCC
 
13699
 
 
13700
# An ERE matcher.
 
13701
EGREP=$lt_EGREP
 
13702
 
 
13703
# The linker used to build libraries.
 
13704
LD=$lt_LD
 
13705
 
 
13706
# Whether we need hard or soft links.
 
13707
LN_S=$lt_LN_S
 
13708
 
 
13709
# A BSD-compatible nm program.
 
13710
NM=$lt_NM
 
13711
 
 
13712
# A symbol stripping program
 
13713
STRIP=$lt_STRIP
 
13714
 
 
13715
# Used to examine libraries when file_magic_cmd begins "file"
 
13716
MAGIC_CMD=$MAGIC_CMD
 
13717
 
 
13718
# Used on cygwin: DLL creation program.
 
13719
DLLTOOL="$DLLTOOL"
 
13720
 
 
13721
# Used on cygwin: object dumper.
 
13722
OBJDUMP="$OBJDUMP"
 
13723
 
 
13724
# Used on cygwin: assembler.
 
13725
AS="$AS"
 
13726
 
 
13727
# The name of the directory that contains temporary libtool files.
 
13728
objdir=$objdir
 
13729
 
 
13730
# How to create reloadable object files.
 
13731
reload_flag=$lt_reload_flag
 
13732
reload_cmds=$lt_reload_cmds
 
13733
 
 
13734
# How to pass a linker flag through the compiler.
 
13735
wl=$lt_lt_prog_compiler_wl
 
13736
 
 
13737
# Object file suffix (normally "o").
 
13738
objext="$ac_objext"
 
13739
 
 
13740
# Old archive suffix (normally "a").
 
13741
libext="$libext"
 
13742
 
 
13743
# Shared library suffix (normally ".so").
 
13744
shrext_cmds='$shrext_cmds'
 
13745
 
 
13746
# Executable file suffix (normally "").
 
13747
exeext="$exeext"
 
13748
 
 
13749
# Additional compiler flags for building library objects.
 
13750
pic_flag=$lt_lt_prog_compiler_pic
 
13751
pic_mode=$pic_mode
 
13752
 
 
13753
# What is the maximum length of a command?
 
13754
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13755
 
 
13756
# Does compiler simultaneously support -c and -o options?
 
13757
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
13758
 
 
13759
# Must we lock files when doing compilation?
 
13760
need_locks=$lt_need_locks
 
13761
 
 
13762
# Do we need the lib prefix for modules?
 
13763
need_lib_prefix=$need_lib_prefix
 
13764
 
 
13765
# Do we need a version for libraries?
 
13766
need_version=$need_version
 
13767
 
 
13768
# Whether dlopen is supported.
 
13769
dlopen_support=$enable_dlopen
 
13770
 
 
13771
# Whether dlopen of programs is supported.
 
13772
dlopen_self=$enable_dlopen_self
 
13773
 
 
13774
# Whether dlopen of statically linked programs is supported.
 
13775
dlopen_self_static=$enable_dlopen_self_static
 
13776
 
 
13777
# Compiler flag to prevent dynamic linking.
 
13778
link_static_flag=$lt_lt_prog_compiler_static
 
13779
 
 
13780
# Compiler flag to turn off builtin functions.
 
13781
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
13782
 
 
13783
# Compiler flag to allow reflexive dlopens.
 
13784
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
13785
 
 
13786
# Compiler flag to generate shared objects directly from archives.
 
13787
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
13788
 
 
13789
# Compiler flag to generate thread-safe objects.
 
13790
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
13791
 
 
13792
# Library versioning type.
 
13793
version_type=$version_type
 
13794
 
 
13795
# Format of library name prefix.
 
13796
libname_spec=$lt_libname_spec
 
13797
 
 
13798
# List of archive names.  First name is the real one, the rest are links.
 
13799
# The last name is the one that the linker finds with -lNAME.
 
13800
library_names_spec=$lt_library_names_spec
 
13801
 
 
13802
# The coded name of the library, if different from the real name.
 
13803
soname_spec=$lt_soname_spec
 
13804
 
 
13805
# Commands used to build and install an old-style archive.
 
13806
RANLIB=$lt_RANLIB
 
13807
old_archive_cmds=$lt_old_archive_cmds
 
13808
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13809
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13810
 
 
13811
# Create an old-style archive from a shared archive.
 
13812
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
13813
 
 
13814
# Create a temporary old-style archive to link instead of a shared archive.
 
13815
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
13816
 
 
13817
# Commands used to build and install a shared archive.
 
13818
archive_cmds=$lt_archive_cmds
 
13819
archive_expsym_cmds=$lt_archive_expsym_cmds
 
13820
postinstall_cmds=$lt_postinstall_cmds
 
13821
postuninstall_cmds=$lt_postuninstall_cmds
 
13822
 
 
13823
# Commands used to build a loadable module (assumed same as above if empty)
 
13824
module_cmds=$lt_module_cmds
 
13825
module_expsym_cmds=$lt_module_expsym_cmds
 
13826
 
 
13827
# Commands to strip libraries.
 
13828
old_striplib=$lt_old_striplib
 
13829
striplib=$lt_striplib
 
13830
 
 
13831
# Dependencies to place before the objects being linked to create a
 
13832
# shared library.
 
13833
predep_objects=$lt_predep_objects
 
13834
 
 
13835
# Dependencies to place after the objects being linked to create a
 
13836
# shared library.
 
13837
postdep_objects=$lt_postdep_objects
 
13838
 
 
13839
# Dependencies to place before the objects being linked to create a
 
13840
# shared library.
 
13841
predeps=$lt_predeps
 
13842
 
 
13843
# Dependencies to place after the objects being linked to create a
 
13844
# shared library.
 
13845
postdeps=$lt_postdeps
 
13846
 
 
13847
# The library search path used internally by the compiler when linking
 
13848
# a shared library.
 
13849
compiler_lib_search_path=$lt_compiler_lib_search_path
 
13850
 
 
13851
# Method to check whether dependent libraries are shared objects.
 
13852
deplibs_check_method=$lt_deplibs_check_method
 
13853
 
 
13854
# Command to use when deplibs_check_method == file_magic.
 
13855
file_magic_cmd=$lt_file_magic_cmd
 
13856
 
 
13857
# Flag that allows shared libraries with undefined symbols to be built.
 
13858
allow_undefined_flag=$lt_allow_undefined_flag
 
13859
 
 
13860
# Flag that forces no undefined symbols.
 
13861
no_undefined_flag=$lt_no_undefined_flag
 
13862
 
 
13863
# Commands used to finish a libtool library installation in a directory.
 
13864
finish_cmds=$lt_finish_cmds
 
13865
 
 
13866
# Same as above, but a single script fragment to be evaled but not shown.
 
13867
finish_eval=$lt_finish_eval
 
13868
 
 
13869
# Take the output of nm and produce a listing of raw symbols and C names.
 
13870
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13871
 
 
13872
# Transform the output of nm in a proper C declaration
 
13873
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13874
 
 
13875
# Transform the output of nm in a C name address pair
 
13876
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13877
 
 
13878
# This is the shared library runtime path variable.
 
13879
runpath_var=$runpath_var
 
13880
 
 
13881
# This is the shared library path variable.
 
13882
shlibpath_var=$shlibpath_var
 
13883
 
 
13884
# Is shlibpath searched before the hard-coded library search path?
 
13885
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13886
 
 
13887
# How to hardcode a shared library path into an executable.
 
13888
hardcode_action=$hardcode_action
 
13889
 
 
13890
# Whether we should hardcode library paths into libraries.
 
13891
hardcode_into_libs=$hardcode_into_libs
 
13892
 
 
13893
# Flag to hardcode \$libdir into a binary during linking.
 
13894
# This must work even if \$libdir does not exist.
 
13895
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
13896
 
 
13897
# If ld is used when linking, flag to hardcode \$libdir into
 
13898
# a binary during linking. This must work even if \$libdir does
 
13899
# not exist.
 
13900
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
13901
 
 
13902
# Whether we need a single -rpath flag with a separated argument.
 
13903
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
13904
 
 
13905
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13906
# resulting binary.
 
13907
hardcode_direct=$hardcode_direct
 
13908
 
 
13909
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13910
# resulting binary.
 
13911
hardcode_minus_L=$hardcode_minus_L
 
13912
 
 
13913
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13914
# the resulting binary.
 
13915
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
13916
 
 
13917
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13918
# and all subsequent libraries and executables linked against it.
 
13919
hardcode_automatic=$hardcode_automatic
 
13920
 
 
13921
# Variables whose values should be saved in libtool wrapper scripts and
 
13922
# restored at relink time.
 
13923
variables_saved_for_relink="$variables_saved_for_relink"
 
13924
 
 
13925
# Whether libtool must link a program against all its dependency libraries.
 
13926
link_all_deplibs=$link_all_deplibs
 
13927
 
 
13928
# Compile-time system search path for libraries
 
13929
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13930
 
 
13931
# Run-time system search path for libraries
 
13932
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13933
 
 
13934
# Fix the shell variable \$srcfile for the compiler.
 
13935
fix_srcfile_path="$fix_srcfile_path"
 
13936
 
 
13937
# Set to yes if exported symbols are required.
 
13938
always_export_symbols=$always_export_symbols
 
13939
 
 
13940
# The commands to list exported symbols.
 
13941
export_symbols_cmds=$lt_export_symbols_cmds
 
13942
 
 
13943
# The commands to extract the exported symbol list from a shared archive.
 
13944
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13945
 
 
13946
# Symbols that should not be listed in the preloaded symbols.
 
13947
exclude_expsyms=$lt_exclude_expsyms
 
13948
 
 
13949
# Symbols that must always be exported.
 
13950
include_expsyms=$lt_include_expsyms
 
13951
 
 
13952
# ### END LIBTOOL CONFIG
 
13953
 
 
13954
__EOF__
 
13955
 
 
13956
 
 
13957
  case $host_os in
 
13958
  aix3*)
 
13959
    cat <<\EOF >> "$cfgfile"
 
13960
 
 
13961
# AIX sometimes has problems with the GCC collect2 program.  For some
 
13962
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
13963
# vanish in a puff of smoke.
 
13964
if test "X${COLLECT_NAMES+set}" != Xset; then
 
13965
  COLLECT_NAMES=
 
13966
  export COLLECT_NAMES
 
13967
fi
 
13968
EOF
 
13969
    ;;
 
13970
  esac
 
13971
 
 
13972
  # We use sed instead of cat because bash on DJGPP gets confused if
 
13973
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
13974
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
13975
  # is reportedly fixed, but why not run on old versions too?
 
13976
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
13977
 
 
13978
  mv -f "$cfgfile" "$ofile" || \
 
13979
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
13980
  chmod +x "$ofile"
 
13981
 
 
13982
else
 
13983
  # If there is no Makefile yet, we rely on a make rule to execute
 
13984
  # `config.status --recheck' to rerun these tests and create the
 
13985
  # libtool script then.
 
13986
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13987
  if test -f "$ltmain_in"; then
 
13988
    test -f Makefile && make "$ltmain"
 
13989
  fi
 
13990
fi
 
13991
 
 
13992
 
 
13993
ac_ext=c
 
13994
ac_cpp='$CPP $CPPFLAGS'
 
13995
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13996
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13997
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13998
 
 
13999
CC="$lt_save_CC"
 
14000
 
 
14001
 
 
14002
# Check whether --with-tags or --without-tags was given.
 
14003
if test "${with_tags+set}" = set; then
 
14004
  withval="$with_tags"
 
14005
  tagnames="$withval"
 
14006
fi;
 
14007
 
 
14008
if test -f "$ltmain" && test -n "$tagnames"; then
 
14009
  if test ! -f "${ofile}"; then
 
14010
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
14011
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
14012
  fi
 
14013
 
 
14014
  if test -z "$LTCC"; then
 
14015
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
14016
    if test -z "$LTCC"; then
 
14017
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
14018
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
14019
    else
 
14020
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
14021
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
14022
    fi
 
14023
  fi
 
14024
 
 
14025
  # Extract list of available tagged configurations in $ofile.
 
14026
  # Note that this assumes the entire list is on one line.
 
14027
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
14028
 
 
14029
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14030
  for tagname in $tagnames; do
 
14031
    IFS="$lt_save_ifs"
 
14032
    # Check whether tagname contains only valid characters
 
14033
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
14034
    "") ;;
 
14035
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
14036
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
14037
   { (exit 1); exit 1; }; }
 
14038
        ;;
 
14039
    esac
 
14040
 
 
14041
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
14042
    then
 
14043
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
14044
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
14045
   { (exit 1); exit 1; }; }
 
14046
    fi
 
14047
 
 
14048
    # Update the list of available tags.
 
14049
    if test -n "$tagname"; then
 
14050
      echo appending configuration tag \"$tagname\" to $ofile
 
14051
 
 
14052
      case $tagname in
 
14053
      CXX)
 
14054
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
14055
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
14056
            (test "X$CXX" != "Xg++"))) ; then
 
14057
          ac_ext=cc
 
14058
ac_cpp='$CXXCPP $CPPFLAGS'
 
14059
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14060
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14061
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
14062
 
 
14063
 
 
14064
 
 
14065
 
 
14066
archive_cmds_need_lc_CXX=no
 
14067
allow_undefined_flag_CXX=
 
14068
always_export_symbols_CXX=no
 
14069
archive_expsym_cmds_CXX=
 
14070
export_dynamic_flag_spec_CXX=
 
14071
hardcode_direct_CXX=no
 
14072
hardcode_libdir_flag_spec_CXX=
 
14073
hardcode_libdir_flag_spec_ld_CXX=
 
14074
hardcode_libdir_separator_CXX=
 
14075
hardcode_minus_L_CXX=no
 
14076
hardcode_automatic_CXX=no
 
14077
module_cmds_CXX=
 
14078
module_expsym_cmds_CXX=
 
14079
link_all_deplibs_CXX=unknown
 
14080
old_archive_cmds_CXX=$old_archive_cmds
 
14081
no_undefined_flag_CXX=
 
14082
whole_archive_flag_spec_CXX=
 
14083
enable_shared_with_static_runtimes_CXX=no
 
14084
 
 
14085
# Dependencies to place before and after the object being linked:
 
14086
predep_objects_CXX=
 
14087
postdep_objects_CXX=
 
14088
predeps_CXX=
 
14089
postdeps_CXX=
 
14090
compiler_lib_search_path_CXX=
 
14091
 
 
14092
# Source file extension for C++ test sources.
 
14093
ac_ext=cpp
 
14094
 
 
14095
# Object file extension for compiled C++ test sources.
 
14096
objext=o
 
14097
objext_CXX=$objext
 
14098
 
 
14099
# Code to be used in simple compile tests
 
14100
lt_simple_compile_test_code="int some_variable = 0;\n"
 
14101
 
 
14102
# Code to be used in simple link tests
 
14103
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
14104
 
 
14105
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14106
 
 
14107
# If no C compiler was specified, use CC.
 
14108
LTCC=${LTCC-"$CC"}
 
14109
 
 
14110
# Allow CC to be a program name with arguments.
 
14111
compiler=$CC
 
14112
 
 
14113
 
 
14114
# save warnings/boilerplate of simple test code
 
14115
ac_outfile=conftest.$ac_objext
 
14116
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14117
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
14118
_lt_compiler_boilerplate=`cat conftest.err`
 
14119
$rm conftest*
 
14120
 
 
14121
ac_outfile=conftest.$ac_objext
 
14122
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14123
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
14124
_lt_linker_boilerplate=`cat conftest.err`
 
14125
$rm conftest*
 
14126
 
 
14127
 
 
14128
# Allow CC to be a program name with arguments.
 
14129
lt_save_CC=$CC
 
14130
lt_save_LD=$LD
 
14131
lt_save_GCC=$GCC
 
14132
GCC=$GXX
 
14133
lt_save_with_gnu_ld=$with_gnu_ld
 
14134
lt_save_path_LD=$lt_cv_path_LD
 
14135
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
14136
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
14137
else
 
14138
  unset lt_cv_prog_gnu_ld
 
14139
fi
 
14140
if test -n "${lt_cv_path_LDCXX+set}"; then
 
14141
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
14142
else
 
14143
  unset lt_cv_path_LD
 
14144
fi
 
14145
test -z "${LDCXX+set}" || LD=$LDCXX
 
14146
CC=${CXX-"c++"}
 
14147
compiler=$CC
 
14148
compiler_CXX=$CC
 
14149
for cc_temp in $compiler""; do
 
14150
  case $cc_temp in
 
14151
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14152
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14153
    \-*) ;;
 
14154
    *) break;;
 
14155
  esac
 
14156
done
 
14157
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14158
 
 
14159
 
 
14160
# We don't want -fno-exception wen compiling C++ code, so set the
 
14161
# no_builtin_flag separately
 
14162
if test "$GXX" = yes; then
 
14163
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
14164
else
 
14165
  lt_prog_compiler_no_builtin_flag_CXX=
 
14166
fi
 
14167
 
 
14168
if test "$GXX" = yes; then
 
14169
  # Set up default GNU C++ configuration
 
14170
 
 
14171
 
 
14172
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
14173
if test "${with_gnu_ld+set}" = set; then
 
14174
  withval="$with_gnu_ld"
 
14175
  test "$withval" = no || with_gnu_ld=yes
 
14176
else
 
14177
  with_gnu_ld=no
 
14178
fi;
 
14179
ac_prog=ld
 
14180
if test "$GCC" = yes; then
 
14181
  # Check if gcc -print-prog-name=ld gives a path.
 
14182
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
14183
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
14184
  case $host in
 
14185
  *-*-mingw*)
 
14186
    # gcc leaves a trailing carriage return which upsets mingw
 
14187
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
14188
  *)
 
14189
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
14190
  esac
 
14191
  case $ac_prog in
 
14192
    # Accept absolute paths.
 
14193
    [\\/]* | ?:[\\/]*)
 
14194
      re_direlt='/[^/][^/]*/\.\./'
 
14195
      # Canonicalize the pathname of ld
 
14196
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
14197
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
14198
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
14199
      done
 
14200
      test -z "$LD" && LD="$ac_prog"
 
14201
      ;;
 
14202
  "")
 
14203
    # If it fails, then pretend we aren't using GCC.
 
14204
    ac_prog=ld
 
14205
    ;;
 
14206
  *)
 
14207
    # If it is relative, then search for the first ld in PATH.
 
14208
    with_gnu_ld=unknown
 
14209
    ;;
 
14210
  esac
 
14211
elif test "$with_gnu_ld" = yes; then
 
14212
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
14213
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
14214
else
 
14215
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
14216
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
14217
fi
 
14218
if test "${lt_cv_path_LD+set}" = set; then
 
14219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14220
else
 
14221
  if test -z "$LD"; then
 
14222
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
14223
  for ac_dir in $PATH; do
 
14224
    IFS="$lt_save_ifs"
 
14225
    test -z "$ac_dir" && ac_dir=.
 
14226
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
14227
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
14228
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
14229
      # but apparently some variants of GNU ld only accept -v.
 
14230
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
14231
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
14232
      *GNU* | *'with BFD'*)
 
14233
        test "$with_gnu_ld" != no && break
 
14234
        ;;
 
14235
      *)
 
14236
        test "$with_gnu_ld" != yes && break
 
14237
        ;;
 
14238
      esac
 
14239
    fi
 
14240
  done
 
14241
  IFS="$lt_save_ifs"
 
14242
else
 
14243
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
14244
fi
 
14245
fi
 
14246
 
 
14247
LD="$lt_cv_path_LD"
 
14248
if test -n "$LD"; then
 
14249
  echo "$as_me:$LINENO: result: $LD" >&5
 
14250
echo "${ECHO_T}$LD" >&6
 
14251
else
 
14252
  echo "$as_me:$LINENO: result: no" >&5
 
14253
echo "${ECHO_T}no" >&6
 
14254
fi
 
14255
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
14256
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
14257
   { (exit 1); exit 1; }; }
 
14258
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
14259
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
14260
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
14261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14262
else
 
14263
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
14264
case `$LD -v 2>&1 </dev/null` in
 
14265
*GNU* | *'with BFD'*)
 
14266
  lt_cv_prog_gnu_ld=yes
 
14267
  ;;
 
14268
*)
 
14269
  lt_cv_prog_gnu_ld=no
 
14270
  ;;
 
14271
esac
 
14272
fi
 
14273
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
14274
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
14275
with_gnu_ld=$lt_cv_prog_gnu_ld
 
14276
 
 
14277
 
 
14278
 
 
14279
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
14280
  # archiving commands below assume that GNU ld is being used.
 
14281
  if test "$with_gnu_ld" = yes; then
 
14282
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14283
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14284
 
 
14285
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
14286
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14287
 
 
14288
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14289
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
14290
    #     investigate it a little bit more. (MM)
 
14291
    wlarc='${wl}'
 
14292
 
 
14293
    # ancient GNU ld didn't support --whole-archive et. al.
 
14294
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
14295
        grep 'no-whole-archive' > /dev/null; then
 
14296
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14297
    else
 
14298
      whole_archive_flag_spec_CXX=
 
14299
    fi
 
14300
  else
 
14301
    with_gnu_ld=no
 
14302
    wlarc=
 
14303
 
 
14304
    # A generic and very simple default shared library creation
 
14305
    # command for GNU C++ for the case where it uses the native
 
14306
    # linker, instead of GNU ld.  If possible, this setting should
 
14307
    # overridden to take advantage of the native linker features on
 
14308
    # the platform it is being used on.
 
14309
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
14310
  fi
 
14311
 
 
14312
  # Commands to make compiler produce verbose output that lists
 
14313
  # what "hidden" libraries, object files and flags are used when
 
14314
  # linking a shared library.
 
14315
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
14316
 
 
14317
else
 
14318
  GXX=no
 
14319
  with_gnu_ld=no
 
14320
  wlarc=
 
14321
fi
 
14322
 
 
14323
# PORTME: fill in a description of your system's C++ link characteristics
 
14324
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14325
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14326
ld_shlibs_CXX=yes
 
14327
case $host_os in
 
14328
  aix3*)
 
14329
    # FIXME: insert proper C++ library support
 
14330
    ld_shlibs_CXX=no
 
14331
    ;;
 
14332
  aix4* | aix5*)
 
14333
    if test "$host_cpu" = ia64; then
 
14334
      # On IA64, the linker does run time linking by default, so we don't
 
14335
      # have to do anything special.
 
14336
      aix_use_runtimelinking=no
 
14337
      exp_sym_flag='-Bexport'
 
14338
      no_entry_flag=""
 
14339
    else
 
14340
      aix_use_runtimelinking=no
 
14341
 
 
14342
      # Test if we are trying to use run time linking or normal
 
14343
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14344
      # need to do runtime linking.
 
14345
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14346
        for ld_flag in $LDFLAGS; do
 
14347
          case $ld_flag in
 
14348
          *-brtl*)
 
14349
            aix_use_runtimelinking=yes
 
14350
            break
 
14351
            ;;
 
14352
          esac
 
14353
        done
 
14354
      esac
 
14355
 
 
14356
      exp_sym_flag='-bexport'
 
14357
      no_entry_flag='-bnoentry'
 
14358
    fi
 
14359
 
 
14360
    # When large executables or shared objects are built, AIX ld can
 
14361
    # have problems creating the table of contents.  If linking a library
 
14362
    # or program results in "error TOC overflow" add -mminimal-toc to
 
14363
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14364
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14365
 
 
14366
    archive_cmds_CXX=''
 
14367
    hardcode_direct_CXX=yes
 
14368
    hardcode_libdir_separator_CXX=':'
 
14369
    link_all_deplibs_CXX=yes
 
14370
 
 
14371
    if test "$GXX" = yes; then
 
14372
      case $host_os in aix4.[012]|aix4.[012].*)
 
14373
      # We only want to do this on AIX 4.2 and lower, the check
 
14374
      # below for broken collect2 doesn't work under 4.3+
 
14375
        collect2name=`${CC} -print-prog-name=collect2`
 
14376
        if test -f "$collect2name" && \
 
14377
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14378
        then
 
14379
          # We have reworked collect2
 
14380
          hardcode_direct_CXX=yes
 
14381
        else
 
14382
          # We have old collect2
 
14383
          hardcode_direct_CXX=unsupported
 
14384
          # It fails to find uninstalled libraries when the uninstalled
 
14385
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14386
          # to unsupported forces relinking
 
14387
          hardcode_minus_L_CXX=yes
 
14388
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
14389
          hardcode_libdir_separator_CXX=
 
14390
        fi
 
14391
      esac
 
14392
      shared_flag='-shared'
 
14393
      if test "$aix_use_runtimelinking" = yes; then
 
14394
        shared_flag="$shared_flag "'${wl}-G'
 
14395
      fi
 
14396
    else
 
14397
      # not using gcc
 
14398
      if test "$host_cpu" = ia64; then
 
14399
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14400
        # chokes on -Wl,-G. The following line is correct:
 
14401
        shared_flag='-G'
 
14402
      else
 
14403
        if test "$aix_use_runtimelinking" = yes; then
 
14404
          shared_flag='${wl}-G'
 
14405
        else
 
14406
          shared_flag='${wl}-bM:SRE'
 
14407
        fi
 
14408
      fi
 
14409
    fi
 
14410
 
 
14411
    # It seems that -bexpall does not export symbols beginning with
 
14412
    # underscore (_), so it is better to generate a list of symbols to export.
 
14413
    always_export_symbols_CXX=yes
 
14414
    if test "$aix_use_runtimelinking" = yes; then
 
14415
      # Warning - without using the other runtime loading flags (-brtl),
 
14416
      # -berok will link without error, but may produce a broken library.
 
14417
      allow_undefined_flag_CXX='-berok'
 
14418
      # Determine the default libpath from the value encoded in an empty executable.
 
14419
      cat >conftest.$ac_ext <<_ACEOF
 
14420
/* confdefs.h.  */
 
14421
_ACEOF
 
14422
cat confdefs.h >>conftest.$ac_ext
 
14423
cat >>conftest.$ac_ext <<_ACEOF
 
14424
/* end confdefs.h.  */
 
14425
 
 
14426
int
 
14427
main ()
 
14428
{
 
14429
 
 
14430
  ;
 
14431
  return 0;
 
14432
}
 
14433
_ACEOF
 
14434
rm -f conftest.$ac_objext conftest$ac_exeext
 
14435
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14436
  (eval $ac_link) 2>conftest.er1
 
14437
  ac_status=$?
 
14438
  grep -v '^ *+' conftest.er1 >conftest.err
 
14439
  rm -f conftest.er1
 
14440
  cat conftest.err >&5
 
14441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14442
  (exit $ac_status); } &&
 
14443
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14444
                         || test ! -s conftest.err'
 
14445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14446
  (eval $ac_try) 2>&5
 
14447
  ac_status=$?
 
14448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14449
  (exit $ac_status); }; } &&
 
14450
         { ac_try='test -s conftest$ac_exeext'
 
14451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14452
  (eval $ac_try) 2>&5
 
14453
  ac_status=$?
 
14454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14455
  (exit $ac_status); }; }; then
 
14456
 
 
14457
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14458
}'`
 
14459
# Check for a 64-bit object if we didn't find anything.
 
14460
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14461
}'`; fi
 
14462
else
 
14463
  echo "$as_me: failed program was:" >&5
 
14464
sed 's/^/| /' conftest.$ac_ext >&5
 
14465
 
 
14466
fi
 
14467
rm -f conftest.err conftest.$ac_objext \
 
14468
      conftest$ac_exeext conftest.$ac_ext
 
14469
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14470
 
 
14471
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14472
 
 
14473
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14474
     else
 
14475
      if test "$host_cpu" = ia64; then
 
14476
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
14477
        allow_undefined_flag_CXX="-z nodefs"
 
14478
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
14479
      else
 
14480
        # Determine the default libpath from the value encoded in an empty executable.
 
14481
        cat >conftest.$ac_ext <<_ACEOF
 
14482
/* confdefs.h.  */
 
14483
_ACEOF
 
14484
cat confdefs.h >>conftest.$ac_ext
 
14485
cat >>conftest.$ac_ext <<_ACEOF
 
14486
/* end confdefs.h.  */
 
14487
 
 
14488
int
 
14489
main ()
 
14490
{
 
14491
 
 
14492
  ;
 
14493
  return 0;
 
14494
}
 
14495
_ACEOF
 
14496
rm -f conftest.$ac_objext conftest$ac_exeext
 
14497
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14498
  (eval $ac_link) 2>conftest.er1
 
14499
  ac_status=$?
 
14500
  grep -v '^ *+' conftest.er1 >conftest.err
 
14501
  rm -f conftest.er1
 
14502
  cat conftest.err >&5
 
14503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14504
  (exit $ac_status); } &&
 
14505
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14506
                         || test ! -s conftest.err'
 
14507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14508
  (eval $ac_try) 2>&5
 
14509
  ac_status=$?
 
14510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14511
  (exit $ac_status); }; } &&
 
14512
         { ac_try='test -s conftest$ac_exeext'
 
14513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14514
  (eval $ac_try) 2>&5
 
14515
  ac_status=$?
 
14516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14517
  (exit $ac_status); }; }; then
 
14518
 
 
14519
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14520
}'`
 
14521
# Check for a 64-bit object if we didn't find anything.
 
14522
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14523
}'`; fi
 
14524
else
 
14525
  echo "$as_me: failed program was:" >&5
 
14526
sed 's/^/| /' conftest.$ac_ext >&5
 
14527
 
 
14528
fi
 
14529
rm -f conftest.err conftest.$ac_objext \
 
14530
      conftest$ac_exeext conftest.$ac_ext
 
14531
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14532
 
 
14533
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14534
        # Warning - without using the other run time loading flags,
 
14535
        # -berok will link without error, but may produce a broken library.
 
14536
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
14537
        allow_undefined_flag_CXX=' ${wl}-berok'
 
14538
        # -bexpall does not export symbols beginning with underscore (_)
 
14539
        always_export_symbols_CXX=yes
 
14540
        # Exported symbols can be pulled into shared objects from archives
 
14541
        whole_archive_flag_spec_CXX=' '
 
14542
        archive_cmds_need_lc_CXX=yes
 
14543
        # This is similar to how AIX traditionally builds its shared libraries.
 
14544
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14545
      fi
 
14546
    fi
 
14547
    ;;
 
14548
  chorus*)
 
14549
    case $cc_basename in
 
14550
      *)
 
14551
        # FIXME: insert proper C++ library support
 
14552
        ld_shlibs_CXX=no
 
14553
        ;;
 
14554
    esac
 
14555
    ;;
 
14556
 
 
14557
 
 
14558
  cygwin* | mingw* | pw32*)
 
14559
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
14560
    # as there is no search path for DLLs.
 
14561
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
14562
    allow_undefined_flag_CXX=unsupported
 
14563
    always_export_symbols_CXX=no
 
14564
    enable_shared_with_static_runtimes_CXX=yes
 
14565
 
 
14566
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14567
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14568
      # If the export-symbols file already is a .def file (1st line
 
14569
      # is EXPORTS), use it as is; otherwise, prepend...
 
14570
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14571
        cp $export_symbols $output_objdir/$soname.def;
 
14572
      else
 
14573
        echo EXPORTS > $output_objdir/$soname.def;
 
14574
        cat $export_symbols >> $output_objdir/$soname.def;
 
14575
      fi~
 
14576
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14577
    else
 
14578
      ld_shlibs_CXX=no
 
14579
    fi
 
14580
  ;;
 
14581
      darwin* | rhapsody*)
 
14582
        case $host_os in
 
14583
        rhapsody* | darwin1.[012])
 
14584
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
14585
         ;;
 
14586
       *) # Darwin 1.3 on
 
14587
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14588
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14589
         else
 
14590
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14591
             10.[012])
 
14592
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14593
               ;;
 
14594
             10.*)
 
14595
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
14596
               ;;
 
14597
           esac
 
14598
         fi
 
14599
         ;;
 
14600
        esac
 
14601
      archive_cmds_need_lc_CXX=no
 
14602
      hardcode_direct_CXX=no
 
14603
      hardcode_automatic_CXX=yes
 
14604
      hardcode_shlibpath_var_CXX=unsupported
 
14605
      whole_archive_flag_spec_CXX=''
 
14606
      link_all_deplibs_CXX=yes
 
14607
 
 
14608
    if test "$GXX" = yes ; then
 
14609
      lt_int_apple_cc_single_mod=no
 
14610
      output_verbose_link_cmd='echo'
 
14611
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
14612
       lt_int_apple_cc_single_mod=yes
 
14613
      fi
 
14614
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14615
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14616
      else
 
14617
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14618
        fi
 
14619
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14620
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14621
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14622
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14623
          else
 
14624
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14625
          fi
 
14626
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14627
      else
 
14628
      case $cc_basename in
 
14629
        xlc*)
 
14630
         output_verbose_link_cmd='echo'
 
14631
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14632
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14633
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14634
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14635
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14636
          ;;
 
14637
       *)
 
14638
         ld_shlibs_CXX=no
 
14639
          ;;
 
14640
      esac
 
14641
      fi
 
14642
        ;;
 
14643
 
 
14644
  dgux*)
 
14645
    case $cc_basename in
 
14646
      ec++*)
 
14647
        # FIXME: insert proper C++ library support
 
14648
        ld_shlibs_CXX=no
 
14649
        ;;
 
14650
      ghcx*)
 
14651
        # Green Hills C++ Compiler
 
14652
        # FIXME: insert proper C++ library support
 
14653
        ld_shlibs_CXX=no
 
14654
        ;;
 
14655
      *)
 
14656
        # FIXME: insert proper C++ library support
 
14657
        ld_shlibs_CXX=no
 
14658
        ;;
 
14659
    esac
 
14660
    ;;
 
14661
  freebsd[12]*)
 
14662
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
14663
    ld_shlibs_CXX=no
 
14664
    ;;
 
14665
  freebsd-elf*)
 
14666
    archive_cmds_need_lc_CXX=no
 
14667
    ;;
 
14668
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
14669
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
14670
    # conventions
 
14671
    ld_shlibs_CXX=yes
 
14672
    ;;
 
14673
  gnu*)
 
14674
    ;;
 
14675
  hpux9*)
 
14676
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
14677
    hardcode_libdir_separator_CXX=:
 
14678
    export_dynamic_flag_spec_CXX='${wl}-E'
 
14679
    hardcode_direct_CXX=yes
 
14680
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
14681
                                # but as the default
 
14682
                                # location of the library.
 
14683
 
 
14684
    case $cc_basename in
 
14685
    CC*)
 
14686
      # FIXME: insert proper C++ library support
 
14687
      ld_shlibs_CXX=no
 
14688
      ;;
 
14689
    aCC*)
 
14690
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14691
      # Commands to make compiler produce verbose output that lists
 
14692
      # what "hidden" libraries, object files and flags are used when
 
14693
      # linking a shared library.
 
14694
      #
 
14695
      # There doesn't appear to be a way to prevent this compiler from
 
14696
      # explicitly linking system object files so we need to strip them
 
14697
      # from the output so that they don't get included in the library
 
14698
      # dependencies.
 
14699
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14700
      ;;
 
14701
    *)
 
14702
      if test "$GXX" = yes; then
 
14703
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14704
      else
 
14705
        # FIXME: insert proper C++ library support
 
14706
        ld_shlibs_CXX=no
 
14707
      fi
 
14708
      ;;
 
14709
    esac
 
14710
    ;;
 
14711
  hpux10*|hpux11*)
 
14712
    if test $with_gnu_ld = no; then
 
14713
      case $host_cpu in
 
14714
      hppa*64*)
 
14715
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
14716
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
14717
        hardcode_libdir_separator_CXX=:
 
14718
        ;;
 
14719
      ia64*)
 
14720
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
14721
        ;;
 
14722
      *)
 
14723
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
14724
        hardcode_libdir_separator_CXX=:
 
14725
        export_dynamic_flag_spec_CXX='${wl}-E'
 
14726
        ;;
 
14727
      esac
 
14728
    fi
 
14729
    case $host_cpu in
 
14730
    hppa*64*)
 
14731
      hardcode_direct_CXX=no
 
14732
      hardcode_shlibpath_var_CXX=no
 
14733
      ;;
 
14734
    ia64*)
 
14735
      hardcode_direct_CXX=no
 
14736
      hardcode_shlibpath_var_CXX=no
 
14737
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
14738
                                              # but as the default
 
14739
                                              # location of the library.
 
14740
      ;;
 
14741
    *)
 
14742
      hardcode_direct_CXX=yes
 
14743
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
14744
                                              # but as the default
 
14745
                                              # location of the library.
 
14746
      ;;
 
14747
    esac
 
14748
 
 
14749
    case $cc_basename in
 
14750
      CC*)
 
14751
        # FIXME: insert proper C++ library support
 
14752
        ld_shlibs_CXX=no
 
14753
        ;;
 
14754
      aCC*)
 
14755
        case $host_cpu in
 
14756
        hppa*64*|ia64*)
 
14757
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
14758
          ;;
 
14759
        *)
 
14760
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14761
          ;;
 
14762
        esac
 
14763
        # Commands to make compiler produce verbose output that lists
 
14764
        # what "hidden" libraries, object files and flags are used when
 
14765
        # linking a shared library.
 
14766
        #
 
14767
        # There doesn't appear to be a way to prevent this compiler from
 
14768
        # explicitly linking system object files so we need to strip them
 
14769
        # from the output so that they don't get included in the library
 
14770
        # dependencies.
 
14771
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14772
        ;;
 
14773
      *)
 
14774
        if test "$GXX" = yes; then
 
14775
          if test $with_gnu_ld = no; then
 
14776
            case $host_cpu in
 
14777
            ia64*|hppa*64*)
 
14778
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
14779
              ;;
 
14780
            *)
 
14781
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14782
              ;;
 
14783
            esac
 
14784
          fi
 
14785
        else
 
14786
          # FIXME: insert proper C++ library support
 
14787
          ld_shlibs_CXX=no
 
14788
        fi
 
14789
        ;;
 
14790
    esac
 
14791
    ;;
 
14792
  irix5* | irix6*)
 
14793
    case $cc_basename in
 
14794
      CC*)
 
14795
        # SGI C++
 
14796
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14797
 
 
14798
        # Archives containing C++ object files must be created using
 
14799
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
14800
        # necessary to make sure instantiated templates are included
 
14801
        # in the archive.
 
14802
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
14803
        ;;
 
14804
      *)
 
14805
        if test "$GXX" = yes; then
 
14806
          if test "$with_gnu_ld" = no; then
 
14807
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14808
          else
 
14809
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
14810
          fi
 
14811
        fi
 
14812
        link_all_deplibs_CXX=yes
 
14813
        ;;
 
14814
    esac
 
14815
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14816
    hardcode_libdir_separator_CXX=:
 
14817
    ;;
 
14818
  linux*)
 
14819
    case $cc_basename in
 
14820
      KCC*)
 
14821
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
14822
 
 
14823
        # KCC will only create a shared library if the output file
 
14824
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
14825
        # to its proper name (with version) after linking.
 
14826
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
14827
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
14828
        # Commands to make compiler produce verbose output that lists
 
14829
        # what "hidden" libraries, object files and flags are used when
 
14830
        # linking a shared library.
 
14831
        #
 
14832
        # There doesn't appear to be a way to prevent this compiler from
 
14833
        # explicitly linking system object files so we need to strip them
 
14834
        # from the output so that they don't get included in the library
 
14835
        # dependencies.
 
14836
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14837
 
 
14838
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
14839
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14840
 
 
14841
        # Archives containing C++ object files must be created using
 
14842
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
14843
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
14844
        ;;
 
14845
      icpc*)
 
14846
        # Intel C++
 
14847
        with_gnu_ld=yes
 
14848
        # version 8.0 and above of icpc choke on multiply defined symbols
 
14849
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
14850
        # earlier do not add the objects themselves.
 
14851
        case `$CC -V 2>&1` in
 
14852
        *"Version 7."*)
 
14853
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14854
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14855
          ;;
 
14856
        *)  # Version 8.0 or newer
 
14857
          tmp_idyn=
 
14858
          case $host_cpu in
 
14859
            ia64*) tmp_idyn=' -i_dynamic';;
 
14860
          esac
 
14861
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14862
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14863
          ;;
 
14864
        esac
 
14865
        archive_cmds_need_lc_CXX=no
 
14866
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14867
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14868
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
14869
        ;;
 
14870
      pgCC*)
 
14871
        # Portland Group C++ compiler
 
14872
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
14873
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
14874
 
 
14875
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
14876
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14877
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14878
        ;;
 
14879
      cxx*)
 
14880
        # Compaq C++
 
14881
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14882
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
14883
 
 
14884
        runpath_var=LD_RUN_PATH
 
14885
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
14886
        hardcode_libdir_separator_CXX=:
 
14887
 
 
14888
        # Commands to make compiler produce verbose output that lists
 
14889
        # what "hidden" libraries, object files and flags are used when
 
14890
        # linking a shared library.
 
14891
        #
 
14892
        # There doesn't appear to be a way to prevent this compiler from
 
14893
        # explicitly linking system object files so we need to strip them
 
14894
        # from the output so that they don't get included in the library
 
14895
        # dependencies.
 
14896
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14897
        ;;
 
14898
    esac
 
14899
    ;;
 
14900
  lynxos*)
 
14901
    # FIXME: insert proper C++ library support
 
14902
    ld_shlibs_CXX=no
 
14903
    ;;
 
14904
  m88k*)
 
14905
    # FIXME: insert proper C++ library support
 
14906
    ld_shlibs_CXX=no
 
14907
    ;;
 
14908
  mvs*)
 
14909
    case $cc_basename in
 
14910
      cxx*)
 
14911
        # FIXME: insert proper C++ library support
 
14912
        ld_shlibs_CXX=no
 
14913
        ;;
 
14914
      *)
 
14915
        # FIXME: insert proper C++ library support
 
14916
        ld_shlibs_CXX=no
 
14917
        ;;
 
14918
    esac
 
14919
    ;;
 
14920
  netbsd*)
 
14921
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14922
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
14923
      wlarc=
 
14924
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
14925
      hardcode_direct_CXX=yes
 
14926
      hardcode_shlibpath_var_CXX=no
 
14927
    fi
 
14928
    # Workaround some broken pre-1.5 toolchains
 
14929
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
14930
    ;;
 
14931
  openbsd2*)
 
14932
    # C++ shared libraries are fairly broken
 
14933
    ld_shlibs_CXX=no
 
14934
    ;;
 
14935
  openbsd*)
 
14936
    hardcode_direct_CXX=yes
 
14937
    hardcode_shlibpath_var_CXX=no
 
14938
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
14939
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14940
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14941
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
14942
      export_dynamic_flag_spec_CXX='${wl}-E'
 
14943
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14944
    fi
 
14945
    output_verbose_link_cmd='echo'
 
14946
    ;;
 
14947
  osf3*)
 
14948
    case $cc_basename in
 
14949
      KCC*)
 
14950
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
14951
 
 
14952
        # KCC will only create a shared library if the output file
 
14953
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
14954
        # to its proper name (with version) after linking.
 
14955
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
14956
 
 
14957
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14958
        hardcode_libdir_separator_CXX=:
 
14959
 
 
14960
        # Archives containing C++ object files must be created using
 
14961
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
14962
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
14963
 
 
14964
        ;;
 
14965
      RCC*)
 
14966
        # Rational C++ 2.4.1
 
14967
        # FIXME: insert proper C++ library support
 
14968
        ld_shlibs_CXX=no
 
14969
        ;;
 
14970
      cxx*)
 
14971
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14972
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14973
 
 
14974
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14975
        hardcode_libdir_separator_CXX=:
 
14976
 
 
14977
        # Commands to make compiler produce verbose output that lists
 
14978
        # what "hidden" libraries, object files and flags are used when
 
14979
        # linking a shared library.
 
14980
        #
 
14981
        # There doesn't appear to be a way to prevent this compiler from
 
14982
        # explicitly linking system object files so we need to strip them
 
14983
        # from the output so that they don't get included in the library
 
14984
        # dependencies.
 
14985
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14986
        ;;
 
14987
      *)
 
14988
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14989
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14990
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14991
 
 
14992
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14993
          hardcode_libdir_separator_CXX=:
 
14994
 
 
14995
          # Commands to make compiler produce verbose output that lists
 
14996
          # what "hidden" libraries, object files and flags are used when
 
14997
          # linking a shared library.
 
14998
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
14999
 
 
15000
        else
 
15001
          # FIXME: insert proper C++ library support
 
15002
          ld_shlibs_CXX=no
 
15003
        fi
 
15004
        ;;
 
15005
    esac
 
15006
    ;;
 
15007
  osf4* | osf5*)
 
15008
    case $cc_basename in
 
15009
      KCC*)
 
15010
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
15011
 
 
15012
        # KCC will only create a shared library if the output file
 
15013
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
15014
        # to its proper name (with version) after linking.
 
15015
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
15016
 
 
15017
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
15018
        hardcode_libdir_separator_CXX=:
 
15019
 
 
15020
        # Archives containing C++ object files must be created using
 
15021
        # the KAI C++ compiler.
 
15022
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
15023
        ;;
 
15024
      RCC*)
 
15025
        # Rational C++ 2.4.1
 
15026
        # FIXME: insert proper C++ library support
 
15027
        ld_shlibs_CXX=no
 
15028
        ;;
 
15029
      cxx*)
 
15030
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
15031
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15032
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
15033
          echo "-hidden">> $lib.exp~
 
15034
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
15035
          $rm $lib.exp'
 
15036
 
 
15037
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
15038
        hardcode_libdir_separator_CXX=:
 
15039
 
 
15040
        # Commands to make compiler produce verbose output that lists
 
15041
        # what "hidden" libraries, object files and flags are used when
 
15042
        # linking a shared library.
 
15043
        #
 
15044
        # There doesn't appear to be a way to prevent this compiler from
 
15045
        # explicitly linking system object files so we need to strip them
 
15046
        # from the output so that they don't get included in the library
 
15047
        # dependencies.
 
15048
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
15049
        ;;
 
15050
      *)
 
15051
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
15052
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
15053
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15054
 
 
15055
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
15056
          hardcode_libdir_separator_CXX=:
 
15057
 
 
15058
          # Commands to make compiler produce verbose output that lists
 
15059
          # what "hidden" libraries, object files and flags are used when
 
15060
          # linking a shared library.
 
15061
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
15062
 
 
15063
        else
 
15064
          # FIXME: insert proper C++ library support
 
15065
          ld_shlibs_CXX=no
 
15066
        fi
 
15067
        ;;
 
15068
    esac
 
15069
    ;;
 
15070
  psos*)
 
15071
    # FIXME: insert proper C++ library support
 
15072
    ld_shlibs_CXX=no
 
15073
    ;;
 
15074
  sco*)
 
15075
    archive_cmds_need_lc_CXX=no
 
15076
    case $cc_basename in
 
15077
      CC*)
 
15078
        # FIXME: insert proper C++ library support
 
15079
        ld_shlibs_CXX=no
 
15080
        ;;
 
15081
      *)
 
15082
        # FIXME: insert proper C++ library support
 
15083
        ld_shlibs_CXX=no
 
15084
        ;;
 
15085
    esac
 
15086
    ;;
 
15087
  sunos4*)
 
15088
    case $cc_basename in
 
15089
      CC*)
 
15090
        # Sun C++ 4.x
 
15091
        # FIXME: insert proper C++ library support
 
15092
        ld_shlibs_CXX=no
 
15093
        ;;
 
15094
      lcc*)
 
15095
        # Lucid
 
15096
        # FIXME: insert proper C++ library support
 
15097
        ld_shlibs_CXX=no
 
15098
        ;;
 
15099
      *)
 
15100
        # FIXME: insert proper C++ library support
 
15101
        ld_shlibs_CXX=no
 
15102
        ;;
 
15103
    esac
 
15104
    ;;
 
15105
  solaris*)
 
15106
    case $cc_basename in
 
15107
      CC*)
 
15108
        # Sun C++ 4.2, 5.x and Centerline C++
 
15109
        archive_cmds_need_lc_CXX=yes
 
15110
        no_undefined_flag_CXX=' -zdefs'
 
15111
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
15112
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15113
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
15114
 
 
15115
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
15116
        hardcode_shlibpath_var_CXX=no
 
15117
        case $host_os in
 
15118
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15119
          *)
 
15120
            # The C++ compiler is used as linker so we must use $wl
 
15121
            # flag to pass the commands to the underlying system
 
15122
            # linker. We must also pass each convience library through
 
15123
            # to the system linker between allextract/defaultextract.
 
15124
            # The C++ compiler will combine linker options so we
 
15125
            # cannot just pass the convience library names through
 
15126
            # without $wl.
 
15127
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15128
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
15129
            ;;
 
15130
        esac
 
15131
        link_all_deplibs_CXX=yes
 
15132
 
 
15133
        output_verbose_link_cmd='echo'
 
15134
 
 
15135
        # Archives containing C++ object files must be created using
 
15136
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
15137
        # necessary to make sure instantiated templates are included
 
15138
        # in the archive.
 
15139
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
15140
        ;;
 
15141
      gcx*)
 
15142
        # Green Hills C++ Compiler
 
15143
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
15144
 
 
15145
        # The C++ compiler must be used to create the archive.
 
15146
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
15147
        ;;
 
15148
      *)
 
15149
        # GNU C++ compiler with Solaris linker
 
15150
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
15151
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
15152
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
15153
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
15154
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15155
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
15156
 
 
15157
            # Commands to make compiler produce verbose output that lists
 
15158
            # what "hidden" libraries, object files and flags are used when
 
15159
            # linking a shared library.
 
15160
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
15161
          else
 
15162
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
15163
            # platform.
 
15164
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
15165
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15166
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
15167
 
 
15168
            # Commands to make compiler produce verbose output that lists
 
15169
            # what "hidden" libraries, object files and flags are used when
 
15170
            # linking a shared library.
 
15171
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
15172
          fi
 
15173
 
 
15174
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
15175
        fi
 
15176
        ;;
 
15177
    esac
 
15178
    ;;
 
15179
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
15180
    archive_cmds_need_lc_CXX=no
 
15181
    ;;
 
15182
  tandem*)
 
15183
    case $cc_basename in
 
15184
      NCC*)
 
15185
        # NonStop-UX NCC 3.20
 
15186
        # FIXME: insert proper C++ library support
 
15187
        ld_shlibs_CXX=no
 
15188
        ;;
 
15189
      *)
 
15190
        # FIXME: insert proper C++ library support
 
15191
        ld_shlibs_CXX=no
 
15192
        ;;
 
15193
    esac
 
15194
    ;;
 
15195
  vxworks*)
 
15196
    # FIXME: insert proper C++ library support
 
15197
    ld_shlibs_CXX=no
 
15198
    ;;
 
15199
  *)
 
15200
    # FIXME: insert proper C++ library support
 
15201
    ld_shlibs_CXX=no
 
15202
    ;;
 
15203
esac
 
15204
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
15205
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
15206
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
15207
 
 
15208
GCC_CXX="$GXX"
 
15209
LD_CXX="$LD"
 
15210
 
 
15211
## CAVEAT EMPTOR:
 
15212
## There is no encapsulation within the following macros, do not change
 
15213
## the running order or otherwise move them around unless you know exactly
 
15214
## what you are doing...
 
15215
 
 
15216
cat > conftest.$ac_ext <<EOF
 
15217
class Foo
 
15218
{
 
15219
public:
 
15220
  Foo (void) { a = 0; }
 
15221
private:
 
15222
  int a;
 
15223
};
 
15224
EOF
 
15225
 
 
15226
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15227
  (eval $ac_compile) 2>&5
 
15228
  ac_status=$?
 
15229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15230
  (exit $ac_status); }; then
 
15231
  # Parse the compiler output and extract the necessary
 
15232
  # objects, libraries and library flags.
 
15233
 
 
15234
  # Sentinel used to keep track of whether or not we are before
 
15235
  # the conftest object file.
 
15236
  pre_test_object_deps_done=no
 
15237
 
 
15238
  # The `*' in the case matches for architectures that use `case' in
 
15239
  # $output_verbose_cmd can trigger glob expansion during the loop
 
15240
  # eval without this substitution.
 
15241
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
15242
 
 
15243
  for p in `eval $output_verbose_link_cmd`; do
 
15244
    case $p in
 
15245
 
 
15246
    -L* | -R* | -l*)
 
15247
       # Some compilers place space between "-{L,R}" and the path.
 
15248
       # Remove the space.
 
15249
       if test $p = "-L" \
 
15250
          || test $p = "-R"; then
 
15251
         prev=$p
 
15252
         continue
 
15253
       else
 
15254
         prev=
 
15255
       fi
 
15256
 
 
15257
       if test "$pre_test_object_deps_done" = no; then
 
15258
         case $p in
 
15259
         -L* | -R*)
 
15260
           # Internal compiler library paths should come after those
 
15261
           # provided the user.  The postdeps already come after the
 
15262
           # user supplied libs so there is no need to process them.
 
15263
           if test -z "$compiler_lib_search_path_CXX"; then
 
15264
             compiler_lib_search_path_CXX="${prev}${p}"
 
15265
           else
 
15266
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
15267
           fi
 
15268
           ;;
 
15269
         # The "-l" case would never come before the object being
 
15270
         # linked, so don't bother handling this case.
 
15271
         esac
 
15272
       else
 
15273
         if test -z "$postdeps_CXX"; then
 
15274
           postdeps_CXX="${prev}${p}"
 
15275
         else
 
15276
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
15277
         fi
 
15278
       fi
 
15279
       ;;
 
15280
 
 
15281
    *.$objext)
 
15282
       # This assumes that the test object file only shows up
 
15283
       # once in the compiler output.
 
15284
       if test "$p" = "conftest.$objext"; then
 
15285
         pre_test_object_deps_done=yes
 
15286
         continue
 
15287
       fi
 
15288
 
 
15289
       if test "$pre_test_object_deps_done" = no; then
 
15290
         if test -z "$predep_objects_CXX"; then
 
15291
           predep_objects_CXX="$p"
 
15292
         else
 
15293
           predep_objects_CXX="$predep_objects_CXX $p"
 
15294
         fi
 
15295
       else
 
15296
         if test -z "$postdep_objects_CXX"; then
 
15297
           postdep_objects_CXX="$p"
 
15298
         else
 
15299
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
15300
         fi
 
15301
       fi
 
15302
       ;;
 
15303
 
 
15304
    *) ;; # Ignore the rest.
 
15305
 
 
15306
    esac
 
15307
  done
 
15308
 
 
15309
  # Clean up.
 
15310
  rm -f a.out a.exe
 
15311
else
 
15312
  echo "libtool.m4: error: problem compiling CXX test program"
 
15313
fi
 
15314
 
 
15315
$rm -f confest.$objext
 
15316
 
 
15317
# PORTME: override above test on systems where it is broken
 
15318
case $host_os in
 
15319
solaris*)
 
15320
  case $cc_basename in
 
15321
  CC*)
 
15322
    # Adding this requires a known-good setup of shared libraries for
 
15323
    # Sun compiler versions before 5.6, else PIC objects from an old
 
15324
    # archive will be linked into the output, leading to subtle bugs.
 
15325
    postdeps_CXX='-lCstd -lCrun'
 
15326
    ;;
 
15327
  esac
 
15328
esac
 
15329
 
 
15330
 
 
15331
case " $postdeps_CXX " in
 
15332
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
15333
esac
 
15334
 
 
15335
lt_prog_compiler_wl_CXX=
 
15336
lt_prog_compiler_pic_CXX=
 
15337
lt_prog_compiler_static_CXX=
 
15338
 
 
15339
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15340
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15341
 
 
15342
  # C++ specific cases for pic, static, wl, etc.
 
15343
  if test "$GXX" = yes; then
 
15344
    lt_prog_compiler_wl_CXX='-Wl,'
 
15345
    lt_prog_compiler_static_CXX='-static'
 
15346
 
 
15347
    case $host_os in
 
15348
    aix*)
 
15349
      # All AIX code is PIC.
 
15350
      if test "$host_cpu" = ia64; then
 
15351
        # AIX 5 now supports IA64 processor
 
15352
        lt_prog_compiler_static_CXX='-Bstatic'
 
15353
      fi
 
15354
      ;;
 
15355
    amigaos*)
 
15356
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15357
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15358
      # like `-m68040'.
 
15359
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
15360
      ;;
 
15361
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15362
      # PIC is the default for these OSes.
 
15363
      ;;
 
15364
    mingw* | os2* | pw32*)
 
15365
      # This hack is so that the source file can tell whether it is being
 
15366
      # built for inclusion in a dll (and should export symbols for example).
 
15367
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
15368
      ;;
 
15369
    darwin* | rhapsody*)
 
15370
      # PIC is the default on this platform
 
15371
      # Common symbols not allowed in MH_DYLIB files
 
15372
      lt_prog_compiler_pic_CXX='-fno-common'
 
15373
      ;;
 
15374
    *djgpp*)
 
15375
      # DJGPP does not support shared libraries at all
 
15376
      lt_prog_compiler_pic_CXX=
 
15377
      ;;
 
15378
    sysv4*MP*)
 
15379
      if test -d /usr/nec; then
 
15380
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
15381
      fi
 
15382
      ;;
 
15383
    hpux*)
 
15384
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15385
      # not for PA HP-UX.
 
15386
      case $host_cpu in
 
15387
      hppa*64*|ia64*)
 
15388
        ;;
 
15389
      *)
 
15390
        lt_prog_compiler_pic_CXX='-fPIC'
 
15391
        ;;
 
15392
      esac
 
15393
      ;;
 
15394
    *)
 
15395
      lt_prog_compiler_pic_CXX='-fPIC'
 
15396
      ;;
 
15397
    esac
 
15398
  else
 
15399
    case $host_os in
 
15400
      aix4* | aix5*)
 
15401
        # All AIX code is PIC.
 
15402
        if test "$host_cpu" = ia64; then
 
15403
          # AIX 5 now supports IA64 processor
 
15404
          lt_prog_compiler_static_CXX='-Bstatic'
 
15405
        else
 
15406
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
15407
        fi
 
15408
        ;;
 
15409
      chorus*)
 
15410
        case $cc_basename in
 
15411
        cxch68*)
 
15412
          # Green Hills C++ Compiler
 
15413
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
15414
          ;;
 
15415
        esac
 
15416
        ;;
 
15417
       darwin*)
 
15418
         # PIC is the default on this platform
 
15419
         # Common symbols not allowed in MH_DYLIB files
 
15420
         case $cc_basename in
 
15421
           xlc*)
 
15422
           lt_prog_compiler_pic_CXX='-qnocommon'
 
15423
           lt_prog_compiler_wl_CXX='-Wl,'
 
15424
           ;;
 
15425
         esac
 
15426
       ;;
 
15427
      dgux*)
 
15428
        case $cc_basename in
 
15429
          ec++*)
 
15430
            lt_prog_compiler_pic_CXX='-KPIC'
 
15431
            ;;
 
15432
          ghcx*)
 
15433
            # Green Hills C++ Compiler
 
15434
            lt_prog_compiler_pic_CXX='-pic'
 
15435
            ;;
 
15436
          *)
 
15437
            ;;
 
15438
        esac
 
15439
        ;;
 
15440
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
15441
        # FreeBSD uses GNU C++
 
15442
        ;;
 
15443
      hpux9* | hpux10* | hpux11*)
 
15444
        case $cc_basename in
 
15445
          CC*)
 
15446
            lt_prog_compiler_wl_CXX='-Wl,'
 
15447
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
15448
            if test "$host_cpu" != ia64; then
 
15449
              lt_prog_compiler_pic_CXX='+Z'
 
15450
            fi
 
15451
            ;;
 
15452
          aCC*)
 
15453
            lt_prog_compiler_wl_CXX='-Wl,'
 
15454
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
15455
            case $host_cpu in
 
15456
            hppa*64*|ia64*)
 
15457
              # +Z the default
 
15458
              ;;
 
15459
            *)
 
15460
              lt_prog_compiler_pic_CXX='+Z'
 
15461
              ;;
 
15462
            esac
 
15463
            ;;
 
15464
          *)
 
15465
            ;;
 
15466
        esac
 
15467
        ;;
 
15468
      irix5* | irix6* | nonstopux*)
 
15469
        case $cc_basename in
 
15470
          CC*)
 
15471
            lt_prog_compiler_wl_CXX='-Wl,'
 
15472
            lt_prog_compiler_static_CXX='-non_shared'
 
15473
            # CC pic flag -KPIC is the default.
 
15474
            ;;
 
15475
          *)
 
15476
            ;;
 
15477
        esac
 
15478
        ;;
 
15479
      linux*)
 
15480
        case $cc_basename in
 
15481
          KCC*)
 
15482
            # KAI C++ Compiler
 
15483
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
15484
            lt_prog_compiler_pic_CXX='-fPIC'
 
15485
            ;;
 
15486
          icpc* | ecpc*)
 
15487
            # Intel C++
 
15488
            lt_prog_compiler_wl_CXX='-Wl,'
 
15489
            lt_prog_compiler_pic_CXX='-KPIC'
 
15490
            lt_prog_compiler_static_CXX='-static'
 
15491
            ;;
 
15492
          pgCC*)
 
15493
            # Portland Group C++ compiler.
 
15494
            lt_prog_compiler_wl_CXX='-Wl,'
 
15495
            lt_prog_compiler_pic_CXX='-fpic'
 
15496
            lt_prog_compiler_static_CXX='-Bstatic'
 
15497
            ;;
 
15498
          cxx*)
 
15499
            # Compaq C++
 
15500
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
15501
            # Linux and Compaq Tru64 Unix objects are PIC.
 
15502
            lt_prog_compiler_pic_CXX=
 
15503
            lt_prog_compiler_static_CXX='-non_shared'
 
15504
            ;;
 
15505
          *)
 
15506
            ;;
 
15507
        esac
 
15508
        ;;
 
15509
      lynxos*)
 
15510
        ;;
 
15511
      m88k*)
 
15512
        ;;
 
15513
      mvs*)
 
15514
        case $cc_basename in
 
15515
          cxx*)
 
15516
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
15517
            ;;
 
15518
          *)
 
15519
            ;;
 
15520
        esac
 
15521
        ;;
 
15522
      netbsd*)
 
15523
        ;;
 
15524
      osf3* | osf4* | osf5*)
 
15525
        case $cc_basename in
 
15526
          KCC*)
 
15527
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
15528
            ;;
 
15529
          RCC*)
 
15530
            # Rational C++ 2.4.1
 
15531
            lt_prog_compiler_pic_CXX='-pic'
 
15532
            ;;
 
15533
          cxx*)
 
15534
            # Digital/Compaq C++
 
15535
            lt_prog_compiler_wl_CXX='-Wl,'
 
15536
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
15537
            # Linux and Compaq Tru64 Unix objects are PIC.
 
15538
            lt_prog_compiler_pic_CXX=
 
15539
            lt_prog_compiler_static_CXX='-non_shared'
 
15540
            ;;
 
15541
          *)
 
15542
            ;;
 
15543
        esac
 
15544
        ;;
 
15545
      psos*)
 
15546
        ;;
 
15547
      sco*)
 
15548
        case $cc_basename in
 
15549
          CC*)
 
15550
            lt_prog_compiler_pic_CXX='-fPIC'
 
15551
            ;;
 
15552
          *)
 
15553
            ;;
 
15554
        esac
 
15555
        ;;
 
15556
      solaris*)
 
15557
        case $cc_basename in
 
15558
          CC*)
 
15559
            # Sun C++ 4.2, 5.x and Centerline C++
 
15560
            lt_prog_compiler_pic_CXX='-KPIC'
 
15561
            lt_prog_compiler_static_CXX='-Bstatic'
 
15562
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
15563
            ;;
 
15564
          gcx*)
 
15565
            # Green Hills C++ Compiler
 
15566
            lt_prog_compiler_pic_CXX='-PIC'
 
15567
            ;;
 
15568
          *)
 
15569
            ;;
 
15570
        esac
 
15571
        ;;
 
15572
      sunos4*)
 
15573
        case $cc_basename in
 
15574
          CC*)
 
15575
            # Sun C++ 4.x
 
15576
            lt_prog_compiler_pic_CXX='-pic'
 
15577
            lt_prog_compiler_static_CXX='-Bstatic'
 
15578
            ;;
 
15579
          lcc*)
 
15580
            # Lucid
 
15581
            lt_prog_compiler_pic_CXX='-pic'
 
15582
            ;;
 
15583
          *)
 
15584
            ;;
 
15585
        esac
 
15586
        ;;
 
15587
      tandem*)
 
15588
        case $cc_basename in
 
15589
          NCC*)
 
15590
            # NonStop-UX NCC 3.20
 
15591
            lt_prog_compiler_pic_CXX='-KPIC'
 
15592
            ;;
 
15593
          *)
 
15594
            ;;
 
15595
        esac
 
15596
        ;;
 
15597
      unixware*)
 
15598
        ;;
 
15599
      vxworks*)
 
15600
        ;;
 
15601
      *)
 
15602
        lt_prog_compiler_can_build_shared_CXX=no
 
15603
        ;;
 
15604
    esac
 
15605
  fi
 
15606
 
 
15607
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
15608
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
15609
 
 
15610
#
 
15611
# Check to make sure the PIC flag actually works.
 
15612
#
 
15613
if test -n "$lt_prog_compiler_pic_CXX"; then
 
15614
 
 
15615
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
15616
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
15617
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
15618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15619
else
 
15620
  lt_prog_compiler_pic_works_CXX=no
 
15621
  ac_outfile=conftest.$ac_objext
 
15622
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15623
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
15624
   # Insert the option either (1) after the last *FLAGS variable, or
 
15625
   # (2) before a word containing "conftest.", or (3) at the end.
 
15626
   # Note that $ac_compile itself does not contain backslashes and begins
 
15627
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15628
   # The option is referenced via a variable to avoid confusing sed.
 
15629
   lt_compile=`echo "$ac_compile" | $SED \
 
15630
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15631
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15632
   -e 's:$: $lt_compiler_flag:'`
 
15633
   (eval echo "\"\$as_me:15633: $lt_compile\"" >&5)
 
15634
   (eval "$lt_compile" 2>conftest.err)
 
15635
   ac_status=$?
 
15636
   cat conftest.err >&5
 
15637
   echo "$as_me:15637: \$? = $ac_status" >&5
 
15638
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15639
     # The compiler can only warn and ignore the option if not recognized
 
15640
     # So say no if there are warnings other than the usual output.
 
15641
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15642
     $SED '/^$/d' conftest.err >conftest.er2
 
15643
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
15644
       lt_prog_compiler_pic_works_CXX=yes
 
15645
     fi
 
15646
   fi
 
15647
   $rm conftest*
 
15648
 
 
15649
fi
 
15650
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
15651
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
15652
 
 
15653
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
15654
    case $lt_prog_compiler_pic_CXX in
 
15655
     "" | " "*) ;;
 
15656
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
15657
     esac
 
15658
else
 
15659
    lt_prog_compiler_pic_CXX=
 
15660
     lt_prog_compiler_can_build_shared_CXX=no
 
15661
fi
 
15662
 
 
15663
fi
 
15664
case $host_os in
 
15665
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15666
  *djgpp*)
 
15667
    lt_prog_compiler_pic_CXX=
 
15668
    ;;
 
15669
  *)
 
15670
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
15671
    ;;
 
15672
esac
 
15673
 
 
15674
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15675
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15676
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
15677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15678
else
 
15679
  lt_cv_prog_compiler_c_o_CXX=no
 
15680
   $rm -r conftest 2>/dev/null
 
15681
   mkdir conftest
 
15682
   cd conftest
 
15683
   mkdir out
 
15684
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15685
 
 
15686
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15687
   # Insert the option either (1) after the last *FLAGS variable, or
 
15688
   # (2) before a word containing "conftest.", or (3) at the end.
 
15689
   # Note that $ac_compile itself does not contain backslashes and begins
 
15690
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15691
   lt_compile=`echo "$ac_compile" | $SED \
 
15692
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15693
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15694
   -e 's:$: $lt_compiler_flag:'`
 
15695
   (eval echo "\"\$as_me:15695: $lt_compile\"" >&5)
 
15696
   (eval "$lt_compile" 2>out/conftest.err)
 
15697
   ac_status=$?
 
15698
   cat out/conftest.err >&5
 
15699
   echo "$as_me:15699: \$? = $ac_status" >&5
 
15700
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15701
   then
 
15702
     # The compiler can only warn and ignore the option if not recognized
 
15703
     # So say no if there are warnings
 
15704
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
15705
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
15706
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15707
       lt_cv_prog_compiler_c_o_CXX=yes
 
15708
     fi
 
15709
   fi
 
15710
   chmod u+w . 2>&5
 
15711
   $rm conftest*
 
15712
   # SGI C++ compiler will create directory out/ii_files/ for
 
15713
   # template instantiation
 
15714
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15715
   $rm out/* && rmdir out
 
15716
   cd ..
 
15717
   rmdir conftest
 
15718
   $rm conftest*
 
15719
 
 
15720
fi
 
15721
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
15722
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
15723
 
 
15724
 
 
15725
hard_links="nottested"
 
15726
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
15727
  # do not overwrite the value of need_locks provided by the user
 
15728
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15729
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15730
  hard_links=yes
 
15731
  $rm conftest*
 
15732
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15733
  touch conftest.a
 
15734
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15735
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15736
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15737
echo "${ECHO_T}$hard_links" >&6
 
15738
  if test "$hard_links" = no; then
 
15739
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15740
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15741
    need_locks=warn
 
15742
  fi
 
15743
else
 
15744
  need_locks=no
 
15745
fi
 
15746
 
 
15747
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15748
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15749
 
 
15750
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15751
  case $host_os in
 
15752
  aix4* | aix5*)
 
15753
    # If we're using GNU nm, then we don't want the "-C" option.
 
15754
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15755
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15756
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15757
    else
 
15758
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15759
    fi
 
15760
    ;;
 
15761
  pw32*)
 
15762
    export_symbols_cmds_CXX="$ltdll_cmds"
 
15763
  ;;
 
15764
  cygwin* | mingw*)
 
15765
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15766
  ;;
 
15767
  *)
 
15768
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15769
  ;;
 
15770
  esac
 
15771
 
 
15772
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
15773
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
15774
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
15775
 
 
15776
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15777
if test "$GCC" = yes; then
 
15778
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15779
fi
 
15780
 
 
15781
#
 
15782
# Do we need to explicitly link libc?
 
15783
#
 
15784
case "x$archive_cmds_need_lc_CXX" in
 
15785
x|xyes)
 
15786
  # Assume -lc should be added
 
15787
  archive_cmds_need_lc_CXX=yes
 
15788
 
 
15789
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15790
    case $archive_cmds_CXX in
 
15791
    *'~'*)
 
15792
      # FIXME: we may have to deal with multi-command sequences.
 
15793
      ;;
 
15794
    '$CC '*)
 
15795
      # Test whether the compiler implicitly links with -lc since on some
 
15796
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15797
      # to ld, don't add -lc before -lgcc.
 
15798
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15799
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15800
      $rm conftest*
 
15801
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15802
 
 
15803
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15804
  (eval $ac_compile) 2>&5
 
15805
  ac_status=$?
 
15806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15807
  (exit $ac_status); } 2>conftest.err; then
 
15808
        soname=conftest
 
15809
        lib=conftest
 
15810
        libobjs=conftest.$ac_objext
 
15811
        deplibs=
 
15812
        wl=$lt_prog_compiler_wl_CXX
 
15813
        compiler_flags=-v
 
15814
        linker_flags=-v
 
15815
        verstring=
 
15816
        output_objdir=.
 
15817
        libname=conftest
 
15818
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
15819
        allow_undefined_flag_CXX=
 
15820
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15821
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15822
  ac_status=$?
 
15823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15824
  (exit $ac_status); }
 
15825
        then
 
15826
          archive_cmds_need_lc_CXX=no
 
15827
        else
 
15828
          archive_cmds_need_lc_CXX=yes
 
15829
        fi
 
15830
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
15831
      else
 
15832
        cat conftest.err 1>&5
 
15833
      fi
 
15834
      $rm conftest*
 
15835
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
15836
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
15837
      ;;
 
15838
    esac
 
15839
  fi
 
15840
  ;;
 
15841
esac
 
15842
 
 
15843
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15844
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15845
library_names_spec=
 
15846
libname_spec='lib$name'
 
15847
soname_spec=
 
15848
shrext_cmds=".so"
 
15849
postinstall_cmds=
 
15850
postuninstall_cmds=
 
15851
finish_cmds=
 
15852
finish_eval=
 
15853
shlibpath_var=
 
15854
shlibpath_overrides_runpath=unknown
 
15855
version_type=none
 
15856
dynamic_linker="$host_os ld.so"
 
15857
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15858
if test "$GCC" = yes; then
 
15859
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15860
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15861
    # if the path contains ";" then we assume it to be the separator
 
15862
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15863
    # assumed that no part of a normal pathname contains ";" but that should
 
15864
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15865
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15866
  else
 
15867
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15868
  fi
 
15869
else
 
15870
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15871
fi
 
15872
need_lib_prefix=unknown
 
15873
hardcode_into_libs=no
 
15874
 
 
15875
# when you set need_version to no, make sure it does not cause -set_version
 
15876
# flags to be left without arguments
 
15877
need_version=unknown
 
15878
 
 
15879
case $host_os in
 
15880
aix3*)
 
15881
  version_type=linux
 
15882
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15883
  shlibpath_var=LIBPATH
 
15884
 
 
15885
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15886
  soname_spec='${libname}${release}${shared_ext}$major'
 
15887
  ;;
 
15888
 
 
15889
aix4* | aix5*)
 
15890
  version_type=linux
 
15891
  need_lib_prefix=no
 
15892
  need_version=no
 
15893
  hardcode_into_libs=yes
 
15894
  if test "$host_cpu" = ia64; then
 
15895
    # AIX 5 supports IA64
 
15896
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15897
    shlibpath_var=LD_LIBRARY_PATH
 
15898
  else
 
15899
    # With GCC up to 2.95.x, collect2 would create an import file
 
15900
    # for dependence libraries.  The import file would start with
 
15901
    # the line `#! .'.  This would cause the generated library to
 
15902
    # depend on `.', always an invalid library.  This was fixed in
 
15903
    # development snapshots of GCC prior to 3.0.
 
15904
    case $host_os in
 
15905
      aix4 | aix4.[01] | aix4.[01].*)
 
15906
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15907
           echo ' yes '
 
15908
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15909
        :
 
15910
      else
 
15911
        can_build_shared=no
 
15912
      fi
 
15913
      ;;
 
15914
    esac
 
15915
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15916
    # soname into executable. Probably we can add versioning support to
 
15917
    # collect2, so additional links can be useful in future.
 
15918
    if test "$aix_use_runtimelinking" = yes; then
 
15919
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15920
      # instead of lib<name>.a to let people know that these are not
 
15921
      # typical AIX shared libraries.
 
15922
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15923
    else
 
15924
      # We preserve .a as extension for shared libraries through AIX4.2
 
15925
      # and later when we are not doing run time linking.
 
15926
      library_names_spec='${libname}${release}.a $libname.a'
 
15927
      soname_spec='${libname}${release}${shared_ext}$major'
 
15928
    fi
 
15929
    shlibpath_var=LIBPATH
 
15930
  fi
 
15931
  ;;
 
15932
 
 
15933
amigaos*)
 
15934
  library_names_spec='$libname.ixlibrary $libname.a'
 
15935
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15936
  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'
 
15937
  ;;
 
15938
 
 
15939
beos*)
 
15940
  library_names_spec='${libname}${shared_ext}'
 
15941
  dynamic_linker="$host_os ld.so"
 
15942
  shlibpath_var=LIBRARY_PATH
 
15943
  ;;
 
15944
 
 
15945
bsdi[45]*)
 
15946
  version_type=linux
 
15947
  need_version=no
 
15948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15949
  soname_spec='${libname}${release}${shared_ext}$major'
 
15950
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15951
  shlibpath_var=LD_LIBRARY_PATH
 
15952
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15953
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15954
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15955
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15956
  # libtool to hard-code these into programs
 
15957
  ;;
 
15958
 
 
15959
cygwin* | mingw* | pw32*)
 
15960
  version_type=windows
 
15961
  shrext_cmds=".dll"
 
15962
  need_version=no
 
15963
  need_lib_prefix=no
 
15964
 
 
15965
  case $GCC,$host_os in
 
15966
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15967
    library_names_spec='$libname.dll.a'
 
15968
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15969
    postinstall_cmds='base_file=`basename \${file}`~
 
15970
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15971
      dldir=$destdir/`dirname \$dlpath`~
 
15972
      test -d \$dldir || mkdir -p \$dldir~
 
15973
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15974
      chmod a+x \$dldir/$dlname'
 
15975
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15976
      dlpath=$dir/\$dldll~
 
15977
       $rm \$dlpath'
 
15978
    shlibpath_overrides_runpath=yes
 
15979
 
 
15980
    case $host_os in
 
15981
    cygwin*)
 
15982
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15983
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15984
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15985
      ;;
 
15986
    mingw*)
 
15987
      # MinGW DLLs use traditional 'lib' prefix
 
15988
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15989
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15990
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15991
        # It is most probably a Windows format PATH printed by
 
15992
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15993
        # path with ; separators, and with drive letters. We can handle the
 
15994
        # drive letters (cygwin fileutils understands them), so leave them,
 
15995
        # especially as we might pass files found there to a mingw objdump,
 
15996
        # which wouldn't understand a cygwinified path. Ahh.
 
15997
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15998
      else
 
15999
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16000
      fi
 
16001
      ;;
 
16002
    pw32*)
 
16003
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16004
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16005
      ;;
 
16006
    esac
 
16007
    ;;
 
16008
 
 
16009
  *)
 
16010
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16011
    ;;
 
16012
  esac
 
16013
  dynamic_linker='Win32 ld.exe'
 
16014
  # FIXME: first we should search . and the directory the executable is in
 
16015
  shlibpath_var=PATH
 
16016
  ;;
 
16017
 
 
16018
darwin* | rhapsody*)
 
16019
  dynamic_linker="$host_os dyld"
 
16020
  version_type=darwin
 
16021
  need_lib_prefix=no
 
16022
  need_version=no
 
16023
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16024
  soname_spec='${libname}${release}${major}$shared_ext'
 
16025
  shlibpath_overrides_runpath=yes
 
16026
  shlibpath_var=DYLD_LIBRARY_PATH
 
16027
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16028
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16029
  if test "$GCC" = yes; then
 
16030
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
16031
  else
 
16032
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16033
  fi
 
16034
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16035
  ;;
 
16036
 
 
16037
dgux*)
 
16038
  version_type=linux
 
16039
  need_lib_prefix=no
 
16040
  need_version=no
 
16041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16042
  soname_spec='${libname}${release}${shared_ext}$major'
 
16043
  shlibpath_var=LD_LIBRARY_PATH
 
16044
  ;;
 
16045
 
 
16046
freebsd1*)
 
16047
  dynamic_linker=no
 
16048
  ;;
 
16049
 
 
16050
kfreebsd*-gnu)
 
16051
  version_type=linux
 
16052
  need_lib_prefix=no
 
16053
  need_version=no
 
16054
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16055
  soname_spec='${libname}${release}${shared_ext}$major'
 
16056
  shlibpath_var=LD_LIBRARY_PATH
 
16057
  shlibpath_overrides_runpath=no
 
16058
  hardcode_into_libs=yes
 
16059
  dynamic_linker='GNU ld.so'
 
16060
  ;;
 
16061
 
 
16062
freebsd* | dragonfly*)
 
16063
  # DragonFly does not have aout.  When/if they implement a new
 
16064
  # versioning mechanism, adjust this.
 
16065
  if test -x /usr/bin/objformat; then
 
16066
    objformat=`/usr/bin/objformat`
 
16067
  else
 
16068
    case $host_os in
 
16069
    freebsd[123]*) objformat=aout ;;
 
16070
    *) objformat=elf ;;
 
16071
    esac
 
16072
  fi
 
16073
  version_type=freebsd-$objformat
 
16074
  case $version_type in
 
16075
    freebsd-elf*)
 
16076
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16077
      need_version=no
 
16078
      need_lib_prefix=no
 
16079
      ;;
 
16080
    freebsd-*)
 
16081
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16082
      need_version=yes
 
16083
      ;;
 
16084
  esac
 
16085
  shlibpath_var=LD_LIBRARY_PATH
 
16086
  case $host_os in
 
16087
  freebsd2*)
 
16088
    shlibpath_overrides_runpath=yes
 
16089
    ;;
 
16090
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16091
    shlibpath_overrides_runpath=yes
 
16092
    hardcode_into_libs=yes
 
16093
    ;;
 
16094
  *) # from 3.2 on
 
16095
    shlibpath_overrides_runpath=no
 
16096
    hardcode_into_libs=yes
 
16097
    ;;
 
16098
  esac
 
16099
  ;;
 
16100
 
 
16101
gnu*)
 
16102
  version_type=linux
 
16103
  need_lib_prefix=no
 
16104
  need_version=no
 
16105
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16106
  soname_spec='${libname}${release}${shared_ext}$major'
 
16107
  shlibpath_var=LD_LIBRARY_PATH
 
16108
  hardcode_into_libs=yes
 
16109
  ;;
 
16110
 
 
16111
hpux9* | hpux10* | hpux11*)
 
16112
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16113
  # link against other versions.
 
16114
  version_type=sunos
 
16115
  need_lib_prefix=no
 
16116
  need_version=no
 
16117
  case $host_cpu in
 
16118
  ia64*)
 
16119
    shrext_cmds='.so'
 
16120
    hardcode_into_libs=yes
 
16121
    dynamic_linker="$host_os dld.so"
 
16122
    shlibpath_var=LD_LIBRARY_PATH
 
16123
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16124
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16125
    soname_spec='${libname}${release}${shared_ext}$major'
 
16126
    if test "X$HPUX_IA64_MODE" = X32; then
 
16127
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16128
    else
 
16129
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16130
    fi
 
16131
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16132
    ;;
 
16133
   hppa*64*)
 
16134
     shrext_cmds='.sl'
 
16135
     hardcode_into_libs=yes
 
16136
     dynamic_linker="$host_os dld.sl"
 
16137
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16138
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16139
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16140
     soname_spec='${libname}${release}${shared_ext}$major'
 
16141
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16142
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16143
     ;;
 
16144
   *)
 
16145
    shrext_cmds='.sl'
 
16146
    dynamic_linker="$host_os dld.sl"
 
16147
    shlibpath_var=SHLIB_PATH
 
16148
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16149
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16150
    soname_spec='${libname}${release}${shared_ext}$major'
 
16151
    ;;
 
16152
  esac
 
16153
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16154
  postinstall_cmds='chmod 555 $lib'
 
16155
  ;;
 
16156
 
 
16157
irix5* | irix6* | nonstopux*)
 
16158
  case $host_os in
 
16159
    nonstopux*) version_type=nonstopux ;;
 
16160
    *)
 
16161
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16162
                version_type=linux
 
16163
        else
 
16164
                version_type=irix
 
16165
        fi ;;
 
16166
  esac
 
16167
  need_lib_prefix=no
 
16168
  need_version=no
 
16169
  soname_spec='${libname}${release}${shared_ext}$major'
 
16170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16171
  case $host_os in
 
16172
  irix5* | nonstopux*)
 
16173
    libsuff= shlibsuff=
 
16174
    ;;
 
16175
  *)
 
16176
    case $LD in # libtool.m4 will add one of these switches to LD
 
16177
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16178
      libsuff= shlibsuff= libmagic=32-bit;;
 
16179
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16180
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16181
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16182
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16183
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16184
    esac
 
16185
    ;;
 
16186
  esac
 
16187
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16188
  shlibpath_overrides_runpath=no
 
16189
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16190
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16191
  hardcode_into_libs=yes
 
16192
  ;;
 
16193
 
 
16194
# No shared lib support for Linux oldld, aout, or coff.
 
16195
linux*oldld* | linux*aout* | linux*coff*)
 
16196
  dynamic_linker=no
 
16197
  ;;
 
16198
 
 
16199
# This must be Linux ELF.
 
16200
linux*)
 
16201
  version_type=linux
 
16202
  need_lib_prefix=no
 
16203
  need_version=no
 
16204
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16205
  soname_spec='${libname}${release}${shared_ext}$major'
 
16206
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16207
  shlibpath_var=LD_LIBRARY_PATH
 
16208
  shlibpath_overrides_runpath=no
 
16209
  # This implies no fast_install, which is unacceptable.
 
16210
  # Some rework will be needed to allow for fast_install
 
16211
  # before this can be enabled.
 
16212
  hardcode_into_libs=yes
 
16213
 
 
16214
  # Append ld.so.conf contents to the search path
 
16215
  if test -f /etc/ld.so.conf; then
 
16216
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16217
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16218
  fi
 
16219
 
 
16220
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16221
  # powerpc, because MkLinux only supported shared libraries with the
 
16222
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16223
  # most powerpc-linux boxes support dynamic linking these days and
 
16224
  # people can always --disable-shared, the test was removed, and we
 
16225
  # assume the GNU/Linux dynamic linker is in use.
 
16226
  dynamic_linker='GNU/Linux ld.so'
 
16227
  ;;
 
16228
 
 
16229
knetbsd*-gnu)
 
16230
  version_type=linux
 
16231
  need_lib_prefix=no
 
16232
  need_version=no
 
16233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16234
  soname_spec='${libname}${release}${shared_ext}$major'
 
16235
  shlibpath_var=LD_LIBRARY_PATH
 
16236
  shlibpath_overrides_runpath=no
 
16237
  hardcode_into_libs=yes
 
16238
  dynamic_linker='GNU ld.so'
 
16239
  ;;
 
16240
 
 
16241
netbsd*)
 
16242
  version_type=sunos
 
16243
  need_lib_prefix=no
 
16244
  need_version=no
 
16245
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16246
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16247
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16248
    dynamic_linker='NetBSD (a.out) ld.so'
 
16249
  else
 
16250
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16251
    soname_spec='${libname}${release}${shared_ext}$major'
 
16252
    dynamic_linker='NetBSD ld.elf_so'
 
16253
  fi
 
16254
  shlibpath_var=LD_LIBRARY_PATH
 
16255
  shlibpath_overrides_runpath=yes
 
16256
  hardcode_into_libs=yes
 
16257
  ;;
 
16258
 
 
16259
newsos6)
 
16260
  version_type=linux
 
16261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16262
  shlibpath_var=LD_LIBRARY_PATH
 
16263
  shlibpath_overrides_runpath=yes
 
16264
  ;;
 
16265
 
 
16266
nto-qnx*)
 
16267
  version_type=linux
 
16268
  need_lib_prefix=no
 
16269
  need_version=no
 
16270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16271
  soname_spec='${libname}${release}${shared_ext}$major'
 
16272
  shlibpath_var=LD_LIBRARY_PATH
 
16273
  shlibpath_overrides_runpath=yes
 
16274
  ;;
 
16275
 
 
16276
openbsd*)
 
16277
  version_type=sunos
 
16278
  need_lib_prefix=no
 
16279
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16280
  case $host_os in
 
16281
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16282
    *)                         need_version=no  ;;
 
16283
  esac
 
16284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16285
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16286
  shlibpath_var=LD_LIBRARY_PATH
 
16287
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16288
    case $host_os in
 
16289
      openbsd2.[89] | openbsd2.[89].*)
 
16290
        shlibpath_overrides_runpath=no
 
16291
        ;;
 
16292
      *)
 
16293
        shlibpath_overrides_runpath=yes
 
16294
        ;;
 
16295
      esac
 
16296
  else
 
16297
    shlibpath_overrides_runpath=yes
 
16298
  fi
 
16299
  ;;
 
16300
 
 
16301
os2*)
 
16302
  libname_spec='$name'
 
16303
  shrext_cmds=".dll"
 
16304
  need_lib_prefix=no
 
16305
  library_names_spec='$libname${shared_ext} $libname.a'
 
16306
  dynamic_linker='OS/2 ld.exe'
 
16307
  shlibpath_var=LIBPATH
 
16308
  ;;
 
16309
 
 
16310
osf3* | osf4* | osf5*)
 
16311
  version_type=osf
 
16312
  need_lib_prefix=no
 
16313
  need_version=no
 
16314
  soname_spec='${libname}${release}${shared_ext}$major'
 
16315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16316
  shlibpath_var=LD_LIBRARY_PATH
 
16317
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16318
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16319
  ;;
 
16320
 
 
16321
sco3.2v5*)
 
16322
  version_type=osf
 
16323
  soname_spec='${libname}${release}${shared_ext}$major'
 
16324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16325
  shlibpath_var=LD_LIBRARY_PATH
 
16326
  ;;
 
16327
 
 
16328
solaris*)
 
16329
  version_type=linux
 
16330
  need_lib_prefix=no
 
16331
  need_version=no
 
16332
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16333
  soname_spec='${libname}${release}${shared_ext}$major'
 
16334
  shlibpath_var=LD_LIBRARY_PATH
 
16335
  shlibpath_overrides_runpath=yes
 
16336
  hardcode_into_libs=yes
 
16337
  # ldd complains unless libraries are executable
 
16338
  postinstall_cmds='chmod +x $lib'
 
16339
  ;;
 
16340
 
 
16341
sunos4*)
 
16342
  version_type=sunos
 
16343
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16344
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16345
  shlibpath_var=LD_LIBRARY_PATH
 
16346
  shlibpath_overrides_runpath=yes
 
16347
  if test "$with_gnu_ld" = yes; then
 
16348
    need_lib_prefix=no
 
16349
  fi
 
16350
  need_version=yes
 
16351
  ;;
 
16352
 
 
16353
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16354
  version_type=linux
 
16355
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16356
  soname_spec='${libname}${release}${shared_ext}$major'
 
16357
  shlibpath_var=LD_LIBRARY_PATH
 
16358
  case $host_vendor in
 
16359
    sni)
 
16360
      shlibpath_overrides_runpath=no
 
16361
      need_lib_prefix=no
 
16362
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16363
      runpath_var=LD_RUN_PATH
 
16364
      ;;
 
16365
    siemens)
 
16366
      need_lib_prefix=no
 
16367
      ;;
 
16368
    motorola)
 
16369
      need_lib_prefix=no
 
16370
      need_version=no
 
16371
      shlibpath_overrides_runpath=no
 
16372
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16373
      ;;
 
16374
  esac
 
16375
  ;;
 
16376
 
 
16377
sysv4*MP*)
 
16378
  if test -d /usr/nec ;then
 
16379
    version_type=linux
 
16380
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16381
    soname_spec='$libname${shared_ext}.$major'
 
16382
    shlibpath_var=LD_LIBRARY_PATH
 
16383
  fi
 
16384
  ;;
 
16385
 
 
16386
uts4*)
 
16387
  version_type=linux
 
16388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16389
  soname_spec='${libname}${release}${shared_ext}$major'
 
16390
  shlibpath_var=LD_LIBRARY_PATH
 
16391
  ;;
 
16392
 
 
16393
*)
 
16394
  dynamic_linker=no
 
16395
  ;;
 
16396
esac
 
16397
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16398
echo "${ECHO_T}$dynamic_linker" >&6
 
16399
test "$dynamic_linker" = no && can_build_shared=no
 
16400
 
 
16401
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16402
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16403
hardcode_action_CXX=
 
16404
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
16405
   test -n "$runpath_var_CXX" || \
 
16406
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
16407
 
 
16408
  # We can hardcode non-existant directories.
 
16409
  if test "$hardcode_direct_CXX" != no &&
 
16410
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16411
     # have to relink, otherwise we might link with an installed library
 
16412
     # when we should be linking with a yet-to-be-installed one
 
16413
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
16414
     test "$hardcode_minus_L_CXX" != no; then
 
16415
    # Linking always hardcodes the temporary library directory.
 
16416
    hardcode_action_CXX=relink
 
16417
  else
 
16418
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16419
    hardcode_action_CXX=immediate
 
16420
  fi
 
16421
else
 
16422
  # We cannot hardcode anything, or else we can only hardcode existing
 
16423
  # directories.
 
16424
  hardcode_action_CXX=unsupported
 
16425
fi
 
16426
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
16427
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
16428
 
 
16429
if test "$hardcode_action_CXX" = relink; then
 
16430
  # Fast installation is not supported
 
16431
  enable_fast_install=no
 
16432
elif test "$shlibpath_overrides_runpath" = yes ||
 
16433
     test "$enable_shared" = no; then
 
16434
  # Fast installation is not necessary
 
16435
  enable_fast_install=needless
 
16436
fi
 
16437
 
 
16438
striplib=
 
16439
old_striplib=
 
16440
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16441
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16442
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16443
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16444
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16445
  echo "$as_me:$LINENO: result: yes" >&5
 
16446
echo "${ECHO_T}yes" >&6
 
16447
else
 
16448
# FIXME - insert some real tests, host_os isn't really good enough
 
16449
  case $host_os in
 
16450
   darwin*)
 
16451
       if test -n "$STRIP" ; then
 
16452
         striplib="$STRIP -x"
 
16453
         echo "$as_me:$LINENO: result: yes" >&5
 
16454
echo "${ECHO_T}yes" >&6
 
16455
       else
 
16456
  echo "$as_me:$LINENO: result: no" >&5
 
16457
echo "${ECHO_T}no" >&6
 
16458
fi
 
16459
       ;;
 
16460
   *)
 
16461
  echo "$as_me:$LINENO: result: no" >&5
 
16462
echo "${ECHO_T}no" >&6
 
16463
    ;;
 
16464
  esac
 
16465
fi
 
16466
 
 
16467
if test "x$enable_dlopen" != xyes; then
 
16468
  enable_dlopen=unknown
 
16469
  enable_dlopen_self=unknown
 
16470
  enable_dlopen_self_static=unknown
 
16471
else
 
16472
  lt_cv_dlopen=no
 
16473
  lt_cv_dlopen_libs=
 
16474
 
 
16475
  case $host_os in
 
16476
  beos*)
 
16477
    lt_cv_dlopen="load_add_on"
 
16478
    lt_cv_dlopen_libs=
 
16479
    lt_cv_dlopen_self=yes
 
16480
    ;;
 
16481
 
 
16482
  mingw* | pw32*)
 
16483
    lt_cv_dlopen="LoadLibrary"
 
16484
    lt_cv_dlopen_libs=
 
16485
   ;;
 
16486
 
 
16487
  cygwin*)
 
16488
    lt_cv_dlopen="dlopen"
 
16489
    lt_cv_dlopen_libs=
 
16490
   ;;
 
16491
 
 
16492
  darwin*)
 
16493
  # if libdl is installed we need to link against it
 
16494
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16495
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
16496
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16498
else
 
16499
  ac_check_lib_save_LIBS=$LIBS
 
16500
LIBS="-ldl  $LIBS"
 
16501
cat >conftest.$ac_ext <<_ACEOF
 
16502
/* confdefs.h.  */
 
16503
_ACEOF
 
16504
cat confdefs.h >>conftest.$ac_ext
 
16505
cat >>conftest.$ac_ext <<_ACEOF
 
16506
/* end confdefs.h.  */
 
16507
 
 
16508
/* Override any gcc2 internal prototype to avoid an error.  */
 
16509
#ifdef __cplusplus
 
16510
extern "C"
 
16511
#endif
 
16512
/* We use char because int might match the return type of a gcc2
 
16513
   builtin and then its argument prototype would still apply.  */
 
16514
char dlopen ();
 
16515
int
 
16516
main ()
 
16517
{
 
16518
dlopen ();
 
16519
  ;
 
16520
  return 0;
 
16521
}
 
16522
_ACEOF
 
16523
rm -f conftest.$ac_objext conftest$ac_exeext
 
16524
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16525
  (eval $ac_link) 2>conftest.er1
 
16526
  ac_status=$?
 
16527
  grep -v '^ *+' conftest.er1 >conftest.err
 
16528
  rm -f conftest.er1
 
16529
  cat conftest.err >&5
 
16530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16531
  (exit $ac_status); } &&
 
16532
         { ac_try='test -z "$ac_cxx_werror_flag"
 
16533
                         || test ! -s conftest.err'
 
16534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16535
  (eval $ac_try) 2>&5
 
16536
  ac_status=$?
 
16537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16538
  (exit $ac_status); }; } &&
 
16539
         { ac_try='test -s conftest$ac_exeext'
 
16540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16541
  (eval $ac_try) 2>&5
 
16542
  ac_status=$?
 
16543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16544
  (exit $ac_status); }; }; then
 
16545
  ac_cv_lib_dl_dlopen=yes
 
16546
else
 
16547
  echo "$as_me: failed program was:" >&5
 
16548
sed 's/^/| /' conftest.$ac_ext >&5
 
16549
 
 
16550
ac_cv_lib_dl_dlopen=no
 
16551
fi
 
16552
rm -f conftest.err conftest.$ac_objext \
 
16553
      conftest$ac_exeext conftest.$ac_ext
 
16554
LIBS=$ac_check_lib_save_LIBS
 
16555
fi
 
16556
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16557
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
16558
if test $ac_cv_lib_dl_dlopen = yes; then
 
16559
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16560
else
 
16561
 
 
16562
    lt_cv_dlopen="dyld"
 
16563
    lt_cv_dlopen_libs=
 
16564
    lt_cv_dlopen_self=yes
 
16565
 
 
16566
fi
 
16567
 
 
16568
   ;;
 
16569
 
 
16570
  *)
 
16571
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
16572
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
16573
if test "${ac_cv_func_shl_load+set}" = set; then
 
16574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16575
else
 
16576
  cat >conftest.$ac_ext <<_ACEOF
 
16577
/* confdefs.h.  */
 
16578
_ACEOF
 
16579
cat confdefs.h >>conftest.$ac_ext
 
16580
cat >>conftest.$ac_ext <<_ACEOF
 
16581
/* end confdefs.h.  */
 
16582
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
16583
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16584
#define shl_load innocuous_shl_load
 
16585
 
 
16586
/* System header to define __stub macros and hopefully few prototypes,
 
16587
    which can conflict with char shl_load (); below.
 
16588
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16589
    <limits.h> exists even on freestanding compilers.  */
 
16590
 
 
16591
#ifdef __STDC__
 
16592
# include <limits.h>
 
16593
#else
 
16594
# include <assert.h>
 
16595
#endif
 
16596
 
 
16597
#undef shl_load
 
16598
 
 
16599
/* Override any gcc2 internal prototype to avoid an error.  */
 
16600
#ifdef __cplusplus
 
16601
extern "C"
 
16602
{
 
16603
#endif
 
16604
/* We use char because int might match the return type of a gcc2
 
16605
   builtin and then its argument prototype would still apply.  */
 
16606
char shl_load ();
 
16607
/* The GNU C library defines this for functions which it implements
 
16608
    to always fail with ENOSYS.  Some functions are actually named
 
16609
    something starting with __ and the normal name is an alias.  */
 
16610
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
16611
choke me
 
16612
#else
 
16613
char (*f) () = shl_load;
 
16614
#endif
 
16615
#ifdef __cplusplus
 
16616
}
 
16617
#endif
 
16618
 
 
16619
int
 
16620
main ()
 
16621
{
 
16622
return f != shl_load;
 
16623
  ;
 
16624
  return 0;
 
16625
}
 
16626
_ACEOF
 
16627
rm -f conftest.$ac_objext conftest$ac_exeext
 
16628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16629
  (eval $ac_link) 2>conftest.er1
 
16630
  ac_status=$?
 
16631
  grep -v '^ *+' conftest.er1 >conftest.err
 
16632
  rm -f conftest.er1
 
16633
  cat conftest.err >&5
 
16634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16635
  (exit $ac_status); } &&
 
16636
         { ac_try='test -z "$ac_cxx_werror_flag"
 
16637
                         || test ! -s conftest.err'
 
16638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16639
  (eval $ac_try) 2>&5
 
16640
  ac_status=$?
 
16641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16642
  (exit $ac_status); }; } &&
 
16643
         { ac_try='test -s conftest$ac_exeext'
 
16644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16645
  (eval $ac_try) 2>&5
 
16646
  ac_status=$?
 
16647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16648
  (exit $ac_status); }; }; then
 
16649
  ac_cv_func_shl_load=yes
 
16650
else
 
16651
  echo "$as_me: failed program was:" >&5
 
16652
sed 's/^/| /' conftest.$ac_ext >&5
 
16653
 
 
16654
ac_cv_func_shl_load=no
 
16655
fi
 
16656
rm -f conftest.err conftest.$ac_objext \
 
16657
      conftest$ac_exeext conftest.$ac_ext
 
16658
fi
 
16659
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
16660
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
16661
if test $ac_cv_func_shl_load = yes; then
 
16662
  lt_cv_dlopen="shl_load"
 
16663
else
 
16664
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
16665
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
16666
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
16667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16668
else
 
16669
  ac_check_lib_save_LIBS=$LIBS
 
16670
LIBS="-ldld  $LIBS"
 
16671
cat >conftest.$ac_ext <<_ACEOF
 
16672
/* confdefs.h.  */
 
16673
_ACEOF
 
16674
cat confdefs.h >>conftest.$ac_ext
 
16675
cat >>conftest.$ac_ext <<_ACEOF
 
16676
/* end confdefs.h.  */
 
16677
 
 
16678
/* Override any gcc2 internal prototype to avoid an error.  */
 
16679
#ifdef __cplusplus
 
16680
extern "C"
 
16681
#endif
 
16682
/* We use char because int might match the return type of a gcc2
 
16683
   builtin and then its argument prototype would still apply.  */
 
16684
char shl_load ();
 
16685
int
 
16686
main ()
 
16687
{
 
16688
shl_load ();
 
16689
  ;
 
16690
  return 0;
 
16691
}
 
16692
_ACEOF
 
16693
rm -f conftest.$ac_objext conftest$ac_exeext
 
16694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16695
  (eval $ac_link) 2>conftest.er1
 
16696
  ac_status=$?
 
16697
  grep -v '^ *+' conftest.er1 >conftest.err
 
16698
  rm -f conftest.er1
 
16699
  cat conftest.err >&5
 
16700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16701
  (exit $ac_status); } &&
 
16702
         { ac_try='test -z "$ac_cxx_werror_flag"
 
16703
                         || test ! -s conftest.err'
 
16704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16705
  (eval $ac_try) 2>&5
 
16706
  ac_status=$?
 
16707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16708
  (exit $ac_status); }; } &&
 
16709
         { ac_try='test -s conftest$ac_exeext'
 
16710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16711
  (eval $ac_try) 2>&5
 
16712
  ac_status=$?
 
16713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16714
  (exit $ac_status); }; }; then
 
16715
  ac_cv_lib_dld_shl_load=yes
 
16716
else
 
16717
  echo "$as_me: failed program was:" >&5
 
16718
sed 's/^/| /' conftest.$ac_ext >&5
 
16719
 
 
16720
ac_cv_lib_dld_shl_load=no
 
16721
fi
 
16722
rm -f conftest.err conftest.$ac_objext \
 
16723
      conftest$ac_exeext conftest.$ac_ext
 
16724
LIBS=$ac_check_lib_save_LIBS
 
16725
fi
 
16726
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
16727
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
16728
if test $ac_cv_lib_dld_shl_load = yes; then
 
16729
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
16730
else
 
16731
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
16732
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
16733
if test "${ac_cv_func_dlopen+set}" = set; then
 
16734
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16735
else
 
16736
  cat >conftest.$ac_ext <<_ACEOF
 
16737
/* confdefs.h.  */
 
16738
_ACEOF
 
16739
cat confdefs.h >>conftest.$ac_ext
 
16740
cat >>conftest.$ac_ext <<_ACEOF
 
16741
/* end confdefs.h.  */
 
16742
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
16743
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16744
#define dlopen innocuous_dlopen
 
16745
 
 
16746
/* System header to define __stub macros and hopefully few prototypes,
 
16747
    which can conflict with char dlopen (); below.
 
16748
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16749
    <limits.h> exists even on freestanding compilers.  */
 
16750
 
 
16751
#ifdef __STDC__
 
16752
# include <limits.h>
 
16753
#else
 
16754
# include <assert.h>
 
16755
#endif
 
16756
 
 
16757
#undef dlopen
 
16758
 
 
16759
/* Override any gcc2 internal prototype to avoid an error.  */
 
16760
#ifdef __cplusplus
 
16761
extern "C"
 
16762
{
 
16763
#endif
 
16764
/* We use char because int might match the return type of a gcc2
 
16765
   builtin and then its argument prototype would still apply.  */
 
16766
char dlopen ();
 
16767
/* The GNU C library defines this for functions which it implements
 
16768
    to always fail with ENOSYS.  Some functions are actually named
 
16769
    something starting with __ and the normal name is an alias.  */
 
16770
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
16771
choke me
 
16772
#else
 
16773
char (*f) () = dlopen;
 
16774
#endif
 
16775
#ifdef __cplusplus
 
16776
}
 
16777
#endif
 
16778
 
 
16779
int
 
16780
main ()
 
16781
{
 
16782
return f != dlopen;
 
16783
  ;
 
16784
  return 0;
 
16785
}
 
16786
_ACEOF
 
16787
rm -f conftest.$ac_objext conftest$ac_exeext
 
16788
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16789
  (eval $ac_link) 2>conftest.er1
 
16790
  ac_status=$?
 
16791
  grep -v '^ *+' conftest.er1 >conftest.err
 
16792
  rm -f conftest.er1
 
16793
  cat conftest.err >&5
 
16794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16795
  (exit $ac_status); } &&
 
16796
         { ac_try='test -z "$ac_cxx_werror_flag"
 
16797
                         || test ! -s conftest.err'
 
16798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16799
  (eval $ac_try) 2>&5
 
16800
  ac_status=$?
 
16801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16802
  (exit $ac_status); }; } &&
 
16803
         { ac_try='test -s conftest$ac_exeext'
 
16804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16805
  (eval $ac_try) 2>&5
 
16806
  ac_status=$?
 
16807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16808
  (exit $ac_status); }; }; then
 
16809
  ac_cv_func_dlopen=yes
 
16810
else
 
16811
  echo "$as_me: failed program was:" >&5
 
16812
sed 's/^/| /' conftest.$ac_ext >&5
 
16813
 
 
16814
ac_cv_func_dlopen=no
 
16815
fi
 
16816
rm -f conftest.err conftest.$ac_objext \
 
16817
      conftest$ac_exeext conftest.$ac_ext
 
16818
fi
 
16819
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
16820
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
16821
if test $ac_cv_func_dlopen = yes; then
 
16822
  lt_cv_dlopen="dlopen"
 
16823
else
 
16824
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16825
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
16826
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16828
else
 
16829
  ac_check_lib_save_LIBS=$LIBS
 
16830
LIBS="-ldl  $LIBS"
 
16831
cat >conftest.$ac_ext <<_ACEOF
 
16832
/* confdefs.h.  */
 
16833
_ACEOF
 
16834
cat confdefs.h >>conftest.$ac_ext
 
16835
cat >>conftest.$ac_ext <<_ACEOF
 
16836
/* end confdefs.h.  */
 
16837
 
 
16838
/* Override any gcc2 internal prototype to avoid an error.  */
 
16839
#ifdef __cplusplus
 
16840
extern "C"
 
16841
#endif
 
16842
/* We use char because int might match the return type of a gcc2
 
16843
   builtin and then its argument prototype would still apply.  */
 
16844
char dlopen ();
 
16845
int
 
16846
main ()
 
16847
{
 
16848
dlopen ();
 
16849
  ;
 
16850
  return 0;
 
16851
}
 
16852
_ACEOF
 
16853
rm -f conftest.$ac_objext conftest$ac_exeext
 
16854
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16855
  (eval $ac_link) 2>conftest.er1
 
16856
  ac_status=$?
 
16857
  grep -v '^ *+' conftest.er1 >conftest.err
 
16858
  rm -f conftest.er1
 
16859
  cat conftest.err >&5
 
16860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16861
  (exit $ac_status); } &&
 
16862
         { ac_try='test -z "$ac_cxx_werror_flag"
 
16863
                         || test ! -s conftest.err'
 
16864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16865
  (eval $ac_try) 2>&5
 
16866
  ac_status=$?
 
16867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16868
  (exit $ac_status); }; } &&
 
16869
         { ac_try='test -s conftest$ac_exeext'
 
16870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16871
  (eval $ac_try) 2>&5
 
16872
  ac_status=$?
 
16873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16874
  (exit $ac_status); }; }; then
 
16875
  ac_cv_lib_dl_dlopen=yes
 
16876
else
 
16877
  echo "$as_me: failed program was:" >&5
 
16878
sed 's/^/| /' conftest.$ac_ext >&5
 
16879
 
 
16880
ac_cv_lib_dl_dlopen=no
 
16881
fi
 
16882
rm -f conftest.err conftest.$ac_objext \
 
16883
      conftest$ac_exeext conftest.$ac_ext
 
16884
LIBS=$ac_check_lib_save_LIBS
 
16885
fi
 
16886
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16887
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
16888
if test $ac_cv_lib_dl_dlopen = yes; then
 
16889
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16890
else
 
16891
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
16892
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
16893
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
16894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16895
else
 
16896
  ac_check_lib_save_LIBS=$LIBS
 
16897
LIBS="-lsvld  $LIBS"
 
16898
cat >conftest.$ac_ext <<_ACEOF
 
16899
/* confdefs.h.  */
 
16900
_ACEOF
 
16901
cat confdefs.h >>conftest.$ac_ext
 
16902
cat >>conftest.$ac_ext <<_ACEOF
 
16903
/* end confdefs.h.  */
 
16904
 
 
16905
/* Override any gcc2 internal prototype to avoid an error.  */
 
16906
#ifdef __cplusplus
 
16907
extern "C"
 
16908
#endif
 
16909
/* We use char because int might match the return type of a gcc2
 
16910
   builtin and then its argument prototype would still apply.  */
 
16911
char dlopen ();
 
16912
int
 
16913
main ()
 
16914
{
 
16915
dlopen ();
 
16916
  ;
 
16917
  return 0;
 
16918
}
 
16919
_ACEOF
 
16920
rm -f conftest.$ac_objext conftest$ac_exeext
 
16921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16922
  (eval $ac_link) 2>conftest.er1
 
16923
  ac_status=$?
 
16924
  grep -v '^ *+' conftest.er1 >conftest.err
 
16925
  rm -f conftest.er1
 
16926
  cat conftest.err >&5
 
16927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16928
  (exit $ac_status); } &&
 
16929
         { ac_try='test -z "$ac_cxx_werror_flag"
 
16930
                         || test ! -s conftest.err'
 
16931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16932
  (eval $ac_try) 2>&5
 
16933
  ac_status=$?
 
16934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16935
  (exit $ac_status); }; } &&
 
16936
         { ac_try='test -s conftest$ac_exeext'
 
16937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16938
  (eval $ac_try) 2>&5
 
16939
  ac_status=$?
 
16940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16941
  (exit $ac_status); }; }; then
 
16942
  ac_cv_lib_svld_dlopen=yes
 
16943
else
 
16944
  echo "$as_me: failed program was:" >&5
 
16945
sed 's/^/| /' conftest.$ac_ext >&5
 
16946
 
 
16947
ac_cv_lib_svld_dlopen=no
 
16948
fi
 
16949
rm -f conftest.err conftest.$ac_objext \
 
16950
      conftest$ac_exeext conftest.$ac_ext
 
16951
LIBS=$ac_check_lib_save_LIBS
 
16952
fi
 
16953
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
16954
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
16955
if test $ac_cv_lib_svld_dlopen = yes; then
 
16956
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
16957
else
 
16958
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
16959
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
16960
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
16961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16962
else
 
16963
  ac_check_lib_save_LIBS=$LIBS
 
16964
LIBS="-ldld  $LIBS"
 
16965
cat >conftest.$ac_ext <<_ACEOF
 
16966
/* confdefs.h.  */
 
16967
_ACEOF
 
16968
cat confdefs.h >>conftest.$ac_ext
 
16969
cat >>conftest.$ac_ext <<_ACEOF
 
16970
/* end confdefs.h.  */
 
16971
 
 
16972
/* Override any gcc2 internal prototype to avoid an error.  */
 
16973
#ifdef __cplusplus
 
16974
extern "C"
 
16975
#endif
 
16976
/* We use char because int might match the return type of a gcc2
 
16977
   builtin and then its argument prototype would still apply.  */
 
16978
char dld_link ();
 
16979
int
 
16980
main ()
 
16981
{
 
16982
dld_link ();
 
16983
  ;
 
16984
  return 0;
 
16985
}
 
16986
_ACEOF
 
16987
rm -f conftest.$ac_objext conftest$ac_exeext
 
16988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16989
  (eval $ac_link) 2>conftest.er1
 
16990
  ac_status=$?
 
16991
  grep -v '^ *+' conftest.er1 >conftest.err
 
16992
  rm -f conftest.er1
 
16993
  cat conftest.err >&5
 
16994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16995
  (exit $ac_status); } &&
 
16996
         { ac_try='test -z "$ac_cxx_werror_flag"
 
16997
                         || test ! -s conftest.err'
 
16998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16999
  (eval $ac_try) 2>&5
 
17000
  ac_status=$?
 
17001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17002
  (exit $ac_status); }; } &&
 
17003
         { ac_try='test -s conftest$ac_exeext'
 
17004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17005
  (eval $ac_try) 2>&5
 
17006
  ac_status=$?
 
17007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17008
  (exit $ac_status); }; }; then
 
17009
  ac_cv_lib_dld_dld_link=yes
 
17010
else
 
17011
  echo "$as_me: failed program was:" >&5
 
17012
sed 's/^/| /' conftest.$ac_ext >&5
 
17013
 
 
17014
ac_cv_lib_dld_dld_link=no
 
17015
fi
 
17016
rm -f conftest.err conftest.$ac_objext \
 
17017
      conftest$ac_exeext conftest.$ac_ext
 
17018
LIBS=$ac_check_lib_save_LIBS
 
17019
fi
 
17020
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17021
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17022
if test $ac_cv_lib_dld_dld_link = yes; then
 
17023
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17024
fi
 
17025
 
 
17026
 
 
17027
fi
 
17028
 
 
17029
 
 
17030
fi
 
17031
 
 
17032
 
 
17033
fi
 
17034
 
 
17035
 
 
17036
fi
 
17037
 
 
17038
 
 
17039
fi
 
17040
 
 
17041
    ;;
 
17042
  esac
 
17043
 
 
17044
  if test "x$lt_cv_dlopen" != xno; then
 
17045
    enable_dlopen=yes
 
17046
  else
 
17047
    enable_dlopen=no
 
17048
  fi
 
17049
 
 
17050
  case $lt_cv_dlopen in
 
17051
  dlopen)
 
17052
    save_CPPFLAGS="$CPPFLAGS"
 
17053
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17054
 
 
17055
    save_LDFLAGS="$LDFLAGS"
 
17056
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17057
 
 
17058
    save_LIBS="$LIBS"
 
17059
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17060
 
 
17061
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17062
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17063
if test "${lt_cv_dlopen_self+set}" = set; then
 
17064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17065
else
 
17066
          if test "$cross_compiling" = yes; then :
 
17067
  lt_cv_dlopen_self=cross
 
17068
else
 
17069
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17070
  lt_status=$lt_dlunknown
 
17071
  cat > conftest.$ac_ext <<EOF
 
17072
#line 17072 "configure"
 
17073
#include "confdefs.h"
 
17074
 
 
17075
#if HAVE_DLFCN_H
 
17076
#include <dlfcn.h>
 
17077
#endif
 
17078
 
 
17079
#include <stdio.h>
 
17080
 
 
17081
#ifdef RTLD_GLOBAL
 
17082
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17083
#else
 
17084
#  ifdef DL_GLOBAL
 
17085
#    define LT_DLGLOBAL         DL_GLOBAL
 
17086
#  else
 
17087
#    define LT_DLGLOBAL         0
 
17088
#  endif
 
17089
#endif
 
17090
 
 
17091
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17092
   find out it does not work in some platform. */
 
17093
#ifndef LT_DLLAZY_OR_NOW
 
17094
#  ifdef RTLD_LAZY
 
17095
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17096
#  else
 
17097
#    ifdef DL_LAZY
 
17098
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17099
#    else
 
17100
#      ifdef RTLD_NOW
 
17101
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17102
#      else
 
17103
#        ifdef DL_NOW
 
17104
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17105
#        else
 
17106
#          define LT_DLLAZY_OR_NOW      0
 
17107
#        endif
 
17108
#      endif
 
17109
#    endif
 
17110
#  endif
 
17111
#endif
 
17112
 
 
17113
#ifdef __cplusplus
 
17114
extern "C" void exit (int);
 
17115
#endif
 
17116
 
 
17117
void fnord() { int i=42;}
 
17118
int main ()
 
17119
{
 
17120
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17121
  int status = $lt_dlunknown;
 
17122
 
 
17123
  if (self)
 
17124
    {
 
17125
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17126
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17127
      /* dlclose (self); */
 
17128
    }
 
17129
 
 
17130
    exit (status);
 
17131
}
 
17132
EOF
 
17133
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17134
  (eval $ac_link) 2>&5
 
17135
  ac_status=$?
 
17136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17137
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17138
    (./conftest; exit; ) >&5 2>/dev/null
 
17139
    lt_status=$?
 
17140
    case x$lt_status in
 
17141
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17142
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17143
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
17144
    esac
 
17145
  else :
 
17146
    # compilation failed
 
17147
    lt_cv_dlopen_self=no
 
17148
  fi
 
17149
fi
 
17150
rm -fr conftest*
 
17151
 
 
17152
 
 
17153
fi
 
17154
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17155
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
17156
 
 
17157
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17158
      LDFLAGS="$LDFLAGS $link_static_flag"
 
17159
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17160
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
17161
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17163
else
 
17164
          if test "$cross_compiling" = yes; then :
 
17165
  lt_cv_dlopen_self_static=cross
 
17166
else
 
17167
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17168
  lt_status=$lt_dlunknown
 
17169
  cat > conftest.$ac_ext <<EOF
 
17170
#line 17170 "configure"
 
17171
#include "confdefs.h"
 
17172
 
 
17173
#if HAVE_DLFCN_H
 
17174
#include <dlfcn.h>
 
17175
#endif
 
17176
 
 
17177
#include <stdio.h>
 
17178
 
 
17179
#ifdef RTLD_GLOBAL
 
17180
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17181
#else
 
17182
#  ifdef DL_GLOBAL
 
17183
#    define LT_DLGLOBAL         DL_GLOBAL
 
17184
#  else
 
17185
#    define LT_DLGLOBAL         0
 
17186
#  endif
 
17187
#endif
 
17188
 
 
17189
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17190
   find out it does not work in some platform. */
 
17191
#ifndef LT_DLLAZY_OR_NOW
 
17192
#  ifdef RTLD_LAZY
 
17193
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17194
#  else
 
17195
#    ifdef DL_LAZY
 
17196
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17197
#    else
 
17198
#      ifdef RTLD_NOW
 
17199
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17200
#      else
 
17201
#        ifdef DL_NOW
 
17202
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17203
#        else
 
17204
#          define LT_DLLAZY_OR_NOW      0
 
17205
#        endif
 
17206
#      endif
 
17207
#    endif
 
17208
#  endif
 
17209
#endif
 
17210
 
 
17211
#ifdef __cplusplus
 
17212
extern "C" void exit (int);
 
17213
#endif
 
17214
 
 
17215
void fnord() { int i=42;}
 
17216
int main ()
 
17217
{
 
17218
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17219
  int status = $lt_dlunknown;
 
17220
 
 
17221
  if (self)
 
17222
    {
 
17223
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17224
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17225
      /* dlclose (self); */
 
17226
    }
 
17227
 
 
17228
    exit (status);
 
17229
}
 
17230
EOF
 
17231
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17232
  (eval $ac_link) 2>&5
 
17233
  ac_status=$?
 
17234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17235
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17236
    (./conftest; exit; ) >&5 2>/dev/null
 
17237
    lt_status=$?
 
17238
    case x$lt_status in
 
17239
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17240
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17241
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
17242
    esac
 
17243
  else :
 
17244
    # compilation failed
 
17245
    lt_cv_dlopen_self_static=no
 
17246
  fi
 
17247
fi
 
17248
rm -fr conftest*
 
17249
 
 
17250
 
 
17251
fi
 
17252
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
17253
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
17254
    fi
 
17255
 
 
17256
    CPPFLAGS="$save_CPPFLAGS"
 
17257
    LDFLAGS="$save_LDFLAGS"
 
17258
    LIBS="$save_LIBS"
 
17259
    ;;
 
17260
  esac
 
17261
 
 
17262
  case $lt_cv_dlopen_self in
 
17263
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17264
  *) enable_dlopen_self=unknown ;;
 
17265
  esac
 
17266
 
 
17267
  case $lt_cv_dlopen_self_static in
 
17268
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17269
  *) enable_dlopen_self_static=unknown ;;
 
17270
  esac
 
17271
fi
 
17272
 
 
17273
 
 
17274
# The else clause should only fire when bootstrapping the
 
17275
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17276
# with your package, and you will get complaints that there are
 
17277
# no rules to generate ltmain.sh.
 
17278
if test -f "$ltmain"; then
 
17279
  # See if we are running on zsh, and set the options which allow our commands through
 
17280
  # without removal of \ escapes.
 
17281
  if test -n "${ZSH_VERSION+set}" ; then
 
17282
    setopt NO_GLOB_SUBST
 
17283
  fi
 
17284
  # Now quote all the things that may contain metacharacters while being
 
17285
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17286
  # variables and quote the copies for generation of the libtool script.
 
17287
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17288
    SED SHELL STRIP \
 
17289
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17290
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17291
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17292
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17293
    lt_cv_sys_global_symbol_to_c_name_address \
 
17294
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17295
    old_postinstall_cmds old_postuninstall_cmds \
 
17296
    compiler_CXX \
 
17297
    CC_CXX \
 
17298
    LD_CXX \
 
17299
    lt_prog_compiler_wl_CXX \
 
17300
    lt_prog_compiler_pic_CXX \
 
17301
    lt_prog_compiler_static_CXX \
 
17302
    lt_prog_compiler_no_builtin_flag_CXX \
 
17303
    export_dynamic_flag_spec_CXX \
 
17304
    thread_safe_flag_spec_CXX \
 
17305
    whole_archive_flag_spec_CXX \
 
17306
    enable_shared_with_static_runtimes_CXX \
 
17307
    old_archive_cmds_CXX \
 
17308
    old_archive_from_new_cmds_CXX \
 
17309
    predep_objects_CXX \
 
17310
    postdep_objects_CXX \
 
17311
    predeps_CXX \
 
17312
    postdeps_CXX \
 
17313
    compiler_lib_search_path_CXX \
 
17314
    archive_cmds_CXX \
 
17315
    archive_expsym_cmds_CXX \
 
17316
    postinstall_cmds_CXX \
 
17317
    postuninstall_cmds_CXX \
 
17318
    old_archive_from_expsyms_cmds_CXX \
 
17319
    allow_undefined_flag_CXX \
 
17320
    no_undefined_flag_CXX \
 
17321
    export_symbols_cmds_CXX \
 
17322
    hardcode_libdir_flag_spec_CXX \
 
17323
    hardcode_libdir_flag_spec_ld_CXX \
 
17324
    hardcode_libdir_separator_CXX \
 
17325
    hardcode_automatic_CXX \
 
17326
    module_cmds_CXX \
 
17327
    module_expsym_cmds_CXX \
 
17328
    lt_cv_prog_compiler_c_o_CXX \
 
17329
    exclude_expsyms_CXX \
 
17330
    include_expsyms_CXX; do
 
17331
 
 
17332
    case $var in
 
17333
    old_archive_cmds_CXX | \
 
17334
    old_archive_from_new_cmds_CXX | \
 
17335
    archive_cmds_CXX | \
 
17336
    archive_expsym_cmds_CXX | \
 
17337
    module_cmds_CXX | \
 
17338
    module_expsym_cmds_CXX | \
 
17339
    old_archive_from_expsyms_cmds_CXX | \
 
17340
    export_symbols_cmds_CXX | \
 
17341
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17342
    postinstall_cmds | postuninstall_cmds | \
 
17343
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17344
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17345
      # Double-quote double-evaled strings.
 
17346
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17347
      ;;
 
17348
    *)
 
17349
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17350
      ;;
 
17351
    esac
 
17352
  done
 
17353
 
 
17354
  case $lt_echo in
 
17355
  *'\$0 --fallback-echo"')
 
17356
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17357
    ;;
 
17358
  esac
 
17359
 
 
17360
cfgfile="$ofile"
 
17361
 
 
17362
  cat <<__EOF__ >> "$cfgfile"
 
17363
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17364
 
 
17365
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17366
 
 
17367
# Shell to use when invoking shell scripts.
 
17368
SHELL=$lt_SHELL
 
17369
 
 
17370
# Whether or not to build shared libraries.
 
17371
build_libtool_libs=$enable_shared
 
17372
 
 
17373
# Whether or not to build static libraries.
 
17374
build_old_libs=$enable_static
 
17375
 
 
17376
# Whether or not to add -lc for building shared libraries.
 
17377
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
17378
 
 
17379
# Whether or not to disallow shared libs when runtime libs are static
 
17380
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
17381
 
 
17382
# Whether or not to optimize for fast installation.
 
17383
fast_install=$enable_fast_install
 
17384
 
 
17385
# The host system.
 
17386
host_alias=$host_alias
 
17387
host=$host
 
17388
host_os=$host_os
 
17389
 
 
17390
# The build system.
 
17391
build_alias=$build_alias
 
17392
build=$build
 
17393
build_os=$build_os
 
17394
 
 
17395
# An echo program that does not interpret backslashes.
 
17396
echo=$lt_echo
 
17397
 
 
17398
# The archiver.
 
17399
AR=$lt_AR
 
17400
AR_FLAGS=$lt_AR_FLAGS
 
17401
 
 
17402
# A C compiler.
 
17403
LTCC=$lt_LTCC
 
17404
 
 
17405
# A language-specific compiler.
 
17406
CC=$lt_compiler_CXX
 
17407
 
 
17408
# Is the compiler the GNU C compiler?
 
17409
with_gcc=$GCC_CXX
 
17410
 
 
17411
# An ERE matcher.
 
17412
EGREP=$lt_EGREP
 
17413
 
 
17414
# The linker used to build libraries.
 
17415
LD=$lt_LD_CXX
 
17416
 
 
17417
# Whether we need hard or soft links.
 
17418
LN_S=$lt_LN_S
 
17419
 
 
17420
# A BSD-compatible nm program.
 
17421
NM=$lt_NM
 
17422
 
 
17423
# A symbol stripping program
 
17424
STRIP=$lt_STRIP
 
17425
 
 
17426
# Used to examine libraries when file_magic_cmd begins "file"
 
17427
MAGIC_CMD=$MAGIC_CMD
 
17428
 
 
17429
# Used on cygwin: DLL creation program.
 
17430
DLLTOOL="$DLLTOOL"
 
17431
 
 
17432
# Used on cygwin: object dumper.
 
17433
OBJDUMP="$OBJDUMP"
 
17434
 
 
17435
# Used on cygwin: assembler.
 
17436
AS="$AS"
 
17437
 
 
17438
# The name of the directory that contains temporary libtool files.
 
17439
objdir=$objdir
 
17440
 
 
17441
# How to create reloadable object files.
 
17442
reload_flag=$lt_reload_flag
 
17443
reload_cmds=$lt_reload_cmds
 
17444
 
 
17445
# How to pass a linker flag through the compiler.
 
17446
wl=$lt_lt_prog_compiler_wl_CXX
 
17447
 
 
17448
# Object file suffix (normally "o").
 
17449
objext="$ac_objext"
 
17450
 
 
17451
# Old archive suffix (normally "a").
 
17452
libext="$libext"
 
17453
 
 
17454
# Shared library suffix (normally ".so").
 
17455
shrext_cmds='$shrext_cmds'
 
17456
 
 
17457
# Executable file suffix (normally "").
 
17458
exeext="$exeext"
 
17459
 
 
17460
# Additional compiler flags for building library objects.
 
17461
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
17462
pic_mode=$pic_mode
 
17463
 
 
17464
# What is the maximum length of a command?
 
17465
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17466
 
 
17467
# Does compiler simultaneously support -c and -o options?
 
17468
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
17469
 
 
17470
# Must we lock files when doing compilation?
 
17471
need_locks=$lt_need_locks
 
17472
 
 
17473
# Do we need the lib prefix for modules?
 
17474
need_lib_prefix=$need_lib_prefix
 
17475
 
 
17476
# Do we need a version for libraries?
 
17477
need_version=$need_version
 
17478
 
 
17479
# Whether dlopen is supported.
 
17480
dlopen_support=$enable_dlopen
 
17481
 
 
17482
# Whether dlopen of programs is supported.
 
17483
dlopen_self=$enable_dlopen_self
 
17484
 
 
17485
# Whether dlopen of statically linked programs is supported.
 
17486
dlopen_self_static=$enable_dlopen_self_static
 
17487
 
 
17488
# Compiler flag to prevent dynamic linking.
 
17489
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
17490
 
 
17491
# Compiler flag to turn off builtin functions.
 
17492
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
17493
 
 
17494
# Compiler flag to allow reflexive dlopens.
 
17495
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
17496
 
 
17497
# Compiler flag to generate shared objects directly from archives.
 
17498
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
17499
 
 
17500
# Compiler flag to generate thread-safe objects.
 
17501
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
17502
 
 
17503
# Library versioning type.
 
17504
version_type=$version_type
 
17505
 
 
17506
# Format of library name prefix.
 
17507
libname_spec=$lt_libname_spec
 
17508
 
 
17509
# List of archive names.  First name is the real one, the rest are links.
 
17510
# The last name is the one that the linker finds with -lNAME.
 
17511
library_names_spec=$lt_library_names_spec
 
17512
 
 
17513
# The coded name of the library, if different from the real name.
 
17514
soname_spec=$lt_soname_spec
 
17515
 
 
17516
# Commands used to build and install an old-style archive.
 
17517
RANLIB=$lt_RANLIB
 
17518
old_archive_cmds=$lt_old_archive_cmds_CXX
 
17519
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17520
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17521
 
 
17522
# Create an old-style archive from a shared archive.
 
17523
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
17524
 
 
17525
# Create a temporary old-style archive to link instead of a shared archive.
 
17526
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
17527
 
 
17528
# Commands used to build and install a shared archive.
 
17529
archive_cmds=$lt_archive_cmds_CXX
 
17530
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
17531
postinstall_cmds=$lt_postinstall_cmds
 
17532
postuninstall_cmds=$lt_postuninstall_cmds
 
17533
 
 
17534
# Commands used to build a loadable module (assumed same as above if empty)
 
17535
module_cmds=$lt_module_cmds_CXX
 
17536
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
17537
 
 
17538
# Commands to strip libraries.
 
17539
old_striplib=$lt_old_striplib
 
17540
striplib=$lt_striplib
 
17541
 
 
17542
# Dependencies to place before the objects being linked to create a
 
17543
# shared library.
 
17544
predep_objects=$lt_predep_objects_CXX
 
17545
 
 
17546
# Dependencies to place after the objects being linked to create a
 
17547
# shared library.
 
17548
postdep_objects=$lt_postdep_objects_CXX
 
17549
 
 
17550
# Dependencies to place before the objects being linked to create a
 
17551
# shared library.
 
17552
predeps=$lt_predeps_CXX
 
17553
 
 
17554
# Dependencies to place after the objects being linked to create a
 
17555
# shared library.
 
17556
postdeps=$lt_postdeps_CXX
 
17557
 
 
17558
# The library search path used internally by the compiler when linking
 
17559
# a shared library.
 
17560
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
17561
 
 
17562
# Method to check whether dependent libraries are shared objects.
 
17563
deplibs_check_method=$lt_deplibs_check_method
 
17564
 
 
17565
# Command to use when deplibs_check_method == file_magic.
 
17566
file_magic_cmd=$lt_file_magic_cmd
 
17567
 
 
17568
# Flag that allows shared libraries with undefined symbols to be built.
 
17569
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
17570
 
 
17571
# Flag that forces no undefined symbols.
 
17572
no_undefined_flag=$lt_no_undefined_flag_CXX
 
17573
 
 
17574
# Commands used to finish a libtool library installation in a directory.
 
17575
finish_cmds=$lt_finish_cmds
 
17576
 
 
17577
# Same as above, but a single script fragment to be evaled but not shown.
 
17578
finish_eval=$lt_finish_eval
 
17579
 
 
17580
# Take the output of nm and produce a listing of raw symbols and C names.
 
17581
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17582
 
 
17583
# Transform the output of nm in a proper C declaration
 
17584
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17585
 
 
17586
# Transform the output of nm in a C name address pair
 
17587
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17588
 
 
17589
# This is the shared library runtime path variable.
 
17590
runpath_var=$runpath_var
 
17591
 
 
17592
# This is the shared library path variable.
 
17593
shlibpath_var=$shlibpath_var
 
17594
 
 
17595
# Is shlibpath searched before the hard-coded library search path?
 
17596
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17597
 
 
17598
# How to hardcode a shared library path into an executable.
 
17599
hardcode_action=$hardcode_action_CXX
 
17600
 
 
17601
# Whether we should hardcode library paths into libraries.
 
17602
hardcode_into_libs=$hardcode_into_libs
 
17603
 
 
17604
# Flag to hardcode \$libdir into a binary during linking.
 
17605
# This must work even if \$libdir does not exist.
 
17606
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
17607
 
 
17608
# If ld is used when linking, flag to hardcode \$libdir into
 
17609
# a binary during linking. This must work even if \$libdir does
 
17610
# not exist.
 
17611
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
17612
 
 
17613
# Whether we need a single -rpath flag with a separated argument.
 
17614
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
17615
 
 
17616
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17617
# resulting binary.
 
17618
hardcode_direct=$hardcode_direct_CXX
 
17619
 
 
17620
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17621
# resulting binary.
 
17622
hardcode_minus_L=$hardcode_minus_L_CXX
 
17623
 
 
17624
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17625
# the resulting binary.
 
17626
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
17627
 
 
17628
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17629
# and all subsequent libraries and executables linked against it.
 
17630
hardcode_automatic=$hardcode_automatic_CXX
 
17631
 
 
17632
# Variables whose values should be saved in libtool wrapper scripts and
 
17633
# restored at relink time.
 
17634
variables_saved_for_relink="$variables_saved_for_relink"
 
17635
 
 
17636
# Whether libtool must link a program against all its dependency libraries.
 
17637
link_all_deplibs=$link_all_deplibs_CXX
 
17638
 
 
17639
# Compile-time system search path for libraries
 
17640
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17641
 
 
17642
# Run-time system search path for libraries
 
17643
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17644
 
 
17645
# Fix the shell variable \$srcfile for the compiler.
 
17646
fix_srcfile_path="$fix_srcfile_path_CXX"
 
17647
 
 
17648
# Set to yes if exported symbols are required.
 
17649
always_export_symbols=$always_export_symbols_CXX
 
17650
 
 
17651
# The commands to list exported symbols.
 
17652
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
17653
 
 
17654
# The commands to extract the exported symbol list from a shared archive.
 
17655
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17656
 
 
17657
# Symbols that should not be listed in the preloaded symbols.
 
17658
exclude_expsyms=$lt_exclude_expsyms_CXX
 
17659
 
 
17660
# Symbols that must always be exported.
 
17661
include_expsyms=$lt_include_expsyms_CXX
 
17662
 
 
17663
# ### END LIBTOOL TAG CONFIG: $tagname
 
17664
 
 
17665
__EOF__
 
17666
 
 
17667
 
 
17668
else
 
17669
  # If there is no Makefile yet, we rely on a make rule to execute
 
17670
  # `config.status --recheck' to rerun these tests and create the
 
17671
  # libtool script then.
 
17672
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17673
  if test -f "$ltmain_in"; then
 
17674
    test -f Makefile && make "$ltmain"
 
17675
  fi
 
17676
fi
 
17677
 
 
17678
 
 
17679
ac_ext=c
 
17680
ac_cpp='$CPP $CPPFLAGS'
 
17681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17684
 
 
17685
CC=$lt_save_CC
 
17686
LDCXX=$LD
 
17687
LD=$lt_save_LD
 
17688
GCC=$lt_save_GCC
 
17689
with_gnu_ldcxx=$with_gnu_ld
 
17690
with_gnu_ld=$lt_save_with_gnu_ld
 
17691
lt_cv_path_LDCXX=$lt_cv_path_LD
 
17692
lt_cv_path_LD=$lt_save_path_LD
 
17693
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
17694
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
17695
 
 
17696
        else
 
17697
          tagname=""
 
17698
        fi
 
17699
        ;;
 
17700
 
 
17701
      F77)
 
17702
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
17703
 
 
17704
ac_ext=f
 
17705
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
17706
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17707
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
17708
 
 
17709
 
 
17710
archive_cmds_need_lc_F77=no
 
17711
allow_undefined_flag_F77=
 
17712
always_export_symbols_F77=no
 
17713
archive_expsym_cmds_F77=
 
17714
export_dynamic_flag_spec_F77=
 
17715
hardcode_direct_F77=no
 
17716
hardcode_libdir_flag_spec_F77=
 
17717
hardcode_libdir_flag_spec_ld_F77=
 
17718
hardcode_libdir_separator_F77=
 
17719
hardcode_minus_L_F77=no
 
17720
hardcode_automatic_F77=no
 
17721
module_cmds_F77=
 
17722
module_expsym_cmds_F77=
 
17723
link_all_deplibs_F77=unknown
 
17724
old_archive_cmds_F77=$old_archive_cmds
 
17725
no_undefined_flag_F77=
 
17726
whole_archive_flag_spec_F77=
 
17727
enable_shared_with_static_runtimes_F77=no
 
17728
 
 
17729
# Source file extension for f77 test sources.
 
17730
ac_ext=f
 
17731
 
 
17732
# Object file extension for compiled f77 test sources.
 
17733
objext=o
 
17734
objext_F77=$objext
 
17735
 
 
17736
# Code to be used in simple compile tests
 
17737
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
17738
 
 
17739
# Code to be used in simple link tests
 
17740
lt_simple_link_test_code="      program t\n      end\n"
 
17741
 
 
17742
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17743
 
 
17744
# If no C compiler was specified, use CC.
 
17745
LTCC=${LTCC-"$CC"}
 
17746
 
 
17747
# Allow CC to be a program name with arguments.
 
17748
compiler=$CC
 
17749
 
 
17750
 
 
17751
# save warnings/boilerplate of simple test code
 
17752
ac_outfile=conftest.$ac_objext
 
17753
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17754
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
17755
_lt_compiler_boilerplate=`cat conftest.err`
 
17756
$rm conftest*
 
17757
 
 
17758
ac_outfile=conftest.$ac_objext
 
17759
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
17760
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
17761
_lt_linker_boilerplate=`cat conftest.err`
 
17762
$rm conftest*
 
17763
 
 
17764
 
 
17765
# Allow CC to be a program name with arguments.
 
17766
lt_save_CC="$CC"
 
17767
CC=${F77-"f77"}
 
17768
compiler=$CC
 
17769
compiler_F77=$CC
 
17770
for cc_temp in $compiler""; do
 
17771
  case $cc_temp in
 
17772
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17773
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17774
    \-*) ;;
 
17775
    *) break;;
 
17776
  esac
 
17777
done
 
17778
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17779
 
 
17780
 
 
17781
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
17782
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
17783
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
17784
echo "${ECHO_T}$can_build_shared" >&6
 
17785
 
 
17786
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
17787
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
17788
test "$can_build_shared" = "no" && enable_shared=no
 
17789
 
 
17790
# On AIX, shared libraries and static libraries use the same namespace, and
 
17791
# are all built from PIC.
 
17792
case $host_os in
 
17793
aix3*)
 
17794
  test "$enable_shared" = yes && enable_static=no
 
17795
  if test -n "$RANLIB"; then
 
17796
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
17797
    postinstall_cmds='$RANLIB $lib'
 
17798
  fi
 
17799
  ;;
 
17800
aix4* | aix5*)
 
17801
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
17802
    test "$enable_shared" = yes && enable_static=no
 
17803
  fi
 
17804
  ;;
 
17805
esac
 
17806
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
17807
echo "${ECHO_T}$enable_shared" >&6
 
17808
 
 
17809
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
17810
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
17811
# Make sure either enable_shared or enable_static is yes.
 
17812
test "$enable_shared" = yes || enable_static=yes
 
17813
echo "$as_me:$LINENO: result: $enable_static" >&5
 
17814
echo "${ECHO_T}$enable_static" >&6
 
17815
 
 
17816
test "$ld_shlibs_F77" = no && can_build_shared=no
 
17817
 
 
17818
GCC_F77="$G77"
 
17819
LD_F77="$LD"
 
17820
 
 
17821
lt_prog_compiler_wl_F77=
 
17822
lt_prog_compiler_pic_F77=
 
17823
lt_prog_compiler_static_F77=
 
17824
 
 
17825
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17826
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17827
 
 
17828
  if test "$GCC" = yes; then
 
17829
    lt_prog_compiler_wl_F77='-Wl,'
 
17830
    lt_prog_compiler_static_F77='-static'
 
17831
 
 
17832
    case $host_os in
 
17833
      aix*)
 
17834
      # All AIX code is PIC.
 
17835
      if test "$host_cpu" = ia64; then
 
17836
        # AIX 5 now supports IA64 processor
 
17837
        lt_prog_compiler_static_F77='-Bstatic'
 
17838
      fi
 
17839
      ;;
 
17840
 
 
17841
    amigaos*)
 
17842
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17843
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17844
      # like `-m68040'.
 
17845
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
17846
      ;;
 
17847
 
 
17848
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17849
      # PIC is the default for these OSes.
 
17850
      ;;
 
17851
 
 
17852
    mingw* | pw32* | os2*)
 
17853
      # This hack is so that the source file can tell whether it is being
 
17854
      # built for inclusion in a dll (and should export symbols for example).
 
17855
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
17856
      ;;
 
17857
 
 
17858
    darwin* | rhapsody*)
 
17859
      # PIC is the default on this platform
 
17860
      # Common symbols not allowed in MH_DYLIB files
 
17861
      lt_prog_compiler_pic_F77='-fno-common'
 
17862
      ;;
 
17863
 
 
17864
    msdosdjgpp*)
 
17865
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17866
      # on systems that don't support them.
 
17867
      lt_prog_compiler_can_build_shared_F77=no
 
17868
      enable_shared=no
 
17869
      ;;
 
17870
 
 
17871
    sysv4*MP*)
 
17872
      if test -d /usr/nec; then
 
17873
        lt_prog_compiler_pic_F77=-Kconform_pic
 
17874
      fi
 
17875
      ;;
 
17876
 
 
17877
    hpux*)
 
17878
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17879
      # not for PA HP-UX.
 
17880
      case $host_cpu in
 
17881
      hppa*64*|ia64*)
 
17882
        # +Z the default
 
17883
        ;;
 
17884
      *)
 
17885
        lt_prog_compiler_pic_F77='-fPIC'
 
17886
        ;;
 
17887
      esac
 
17888
      ;;
 
17889
 
 
17890
    *)
 
17891
      lt_prog_compiler_pic_F77='-fPIC'
 
17892
      ;;
 
17893
    esac
 
17894
  else
 
17895
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17896
    case $host_os in
 
17897
    aix*)
 
17898
      lt_prog_compiler_wl_F77='-Wl,'
 
17899
      if test "$host_cpu" = ia64; then
 
17900
        # AIX 5 now supports IA64 processor
 
17901
        lt_prog_compiler_static_F77='-Bstatic'
 
17902
      else
 
17903
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
17904
      fi
 
17905
      ;;
 
17906
      darwin*)
 
17907
        # PIC is the default on this platform
 
17908
        # Common symbols not allowed in MH_DYLIB files
 
17909
       case $cc_basename in
 
17910
         xlc*)
 
17911
         lt_prog_compiler_pic_F77='-qnocommon'
 
17912
         lt_prog_compiler_wl_F77='-Wl,'
 
17913
         ;;
 
17914
       esac
 
17915
       ;;
 
17916
 
 
17917
    mingw* | pw32* | os2*)
 
17918
      # This hack is so that the source file can tell whether it is being
 
17919
      # built for inclusion in a dll (and should export symbols for example).
 
17920
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
17921
      ;;
 
17922
 
 
17923
    hpux9* | hpux10* | hpux11*)
 
17924
      lt_prog_compiler_wl_F77='-Wl,'
 
17925
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17926
      # not for PA HP-UX.
 
17927
      case $host_cpu in
 
17928
      hppa*64*|ia64*)
 
17929
        # +Z the default
 
17930
        ;;
 
17931
      *)
 
17932
        lt_prog_compiler_pic_F77='+Z'
 
17933
        ;;
 
17934
      esac
 
17935
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17936
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
17937
      ;;
 
17938
 
 
17939
    irix5* | irix6* | nonstopux*)
 
17940
      lt_prog_compiler_wl_F77='-Wl,'
 
17941
      # PIC (with -KPIC) is the default.
 
17942
      lt_prog_compiler_static_F77='-non_shared'
 
17943
      ;;
 
17944
 
 
17945
    newsos6)
 
17946
      lt_prog_compiler_pic_F77='-KPIC'
 
17947
      lt_prog_compiler_static_F77='-Bstatic'
 
17948
      ;;
 
17949
 
 
17950
    linux*)
 
17951
      case $cc_basename in
 
17952
      icc* | ecc*)
 
17953
        lt_prog_compiler_wl_F77='-Wl,'
 
17954
        lt_prog_compiler_pic_F77='-KPIC'
 
17955
        lt_prog_compiler_static_F77='-static'
 
17956
        ;;
 
17957
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17958
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17959
        # which looks to be a dead project)
 
17960
        lt_prog_compiler_wl_F77='-Wl,'
 
17961
        lt_prog_compiler_pic_F77='-fpic'
 
17962
        lt_prog_compiler_static_F77='-Bstatic'
 
17963
        ;;
 
17964
      ccc*)
 
17965
        lt_prog_compiler_wl_F77='-Wl,'
 
17966
        # All Alpha code is PIC.
 
17967
        lt_prog_compiler_static_F77='-non_shared'
 
17968
        ;;
 
17969
      esac
 
17970
      ;;
 
17971
 
 
17972
    osf3* | osf4* | osf5*)
 
17973
      lt_prog_compiler_wl_F77='-Wl,'
 
17974
      # All OSF/1 code is PIC.
 
17975
      lt_prog_compiler_static_F77='-non_shared'
 
17976
      ;;
 
17977
 
 
17978
    sco3.2v5*)
 
17979
      lt_prog_compiler_pic_F77='-Kpic'
 
17980
      lt_prog_compiler_static_F77='-dn'
 
17981
      ;;
 
17982
 
 
17983
    solaris*)
 
17984
      lt_prog_compiler_pic_F77='-KPIC'
 
17985
      lt_prog_compiler_static_F77='-Bstatic'
 
17986
      case $cc_basename in
 
17987
      f77* | f90* | f95*)
 
17988
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
17989
      *)
 
17990
        lt_prog_compiler_wl_F77='-Wl,';;
 
17991
      esac
 
17992
      ;;
 
17993
 
 
17994
    sunos4*)
 
17995
      lt_prog_compiler_wl_F77='-Qoption ld '
 
17996
      lt_prog_compiler_pic_F77='-PIC'
 
17997
      lt_prog_compiler_static_F77='-Bstatic'
 
17998
      ;;
 
17999
 
 
18000
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18001
      lt_prog_compiler_wl_F77='-Wl,'
 
18002
      lt_prog_compiler_pic_F77='-KPIC'
 
18003
      lt_prog_compiler_static_F77='-Bstatic'
 
18004
      ;;
 
18005
 
 
18006
    sysv4*MP*)
 
18007
      if test -d /usr/nec ;then
 
18008
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
18009
        lt_prog_compiler_static_F77='-Bstatic'
 
18010
      fi
 
18011
      ;;
 
18012
 
 
18013
    unicos*)
 
18014
      lt_prog_compiler_wl_F77='-Wl,'
 
18015
      lt_prog_compiler_can_build_shared_F77=no
 
18016
      ;;
 
18017
 
 
18018
    uts4*)
 
18019
      lt_prog_compiler_pic_F77='-pic'
 
18020
      lt_prog_compiler_static_F77='-Bstatic'
 
18021
      ;;
 
18022
 
 
18023
    *)
 
18024
      lt_prog_compiler_can_build_shared_F77=no
 
18025
      ;;
 
18026
    esac
 
18027
  fi
 
18028
 
 
18029
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
18030
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
18031
 
 
18032
#
 
18033
# Check to make sure the PIC flag actually works.
 
18034
#
 
18035
if test -n "$lt_prog_compiler_pic_F77"; then
 
18036
 
 
18037
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
18038
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
18039
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
18040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18041
else
 
18042
  lt_prog_compiler_pic_works_F77=no
 
18043
  ac_outfile=conftest.$ac_objext
 
18044
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18045
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
18046
   # Insert the option either (1) after the last *FLAGS variable, or
 
18047
   # (2) before a word containing "conftest.", or (3) at the end.
 
18048
   # Note that $ac_compile itself does not contain backslashes and begins
 
18049
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18050
   # The option is referenced via a variable to avoid confusing sed.
 
18051
   lt_compile=`echo "$ac_compile" | $SED \
 
18052
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
18053
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18054
   -e 's:$: $lt_compiler_flag:'`
 
18055
   (eval echo "\"\$as_me:18055: $lt_compile\"" >&5)
 
18056
   (eval "$lt_compile" 2>conftest.err)
 
18057
   ac_status=$?
 
18058
   cat conftest.err >&5
 
18059
   echo "$as_me:18059: \$? = $ac_status" >&5
 
18060
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18061
     # The compiler can only warn and ignore the option if not recognized
 
18062
     # So say no if there are warnings other than the usual output.
 
18063
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
18064
     $SED '/^$/d' conftest.err >conftest.er2
 
18065
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
18066
       lt_prog_compiler_pic_works_F77=yes
 
18067
     fi
 
18068
   fi
 
18069
   $rm conftest*
 
18070
 
 
18071
fi
 
18072
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
18073
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
18074
 
 
18075
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
18076
    case $lt_prog_compiler_pic_F77 in
 
18077
     "" | " "*) ;;
 
18078
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
18079
     esac
 
18080
else
 
18081
    lt_prog_compiler_pic_F77=
 
18082
     lt_prog_compiler_can_build_shared_F77=no
 
18083
fi
 
18084
 
 
18085
fi
 
18086
case $host_os in
 
18087
  # For platforms which do not support PIC, -DPIC is meaningless:
 
18088
  *djgpp*)
 
18089
    lt_prog_compiler_pic_F77=
 
18090
    ;;
 
18091
  *)
 
18092
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
18093
    ;;
 
18094
esac
 
18095
 
 
18096
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18097
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
18098
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
18099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18100
else
 
18101
  lt_cv_prog_compiler_c_o_F77=no
 
18102
   $rm -r conftest 2>/dev/null
 
18103
   mkdir conftest
 
18104
   cd conftest
 
18105
   mkdir out
 
18106
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18107
 
 
18108
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18109
   # Insert the option either (1) after the last *FLAGS variable, or
 
18110
   # (2) before a word containing "conftest.", or (3) at the end.
 
18111
   # Note that $ac_compile itself does not contain backslashes and begins
 
18112
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18113
   lt_compile=`echo "$ac_compile" | $SED \
 
18114
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
18115
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18116
   -e 's:$: $lt_compiler_flag:'`
 
18117
   (eval echo "\"\$as_me:18117: $lt_compile\"" >&5)
 
18118
   (eval "$lt_compile" 2>out/conftest.err)
 
18119
   ac_status=$?
 
18120
   cat out/conftest.err >&5
 
18121
   echo "$as_me:18121: \$? = $ac_status" >&5
 
18122
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
18123
   then
 
18124
     # The compiler can only warn and ignore the option if not recognized
 
18125
     # So say no if there are warnings
 
18126
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
18127
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
18128
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
18129
       lt_cv_prog_compiler_c_o_F77=yes
 
18130
     fi
 
18131
   fi
 
18132
   chmod u+w . 2>&5
 
18133
   $rm conftest*
 
18134
   # SGI C++ compiler will create directory out/ii_files/ for
 
18135
   # template instantiation
 
18136
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
18137
   $rm out/* && rmdir out
 
18138
   cd ..
 
18139
   rmdir conftest
 
18140
   $rm conftest*
 
18141
 
 
18142
fi
 
18143
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
18144
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
18145
 
 
18146
 
 
18147
hard_links="nottested"
 
18148
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
18149
  # do not overwrite the value of need_locks provided by the user
 
18150
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18151
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
18152
  hard_links=yes
 
18153
  $rm conftest*
 
18154
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18155
  touch conftest.a
 
18156
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
18157
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18158
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
18159
echo "${ECHO_T}$hard_links" >&6
 
18160
  if test "$hard_links" = no; then
 
18161
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18162
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
18163
    need_locks=warn
 
18164
  fi
 
18165
else
 
18166
  need_locks=no
 
18167
fi
 
18168
 
 
18169
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18170
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
18171
 
 
18172
  runpath_var=
 
18173
  allow_undefined_flag_F77=
 
18174
  enable_shared_with_static_runtimes_F77=no
 
18175
  archive_cmds_F77=
 
18176
  archive_expsym_cmds_F77=
 
18177
  old_archive_From_new_cmds_F77=
 
18178
  old_archive_from_expsyms_cmds_F77=
 
18179
  export_dynamic_flag_spec_F77=
 
18180
  whole_archive_flag_spec_F77=
 
18181
  thread_safe_flag_spec_F77=
 
18182
  hardcode_libdir_flag_spec_F77=
 
18183
  hardcode_libdir_flag_spec_ld_F77=
 
18184
  hardcode_libdir_separator_F77=
 
18185
  hardcode_direct_F77=no
 
18186
  hardcode_minus_L_F77=no
 
18187
  hardcode_shlibpath_var_F77=unsupported
 
18188
  link_all_deplibs_F77=unknown
 
18189
  hardcode_automatic_F77=no
 
18190
  module_cmds_F77=
 
18191
  module_expsym_cmds_F77=
 
18192
  always_export_symbols_F77=no
 
18193
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18194
  # include_expsyms should be a list of space-separated symbols to be *always*
 
18195
  # included in the symbol list
 
18196
  include_expsyms_F77=
 
18197
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
18198
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
18199
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
18200
  # as well as any symbol that contains `d'.
 
18201
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
18202
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
18203
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
18204
  # the symbol is explicitly referenced.  Since portable code cannot
 
18205
  # rely on this symbol name, it's probably fine to never include it in
 
18206
  # preloaded symbol tables.
 
18207
  extract_expsyms_cmds=
 
18208
  # Just being paranoid about ensuring that cc_basename is set.
 
18209
  for cc_temp in $compiler""; do
 
18210
  case $cc_temp in
 
18211
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18212
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18213
    \-*) ;;
 
18214
    *) break;;
 
18215
  esac
 
18216
done
 
18217
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18218
 
 
18219
  case $host_os in
 
18220
  cygwin* | mingw* | pw32*)
 
18221
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
18222
    # When not using gcc, we currently assume that we are using
 
18223
    # Microsoft Visual C++.
 
18224
    if test "$GCC" != yes; then
 
18225
      with_gnu_ld=no
 
18226
    fi
 
18227
    ;;
 
18228
  openbsd*)
 
18229
    with_gnu_ld=no
 
18230
    ;;
 
18231
  esac
 
18232
 
 
18233
  ld_shlibs_F77=yes
 
18234
  if test "$with_gnu_ld" = yes; then
 
18235
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
18236
    wlarc='${wl}'
 
18237
 
 
18238
    # Set some defaults for GNU ld with shared library support. These
 
18239
    # are reset later if shared libraries are not supported. Putting them
 
18240
    # here allows them to be overridden if necessary.
 
18241
    runpath_var=LD_RUN_PATH
 
18242
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
18243
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
18244
    # ancient GNU ld didn't support --whole-archive et. al.
 
18245
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18246
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18247
      else
 
18248
        whole_archive_flag_spec_F77=
 
18249
    fi
 
18250
    supports_anon_versioning=no
 
18251
    case `$LD -v 2>/dev/null` in
 
18252
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
18253
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
18254
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
18255
      *\ 2.11.*) ;; # other 2.11 versions
 
18256
      *) supports_anon_versioning=yes ;;
 
18257
    esac
 
18258
 
 
18259
    # See if GNU ld supports shared libraries.
 
18260
    case $host_os in
 
18261
    aix3* | aix4* | aix5*)
 
18262
      # On AIX/PPC, the GNU linker is very broken
 
18263
      if test "$host_cpu" != ia64; then
 
18264
        ld_shlibs_F77=no
 
18265
        cat <<EOF 1>&2
 
18266
 
 
18267
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
18268
*** to be unable to reliably create shared libraries on AIX.
 
18269
*** Therefore, libtool is disabling shared libraries support.  If you
 
18270
*** really care for shared libraries, you may want to modify your PATH
 
18271
*** so that a non-GNU linker is found, and then restart.
 
18272
 
 
18273
EOF
 
18274
      fi
 
18275
      ;;
 
18276
 
 
18277
    amigaos*)
 
18278
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
18279
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
18280
      hardcode_minus_L_F77=yes
 
18281
 
 
18282
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
18283
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
18284
      # to version 4, is to share data among multiple programs linked
 
18285
      # with the same dynamic library.  Since this doesn't match the
 
18286
      # behavior of shared libraries on other platforms, we can't use
 
18287
      # them.
 
18288
      ld_shlibs_F77=no
 
18289
      ;;
 
18290
 
 
18291
    beos*)
 
18292
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18293
        allow_undefined_flag_F77=unsupported
 
18294
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
18295
        # support --undefined.  This deserves some investigation.  FIXME
 
18296
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18297
      else
 
18298
        ld_shlibs_F77=no
 
18299
      fi
 
18300
      ;;
 
18301
 
 
18302
    cygwin* | mingw* | pw32*)
 
18303
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
18304
      # as there is no search path for DLLs.
 
18305
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
18306
      allow_undefined_flag_F77=unsupported
 
18307
      always_export_symbols_F77=no
 
18308
      enable_shared_with_static_runtimes_F77=yes
 
18309
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18310
 
 
18311
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18312
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
18313
        # If the export-symbols file already is a .def file (1st line
 
18314
        # is EXPORTS), use it as is; otherwise, prepend...
 
18315
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18316
          cp $export_symbols $output_objdir/$soname.def;
 
18317
        else
 
18318
          echo EXPORTS > $output_objdir/$soname.def;
 
18319
          cat $export_symbols >> $output_objdir/$soname.def;
 
18320
        fi~
 
18321
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
18322
      else
 
18323
        ld_shlibs_F77=no
 
18324
      fi
 
18325
      ;;
 
18326
 
 
18327
    linux*)
 
18328
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18329
        tmp_addflag=
 
18330
        case $cc_basename,$host_cpu in
 
18331
        pgcc*)                          # Portland Group C compiler
 
18332
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
18333
          tmp_addflag=' $pic_flag'
 
18334
          ;;
 
18335
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
18336
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
18337
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
18338
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
18339
          tmp_addflag=' -i_dynamic' ;;
 
18340
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
18341
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
18342
        ifc* | ifort*)                  # Intel Fortran compiler
 
18343
          tmp_addflag=' -nofor_main' ;;
 
18344
        esac
 
18345
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18346
 
 
18347
        if test $supports_anon_versioning = yes; then
 
18348
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
18349
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18350
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
18351
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18352
        fi
 
18353
      else
 
18354
        ld_shlibs_F77=no
 
18355
      fi
 
18356
      ;;
 
18357
 
 
18358
    netbsd*)
 
18359
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18360
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18361
        wlarc=
 
18362
      else
 
18363
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18364
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18365
      fi
 
18366
      ;;
 
18367
 
 
18368
    solaris* | sysv5*)
 
18369
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18370
        ld_shlibs_F77=no
 
18371
        cat <<EOF 1>&2
 
18372
 
 
18373
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18374
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18375
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18376
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18377
*** your PATH or compiler configuration so that the native linker is
 
18378
*** used, and then restart.
 
18379
 
 
18380
EOF
 
18381
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18382
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18383
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18384
      else
 
18385
        ld_shlibs_F77=no
 
18386
      fi
 
18387
      ;;
 
18388
 
 
18389
    sunos4*)
 
18390
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18391
      wlarc=
 
18392
      hardcode_direct_F77=yes
 
18393
      hardcode_shlibpath_var_F77=no
 
18394
      ;;
 
18395
 
 
18396
    *)
 
18397
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18398
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18399
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18400
      else
 
18401
        ld_shlibs_F77=no
 
18402
      fi
 
18403
      ;;
 
18404
    esac
 
18405
 
 
18406
    if test "$ld_shlibs_F77" = no; then
 
18407
      runpath_var=
 
18408
      hardcode_libdir_flag_spec_F77=
 
18409
      export_dynamic_flag_spec_F77=
 
18410
      whole_archive_flag_spec_F77=
 
18411
    fi
 
18412
  else
 
18413
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18414
    case $host_os in
 
18415
    aix3*)
 
18416
      allow_undefined_flag_F77=unsupported
 
18417
      always_export_symbols_F77=yes
 
18418
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
18419
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18420
      # are no directories specified by -L.
 
18421
      hardcode_minus_L_F77=yes
 
18422
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18423
        # Neither direct hardcoding nor static linking is supported with a
 
18424
        # broken collect2.
 
18425
        hardcode_direct_F77=unsupported
 
18426
      fi
 
18427
      ;;
 
18428
 
 
18429
    aix4* | aix5*)
 
18430
      if test "$host_cpu" = ia64; then
 
18431
        # On IA64, the linker does run time linking by default, so we don't
 
18432
        # have to do anything special.
 
18433
        aix_use_runtimelinking=no
 
18434
        exp_sym_flag='-Bexport'
 
18435
        no_entry_flag=""
 
18436
      else
 
18437
        # If we're using GNU nm, then we don't want the "-C" option.
 
18438
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18439
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18440
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18441
        else
 
18442
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18443
        fi
 
18444
        aix_use_runtimelinking=no
 
18445
 
 
18446
        # Test if we are trying to use run time linking or normal
 
18447
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18448
        # need to do runtime linking.
 
18449
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
18450
          for ld_flag in $LDFLAGS; do
 
18451
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18452
            aix_use_runtimelinking=yes
 
18453
            break
 
18454
          fi
 
18455
          done
 
18456
        esac
 
18457
 
 
18458
        exp_sym_flag='-bexport'
 
18459
        no_entry_flag='-bnoentry'
 
18460
      fi
 
18461
 
 
18462
      # When large executables or shared objects are built, AIX ld can
 
18463
      # have problems creating the table of contents.  If linking a library
 
18464
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18465
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18466
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18467
 
 
18468
      archive_cmds_F77=''
 
18469
      hardcode_direct_F77=yes
 
18470
      hardcode_libdir_separator_F77=':'
 
18471
      link_all_deplibs_F77=yes
 
18472
 
 
18473
      if test "$GCC" = yes; then
 
18474
        case $host_os in aix4.[012]|aix4.[012].*)
 
18475
        # We only want to do this on AIX 4.2 and lower, the check
 
18476
        # below for broken collect2 doesn't work under 4.3+
 
18477
          collect2name=`${CC} -print-prog-name=collect2`
 
18478
          if test -f "$collect2name" && \
 
18479
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18480
          then
 
18481
          # We have reworked collect2
 
18482
          hardcode_direct_F77=yes
 
18483
          else
 
18484
          # We have old collect2
 
18485
          hardcode_direct_F77=unsupported
 
18486
          # It fails to find uninstalled libraries when the uninstalled
 
18487
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18488
          # to unsupported forces relinking
 
18489
          hardcode_minus_L_F77=yes
 
18490
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
18491
          hardcode_libdir_separator_F77=
 
18492
          fi
 
18493
        esac
 
18494
        shared_flag='-shared'
 
18495
        if test "$aix_use_runtimelinking" = yes; then
 
18496
          shared_flag="$shared_flag "'${wl}-G'
 
18497
        fi
 
18498
      else
 
18499
        # not using gcc
 
18500
        if test "$host_cpu" = ia64; then
 
18501
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18502
        # chokes on -Wl,-G. The following line is correct:
 
18503
          shared_flag='-G'
 
18504
        else
 
18505
        if test "$aix_use_runtimelinking" = yes; then
 
18506
            shared_flag='${wl}-G'
 
18507
          else
 
18508
            shared_flag='${wl}-bM:SRE'
 
18509
        fi
 
18510
        fi
 
18511
      fi
 
18512
 
 
18513
      # It seems that -bexpall does not export symbols beginning with
 
18514
      # underscore (_), so it is better to generate a list of symbols to export.
 
18515
      always_export_symbols_F77=yes
 
18516
      if test "$aix_use_runtimelinking" = yes; then
 
18517
        # Warning - without using the other runtime loading flags (-brtl),
 
18518
        # -berok will link without error, but may produce a broken library.
 
18519
        allow_undefined_flag_F77='-berok'
 
18520
       # Determine the default libpath from the value encoded in an empty executable.
 
18521
       cat >conftest.$ac_ext <<_ACEOF
 
18522
      program main
 
18523
 
 
18524
      end
 
18525
_ACEOF
 
18526
rm -f conftest.$ac_objext conftest$ac_exeext
 
18527
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18528
  (eval $ac_link) 2>conftest.er1
 
18529
  ac_status=$?
 
18530
  grep -v '^ *+' conftest.er1 >conftest.err
 
18531
  rm -f conftest.er1
 
18532
  cat conftest.err >&5
 
18533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18534
  (exit $ac_status); } &&
 
18535
         { ac_try='test -z "$ac_f77_werror_flag"
 
18536
                         || test ! -s conftest.err'
 
18537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18538
  (eval $ac_try) 2>&5
 
18539
  ac_status=$?
 
18540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18541
  (exit $ac_status); }; } &&
 
18542
         { ac_try='test -s conftest$ac_exeext'
 
18543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18544
  (eval $ac_try) 2>&5
 
18545
  ac_status=$?
 
18546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18547
  (exit $ac_status); }; }; then
 
18548
 
 
18549
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18550
}'`
 
18551
# Check for a 64-bit object if we didn't find anything.
 
18552
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18553
}'`; fi
 
18554
else
 
18555
  echo "$as_me: failed program was:" >&5
 
18556
sed 's/^/| /' conftest.$ac_ext >&5
 
18557
 
 
18558
fi
 
18559
rm -f conftest.err conftest.$ac_objext \
 
18560
      conftest$ac_exeext conftest.$ac_ext
 
18561
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18562
 
 
18563
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18564
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
18565
       else
 
18566
        if test "$host_cpu" = ia64; then
 
18567
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
18568
          allow_undefined_flag_F77="-z nodefs"
 
18569
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
18570
        else
 
18571
         # Determine the default libpath from the value encoded in an empty executable.
 
18572
         cat >conftest.$ac_ext <<_ACEOF
 
18573
      program main
 
18574
 
 
18575
      end
 
18576
_ACEOF
 
18577
rm -f conftest.$ac_objext conftest$ac_exeext
 
18578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18579
  (eval $ac_link) 2>conftest.er1
 
18580
  ac_status=$?
 
18581
  grep -v '^ *+' conftest.er1 >conftest.err
 
18582
  rm -f conftest.er1
 
18583
  cat conftest.err >&5
 
18584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18585
  (exit $ac_status); } &&
 
18586
         { ac_try='test -z "$ac_f77_werror_flag"
 
18587
                         || test ! -s conftest.err'
 
18588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18589
  (eval $ac_try) 2>&5
 
18590
  ac_status=$?
 
18591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18592
  (exit $ac_status); }; } &&
 
18593
         { ac_try='test -s conftest$ac_exeext'
 
18594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18595
  (eval $ac_try) 2>&5
 
18596
  ac_status=$?
 
18597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18598
  (exit $ac_status); }; }; then
 
18599
 
 
18600
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18601
}'`
 
18602
# Check for a 64-bit object if we didn't find anything.
 
18603
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18604
}'`; fi
 
18605
else
 
18606
  echo "$as_me: failed program was:" >&5
 
18607
sed 's/^/| /' conftest.$ac_ext >&5
 
18608
 
 
18609
fi
 
18610
rm -f conftest.err conftest.$ac_objext \
 
18611
      conftest$ac_exeext conftest.$ac_ext
 
18612
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18613
 
 
18614
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18615
          # Warning - without using the other run time loading flags,
 
18616
          # -berok will link without error, but may produce a broken library.
 
18617
          no_undefined_flag_F77=' ${wl}-bernotok'
 
18618
          allow_undefined_flag_F77=' ${wl}-berok'
 
18619
          # -bexpall does not export symbols beginning with underscore (_)
 
18620
          always_export_symbols_F77=yes
 
18621
          # Exported symbols can be pulled into shared objects from archives
 
18622
          whole_archive_flag_spec_F77=' '
 
18623
          archive_cmds_need_lc_F77=yes
 
18624
          # This is similar to how AIX traditionally builds its shared libraries.
 
18625
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
18626
        fi
 
18627
      fi
 
18628
      ;;
 
18629
 
 
18630
    amigaos*)
 
18631
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
18632
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
18633
      hardcode_minus_L_F77=yes
 
18634
      # see comment about different semantics on the GNU ld section
 
18635
      ld_shlibs_F77=no
 
18636
      ;;
 
18637
 
 
18638
    bsdi[45]*)
 
18639
      export_dynamic_flag_spec_F77=-rdynamic
 
18640
      ;;
 
18641
 
 
18642
    cygwin* | mingw* | pw32*)
 
18643
      # When not using gcc, we currently assume that we are using
 
18644
      # Microsoft Visual C++.
 
18645
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18646
      # no search path for DLLs.
 
18647
      hardcode_libdir_flag_spec_F77=' '
 
18648
      allow_undefined_flag_F77=unsupported
 
18649
      # Tell ltmain to make .lib files, not .a files.
 
18650
      libext=lib
 
18651
      # Tell ltmain to make .dll files, not .so files.
 
18652
      shrext_cmds=".dll"
 
18653
      # FIXME: Setting linknames here is a bad hack.
 
18654
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18655
      # The linker will automatically build a .lib file if we build a DLL.
 
18656
      old_archive_From_new_cmds_F77='true'
 
18657
      # FIXME: Should let the user specify the lib program.
 
18658
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18659
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
18660
      enable_shared_with_static_runtimes_F77=yes
 
18661
      ;;
 
18662
 
 
18663
    darwin* | rhapsody*)
 
18664
      case $host_os in
 
18665
        rhapsody* | darwin1.[012])
 
18666
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
18667
         ;;
 
18668
       *) # Darwin 1.3 on
 
18669
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18670
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18671
         else
 
18672
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18673
             10.[012])
 
18674
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18675
               ;;
 
18676
             10.*)
 
18677
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
18678
               ;;
 
18679
           esac
 
18680
         fi
 
18681
         ;;
 
18682
      esac
 
18683
      archive_cmds_need_lc_F77=no
 
18684
      hardcode_direct_F77=no
 
18685
      hardcode_automatic_F77=yes
 
18686
      hardcode_shlibpath_var_F77=unsupported
 
18687
      whole_archive_flag_spec_F77=''
 
18688
      link_all_deplibs_F77=yes
 
18689
    if test "$GCC" = yes ; then
 
18690
        output_verbose_link_cmd='echo'
 
18691
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18692
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18693
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18694
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18695
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18696
    else
 
18697
      case $cc_basename in
 
18698
        xlc*)
 
18699
         output_verbose_link_cmd='echo'
 
18700
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
18701
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18702
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18703
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18704
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18705
          ;;
 
18706
       *)
 
18707
         ld_shlibs_F77=no
 
18708
          ;;
 
18709
      esac
 
18710
    fi
 
18711
      ;;
 
18712
 
 
18713
    dgux*)
 
18714
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18715
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
18716
      hardcode_shlibpath_var_F77=no
 
18717
      ;;
 
18718
 
 
18719
    freebsd1*)
 
18720
      ld_shlibs_F77=no
 
18721
      ;;
 
18722
 
 
18723
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18724
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18725
    # does not break anything, and helps significantly (at the cost of a little
 
18726
    # extra space).
 
18727
    freebsd2.2*)
 
18728
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18729
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
18730
      hardcode_direct_F77=yes
 
18731
      hardcode_shlibpath_var_F77=no
 
18732
      ;;
 
18733
 
 
18734
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18735
    freebsd2*)
 
18736
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18737
      hardcode_direct_F77=yes
 
18738
      hardcode_minus_L_F77=yes
 
18739
      hardcode_shlibpath_var_F77=no
 
18740
      ;;
 
18741
 
 
18742
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18743
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
18744
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18745
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
18746
      hardcode_direct_F77=yes
 
18747
      hardcode_shlibpath_var_F77=no
 
18748
      ;;
 
18749
 
 
18750
    hpux9*)
 
18751
      if test "$GCC" = yes; then
 
18752
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18753
      else
 
18754
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18755
      fi
 
18756
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
18757
      hardcode_libdir_separator_F77=:
 
18758
      hardcode_direct_F77=yes
 
18759
 
 
18760
      # hardcode_minus_L: Not really in the search PATH,
 
18761
      # but as the default location of the library.
 
18762
      hardcode_minus_L_F77=yes
 
18763
      export_dynamic_flag_spec_F77='${wl}-E'
 
18764
      ;;
 
18765
 
 
18766
    hpux10* | hpux11*)
 
18767
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18768
        case $host_cpu in
 
18769
        hppa*64*|ia64*)
 
18770
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18771
          ;;
 
18772
        *)
 
18773
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18774
          ;;
 
18775
        esac
 
18776
      else
 
18777
        case $host_cpu in
 
18778
        hppa*64*|ia64*)
 
18779
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18780
          ;;
 
18781
        *)
 
18782
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18783
          ;;
 
18784
        esac
 
18785
      fi
 
18786
      if test "$with_gnu_ld" = no; then
 
18787
        case $host_cpu in
 
18788
        hppa*64*)
 
18789
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
18790
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
18791
          hardcode_libdir_separator_F77=:
 
18792
          hardcode_direct_F77=no
 
18793
          hardcode_shlibpath_var_F77=no
 
18794
          ;;
 
18795
        ia64*)
 
18796
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
18797
          hardcode_direct_F77=no
 
18798
          hardcode_shlibpath_var_F77=no
 
18799
 
 
18800
          # hardcode_minus_L: Not really in the search PATH,
 
18801
          # but as the default location of the library.
 
18802
          hardcode_minus_L_F77=yes
 
18803
          ;;
 
18804
        *)
 
18805
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
18806
          hardcode_libdir_separator_F77=:
 
18807
          hardcode_direct_F77=yes
 
18808
          export_dynamic_flag_spec_F77='${wl}-E'
 
18809
 
 
18810
          # hardcode_minus_L: Not really in the search PATH,
 
18811
          # but as the default location of the library.
 
18812
          hardcode_minus_L_F77=yes
 
18813
          ;;
 
18814
        esac
 
18815
      fi
 
18816
      ;;
 
18817
 
 
18818
    irix5* | irix6* | nonstopux*)
 
18819
      if test "$GCC" = yes; then
 
18820
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18821
      else
 
18822
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18823
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
18824
      fi
 
18825
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
18826
      hardcode_libdir_separator_F77=:
 
18827
      link_all_deplibs_F77=yes
 
18828
      ;;
 
18829
 
 
18830
    netbsd*)
 
18831
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18832
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18833
      else
 
18834
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18835
      fi
 
18836
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
18837
      hardcode_direct_F77=yes
 
18838
      hardcode_shlibpath_var_F77=no
 
18839
      ;;
 
18840
 
 
18841
    newsos6)
 
18842
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18843
      hardcode_direct_F77=yes
 
18844
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
18845
      hardcode_libdir_separator_F77=:
 
18846
      hardcode_shlibpath_var_F77=no
 
18847
      ;;
 
18848
 
 
18849
    openbsd*)
 
18850
      hardcode_direct_F77=yes
 
18851
      hardcode_shlibpath_var_F77=no
 
18852
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18853
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18854
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18855
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
18856
        export_dynamic_flag_spec_F77='${wl}-E'
 
18857
      else
 
18858
       case $host_os in
 
18859
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18860
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18861
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
18862
           ;;
 
18863
         *)
 
18864
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18865
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
18866
           ;;
 
18867
       esac
 
18868
      fi
 
18869
      ;;
 
18870
 
 
18871
    os2*)
 
18872
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
18873
      hardcode_minus_L_F77=yes
 
18874
      allow_undefined_flag_F77=unsupported
 
18875
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
18876
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18877
      ;;
 
18878
 
 
18879
    osf3*)
 
18880
      if test "$GCC" = yes; then
 
18881
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
18882
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18883
      else
 
18884
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
18885
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18886
      fi
 
18887
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
18888
      hardcode_libdir_separator_F77=:
 
18889
      ;;
 
18890
 
 
18891
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18892
      if test "$GCC" = yes; then
 
18893
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
18894
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18895
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
18896
      else
 
18897
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
18898
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18899
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18900
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
18901
 
 
18902
        # Both c and cxx compiler support -rpath directly
 
18903
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
18904
      fi
 
18905
      hardcode_libdir_separator_F77=:
 
18906
      ;;
 
18907
 
 
18908
    sco3.2v5*)
 
18909
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18910
      hardcode_shlibpath_var_F77=no
 
18911
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
18912
      runpath_var=LD_RUN_PATH
 
18913
      hardcode_runpath_var=yes
 
18914
      ;;
 
18915
 
 
18916
    solaris*)
 
18917
      no_undefined_flag_F77=' -z text'
 
18918
      if test "$GCC" = yes; then
 
18919
        wlarc='${wl}'
 
18920
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18921
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18922
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18923
      else
 
18924
        wlarc=''
 
18925
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18926
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18927
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18928
      fi
 
18929
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
18930
      hardcode_shlibpath_var_F77=no
 
18931
      case $host_os in
 
18932
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18933
      *)
 
18934
        # The compiler driver will combine linker options so we
 
18935
        # cannot just pass the convience library names through
 
18936
        # without $wl, iff we do not link with $LD.
 
18937
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18938
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18939
        case $wlarc in
 
18940
        '')
 
18941
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
18942
        *)
 
18943
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
18944
        esac ;;
 
18945
      esac
 
18946
      link_all_deplibs_F77=yes
 
18947
      ;;
 
18948
 
 
18949
    sunos4*)
 
18950
      if test "x$host_vendor" = xsequent; then
 
18951
        # Use $CC to link under sequent, because it throws in some extra .o
 
18952
        # files that make .init and .fini sections work.
 
18953
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18954
      else
 
18955
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18956
      fi
 
18957
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
18958
      hardcode_direct_F77=yes
 
18959
      hardcode_minus_L_F77=yes
 
18960
      hardcode_shlibpath_var_F77=no
 
18961
      ;;
 
18962
 
 
18963
    sysv4)
 
18964
      case $host_vendor in
 
18965
        sni)
 
18966
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18967
          hardcode_direct_F77=yes # is this really true???
 
18968
        ;;
 
18969
        siemens)
 
18970
          ## LD is ld it makes a PLAMLIB
 
18971
          ## CC just makes a GrossModule.
 
18972
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18973
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
18974
          hardcode_direct_F77=no
 
18975
        ;;
 
18976
        motorola)
 
18977
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18978
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
18979
        ;;
 
18980
      esac
 
18981
      runpath_var='LD_RUN_PATH'
 
18982
      hardcode_shlibpath_var_F77=no
 
18983
      ;;
 
18984
 
 
18985
    sysv4.3*)
 
18986
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18987
      hardcode_shlibpath_var_F77=no
 
18988
      export_dynamic_flag_spec_F77='-Bexport'
 
18989
      ;;
 
18990
 
 
18991
    sysv4*MP*)
 
18992
      if test -d /usr/nec; then
 
18993
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18994
        hardcode_shlibpath_var_F77=no
 
18995
        runpath_var=LD_RUN_PATH
 
18996
        hardcode_runpath_var=yes
 
18997
        ld_shlibs_F77=yes
 
18998
      fi
 
18999
      ;;
 
19000
 
 
19001
    sysv4.2uw2*)
 
19002
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19003
      hardcode_direct_F77=yes
 
19004
      hardcode_minus_L_F77=no
 
19005
      hardcode_shlibpath_var_F77=no
 
19006
      hardcode_runpath_var=yes
 
19007
      runpath_var=LD_RUN_PATH
 
19008
      ;;
 
19009
 
 
19010
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
19011
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
19012
      if test "$GCC" = yes; then
 
19013
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19014
      else
 
19015
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19016
      fi
 
19017
      runpath_var='LD_RUN_PATH'
 
19018
      hardcode_shlibpath_var_F77=no
 
19019
      ;;
 
19020
 
 
19021
    sysv5*)
 
19022
      no_undefined_flag_F77=' -z text'
 
19023
      # $CC -shared without GNU ld will not create a library from C++
 
19024
      # object files and a static libstdc++, better avoid it by now
 
19025
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19026
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19027
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19028
      hardcode_libdir_flag_spec_F77=
 
19029
      hardcode_shlibpath_var_F77=no
 
19030
      runpath_var='LD_RUN_PATH'
 
19031
      ;;
 
19032
 
 
19033
    uts4*)
 
19034
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19035
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
19036
      hardcode_shlibpath_var_F77=no
 
19037
      ;;
 
19038
 
 
19039
    *)
 
19040
      ld_shlibs_F77=no
 
19041
      ;;
 
19042
    esac
 
19043
  fi
 
19044
 
 
19045
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
19046
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
19047
test "$ld_shlibs_F77" = no && can_build_shared=no
 
19048
 
 
19049
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19050
if test "$GCC" = yes; then
 
19051
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19052
fi
 
19053
 
 
19054
#
 
19055
# Do we need to explicitly link libc?
 
19056
#
 
19057
case "x$archive_cmds_need_lc_F77" in
 
19058
x|xyes)
 
19059
  # Assume -lc should be added
 
19060
  archive_cmds_need_lc_F77=yes
 
19061
 
 
19062
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
19063
    case $archive_cmds_F77 in
 
19064
    *'~'*)
 
19065
      # FIXME: we may have to deal with multi-command sequences.
 
19066
      ;;
 
19067
    '$CC '*)
 
19068
      # Test whether the compiler implicitly links with -lc since on some
 
19069
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19070
      # to ld, don't add -lc before -lgcc.
 
19071
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19072
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
19073
      $rm conftest*
 
19074
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19075
 
 
19076
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19077
  (eval $ac_compile) 2>&5
 
19078
  ac_status=$?
 
19079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19080
  (exit $ac_status); } 2>conftest.err; then
 
19081
        soname=conftest
 
19082
        lib=conftest
 
19083
        libobjs=conftest.$ac_objext
 
19084
        deplibs=
 
19085
        wl=$lt_prog_compiler_wl_F77
 
19086
        compiler_flags=-v
 
19087
        linker_flags=-v
 
19088
        verstring=
 
19089
        output_objdir=.
 
19090
        libname=conftest
 
19091
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
19092
        allow_undefined_flag_F77=
 
19093
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19094
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19095
  ac_status=$?
 
19096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19097
  (exit $ac_status); }
 
19098
        then
 
19099
          archive_cmds_need_lc_F77=no
 
19100
        else
 
19101
          archive_cmds_need_lc_F77=yes
 
19102
        fi
 
19103
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
19104
      else
 
19105
        cat conftest.err 1>&5
 
19106
      fi
 
19107
      $rm conftest*
 
19108
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
19109
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
19110
      ;;
 
19111
    esac
 
19112
  fi
 
19113
  ;;
 
19114
esac
 
19115
 
 
19116
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19117
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
19118
library_names_spec=
 
19119
libname_spec='lib$name'
 
19120
soname_spec=
 
19121
shrext_cmds=".so"
 
19122
postinstall_cmds=
 
19123
postuninstall_cmds=
 
19124
finish_cmds=
 
19125
finish_eval=
 
19126
shlibpath_var=
 
19127
shlibpath_overrides_runpath=unknown
 
19128
version_type=none
 
19129
dynamic_linker="$host_os ld.so"
 
19130
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19131
if test "$GCC" = yes; then
 
19132
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19133
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
19134
    # if the path contains ";" then we assume it to be the separator
 
19135
    # otherwise default to the standard path separator (i.e. ":") - it is
 
19136
    # assumed that no part of a normal pathname contains ";" but that should
 
19137
    # okay in the real world where ";" in dirpaths is itself problematic.
 
19138
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19139
  else
 
19140
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19141
  fi
 
19142
else
 
19143
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
19144
fi
 
19145
need_lib_prefix=unknown
 
19146
hardcode_into_libs=no
 
19147
 
 
19148
# when you set need_version to no, make sure it does not cause -set_version
 
19149
# flags to be left without arguments
 
19150
need_version=unknown
 
19151
 
 
19152
case $host_os in
 
19153
aix3*)
 
19154
  version_type=linux
 
19155
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19156
  shlibpath_var=LIBPATH
 
19157
 
 
19158
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19159
  soname_spec='${libname}${release}${shared_ext}$major'
 
19160
  ;;
 
19161
 
 
19162
aix4* | aix5*)
 
19163
  version_type=linux
 
19164
  need_lib_prefix=no
 
19165
  need_version=no
 
19166
  hardcode_into_libs=yes
 
19167
  if test "$host_cpu" = ia64; then
 
19168
    # AIX 5 supports IA64
 
19169
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19170
    shlibpath_var=LD_LIBRARY_PATH
 
19171
  else
 
19172
    # With GCC up to 2.95.x, collect2 would create an import file
 
19173
    # for dependence libraries.  The import file would start with
 
19174
    # the line `#! .'.  This would cause the generated library to
 
19175
    # depend on `.', always an invalid library.  This was fixed in
 
19176
    # development snapshots of GCC prior to 3.0.
 
19177
    case $host_os in
 
19178
      aix4 | aix4.[01] | aix4.[01].*)
 
19179
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19180
           echo ' yes '
 
19181
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
19182
        :
 
19183
      else
 
19184
        can_build_shared=no
 
19185
      fi
 
19186
      ;;
 
19187
    esac
 
19188
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19189
    # soname into executable. Probably we can add versioning support to
 
19190
    # collect2, so additional links can be useful in future.
 
19191
    if test "$aix_use_runtimelinking" = yes; then
 
19192
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19193
      # instead of lib<name>.a to let people know that these are not
 
19194
      # typical AIX shared libraries.
 
19195
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19196
    else
 
19197
      # We preserve .a as extension for shared libraries through AIX4.2
 
19198
      # and later when we are not doing run time linking.
 
19199
      library_names_spec='${libname}${release}.a $libname.a'
 
19200
      soname_spec='${libname}${release}${shared_ext}$major'
 
19201
    fi
 
19202
    shlibpath_var=LIBPATH
 
19203
  fi
 
19204
  ;;
 
19205
 
 
19206
amigaos*)
 
19207
  library_names_spec='$libname.ixlibrary $libname.a'
 
19208
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19209
  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'
 
19210
  ;;
 
19211
 
 
19212
beos*)
 
19213
  library_names_spec='${libname}${shared_ext}'
 
19214
  dynamic_linker="$host_os ld.so"
 
19215
  shlibpath_var=LIBRARY_PATH
 
19216
  ;;
 
19217
 
 
19218
bsdi[45]*)
 
19219
  version_type=linux
 
19220
  need_version=no
 
19221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19222
  soname_spec='${libname}${release}${shared_ext}$major'
 
19223
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19224
  shlibpath_var=LD_LIBRARY_PATH
 
19225
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19226
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19227
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19228
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19229
  # libtool to hard-code these into programs
 
19230
  ;;
 
19231
 
 
19232
cygwin* | mingw* | pw32*)
 
19233
  version_type=windows
 
19234
  shrext_cmds=".dll"
 
19235
  need_version=no
 
19236
  need_lib_prefix=no
 
19237
 
 
19238
  case $GCC,$host_os in
 
19239
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19240
    library_names_spec='$libname.dll.a'
 
19241
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19242
    postinstall_cmds='base_file=`basename \${file}`~
 
19243
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19244
      dldir=$destdir/`dirname \$dlpath`~
 
19245
      test -d \$dldir || mkdir -p \$dldir~
 
19246
      $install_prog $dir/$dlname \$dldir/$dlname~
 
19247
      chmod a+x \$dldir/$dlname'
 
19248
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19249
      dlpath=$dir/\$dldll~
 
19250
       $rm \$dlpath'
 
19251
    shlibpath_overrides_runpath=yes
 
19252
 
 
19253
    case $host_os in
 
19254
    cygwin*)
 
19255
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19256
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19257
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19258
      ;;
 
19259
    mingw*)
 
19260
      # MinGW DLLs use traditional 'lib' prefix
 
19261
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19262
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19263
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19264
        # It is most probably a Windows format PATH printed by
 
19265
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19266
        # path with ; separators, and with drive letters. We can handle the
 
19267
        # drive letters (cygwin fileutils understands them), so leave them,
 
19268
        # especially as we might pass files found there to a mingw objdump,
 
19269
        # which wouldn't understand a cygwinified path. Ahh.
 
19270
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19271
      else
 
19272
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19273
      fi
 
19274
      ;;
 
19275
    pw32*)
 
19276
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19277
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19278
      ;;
 
19279
    esac
 
19280
    ;;
 
19281
 
 
19282
  *)
 
19283
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19284
    ;;
 
19285
  esac
 
19286
  dynamic_linker='Win32 ld.exe'
 
19287
  # FIXME: first we should search . and the directory the executable is in
 
19288
  shlibpath_var=PATH
 
19289
  ;;
 
19290
 
 
19291
darwin* | rhapsody*)
 
19292
  dynamic_linker="$host_os dyld"
 
19293
  version_type=darwin
 
19294
  need_lib_prefix=no
 
19295
  need_version=no
 
19296
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19297
  soname_spec='${libname}${release}${major}$shared_ext'
 
19298
  shlibpath_overrides_runpath=yes
 
19299
  shlibpath_var=DYLD_LIBRARY_PATH
 
19300
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
19301
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
19302
  if test "$GCC" = yes; then
 
19303
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
19304
  else
 
19305
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
19306
  fi
 
19307
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19308
  ;;
 
19309
 
 
19310
dgux*)
 
19311
  version_type=linux
 
19312
  need_lib_prefix=no
 
19313
  need_version=no
 
19314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19315
  soname_spec='${libname}${release}${shared_ext}$major'
 
19316
  shlibpath_var=LD_LIBRARY_PATH
 
19317
  ;;
 
19318
 
 
19319
freebsd1*)
 
19320
  dynamic_linker=no
 
19321
  ;;
 
19322
 
 
19323
kfreebsd*-gnu)
 
19324
  version_type=linux
 
19325
  need_lib_prefix=no
 
19326
  need_version=no
 
19327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19328
  soname_spec='${libname}${release}${shared_ext}$major'
 
19329
  shlibpath_var=LD_LIBRARY_PATH
 
19330
  shlibpath_overrides_runpath=no
 
19331
  hardcode_into_libs=yes
 
19332
  dynamic_linker='GNU ld.so'
 
19333
  ;;
 
19334
 
 
19335
freebsd* | dragonfly*)
 
19336
  # DragonFly does not have aout.  When/if they implement a new
 
19337
  # versioning mechanism, adjust this.
 
19338
  if test -x /usr/bin/objformat; then
 
19339
    objformat=`/usr/bin/objformat`
 
19340
  else
 
19341
    case $host_os in
 
19342
    freebsd[123]*) objformat=aout ;;
 
19343
    *) objformat=elf ;;
 
19344
    esac
 
19345
  fi
 
19346
  version_type=freebsd-$objformat
 
19347
  case $version_type in
 
19348
    freebsd-elf*)
 
19349
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19350
      need_version=no
 
19351
      need_lib_prefix=no
 
19352
      ;;
 
19353
    freebsd-*)
 
19354
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19355
      need_version=yes
 
19356
      ;;
 
19357
  esac
 
19358
  shlibpath_var=LD_LIBRARY_PATH
 
19359
  case $host_os in
 
19360
  freebsd2*)
 
19361
    shlibpath_overrides_runpath=yes
 
19362
    ;;
 
19363
  freebsd3.[01]* | freebsdelf3.[01]*)
 
19364
    shlibpath_overrides_runpath=yes
 
19365
    hardcode_into_libs=yes
 
19366
    ;;
 
19367
  *) # from 3.2 on
 
19368
    shlibpath_overrides_runpath=no
 
19369
    hardcode_into_libs=yes
 
19370
    ;;
 
19371
  esac
 
19372
  ;;
 
19373
 
 
19374
gnu*)
 
19375
  version_type=linux
 
19376
  need_lib_prefix=no
 
19377
  need_version=no
 
19378
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19379
  soname_spec='${libname}${release}${shared_ext}$major'
 
19380
  shlibpath_var=LD_LIBRARY_PATH
 
19381
  hardcode_into_libs=yes
 
19382
  ;;
 
19383
 
 
19384
hpux9* | hpux10* | hpux11*)
 
19385
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19386
  # link against other versions.
 
19387
  version_type=sunos
 
19388
  need_lib_prefix=no
 
19389
  need_version=no
 
19390
  case $host_cpu in
 
19391
  ia64*)
 
19392
    shrext_cmds='.so'
 
19393
    hardcode_into_libs=yes
 
19394
    dynamic_linker="$host_os dld.so"
 
19395
    shlibpath_var=LD_LIBRARY_PATH
 
19396
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19397
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19398
    soname_spec='${libname}${release}${shared_ext}$major'
 
19399
    if test "X$HPUX_IA64_MODE" = X32; then
 
19400
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19401
    else
 
19402
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19403
    fi
 
19404
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19405
    ;;
 
19406
   hppa*64*)
 
19407
     shrext_cmds='.sl'
 
19408
     hardcode_into_libs=yes
 
19409
     dynamic_linker="$host_os dld.sl"
 
19410
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19411
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19412
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19413
     soname_spec='${libname}${release}${shared_ext}$major'
 
19414
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19415
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19416
     ;;
 
19417
   *)
 
19418
    shrext_cmds='.sl'
 
19419
    dynamic_linker="$host_os dld.sl"
 
19420
    shlibpath_var=SHLIB_PATH
 
19421
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19422
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19423
    soname_spec='${libname}${release}${shared_ext}$major'
 
19424
    ;;
 
19425
  esac
 
19426
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19427
  postinstall_cmds='chmod 555 $lib'
 
19428
  ;;
 
19429
 
 
19430
irix5* | irix6* | nonstopux*)
 
19431
  case $host_os in
 
19432
    nonstopux*) version_type=nonstopux ;;
 
19433
    *)
 
19434
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19435
                version_type=linux
 
19436
        else
 
19437
                version_type=irix
 
19438
        fi ;;
 
19439
  esac
 
19440
  need_lib_prefix=no
 
19441
  need_version=no
 
19442
  soname_spec='${libname}${release}${shared_ext}$major'
 
19443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19444
  case $host_os in
 
19445
  irix5* | nonstopux*)
 
19446
    libsuff= shlibsuff=
 
19447
    ;;
 
19448
  *)
 
19449
    case $LD in # libtool.m4 will add one of these switches to LD
 
19450
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19451
      libsuff= shlibsuff= libmagic=32-bit;;
 
19452
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19453
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19454
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19455
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19456
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19457
    esac
 
19458
    ;;
 
19459
  esac
 
19460
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19461
  shlibpath_overrides_runpath=no
 
19462
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19463
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19464
  hardcode_into_libs=yes
 
19465
  ;;
 
19466
 
 
19467
# No shared lib support for Linux oldld, aout, or coff.
 
19468
linux*oldld* | linux*aout* | linux*coff*)
 
19469
  dynamic_linker=no
 
19470
  ;;
 
19471
 
 
19472
# This must be Linux ELF.
 
19473
linux*)
 
19474
  version_type=linux
 
19475
  need_lib_prefix=no
 
19476
  need_version=no
 
19477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19478
  soname_spec='${libname}${release}${shared_ext}$major'
 
19479
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19480
  shlibpath_var=LD_LIBRARY_PATH
 
19481
  shlibpath_overrides_runpath=no
 
19482
  # This implies no fast_install, which is unacceptable.
 
19483
  # Some rework will be needed to allow for fast_install
 
19484
  # before this can be enabled.
 
19485
  hardcode_into_libs=yes
 
19486
 
 
19487
  # Append ld.so.conf contents to the search path
 
19488
  if test -f /etc/ld.so.conf; then
 
19489
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
19490
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19491
  fi
 
19492
 
 
19493
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19494
  # powerpc, because MkLinux only supported shared libraries with the
 
19495
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19496
  # most powerpc-linux boxes support dynamic linking these days and
 
19497
  # people can always --disable-shared, the test was removed, and we
 
19498
  # assume the GNU/Linux dynamic linker is in use.
 
19499
  dynamic_linker='GNU/Linux ld.so'
 
19500
  ;;
 
19501
 
 
19502
knetbsd*-gnu)
 
19503
  version_type=linux
 
19504
  need_lib_prefix=no
 
19505
  need_version=no
 
19506
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19507
  soname_spec='${libname}${release}${shared_ext}$major'
 
19508
  shlibpath_var=LD_LIBRARY_PATH
 
19509
  shlibpath_overrides_runpath=no
 
19510
  hardcode_into_libs=yes
 
19511
  dynamic_linker='GNU ld.so'
 
19512
  ;;
 
19513
 
 
19514
netbsd*)
 
19515
  version_type=sunos
 
19516
  need_lib_prefix=no
 
19517
  need_version=no
 
19518
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19519
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19520
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19521
    dynamic_linker='NetBSD (a.out) ld.so'
 
19522
  else
 
19523
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19524
    soname_spec='${libname}${release}${shared_ext}$major'
 
19525
    dynamic_linker='NetBSD ld.elf_so'
 
19526
  fi
 
19527
  shlibpath_var=LD_LIBRARY_PATH
 
19528
  shlibpath_overrides_runpath=yes
 
19529
  hardcode_into_libs=yes
 
19530
  ;;
 
19531
 
 
19532
newsos6)
 
19533
  version_type=linux
 
19534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19535
  shlibpath_var=LD_LIBRARY_PATH
 
19536
  shlibpath_overrides_runpath=yes
 
19537
  ;;
 
19538
 
 
19539
nto-qnx*)
 
19540
  version_type=linux
 
19541
  need_lib_prefix=no
 
19542
  need_version=no
 
19543
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19544
  soname_spec='${libname}${release}${shared_ext}$major'
 
19545
  shlibpath_var=LD_LIBRARY_PATH
 
19546
  shlibpath_overrides_runpath=yes
 
19547
  ;;
 
19548
 
 
19549
openbsd*)
 
19550
  version_type=sunos
 
19551
  need_lib_prefix=no
 
19552
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19553
  case $host_os in
 
19554
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19555
    *)                         need_version=no  ;;
 
19556
  esac
 
19557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19558
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19559
  shlibpath_var=LD_LIBRARY_PATH
 
19560
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19561
    case $host_os in
 
19562
      openbsd2.[89] | openbsd2.[89].*)
 
19563
        shlibpath_overrides_runpath=no
 
19564
        ;;
 
19565
      *)
 
19566
        shlibpath_overrides_runpath=yes
 
19567
        ;;
 
19568
      esac
 
19569
  else
 
19570
    shlibpath_overrides_runpath=yes
 
19571
  fi
 
19572
  ;;
 
19573
 
 
19574
os2*)
 
19575
  libname_spec='$name'
 
19576
  shrext_cmds=".dll"
 
19577
  need_lib_prefix=no
 
19578
  library_names_spec='$libname${shared_ext} $libname.a'
 
19579
  dynamic_linker='OS/2 ld.exe'
 
19580
  shlibpath_var=LIBPATH
 
19581
  ;;
 
19582
 
 
19583
osf3* | osf4* | osf5*)
 
19584
  version_type=osf
 
19585
  need_lib_prefix=no
 
19586
  need_version=no
 
19587
  soname_spec='${libname}${release}${shared_ext}$major'
 
19588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19589
  shlibpath_var=LD_LIBRARY_PATH
 
19590
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19591
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19592
  ;;
 
19593
 
 
19594
sco3.2v5*)
 
19595
  version_type=osf
 
19596
  soname_spec='${libname}${release}${shared_ext}$major'
 
19597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19598
  shlibpath_var=LD_LIBRARY_PATH
 
19599
  ;;
 
19600
 
 
19601
solaris*)
 
19602
  version_type=linux
 
19603
  need_lib_prefix=no
 
19604
  need_version=no
 
19605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19606
  soname_spec='${libname}${release}${shared_ext}$major'
 
19607
  shlibpath_var=LD_LIBRARY_PATH
 
19608
  shlibpath_overrides_runpath=yes
 
19609
  hardcode_into_libs=yes
 
19610
  # ldd complains unless libraries are executable
 
19611
  postinstall_cmds='chmod +x $lib'
 
19612
  ;;
 
19613
 
 
19614
sunos4*)
 
19615
  version_type=sunos
 
19616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19617
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19618
  shlibpath_var=LD_LIBRARY_PATH
 
19619
  shlibpath_overrides_runpath=yes
 
19620
  if test "$with_gnu_ld" = yes; then
 
19621
    need_lib_prefix=no
 
19622
  fi
 
19623
  need_version=yes
 
19624
  ;;
 
19625
 
 
19626
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19627
  version_type=linux
 
19628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19629
  soname_spec='${libname}${release}${shared_ext}$major'
 
19630
  shlibpath_var=LD_LIBRARY_PATH
 
19631
  case $host_vendor in
 
19632
    sni)
 
19633
      shlibpath_overrides_runpath=no
 
19634
      need_lib_prefix=no
 
19635
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19636
      runpath_var=LD_RUN_PATH
 
19637
      ;;
 
19638
    siemens)
 
19639
      need_lib_prefix=no
 
19640
      ;;
 
19641
    motorola)
 
19642
      need_lib_prefix=no
 
19643
      need_version=no
 
19644
      shlibpath_overrides_runpath=no
 
19645
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19646
      ;;
 
19647
  esac
 
19648
  ;;
 
19649
 
 
19650
sysv4*MP*)
 
19651
  if test -d /usr/nec ;then
 
19652
    version_type=linux
 
19653
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19654
    soname_spec='$libname${shared_ext}.$major'
 
19655
    shlibpath_var=LD_LIBRARY_PATH
 
19656
  fi
 
19657
  ;;
 
19658
 
 
19659
uts4*)
 
19660
  version_type=linux
 
19661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19662
  soname_spec='${libname}${release}${shared_ext}$major'
 
19663
  shlibpath_var=LD_LIBRARY_PATH
 
19664
  ;;
 
19665
 
 
19666
*)
 
19667
  dynamic_linker=no
 
19668
  ;;
 
19669
esac
 
19670
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19671
echo "${ECHO_T}$dynamic_linker" >&6
 
19672
test "$dynamic_linker" = no && can_build_shared=no
 
19673
 
 
19674
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19675
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19676
hardcode_action_F77=
 
19677
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
19678
   test -n "$runpath_var_F77" || \
 
19679
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
19680
 
 
19681
  # We can hardcode non-existant directories.
 
19682
  if test "$hardcode_direct_F77" != no &&
 
19683
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19684
     # have to relink, otherwise we might link with an installed library
 
19685
     # when we should be linking with a yet-to-be-installed one
 
19686
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
19687
     test "$hardcode_minus_L_F77" != no; then
 
19688
    # Linking always hardcodes the temporary library directory.
 
19689
    hardcode_action_F77=relink
 
19690
  else
 
19691
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19692
    hardcode_action_F77=immediate
 
19693
  fi
 
19694
else
 
19695
  # We cannot hardcode anything, or else we can only hardcode existing
 
19696
  # directories.
 
19697
  hardcode_action_F77=unsupported
 
19698
fi
 
19699
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
19700
echo "${ECHO_T}$hardcode_action_F77" >&6
 
19701
 
 
19702
if test "$hardcode_action_F77" = relink; then
 
19703
  # Fast installation is not supported
 
19704
  enable_fast_install=no
 
19705
elif test "$shlibpath_overrides_runpath" = yes ||
 
19706
     test "$enable_shared" = no; then
 
19707
  # Fast installation is not necessary
 
19708
  enable_fast_install=needless
 
19709
fi
 
19710
 
 
19711
striplib=
 
19712
old_striplib=
 
19713
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
19714
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
19715
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
19716
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
19717
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
19718
  echo "$as_me:$LINENO: result: yes" >&5
 
19719
echo "${ECHO_T}yes" >&6
 
19720
else
 
19721
# FIXME - insert some real tests, host_os isn't really good enough
 
19722
  case $host_os in
 
19723
   darwin*)
 
19724
       if test -n "$STRIP" ; then
 
19725
         striplib="$STRIP -x"
 
19726
         echo "$as_me:$LINENO: result: yes" >&5
 
19727
echo "${ECHO_T}yes" >&6
 
19728
       else
 
19729
  echo "$as_me:$LINENO: result: no" >&5
 
19730
echo "${ECHO_T}no" >&6
 
19731
fi
 
19732
       ;;
 
19733
   *)
 
19734
  echo "$as_me:$LINENO: result: no" >&5
 
19735
echo "${ECHO_T}no" >&6
 
19736
    ;;
 
19737
  esac
 
19738
fi
 
19739
 
 
19740
 
 
19741
 
 
19742
# The else clause should only fire when bootstrapping the
 
19743
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19744
# with your package, and you will get complaints that there are
 
19745
# no rules to generate ltmain.sh.
 
19746
if test -f "$ltmain"; then
 
19747
  # See if we are running on zsh, and set the options which allow our commands through
 
19748
  # without removal of \ escapes.
 
19749
  if test -n "${ZSH_VERSION+set}" ; then
 
19750
    setopt NO_GLOB_SUBST
 
19751
  fi
 
19752
  # Now quote all the things that may contain metacharacters while being
 
19753
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19754
  # variables and quote the copies for generation of the libtool script.
 
19755
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19756
    SED SHELL STRIP \
 
19757
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19758
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19759
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19760
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19761
    lt_cv_sys_global_symbol_to_c_name_address \
 
19762
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19763
    old_postinstall_cmds old_postuninstall_cmds \
 
19764
    compiler_F77 \
 
19765
    CC_F77 \
 
19766
    LD_F77 \
 
19767
    lt_prog_compiler_wl_F77 \
 
19768
    lt_prog_compiler_pic_F77 \
 
19769
    lt_prog_compiler_static_F77 \
 
19770
    lt_prog_compiler_no_builtin_flag_F77 \
 
19771
    export_dynamic_flag_spec_F77 \
 
19772
    thread_safe_flag_spec_F77 \
 
19773
    whole_archive_flag_spec_F77 \
 
19774
    enable_shared_with_static_runtimes_F77 \
 
19775
    old_archive_cmds_F77 \
 
19776
    old_archive_from_new_cmds_F77 \
 
19777
    predep_objects_F77 \
 
19778
    postdep_objects_F77 \
 
19779
    predeps_F77 \
 
19780
    postdeps_F77 \
 
19781
    compiler_lib_search_path_F77 \
 
19782
    archive_cmds_F77 \
 
19783
    archive_expsym_cmds_F77 \
 
19784
    postinstall_cmds_F77 \
 
19785
    postuninstall_cmds_F77 \
 
19786
    old_archive_from_expsyms_cmds_F77 \
 
19787
    allow_undefined_flag_F77 \
 
19788
    no_undefined_flag_F77 \
 
19789
    export_symbols_cmds_F77 \
 
19790
    hardcode_libdir_flag_spec_F77 \
 
19791
    hardcode_libdir_flag_spec_ld_F77 \
 
19792
    hardcode_libdir_separator_F77 \
 
19793
    hardcode_automatic_F77 \
 
19794
    module_cmds_F77 \
 
19795
    module_expsym_cmds_F77 \
 
19796
    lt_cv_prog_compiler_c_o_F77 \
 
19797
    exclude_expsyms_F77 \
 
19798
    include_expsyms_F77; do
 
19799
 
 
19800
    case $var in
 
19801
    old_archive_cmds_F77 | \
 
19802
    old_archive_from_new_cmds_F77 | \
 
19803
    archive_cmds_F77 | \
 
19804
    archive_expsym_cmds_F77 | \
 
19805
    module_cmds_F77 | \
 
19806
    module_expsym_cmds_F77 | \
 
19807
    old_archive_from_expsyms_cmds_F77 | \
 
19808
    export_symbols_cmds_F77 | \
 
19809
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19810
    postinstall_cmds | postuninstall_cmds | \
 
19811
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19812
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19813
      # Double-quote double-evaled strings.
 
19814
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19815
      ;;
 
19816
    *)
 
19817
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19818
      ;;
 
19819
    esac
 
19820
  done
 
19821
 
 
19822
  case $lt_echo in
 
19823
  *'\$0 --fallback-echo"')
 
19824
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19825
    ;;
 
19826
  esac
 
19827
 
 
19828
cfgfile="$ofile"
 
19829
 
 
19830
  cat <<__EOF__ >> "$cfgfile"
 
19831
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19832
 
 
19833
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19834
 
 
19835
# Shell to use when invoking shell scripts.
 
19836
SHELL=$lt_SHELL
 
19837
 
 
19838
# Whether or not to build shared libraries.
 
19839
build_libtool_libs=$enable_shared
 
19840
 
 
19841
# Whether or not to build static libraries.
 
19842
build_old_libs=$enable_static
 
19843
 
 
19844
# Whether or not to add -lc for building shared libraries.
 
19845
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
19846
 
 
19847
# Whether or not to disallow shared libs when runtime libs are static
 
19848
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
19849
 
 
19850
# Whether or not to optimize for fast installation.
 
19851
fast_install=$enable_fast_install
 
19852
 
 
19853
# The host system.
 
19854
host_alias=$host_alias
 
19855
host=$host
 
19856
host_os=$host_os
 
19857
 
 
19858
# The build system.
 
19859
build_alias=$build_alias
 
19860
build=$build
 
19861
build_os=$build_os
 
19862
 
 
19863
# An echo program that does not interpret backslashes.
 
19864
echo=$lt_echo
 
19865
 
 
19866
# The archiver.
 
19867
AR=$lt_AR
 
19868
AR_FLAGS=$lt_AR_FLAGS
 
19869
 
 
19870
# A C compiler.
 
19871
LTCC=$lt_LTCC
 
19872
 
 
19873
# A language-specific compiler.
 
19874
CC=$lt_compiler_F77
 
19875
 
 
19876
# Is the compiler the GNU C compiler?
 
19877
with_gcc=$GCC_F77
 
19878
 
 
19879
# An ERE matcher.
 
19880
EGREP=$lt_EGREP
 
19881
 
 
19882
# The linker used to build libraries.
 
19883
LD=$lt_LD_F77
 
19884
 
 
19885
# Whether we need hard or soft links.
 
19886
LN_S=$lt_LN_S
 
19887
 
 
19888
# A BSD-compatible nm program.
 
19889
NM=$lt_NM
 
19890
 
 
19891
# A symbol stripping program
 
19892
STRIP=$lt_STRIP
 
19893
 
 
19894
# Used to examine libraries when file_magic_cmd begins "file"
 
19895
MAGIC_CMD=$MAGIC_CMD
 
19896
 
 
19897
# Used on cygwin: DLL creation program.
 
19898
DLLTOOL="$DLLTOOL"
 
19899
 
 
19900
# Used on cygwin: object dumper.
 
19901
OBJDUMP="$OBJDUMP"
 
19902
 
 
19903
# Used on cygwin: assembler.
 
19904
AS="$AS"
 
19905
 
 
19906
# The name of the directory that contains temporary libtool files.
 
19907
objdir=$objdir
 
19908
 
 
19909
# How to create reloadable object files.
 
19910
reload_flag=$lt_reload_flag
 
19911
reload_cmds=$lt_reload_cmds
 
19912
 
 
19913
# How to pass a linker flag through the compiler.
 
19914
wl=$lt_lt_prog_compiler_wl_F77
 
19915
 
 
19916
# Object file suffix (normally "o").
 
19917
objext="$ac_objext"
 
19918
 
 
19919
# Old archive suffix (normally "a").
 
19920
libext="$libext"
 
19921
 
 
19922
# Shared library suffix (normally ".so").
 
19923
shrext_cmds='$shrext_cmds'
 
19924
 
 
19925
# Executable file suffix (normally "").
 
19926
exeext="$exeext"
 
19927
 
 
19928
# Additional compiler flags for building library objects.
 
19929
pic_flag=$lt_lt_prog_compiler_pic_F77
 
19930
pic_mode=$pic_mode
 
19931
 
 
19932
# What is the maximum length of a command?
 
19933
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19934
 
 
19935
# Does compiler simultaneously support -c and -o options?
 
19936
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
19937
 
 
19938
# Must we lock files when doing compilation?
 
19939
need_locks=$lt_need_locks
 
19940
 
 
19941
# Do we need the lib prefix for modules?
 
19942
need_lib_prefix=$need_lib_prefix
 
19943
 
 
19944
# Do we need a version for libraries?
 
19945
need_version=$need_version
 
19946
 
 
19947
# Whether dlopen is supported.
 
19948
dlopen_support=$enable_dlopen
 
19949
 
 
19950
# Whether dlopen of programs is supported.
 
19951
dlopen_self=$enable_dlopen_self
 
19952
 
 
19953
# Whether dlopen of statically linked programs is supported.
 
19954
dlopen_self_static=$enable_dlopen_self_static
 
19955
 
 
19956
# Compiler flag to prevent dynamic linking.
 
19957
link_static_flag=$lt_lt_prog_compiler_static_F77
 
19958
 
 
19959
# Compiler flag to turn off builtin functions.
 
19960
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
19961
 
 
19962
# Compiler flag to allow reflexive dlopens.
 
19963
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
19964
 
 
19965
# Compiler flag to generate shared objects directly from archives.
 
19966
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
19967
 
 
19968
# Compiler flag to generate thread-safe objects.
 
19969
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
19970
 
 
19971
# Library versioning type.
 
19972
version_type=$version_type
 
19973
 
 
19974
# Format of library name prefix.
 
19975
libname_spec=$lt_libname_spec
 
19976
 
 
19977
# List of archive names.  First name is the real one, the rest are links.
 
19978
# The last name is the one that the linker finds with -lNAME.
 
19979
library_names_spec=$lt_library_names_spec
 
19980
 
 
19981
# The coded name of the library, if different from the real name.
 
19982
soname_spec=$lt_soname_spec
 
19983
 
 
19984
# Commands used to build and install an old-style archive.
 
19985
RANLIB=$lt_RANLIB
 
19986
old_archive_cmds=$lt_old_archive_cmds_F77
 
19987
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19988
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19989
 
 
19990
# Create an old-style archive from a shared archive.
 
19991
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
19992
 
 
19993
# Create a temporary old-style archive to link instead of a shared archive.
 
19994
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
19995
 
 
19996
# Commands used to build and install a shared archive.
 
19997
archive_cmds=$lt_archive_cmds_F77
 
19998
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
19999
postinstall_cmds=$lt_postinstall_cmds
 
20000
postuninstall_cmds=$lt_postuninstall_cmds
 
20001
 
 
20002
# Commands used to build a loadable module (assumed same as above if empty)
 
20003
module_cmds=$lt_module_cmds_F77
 
20004
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
20005
 
 
20006
# Commands to strip libraries.
 
20007
old_striplib=$lt_old_striplib
 
20008
striplib=$lt_striplib
 
20009
 
 
20010
# Dependencies to place before the objects being linked to create a
 
20011
# shared library.
 
20012
predep_objects=$lt_predep_objects_F77
 
20013
 
 
20014
# Dependencies to place after the objects being linked to create a
 
20015
# shared library.
 
20016
postdep_objects=$lt_postdep_objects_F77
 
20017
 
 
20018
# Dependencies to place before the objects being linked to create a
 
20019
# shared library.
 
20020
predeps=$lt_predeps_F77
 
20021
 
 
20022
# Dependencies to place after the objects being linked to create a
 
20023
# shared library.
 
20024
postdeps=$lt_postdeps_F77
 
20025
 
 
20026
# The library search path used internally by the compiler when linking
 
20027
# a shared library.
 
20028
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
20029
 
 
20030
# Method to check whether dependent libraries are shared objects.
 
20031
deplibs_check_method=$lt_deplibs_check_method
 
20032
 
 
20033
# Command to use when deplibs_check_method == file_magic.
 
20034
file_magic_cmd=$lt_file_magic_cmd
 
20035
 
 
20036
# Flag that allows shared libraries with undefined symbols to be built.
 
20037
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
20038
 
 
20039
# Flag that forces no undefined symbols.
 
20040
no_undefined_flag=$lt_no_undefined_flag_F77
 
20041
 
 
20042
# Commands used to finish a libtool library installation in a directory.
 
20043
finish_cmds=$lt_finish_cmds
 
20044
 
 
20045
# Same as above, but a single script fragment to be evaled but not shown.
 
20046
finish_eval=$lt_finish_eval
 
20047
 
 
20048
# Take the output of nm and produce a listing of raw symbols and C names.
 
20049
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20050
 
 
20051
# Transform the output of nm in a proper C declaration
 
20052
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20053
 
 
20054
# Transform the output of nm in a C name address pair
 
20055
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20056
 
 
20057
# This is the shared library runtime path variable.
 
20058
runpath_var=$runpath_var
 
20059
 
 
20060
# This is the shared library path variable.
 
20061
shlibpath_var=$shlibpath_var
 
20062
 
 
20063
# Is shlibpath searched before the hard-coded library search path?
 
20064
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20065
 
 
20066
# How to hardcode a shared library path into an executable.
 
20067
hardcode_action=$hardcode_action_F77
 
20068
 
 
20069
# Whether we should hardcode library paths into libraries.
 
20070
hardcode_into_libs=$hardcode_into_libs
 
20071
 
 
20072
# Flag to hardcode \$libdir into a binary during linking.
 
20073
# This must work even if \$libdir does not exist.
 
20074
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
20075
 
 
20076
# If ld is used when linking, flag to hardcode \$libdir into
 
20077
# a binary during linking. This must work even if \$libdir does
 
20078
# not exist.
 
20079
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
20080
 
 
20081
# Whether we need a single -rpath flag with a separated argument.
 
20082
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
20083
 
 
20084
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20085
# resulting binary.
 
20086
hardcode_direct=$hardcode_direct_F77
 
20087
 
 
20088
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20089
# resulting binary.
 
20090
hardcode_minus_L=$hardcode_minus_L_F77
 
20091
 
 
20092
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20093
# the resulting binary.
 
20094
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
20095
 
 
20096
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20097
# and all subsequent libraries and executables linked against it.
 
20098
hardcode_automatic=$hardcode_automatic_F77
 
20099
 
 
20100
# Variables whose values should be saved in libtool wrapper scripts and
 
20101
# restored at relink time.
 
20102
variables_saved_for_relink="$variables_saved_for_relink"
 
20103
 
 
20104
# Whether libtool must link a program against all its dependency libraries.
 
20105
link_all_deplibs=$link_all_deplibs_F77
 
20106
 
 
20107
# Compile-time system search path for libraries
 
20108
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20109
 
 
20110
# Run-time system search path for libraries
 
20111
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20112
 
 
20113
# Fix the shell variable \$srcfile for the compiler.
 
20114
fix_srcfile_path="$fix_srcfile_path_F77"
 
20115
 
 
20116
# Set to yes if exported symbols are required.
 
20117
always_export_symbols=$always_export_symbols_F77
 
20118
 
 
20119
# The commands to list exported symbols.
 
20120
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
20121
 
 
20122
# The commands to extract the exported symbol list from a shared archive.
 
20123
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20124
 
 
20125
# Symbols that should not be listed in the preloaded symbols.
 
20126
exclude_expsyms=$lt_exclude_expsyms_F77
 
20127
 
 
20128
# Symbols that must always be exported.
 
20129
include_expsyms=$lt_include_expsyms_F77
 
20130
 
 
20131
# ### END LIBTOOL TAG CONFIG: $tagname
 
20132
 
 
20133
__EOF__
 
20134
 
 
20135
 
 
20136
else
 
20137
  # If there is no Makefile yet, we rely on a make rule to execute
 
20138
  # `config.status --recheck' to rerun these tests and create the
 
20139
  # libtool script then.
 
20140
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20141
  if test -f "$ltmain_in"; then
 
20142
    test -f Makefile && make "$ltmain"
 
20143
  fi
 
20144
fi
 
20145
 
 
20146
 
 
20147
ac_ext=c
 
20148
ac_cpp='$CPP $CPPFLAGS'
 
20149
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20150
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20151
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20152
 
 
20153
CC="$lt_save_CC"
 
20154
 
 
20155
        else
 
20156
          tagname=""
 
20157
        fi
 
20158
        ;;
 
20159
 
 
20160
      GCJ)
 
20161
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
20162
 
 
20163
 
 
20164
 
 
20165
# Source file extension for Java test sources.
 
20166
ac_ext=java
 
20167
 
 
20168
# Object file extension for compiled Java test sources.
 
20169
objext=o
 
20170
objext_GCJ=$objext
 
20171
 
 
20172
# Code to be used in simple compile tests
 
20173
lt_simple_compile_test_code="class foo {}\n"
 
20174
 
 
20175
# Code to be used in simple link tests
 
20176
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
20177
 
 
20178
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20179
 
 
20180
# If no C compiler was specified, use CC.
 
20181
LTCC=${LTCC-"$CC"}
 
20182
 
 
20183
# Allow CC to be a program name with arguments.
 
20184
compiler=$CC
 
20185
 
 
20186
 
 
20187
# save warnings/boilerplate of simple test code
 
20188
ac_outfile=conftest.$ac_objext
 
20189
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
20190
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
20191
_lt_compiler_boilerplate=`cat conftest.err`
 
20192
$rm conftest*
 
20193
 
 
20194
ac_outfile=conftest.$ac_objext
 
20195
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
20196
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
20197
_lt_linker_boilerplate=`cat conftest.err`
 
20198
$rm conftest*
 
20199
 
 
20200
 
 
20201
# Allow CC to be a program name with arguments.
 
20202
lt_save_CC="$CC"
 
20203
CC=${GCJ-"gcj"}
 
20204
compiler=$CC
 
20205
compiler_GCJ=$CC
 
20206
for cc_temp in $compiler""; do
 
20207
  case $cc_temp in
 
20208
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
20209
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
20210
    \-*) ;;
 
20211
    *) break;;
 
20212
  esac
 
20213
done
 
20214
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
20215
 
 
20216
 
 
20217
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
20218
archive_cmds_need_lc_GCJ=no
 
20219
 
 
20220
old_archive_cmds_GCJ=$old_archive_cmds
 
20221
 
 
20222
## CAVEAT EMPTOR:
 
20223
## There is no encapsulation within the following macros, do not change
 
20224
## the running order or otherwise move them around unless you know exactly
 
20225
## what you are doing...
 
20226
 
 
20227
lt_prog_compiler_no_builtin_flag_GCJ=
 
20228
 
 
20229
if test "$GCC" = yes; then
 
20230
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
20231
 
 
20232
 
 
20233
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
20234
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
20235
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
20236
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20237
else
 
20238
  lt_cv_prog_compiler_rtti_exceptions=no
 
20239
  ac_outfile=conftest.$ac_objext
 
20240
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20241
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
20242
   # Insert the option either (1) after the last *FLAGS variable, or
 
20243
   # (2) before a word containing "conftest.", or (3) at the end.
 
20244
   # Note that $ac_compile itself does not contain backslashes and begins
 
20245
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
20246
   # The option is referenced via a variable to avoid confusing sed.
 
20247
   lt_compile=`echo "$ac_compile" | $SED \
 
20248
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
20249
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
20250
   -e 's:$: $lt_compiler_flag:'`
 
20251
   (eval echo "\"\$as_me:20251: $lt_compile\"" >&5)
 
20252
   (eval "$lt_compile" 2>conftest.err)
 
20253
   ac_status=$?
 
20254
   cat conftest.err >&5
 
20255
   echo "$as_me:20255: \$? = $ac_status" >&5
 
20256
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
20257
     # The compiler can only warn and ignore the option if not recognized
 
20258
     # So say no if there are warnings other than the usual output.
 
20259
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
20260
     $SED '/^$/d' conftest.err >conftest.er2
 
20261
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
20262
       lt_cv_prog_compiler_rtti_exceptions=yes
 
20263
     fi
 
20264
   fi
 
20265
   $rm conftest*
 
20266
 
 
20267
fi
 
20268
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
20269
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
20270
 
 
20271
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
20272
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
20273
else
 
20274
    :
 
20275
fi
 
20276
 
 
20277
fi
 
20278
 
 
20279
lt_prog_compiler_wl_GCJ=
 
20280
lt_prog_compiler_pic_GCJ=
 
20281
lt_prog_compiler_static_GCJ=
 
20282
 
 
20283
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
20284
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
20285
 
 
20286
  if test "$GCC" = yes; then
 
20287
    lt_prog_compiler_wl_GCJ='-Wl,'
 
20288
    lt_prog_compiler_static_GCJ='-static'
 
20289
 
 
20290
    case $host_os in
 
20291
      aix*)
 
20292
      # All AIX code is PIC.
 
20293
      if test "$host_cpu" = ia64; then
 
20294
        # AIX 5 now supports IA64 processor
 
20295
        lt_prog_compiler_static_GCJ='-Bstatic'
 
20296
      fi
 
20297
      ;;
 
20298
 
 
20299
    amigaos*)
 
20300
      # FIXME: we need at least 68020 code to build shared libraries, but
 
20301
      # adding the `-m68020' flag to GCC prevents building anything better,
 
20302
      # like `-m68040'.
 
20303
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
20304
      ;;
 
20305
 
 
20306
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
20307
      # PIC is the default for these OSes.
 
20308
      ;;
 
20309
 
 
20310
    mingw* | pw32* | os2*)
 
20311
      # This hack is so that the source file can tell whether it is being
 
20312
      # built for inclusion in a dll (and should export symbols for example).
 
20313
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
20314
      ;;
 
20315
 
 
20316
    darwin* | rhapsody*)
 
20317
      # PIC is the default on this platform
 
20318
      # Common symbols not allowed in MH_DYLIB files
 
20319
      lt_prog_compiler_pic_GCJ='-fno-common'
 
20320
      ;;
 
20321
 
 
20322
    msdosdjgpp*)
 
20323
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
20324
      # on systems that don't support them.
 
20325
      lt_prog_compiler_can_build_shared_GCJ=no
 
20326
      enable_shared=no
 
20327
      ;;
 
20328
 
 
20329
    sysv4*MP*)
 
20330
      if test -d /usr/nec; then
 
20331
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
20332
      fi
 
20333
      ;;
 
20334
 
 
20335
    hpux*)
 
20336
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
20337
      # not for PA HP-UX.
 
20338
      case $host_cpu in
 
20339
      hppa*64*|ia64*)
 
20340
        # +Z the default
 
20341
        ;;
 
20342
      *)
 
20343
        lt_prog_compiler_pic_GCJ='-fPIC'
 
20344
        ;;
 
20345
      esac
 
20346
      ;;
 
20347
 
 
20348
    *)
 
20349
      lt_prog_compiler_pic_GCJ='-fPIC'
 
20350
      ;;
 
20351
    esac
 
20352
  else
 
20353
    # PORTME Check for flag to pass linker flags through the system compiler.
 
20354
    case $host_os in
 
20355
    aix*)
 
20356
      lt_prog_compiler_wl_GCJ='-Wl,'
 
20357
      if test "$host_cpu" = ia64; then
 
20358
        # AIX 5 now supports IA64 processor
 
20359
        lt_prog_compiler_static_GCJ='-Bstatic'
 
20360
      else
 
20361
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
20362
      fi
 
20363
      ;;
 
20364
      darwin*)
 
20365
        # PIC is the default on this platform
 
20366
        # Common symbols not allowed in MH_DYLIB files
 
20367
       case $cc_basename in
 
20368
         xlc*)
 
20369
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
20370
         lt_prog_compiler_wl_GCJ='-Wl,'
 
20371
         ;;
 
20372
       esac
 
20373
       ;;
 
20374
 
 
20375
    mingw* | pw32* | os2*)
 
20376
      # This hack is so that the source file can tell whether it is being
 
20377
      # built for inclusion in a dll (and should export symbols for example).
 
20378
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
20379
      ;;
 
20380
 
 
20381
    hpux9* | hpux10* | hpux11*)
 
20382
      lt_prog_compiler_wl_GCJ='-Wl,'
 
20383
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
20384
      # not for PA HP-UX.
 
20385
      case $host_cpu in
 
20386
      hppa*64*|ia64*)
 
20387
        # +Z the default
 
20388
        ;;
 
20389
      *)
 
20390
        lt_prog_compiler_pic_GCJ='+Z'
 
20391
        ;;
 
20392
      esac
 
20393
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
20394
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
20395
      ;;
 
20396
 
 
20397
    irix5* | irix6* | nonstopux*)
 
20398
      lt_prog_compiler_wl_GCJ='-Wl,'
 
20399
      # PIC (with -KPIC) is the default.
 
20400
      lt_prog_compiler_static_GCJ='-non_shared'
 
20401
      ;;
 
20402
 
 
20403
    newsos6)
 
20404
      lt_prog_compiler_pic_GCJ='-KPIC'
 
20405
      lt_prog_compiler_static_GCJ='-Bstatic'
 
20406
      ;;
 
20407
 
 
20408
    linux*)
 
20409
      case $cc_basename in
 
20410
      icc* | ecc*)
 
20411
        lt_prog_compiler_wl_GCJ='-Wl,'
 
20412
        lt_prog_compiler_pic_GCJ='-KPIC'
 
20413
        lt_prog_compiler_static_GCJ='-static'
 
20414
        ;;
 
20415
      pgcc* | pgf77* | pgf90* | pgf95*)
 
20416
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
20417
        # which looks to be a dead project)
 
20418
        lt_prog_compiler_wl_GCJ='-Wl,'
 
20419
        lt_prog_compiler_pic_GCJ='-fpic'
 
20420
        lt_prog_compiler_static_GCJ='-Bstatic'
 
20421
        ;;
 
20422
      ccc*)
 
20423
        lt_prog_compiler_wl_GCJ='-Wl,'
 
20424
        # All Alpha code is PIC.
 
20425
        lt_prog_compiler_static_GCJ='-non_shared'
 
20426
        ;;
 
20427
      esac
 
20428
      ;;
 
20429
 
 
20430
    osf3* | osf4* | osf5*)
 
20431
      lt_prog_compiler_wl_GCJ='-Wl,'
 
20432
      # All OSF/1 code is PIC.
 
20433
      lt_prog_compiler_static_GCJ='-non_shared'
 
20434
      ;;
 
20435
 
 
20436
    sco3.2v5*)
 
20437
      lt_prog_compiler_pic_GCJ='-Kpic'
 
20438
      lt_prog_compiler_static_GCJ='-dn'
 
20439
      ;;
 
20440
 
 
20441
    solaris*)
 
20442
      lt_prog_compiler_pic_GCJ='-KPIC'
 
20443
      lt_prog_compiler_static_GCJ='-Bstatic'
 
20444
      case $cc_basename in
 
20445
      f77* | f90* | f95*)
 
20446
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
20447
      *)
 
20448
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
20449
      esac
 
20450
      ;;
 
20451
 
 
20452
    sunos4*)
 
20453
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
20454
      lt_prog_compiler_pic_GCJ='-PIC'
 
20455
      lt_prog_compiler_static_GCJ='-Bstatic'
 
20456
      ;;
 
20457
 
 
20458
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
20459
      lt_prog_compiler_wl_GCJ='-Wl,'
 
20460
      lt_prog_compiler_pic_GCJ='-KPIC'
 
20461
      lt_prog_compiler_static_GCJ='-Bstatic'
 
20462
      ;;
 
20463
 
 
20464
    sysv4*MP*)
 
20465
      if test -d /usr/nec ;then
 
20466
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
20467
        lt_prog_compiler_static_GCJ='-Bstatic'
 
20468
      fi
 
20469
      ;;
 
20470
 
 
20471
    unicos*)
 
20472
      lt_prog_compiler_wl_GCJ='-Wl,'
 
20473
      lt_prog_compiler_can_build_shared_GCJ=no
 
20474
      ;;
 
20475
 
 
20476
    uts4*)
 
20477
      lt_prog_compiler_pic_GCJ='-pic'
 
20478
      lt_prog_compiler_static_GCJ='-Bstatic'
 
20479
      ;;
 
20480
 
 
20481
    *)
 
20482
      lt_prog_compiler_can_build_shared_GCJ=no
 
20483
      ;;
 
20484
    esac
 
20485
  fi
 
20486
 
 
20487
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
20488
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
20489
 
 
20490
#
 
20491
# Check to make sure the PIC flag actually works.
 
20492
#
 
20493
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
20494
 
 
20495
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
20496
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
20497
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
20498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20499
else
 
20500
  lt_prog_compiler_pic_works_GCJ=no
 
20501
  ac_outfile=conftest.$ac_objext
 
20502
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20503
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
20504
   # Insert the option either (1) after the last *FLAGS variable, or
 
20505
   # (2) before a word containing "conftest.", or (3) at the end.
 
20506
   # Note that $ac_compile itself does not contain backslashes and begins
 
20507
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
20508
   # The option is referenced via a variable to avoid confusing sed.
 
20509
   lt_compile=`echo "$ac_compile" | $SED \
 
20510
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
20511
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
20512
   -e 's:$: $lt_compiler_flag:'`
 
20513
   (eval echo "\"\$as_me:20513: $lt_compile\"" >&5)
 
20514
   (eval "$lt_compile" 2>conftest.err)
 
20515
   ac_status=$?
 
20516
   cat conftest.err >&5
 
20517
   echo "$as_me:20517: \$? = $ac_status" >&5
 
20518
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
20519
     # The compiler can only warn and ignore the option if not recognized
 
20520
     # So say no if there are warnings other than the usual output.
 
20521
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
20522
     $SED '/^$/d' conftest.err >conftest.er2
 
20523
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
20524
       lt_prog_compiler_pic_works_GCJ=yes
 
20525
     fi
 
20526
   fi
 
20527
   $rm conftest*
 
20528
 
 
20529
fi
 
20530
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
20531
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
20532
 
 
20533
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
20534
    case $lt_prog_compiler_pic_GCJ in
 
20535
     "" | " "*) ;;
 
20536
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
20537
     esac
 
20538
else
 
20539
    lt_prog_compiler_pic_GCJ=
 
20540
     lt_prog_compiler_can_build_shared_GCJ=no
 
20541
fi
 
20542
 
 
20543
fi
 
20544
case $host_os in
 
20545
  # For platforms which do not support PIC, -DPIC is meaningless:
 
20546
  *djgpp*)
 
20547
    lt_prog_compiler_pic_GCJ=
 
20548
    ;;
 
20549
  *)
 
20550
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
20551
    ;;
 
20552
esac
 
20553
 
 
20554
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
20555
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
20556
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
20557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20558
else
 
20559
  lt_cv_prog_compiler_c_o_GCJ=no
 
20560
   $rm -r conftest 2>/dev/null
 
20561
   mkdir conftest
 
20562
   cd conftest
 
20563
   mkdir out
 
20564
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
20565
 
 
20566
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
20567
   # Insert the option either (1) after the last *FLAGS variable, or
 
20568
   # (2) before a word containing "conftest.", or (3) at the end.
 
20569
   # Note that $ac_compile itself does not contain backslashes and begins
 
20570
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
20571
   lt_compile=`echo "$ac_compile" | $SED \
 
20572
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
20573
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
20574
   -e 's:$: $lt_compiler_flag:'`
 
20575
   (eval echo "\"\$as_me:20575: $lt_compile\"" >&5)
 
20576
   (eval "$lt_compile" 2>out/conftest.err)
 
20577
   ac_status=$?
 
20578
   cat out/conftest.err >&5
 
20579
   echo "$as_me:20579: \$? = $ac_status" >&5
 
20580
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
20581
   then
 
20582
     # The compiler can only warn and ignore the option if not recognized
 
20583
     # So say no if there are warnings
 
20584
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
20585
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
20586
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
20587
       lt_cv_prog_compiler_c_o_GCJ=yes
 
20588
     fi
 
20589
   fi
 
20590
   chmod u+w . 2>&5
 
20591
   $rm conftest*
 
20592
   # SGI C++ compiler will create directory out/ii_files/ for
 
20593
   # template instantiation
 
20594
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
20595
   $rm out/* && rmdir out
 
20596
   cd ..
 
20597
   rmdir conftest
 
20598
   $rm conftest*
 
20599
 
 
20600
fi
 
20601
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
20602
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
20603
 
 
20604
 
 
20605
hard_links="nottested"
 
20606
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
20607
  # do not overwrite the value of need_locks provided by the user
 
20608
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
20609
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
20610
  hard_links=yes
 
20611
  $rm conftest*
 
20612
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
20613
  touch conftest.a
 
20614
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
20615
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
20616
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
20617
echo "${ECHO_T}$hard_links" >&6
 
20618
  if test "$hard_links" = no; then
 
20619
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
20620
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
20621
    need_locks=warn
 
20622
  fi
 
20623
else
 
20624
  need_locks=no
 
20625
fi
 
20626
 
 
20627
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
20628
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
20629
 
 
20630
  runpath_var=
 
20631
  allow_undefined_flag_GCJ=
 
20632
  enable_shared_with_static_runtimes_GCJ=no
 
20633
  archive_cmds_GCJ=
 
20634
  archive_expsym_cmds_GCJ=
 
20635
  old_archive_From_new_cmds_GCJ=
 
20636
  old_archive_from_expsyms_cmds_GCJ=
 
20637
  export_dynamic_flag_spec_GCJ=
 
20638
  whole_archive_flag_spec_GCJ=
 
20639
  thread_safe_flag_spec_GCJ=
 
20640
  hardcode_libdir_flag_spec_GCJ=
 
20641
  hardcode_libdir_flag_spec_ld_GCJ=
 
20642
  hardcode_libdir_separator_GCJ=
 
20643
  hardcode_direct_GCJ=no
 
20644
  hardcode_minus_L_GCJ=no
 
20645
  hardcode_shlibpath_var_GCJ=unsupported
 
20646
  link_all_deplibs_GCJ=unknown
 
20647
  hardcode_automatic_GCJ=no
 
20648
  module_cmds_GCJ=
 
20649
  module_expsym_cmds_GCJ=
 
20650
  always_export_symbols_GCJ=no
 
20651
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
20652
  # include_expsyms should be a list of space-separated symbols to be *always*
 
20653
  # included in the symbol list
 
20654
  include_expsyms_GCJ=
 
20655
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
20656
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
20657
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
20658
  # as well as any symbol that contains `d'.
 
20659
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
20660
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
20661
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
20662
  # the symbol is explicitly referenced.  Since portable code cannot
 
20663
  # rely on this symbol name, it's probably fine to never include it in
 
20664
  # preloaded symbol tables.
 
20665
  extract_expsyms_cmds=
 
20666
  # Just being paranoid about ensuring that cc_basename is set.
 
20667
  for cc_temp in $compiler""; do
 
20668
  case $cc_temp in
 
20669
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
20670
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
20671
    \-*) ;;
 
20672
    *) break;;
 
20673
  esac
 
20674
done
 
20675
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
20676
 
 
20677
  case $host_os in
 
20678
  cygwin* | mingw* | pw32*)
 
20679
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
20680
    # When not using gcc, we currently assume that we are using
 
20681
    # Microsoft Visual C++.
 
20682
    if test "$GCC" != yes; then
 
20683
      with_gnu_ld=no
 
20684
    fi
 
20685
    ;;
 
20686
  openbsd*)
 
20687
    with_gnu_ld=no
 
20688
    ;;
 
20689
  esac
 
20690
 
 
20691
  ld_shlibs_GCJ=yes
 
20692
  if test "$with_gnu_ld" = yes; then
 
20693
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
20694
    wlarc='${wl}'
 
20695
 
 
20696
    # Set some defaults for GNU ld with shared library support. These
 
20697
    # are reset later if shared libraries are not supported. Putting them
 
20698
    # here allows them to be overridden if necessary.
 
20699
    runpath_var=LD_RUN_PATH
 
20700
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
20701
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
20702
    # ancient GNU ld didn't support --whole-archive et. al.
 
20703
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
20704
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
20705
      else
 
20706
        whole_archive_flag_spec_GCJ=
 
20707
    fi
 
20708
    supports_anon_versioning=no
 
20709
    case `$LD -v 2>/dev/null` in
 
20710
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
20711
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
20712
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
20713
      *\ 2.11.*) ;; # other 2.11 versions
 
20714
      *) supports_anon_versioning=yes ;;
 
20715
    esac
 
20716
 
 
20717
    # See if GNU ld supports shared libraries.
 
20718
    case $host_os in
 
20719
    aix3* | aix4* | aix5*)
 
20720
      # On AIX/PPC, the GNU linker is very broken
 
20721
      if test "$host_cpu" != ia64; then
 
20722
        ld_shlibs_GCJ=no
 
20723
        cat <<EOF 1>&2
 
20724
 
 
20725
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
20726
*** to be unable to reliably create shared libraries on AIX.
 
20727
*** Therefore, libtool is disabling shared libraries support.  If you
 
20728
*** really care for shared libraries, you may want to modify your PATH
 
20729
*** so that a non-GNU linker is found, and then restart.
 
20730
 
 
20731
EOF
 
20732
      fi
 
20733
      ;;
 
20734
 
 
20735
    amigaos*)
 
20736
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
20737
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
20738
      hardcode_minus_L_GCJ=yes
 
20739
 
 
20740
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
20741
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
20742
      # to version 4, is to share data among multiple programs linked
 
20743
      # with the same dynamic library.  Since this doesn't match the
 
20744
      # behavior of shared libraries on other platforms, we can't use
 
20745
      # them.
 
20746
      ld_shlibs_GCJ=no
 
20747
      ;;
 
20748
 
 
20749
    beos*)
 
20750
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
20751
        allow_undefined_flag_GCJ=unsupported
 
20752
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
20753
        # support --undefined.  This deserves some investigation.  FIXME
 
20754
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20755
      else
 
20756
        ld_shlibs_GCJ=no
 
20757
      fi
 
20758
      ;;
 
20759
 
 
20760
    cygwin* | mingw* | pw32*)
 
20761
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
20762
      # as there is no search path for DLLs.
 
20763
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
20764
      allow_undefined_flag_GCJ=unsupported
 
20765
      always_export_symbols_GCJ=no
 
20766
      enable_shared_with_static_runtimes_GCJ=yes
 
20767
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
20768
 
 
20769
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
20770
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
20771
        # If the export-symbols file already is a .def file (1st line
 
20772
        # is EXPORTS), use it as is; otherwise, prepend...
 
20773
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
20774
          cp $export_symbols $output_objdir/$soname.def;
 
20775
        else
 
20776
          echo EXPORTS > $output_objdir/$soname.def;
 
20777
          cat $export_symbols >> $output_objdir/$soname.def;
 
20778
        fi~
 
20779
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
20780
      else
 
20781
        ld_shlibs_GCJ=no
 
20782
      fi
 
20783
      ;;
 
20784
 
 
20785
    linux*)
 
20786
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
20787
        tmp_addflag=
 
20788
        case $cc_basename,$host_cpu in
 
20789
        pgcc*)                          # Portland Group C compiler
 
20790
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
20791
          tmp_addflag=' $pic_flag'
 
20792
          ;;
 
20793
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
20794
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
20795
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
20796
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
20797
          tmp_addflag=' -i_dynamic' ;;
 
20798
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
20799
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
20800
        ifc* | ifort*)                  # Intel Fortran compiler
 
20801
          tmp_addflag=' -nofor_main' ;;
 
20802
        esac
 
20803
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20804
 
 
20805
        if test $supports_anon_versioning = yes; then
 
20806
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
20807
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
20808
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
20809
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
20810
        fi
 
20811
      else
 
20812
        ld_shlibs_GCJ=no
 
20813
      fi
 
20814
      ;;
 
20815
 
 
20816
    netbsd*)
 
20817
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
20818
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
20819
        wlarc=
 
20820
      else
 
20821
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20822
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
20823
      fi
 
20824
      ;;
 
20825
 
 
20826
    solaris* | sysv5*)
 
20827
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
20828
        ld_shlibs_GCJ=no
 
20829
        cat <<EOF 1>&2
 
20830
 
 
20831
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
20832
*** create shared libraries on Solaris systems.  Therefore, libtool
 
20833
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
20834
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
20835
*** your PATH or compiler configuration so that the native linker is
 
20836
*** used, and then restart.
 
20837
 
 
20838
EOF
 
20839
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
20840
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20841
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
20842
      else
 
20843
        ld_shlibs_GCJ=no
 
20844
      fi
 
20845
      ;;
 
20846
 
 
20847
    sunos4*)
 
20848
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
20849
      wlarc=
 
20850
      hardcode_direct_GCJ=yes
 
20851
      hardcode_shlibpath_var_GCJ=no
 
20852
      ;;
 
20853
 
 
20854
    *)
 
20855
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
20856
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
20857
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
20858
      else
 
20859
        ld_shlibs_GCJ=no
 
20860
      fi
 
20861
      ;;
 
20862
    esac
 
20863
 
 
20864
    if test "$ld_shlibs_GCJ" = no; then
 
20865
      runpath_var=
 
20866
      hardcode_libdir_flag_spec_GCJ=
 
20867
      export_dynamic_flag_spec_GCJ=
 
20868
      whole_archive_flag_spec_GCJ=
 
20869
    fi
 
20870
  else
 
20871
    # PORTME fill in a description of your system's linker (not GNU ld)
 
20872
    case $host_os in
 
20873
    aix3*)
 
20874
      allow_undefined_flag_GCJ=unsupported
 
20875
      always_export_symbols_GCJ=yes
 
20876
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
20877
      # Note: this linker hardcodes the directories in LIBPATH if there
 
20878
      # are no directories specified by -L.
 
20879
      hardcode_minus_L_GCJ=yes
 
20880
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
20881
        # Neither direct hardcoding nor static linking is supported with a
 
20882
        # broken collect2.
 
20883
        hardcode_direct_GCJ=unsupported
 
20884
      fi
 
20885
      ;;
 
20886
 
 
20887
    aix4* | aix5*)
 
20888
      if test "$host_cpu" = ia64; then
 
20889
        # On IA64, the linker does run time linking by default, so we don't
 
20890
        # have to do anything special.
 
20891
        aix_use_runtimelinking=no
 
20892
        exp_sym_flag='-Bexport'
 
20893
        no_entry_flag=""
 
20894
      else
 
20895
        # If we're using GNU nm, then we don't want the "-C" option.
 
20896
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
20897
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
20898
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
20899
        else
 
20900
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
20901
        fi
 
20902
        aix_use_runtimelinking=no
 
20903
 
 
20904
        # Test if we are trying to use run time linking or normal
 
20905
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
20906
        # need to do runtime linking.
 
20907
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
20908
          for ld_flag in $LDFLAGS; do
 
20909
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
20910
            aix_use_runtimelinking=yes
 
20911
            break
 
20912
          fi
 
20913
          done
 
20914
        esac
 
20915
 
 
20916
        exp_sym_flag='-bexport'
 
20917
        no_entry_flag='-bnoentry'
 
20918
      fi
 
20919
 
 
20920
      # When large executables or shared objects are built, AIX ld can
 
20921
      # have problems creating the table of contents.  If linking a library
 
20922
      # or program results in "error TOC overflow" add -mminimal-toc to
 
20923
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
20924
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
20925
 
 
20926
      archive_cmds_GCJ=''
 
20927
      hardcode_direct_GCJ=yes
 
20928
      hardcode_libdir_separator_GCJ=':'
 
20929
      link_all_deplibs_GCJ=yes
 
20930
 
 
20931
      if test "$GCC" = yes; then
 
20932
        case $host_os in aix4.[012]|aix4.[012].*)
 
20933
        # We only want to do this on AIX 4.2 and lower, the check
 
20934
        # below for broken collect2 doesn't work under 4.3+
 
20935
          collect2name=`${CC} -print-prog-name=collect2`
 
20936
          if test -f "$collect2name" && \
 
20937
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
20938
          then
 
20939
          # We have reworked collect2
 
20940
          hardcode_direct_GCJ=yes
 
20941
          else
 
20942
          # We have old collect2
 
20943
          hardcode_direct_GCJ=unsupported
 
20944
          # It fails to find uninstalled libraries when the uninstalled
 
20945
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
20946
          # to unsupported forces relinking
 
20947
          hardcode_minus_L_GCJ=yes
 
20948
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
20949
          hardcode_libdir_separator_GCJ=
 
20950
          fi
 
20951
        esac
 
20952
        shared_flag='-shared'
 
20953
        if test "$aix_use_runtimelinking" = yes; then
 
20954
          shared_flag="$shared_flag "'${wl}-G'
 
20955
        fi
 
20956
      else
 
20957
        # not using gcc
 
20958
        if test "$host_cpu" = ia64; then
 
20959
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
20960
        # chokes on -Wl,-G. The following line is correct:
 
20961
          shared_flag='-G'
 
20962
        else
 
20963
        if test "$aix_use_runtimelinking" = yes; then
 
20964
            shared_flag='${wl}-G'
 
20965
          else
 
20966
            shared_flag='${wl}-bM:SRE'
 
20967
        fi
 
20968
        fi
 
20969
      fi
 
20970
 
 
20971
      # It seems that -bexpall does not export symbols beginning with
 
20972
      # underscore (_), so it is better to generate a list of symbols to export.
 
20973
      always_export_symbols_GCJ=yes
 
20974
      if test "$aix_use_runtimelinking" = yes; then
 
20975
        # Warning - without using the other runtime loading flags (-brtl),
 
20976
        # -berok will link without error, but may produce a broken library.
 
20977
        allow_undefined_flag_GCJ='-berok'
 
20978
       # Determine the default libpath from the value encoded in an empty executable.
 
20979
       cat >conftest.$ac_ext <<_ACEOF
 
20980
/* confdefs.h.  */
 
20981
_ACEOF
 
20982
cat confdefs.h >>conftest.$ac_ext
 
20983
cat >>conftest.$ac_ext <<_ACEOF
 
20984
/* end confdefs.h.  */
 
20985
 
 
20986
int
 
20987
main ()
 
20988
{
 
20989
 
 
20990
  ;
 
20991
  return 0;
 
20992
}
 
20993
_ACEOF
 
20994
rm -f conftest.$ac_objext conftest$ac_exeext
 
20995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20996
  (eval $ac_link) 2>conftest.er1
 
20997
  ac_status=$?
 
20998
  grep -v '^ *+' conftest.er1 >conftest.err
 
20999
  rm -f conftest.er1
 
21000
  cat conftest.err >&5
 
21001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21002
  (exit $ac_status); } &&
 
21003
         { ac_try='test -z "$ac_c_werror_flag"
 
21004
                         || test ! -s conftest.err'
 
21005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21006
  (eval $ac_try) 2>&5
 
21007
  ac_status=$?
 
21008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21009
  (exit $ac_status); }; } &&
 
21010
         { ac_try='test -s conftest$ac_exeext'
 
21011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21012
  (eval $ac_try) 2>&5
 
21013
  ac_status=$?
 
21014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21015
  (exit $ac_status); }; }; then
 
21016
 
 
21017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21018
}'`
 
21019
# Check for a 64-bit object if we didn't find anything.
 
21020
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21021
}'`; fi
 
21022
else
 
21023
  echo "$as_me: failed program was:" >&5
 
21024
sed 's/^/| /' conftest.$ac_ext >&5
 
21025
 
 
21026
fi
 
21027
rm -f conftest.err conftest.$ac_objext \
 
21028
      conftest$ac_exeext conftest.$ac_ext
 
21029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
21030
 
 
21031
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
21032
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
21033
       else
 
21034
        if test "$host_cpu" = ia64; then
 
21035
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
21036
          allow_undefined_flag_GCJ="-z nodefs"
 
21037
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
21038
        else
 
21039
         # Determine the default libpath from the value encoded in an empty executable.
 
21040
         cat >conftest.$ac_ext <<_ACEOF
 
21041
/* confdefs.h.  */
 
21042
_ACEOF
 
21043
cat confdefs.h >>conftest.$ac_ext
 
21044
cat >>conftest.$ac_ext <<_ACEOF
 
21045
/* end confdefs.h.  */
 
21046
 
 
21047
int
 
21048
main ()
 
21049
{
 
21050
 
 
21051
  ;
 
21052
  return 0;
 
21053
}
 
21054
_ACEOF
 
21055
rm -f conftest.$ac_objext conftest$ac_exeext
 
21056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21057
  (eval $ac_link) 2>conftest.er1
 
21058
  ac_status=$?
 
21059
  grep -v '^ *+' conftest.er1 >conftest.err
 
21060
  rm -f conftest.er1
 
21061
  cat conftest.err >&5
 
21062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21063
  (exit $ac_status); } &&
 
21064
         { ac_try='test -z "$ac_c_werror_flag"
 
21065
                         || test ! -s conftest.err'
 
21066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21067
  (eval $ac_try) 2>&5
 
21068
  ac_status=$?
 
21069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21070
  (exit $ac_status); }; } &&
 
21071
         { ac_try='test -s conftest$ac_exeext'
 
21072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21073
  (eval $ac_try) 2>&5
 
21074
  ac_status=$?
 
21075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21076
  (exit $ac_status); }; }; then
 
21077
 
 
21078
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21079
}'`
 
21080
# Check for a 64-bit object if we didn't find anything.
 
21081
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
21082
}'`; fi
 
21083
else
 
21084
  echo "$as_me: failed program was:" >&5
 
21085
sed 's/^/| /' conftest.$ac_ext >&5
 
21086
 
 
21087
fi
 
21088
rm -f conftest.err conftest.$ac_objext \
 
21089
      conftest$ac_exeext conftest.$ac_ext
 
21090
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
21091
 
 
21092
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
21093
          # Warning - without using the other run time loading flags,
 
21094
          # -berok will link without error, but may produce a broken library.
 
21095
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
21096
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
21097
          # -bexpall does not export symbols beginning with underscore (_)
 
21098
          always_export_symbols_GCJ=yes
 
21099
          # Exported symbols can be pulled into shared objects from archives
 
21100
          whole_archive_flag_spec_GCJ=' '
 
21101
          archive_cmds_need_lc_GCJ=yes
 
21102
          # This is similar to how AIX traditionally builds its shared libraries.
 
21103
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
21104
        fi
 
21105
      fi
 
21106
      ;;
 
21107
 
 
21108
    amigaos*)
 
21109
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
21110
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
21111
      hardcode_minus_L_GCJ=yes
 
21112
      # see comment about different semantics on the GNU ld section
 
21113
      ld_shlibs_GCJ=no
 
21114
      ;;
 
21115
 
 
21116
    bsdi[45]*)
 
21117
      export_dynamic_flag_spec_GCJ=-rdynamic
 
21118
      ;;
 
21119
 
 
21120
    cygwin* | mingw* | pw32*)
 
21121
      # When not using gcc, we currently assume that we are using
 
21122
      # Microsoft Visual C++.
 
21123
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
21124
      # no search path for DLLs.
 
21125
      hardcode_libdir_flag_spec_GCJ=' '
 
21126
      allow_undefined_flag_GCJ=unsupported
 
21127
      # Tell ltmain to make .lib files, not .a files.
 
21128
      libext=lib
 
21129
      # Tell ltmain to make .dll files, not .so files.
 
21130
      shrext_cmds=".dll"
 
21131
      # FIXME: Setting linknames here is a bad hack.
 
21132
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
21133
      # The linker will automatically build a .lib file if we build a DLL.
 
21134
      old_archive_From_new_cmds_GCJ='true'
 
21135
      # FIXME: Should let the user specify the lib program.
 
21136
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
21137
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
21138
      enable_shared_with_static_runtimes_GCJ=yes
 
21139
      ;;
 
21140
 
 
21141
    darwin* | rhapsody*)
 
21142
      case $host_os in
 
21143
        rhapsody* | darwin1.[012])
 
21144
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
21145
         ;;
 
21146
       *) # Darwin 1.3 on
 
21147
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
21148
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
21149
         else
 
21150
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
21151
             10.[012])
 
21152
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
21153
               ;;
 
21154
             10.*)
 
21155
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
21156
               ;;
 
21157
           esac
 
21158
         fi
 
21159
         ;;
 
21160
      esac
 
21161
      archive_cmds_need_lc_GCJ=no
 
21162
      hardcode_direct_GCJ=no
 
21163
      hardcode_automatic_GCJ=yes
 
21164
      hardcode_shlibpath_var_GCJ=unsupported
 
21165
      whole_archive_flag_spec_GCJ=''
 
21166
      link_all_deplibs_GCJ=yes
 
21167
    if test "$GCC" = yes ; then
 
21168
        output_verbose_link_cmd='echo'
 
21169
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
21170
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
21171
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
21172
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21173
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21174
    else
 
21175
      case $cc_basename in
 
21176
        xlc*)
 
21177
         output_verbose_link_cmd='echo'
 
21178
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
21179
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
21180
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
21181
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21182
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
21183
          ;;
 
21184
       *)
 
21185
         ld_shlibs_GCJ=no
 
21186
          ;;
 
21187
      esac
 
21188
    fi
 
21189
      ;;
 
21190
 
 
21191
    dgux*)
 
21192
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21193
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
21194
      hardcode_shlibpath_var_GCJ=no
 
21195
      ;;
 
21196
 
 
21197
    freebsd1*)
 
21198
      ld_shlibs_GCJ=no
 
21199
      ;;
 
21200
 
 
21201
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
21202
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
21203
    # does not break anything, and helps significantly (at the cost of a little
 
21204
    # extra space).
 
21205
    freebsd2.2*)
 
21206
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
21207
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
21208
      hardcode_direct_GCJ=yes
 
21209
      hardcode_shlibpath_var_GCJ=no
 
21210
      ;;
 
21211
 
 
21212
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
21213
    freebsd2*)
 
21214
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
21215
      hardcode_direct_GCJ=yes
 
21216
      hardcode_minus_L_GCJ=yes
 
21217
      hardcode_shlibpath_var_GCJ=no
 
21218
      ;;
 
21219
 
 
21220
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
21221
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
21222
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
21223
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
21224
      hardcode_direct_GCJ=yes
 
21225
      hardcode_shlibpath_var_GCJ=no
 
21226
      ;;
 
21227
 
 
21228
    hpux9*)
 
21229
      if test "$GCC" = yes; then
 
21230
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
21231
      else
 
21232
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
21233
      fi
 
21234
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
21235
      hardcode_libdir_separator_GCJ=:
 
21236
      hardcode_direct_GCJ=yes
 
21237
 
 
21238
      # hardcode_minus_L: Not really in the search PATH,
 
21239
      # but as the default location of the library.
 
21240
      hardcode_minus_L_GCJ=yes
 
21241
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
21242
      ;;
 
21243
 
 
21244
    hpux10* | hpux11*)
 
21245
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
21246
        case $host_cpu in
 
21247
        hppa*64*|ia64*)
 
21248
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21249
          ;;
 
21250
        *)
 
21251
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
21252
          ;;
 
21253
        esac
 
21254
      else
 
21255
        case $host_cpu in
 
21256
        hppa*64*|ia64*)
 
21257
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21258
          ;;
 
21259
        *)
 
21260
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
21261
          ;;
 
21262
        esac
 
21263
      fi
 
21264
      if test "$with_gnu_ld" = no; then
 
21265
        case $host_cpu in
 
21266
        hppa*64*)
 
21267
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
21268
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
21269
          hardcode_libdir_separator_GCJ=:
 
21270
          hardcode_direct_GCJ=no
 
21271
          hardcode_shlibpath_var_GCJ=no
 
21272
          ;;
 
21273
        ia64*)
 
21274
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
21275
          hardcode_direct_GCJ=no
 
21276
          hardcode_shlibpath_var_GCJ=no
 
21277
 
 
21278
          # hardcode_minus_L: Not really in the search PATH,
 
21279
          # but as the default location of the library.
 
21280
          hardcode_minus_L_GCJ=yes
 
21281
          ;;
 
21282
        *)
 
21283
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
21284
          hardcode_libdir_separator_GCJ=:
 
21285
          hardcode_direct_GCJ=yes
 
21286
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
21287
 
 
21288
          # hardcode_minus_L: Not really in the search PATH,
 
21289
          # but as the default location of the library.
 
21290
          hardcode_minus_L_GCJ=yes
 
21291
          ;;
 
21292
        esac
 
21293
      fi
 
21294
      ;;
 
21295
 
 
21296
    irix5* | irix6* | nonstopux*)
 
21297
      if test "$GCC" = yes; then
 
21298
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
21299
      else
 
21300
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
21301
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
21302
      fi
 
21303
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
21304
      hardcode_libdir_separator_GCJ=:
 
21305
      link_all_deplibs_GCJ=yes
 
21306
      ;;
 
21307
 
 
21308
    netbsd*)
 
21309
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
21310
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
21311
      else
 
21312
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
21313
      fi
 
21314
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
21315
      hardcode_direct_GCJ=yes
 
21316
      hardcode_shlibpath_var_GCJ=no
 
21317
      ;;
 
21318
 
 
21319
    newsos6)
 
21320
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21321
      hardcode_direct_GCJ=yes
 
21322
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
21323
      hardcode_libdir_separator_GCJ=:
 
21324
      hardcode_shlibpath_var_GCJ=no
 
21325
      ;;
 
21326
 
 
21327
    openbsd*)
 
21328
      hardcode_direct_GCJ=yes
 
21329
      hardcode_shlibpath_var_GCJ=no
 
21330
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
21331
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
21332
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
21333
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
21334
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
21335
      else
 
21336
       case $host_os in
 
21337
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
21338
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
21339
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
21340
           ;;
 
21341
         *)
 
21342
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
21343
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
21344
           ;;
 
21345
       esac
 
21346
      fi
 
21347
      ;;
 
21348
 
 
21349
    os2*)
 
21350
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
21351
      hardcode_minus_L_GCJ=yes
 
21352
      allow_undefined_flag_GCJ=unsupported
 
21353
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
21354
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
21355
      ;;
 
21356
 
 
21357
    osf3*)
 
21358
      if test "$GCC" = yes; then
 
21359
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
21360
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
21361
      else
 
21362
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
21363
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
21364
      fi
 
21365
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
21366
      hardcode_libdir_separator_GCJ=:
 
21367
      ;;
 
21368
 
 
21369
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
21370
      if test "$GCC" = yes; then
 
21371
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
21372
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
21373
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
21374
      else
 
21375
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
21376
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
21377
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
21378
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
21379
 
 
21380
        # Both c and cxx compiler support -rpath directly
 
21381
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
21382
      fi
 
21383
      hardcode_libdir_separator_GCJ=:
 
21384
      ;;
 
21385
 
 
21386
    sco3.2v5*)
 
21387
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21388
      hardcode_shlibpath_var_GCJ=no
 
21389
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
21390
      runpath_var=LD_RUN_PATH
 
21391
      hardcode_runpath_var=yes
 
21392
      ;;
 
21393
 
 
21394
    solaris*)
 
21395
      no_undefined_flag_GCJ=' -z text'
 
21396
      if test "$GCC" = yes; then
 
21397
        wlarc='${wl}'
 
21398
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21399
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21400
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
21401
      else
 
21402
        wlarc=''
 
21403
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21404
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21405
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
21406
      fi
 
21407
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
21408
      hardcode_shlibpath_var_GCJ=no
 
21409
      case $host_os in
 
21410
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
21411
      *)
 
21412
        # The compiler driver will combine linker options so we
 
21413
        # cannot just pass the convience library names through
 
21414
        # without $wl, iff we do not link with $LD.
 
21415
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
21416
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
21417
        case $wlarc in
 
21418
        '')
 
21419
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
21420
        *)
 
21421
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
21422
        esac ;;
 
21423
      esac
 
21424
      link_all_deplibs_GCJ=yes
 
21425
      ;;
 
21426
 
 
21427
    sunos4*)
 
21428
      if test "x$host_vendor" = xsequent; then
 
21429
        # Use $CC to link under sequent, because it throws in some extra .o
 
21430
        # files that make .init and .fini sections work.
 
21431
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
21432
      else
 
21433
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
21434
      fi
 
21435
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
21436
      hardcode_direct_GCJ=yes
 
21437
      hardcode_minus_L_GCJ=yes
 
21438
      hardcode_shlibpath_var_GCJ=no
 
21439
      ;;
 
21440
 
 
21441
    sysv4)
 
21442
      case $host_vendor in
 
21443
        sni)
 
21444
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21445
          hardcode_direct_GCJ=yes # is this really true???
 
21446
        ;;
 
21447
        siemens)
 
21448
          ## LD is ld it makes a PLAMLIB
 
21449
          ## CC just makes a GrossModule.
 
21450
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
21451
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
21452
          hardcode_direct_GCJ=no
 
21453
        ;;
 
21454
        motorola)
 
21455
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21456
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
21457
        ;;
 
21458
      esac
 
21459
      runpath_var='LD_RUN_PATH'
 
21460
      hardcode_shlibpath_var_GCJ=no
 
21461
      ;;
 
21462
 
 
21463
    sysv4.3*)
 
21464
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21465
      hardcode_shlibpath_var_GCJ=no
 
21466
      export_dynamic_flag_spec_GCJ='-Bexport'
 
21467
      ;;
 
21468
 
 
21469
    sysv4*MP*)
 
21470
      if test -d /usr/nec; then
 
21471
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21472
        hardcode_shlibpath_var_GCJ=no
 
21473
        runpath_var=LD_RUN_PATH
 
21474
        hardcode_runpath_var=yes
 
21475
        ld_shlibs_GCJ=yes
 
21476
      fi
 
21477
      ;;
 
21478
 
 
21479
    sysv4.2uw2*)
 
21480
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
21481
      hardcode_direct_GCJ=yes
 
21482
      hardcode_minus_L_GCJ=no
 
21483
      hardcode_shlibpath_var_GCJ=no
 
21484
      hardcode_runpath_var=yes
 
21485
      runpath_var=LD_RUN_PATH
 
21486
      ;;
 
21487
 
 
21488
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
21489
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
21490
      if test "$GCC" = yes; then
 
21491
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21492
      else
 
21493
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
21494
      fi
 
21495
      runpath_var='LD_RUN_PATH'
 
21496
      hardcode_shlibpath_var_GCJ=no
 
21497
      ;;
 
21498
 
 
21499
    sysv5*)
 
21500
      no_undefined_flag_GCJ=' -z text'
 
21501
      # $CC -shared without GNU ld will not create a library from C++
 
21502
      # object files and a static libstdc++, better avoid it by now
 
21503
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21504
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21505
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
21506
      hardcode_libdir_flag_spec_GCJ=
 
21507
      hardcode_shlibpath_var_GCJ=no
 
21508
      runpath_var='LD_RUN_PATH'
 
21509
      ;;
 
21510
 
 
21511
    uts4*)
 
21512
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
21513
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
21514
      hardcode_shlibpath_var_GCJ=no
 
21515
      ;;
 
21516
 
 
21517
    *)
 
21518
      ld_shlibs_GCJ=no
 
21519
      ;;
 
21520
    esac
 
21521
  fi
 
21522
 
 
21523
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
21524
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
21525
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
21526
 
 
21527
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
21528
if test "$GCC" = yes; then
 
21529
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
21530
fi
 
21531
 
 
21532
#
 
21533
# Do we need to explicitly link libc?
 
21534
#
 
21535
case "x$archive_cmds_need_lc_GCJ" in
 
21536
x|xyes)
 
21537
  # Assume -lc should be added
 
21538
  archive_cmds_need_lc_GCJ=yes
 
21539
 
 
21540
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
21541
    case $archive_cmds_GCJ in
 
21542
    *'~'*)
 
21543
      # FIXME: we may have to deal with multi-command sequences.
 
21544
      ;;
 
21545
    '$CC '*)
 
21546
      # Test whether the compiler implicitly links with -lc since on some
 
21547
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
21548
      # to ld, don't add -lc before -lgcc.
 
21549
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
21550
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
21551
      $rm conftest*
 
21552
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
21553
 
 
21554
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21555
  (eval $ac_compile) 2>&5
 
21556
  ac_status=$?
 
21557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21558
  (exit $ac_status); } 2>conftest.err; then
 
21559
        soname=conftest
 
21560
        lib=conftest
 
21561
        libobjs=conftest.$ac_objext
 
21562
        deplibs=
 
21563
        wl=$lt_prog_compiler_wl_GCJ
 
21564
        compiler_flags=-v
 
21565
        linker_flags=-v
 
21566
        verstring=
 
21567
        output_objdir=.
 
21568
        libname=conftest
 
21569
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
21570
        allow_undefined_flag_GCJ=
 
21571
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
21572
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
21573
  ac_status=$?
 
21574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21575
  (exit $ac_status); }
 
21576
        then
 
21577
          archive_cmds_need_lc_GCJ=no
 
21578
        else
 
21579
          archive_cmds_need_lc_GCJ=yes
 
21580
        fi
 
21581
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
21582
      else
 
21583
        cat conftest.err 1>&5
 
21584
      fi
 
21585
      $rm conftest*
 
21586
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
21587
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
21588
      ;;
 
21589
    esac
 
21590
  fi
 
21591
  ;;
 
21592
esac
 
21593
 
 
21594
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
21595
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
21596
library_names_spec=
 
21597
libname_spec='lib$name'
 
21598
soname_spec=
 
21599
shrext_cmds=".so"
 
21600
postinstall_cmds=
 
21601
postuninstall_cmds=
 
21602
finish_cmds=
 
21603
finish_eval=
 
21604
shlibpath_var=
 
21605
shlibpath_overrides_runpath=unknown
 
21606
version_type=none
 
21607
dynamic_linker="$host_os ld.so"
 
21608
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
21609
if test "$GCC" = yes; then
 
21610
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
21611
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
21612
    # if the path contains ";" then we assume it to be the separator
 
21613
    # otherwise default to the standard path separator (i.e. ":") - it is
 
21614
    # assumed that no part of a normal pathname contains ";" but that should
 
21615
    # okay in the real world where ";" in dirpaths is itself problematic.
 
21616
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
21617
  else
 
21618
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
21619
  fi
 
21620
else
 
21621
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
21622
fi
 
21623
need_lib_prefix=unknown
 
21624
hardcode_into_libs=no
 
21625
 
 
21626
# when you set need_version to no, make sure it does not cause -set_version
 
21627
# flags to be left without arguments
 
21628
need_version=unknown
 
21629
 
 
21630
case $host_os in
 
21631
aix3*)
 
21632
  version_type=linux
 
21633
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
21634
  shlibpath_var=LIBPATH
 
21635
 
 
21636
  # AIX 3 has no versioning support, so we append a major version to the name.
 
21637
  soname_spec='${libname}${release}${shared_ext}$major'
 
21638
  ;;
 
21639
 
 
21640
aix4* | aix5*)
 
21641
  version_type=linux
 
21642
  need_lib_prefix=no
 
21643
  need_version=no
 
21644
  hardcode_into_libs=yes
 
21645
  if test "$host_cpu" = ia64; then
 
21646
    # AIX 5 supports IA64
 
21647
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
21648
    shlibpath_var=LD_LIBRARY_PATH
 
21649
  else
 
21650
    # With GCC up to 2.95.x, collect2 would create an import file
 
21651
    # for dependence libraries.  The import file would start with
 
21652
    # the line `#! .'.  This would cause the generated library to
 
21653
    # depend on `.', always an invalid library.  This was fixed in
 
21654
    # development snapshots of GCC prior to 3.0.
 
21655
    case $host_os in
 
21656
      aix4 | aix4.[01] | aix4.[01].*)
 
21657
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
21658
           echo ' yes '
 
21659
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
21660
        :
 
21661
      else
 
21662
        can_build_shared=no
 
21663
      fi
 
21664
      ;;
 
21665
    esac
 
21666
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
21667
    # soname into executable. Probably we can add versioning support to
 
21668
    # collect2, so additional links can be useful in future.
 
21669
    if test "$aix_use_runtimelinking" = yes; then
 
21670
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
21671
      # instead of lib<name>.a to let people know that these are not
 
21672
      # typical AIX shared libraries.
 
21673
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
21674
    else
 
21675
      # We preserve .a as extension for shared libraries through AIX4.2
 
21676
      # and later when we are not doing run time linking.
 
21677
      library_names_spec='${libname}${release}.a $libname.a'
 
21678
      soname_spec='${libname}${release}${shared_ext}$major'
 
21679
    fi
 
21680
    shlibpath_var=LIBPATH
 
21681
  fi
 
21682
  ;;
 
21683
 
 
21684
amigaos*)
 
21685
  library_names_spec='$libname.ixlibrary $libname.a'
 
21686
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
21687
  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'
 
21688
  ;;
 
21689
 
 
21690
beos*)
 
21691
  library_names_spec='${libname}${shared_ext}'
 
21692
  dynamic_linker="$host_os ld.so"
 
21693
  shlibpath_var=LIBRARY_PATH
 
21694
  ;;
 
21695
 
 
21696
bsdi[45]*)
 
21697
  version_type=linux
 
21698
  need_version=no
 
21699
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
21700
  soname_spec='${libname}${release}${shared_ext}$major'
 
21701
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
21702
  shlibpath_var=LD_LIBRARY_PATH
 
21703
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
21704
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
21705
  # the default ld.so.conf also contains /usr/contrib/lib and
 
21706
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
21707
  # libtool to hard-code these into programs
 
21708
  ;;
 
21709
 
 
21710
cygwin* | mingw* | pw32*)
 
21711
  version_type=windows
 
21712
  shrext_cmds=".dll"
 
21713
  need_version=no
 
21714
  need_lib_prefix=no
 
21715
 
 
21716
  case $GCC,$host_os in
 
21717
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
21718
    library_names_spec='$libname.dll.a'
 
21719
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
21720
    postinstall_cmds='base_file=`basename \${file}`~
 
21721
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
21722
      dldir=$destdir/`dirname \$dlpath`~
 
21723
      test -d \$dldir || mkdir -p \$dldir~
 
21724
      $install_prog $dir/$dlname \$dldir/$dlname~
 
21725
      chmod a+x \$dldir/$dlname'
 
21726
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
21727
      dlpath=$dir/\$dldll~
 
21728
       $rm \$dlpath'
 
21729
    shlibpath_overrides_runpath=yes
 
21730
 
 
21731
    case $host_os in
 
21732
    cygwin*)
 
21733
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
21734
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
21735
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
21736
      ;;
 
21737
    mingw*)
 
21738
      # MinGW DLLs use traditional 'lib' prefix
 
21739
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
21740
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
21741
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
21742
        # It is most probably a Windows format PATH printed by
 
21743
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
21744
        # path with ; separators, and with drive letters. We can handle the
 
21745
        # drive letters (cygwin fileutils understands them), so leave them,
 
21746
        # especially as we might pass files found there to a mingw objdump,
 
21747
        # which wouldn't understand a cygwinified path. Ahh.
 
21748
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
21749
      else
 
21750
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
21751
      fi
 
21752
      ;;
 
21753
    pw32*)
 
21754
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
21755
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
21756
      ;;
 
21757
    esac
 
21758
    ;;
 
21759
 
 
21760
  *)
 
21761
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
21762
    ;;
 
21763
  esac
 
21764
  dynamic_linker='Win32 ld.exe'
 
21765
  # FIXME: first we should search . and the directory the executable is in
 
21766
  shlibpath_var=PATH
 
21767
  ;;
 
21768
 
 
21769
darwin* | rhapsody*)
 
21770
  dynamic_linker="$host_os dyld"
 
21771
  version_type=darwin
 
21772
  need_lib_prefix=no
 
21773
  need_version=no
 
21774
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
21775
  soname_spec='${libname}${release}${major}$shared_ext'
 
21776
  shlibpath_overrides_runpath=yes
 
21777
  shlibpath_var=DYLD_LIBRARY_PATH
 
21778
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
21779
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
21780
  if test "$GCC" = yes; then
 
21781
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
21782
  else
 
21783
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
21784
  fi
 
21785
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
21786
  ;;
 
21787
 
 
21788
dgux*)
 
21789
  version_type=linux
 
21790
  need_lib_prefix=no
 
21791
  need_version=no
 
21792
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
21793
  soname_spec='${libname}${release}${shared_ext}$major'
 
21794
  shlibpath_var=LD_LIBRARY_PATH
 
21795
  ;;
 
21796
 
 
21797
freebsd1*)
 
21798
  dynamic_linker=no
 
21799
  ;;
 
21800
 
 
21801
kfreebsd*-gnu)
 
21802
  version_type=linux
 
21803
  need_lib_prefix=no
 
21804
  need_version=no
 
21805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
21806
  soname_spec='${libname}${release}${shared_ext}$major'
 
21807
  shlibpath_var=LD_LIBRARY_PATH
 
21808
  shlibpath_overrides_runpath=no
 
21809
  hardcode_into_libs=yes
 
21810
  dynamic_linker='GNU ld.so'
 
21811
  ;;
 
21812
 
 
21813
freebsd* | dragonfly*)
 
21814
  # DragonFly does not have aout.  When/if they implement a new
 
21815
  # versioning mechanism, adjust this.
 
21816
  if test -x /usr/bin/objformat; then
 
21817
    objformat=`/usr/bin/objformat`
 
21818
  else
 
21819
    case $host_os in
 
21820
    freebsd[123]*) objformat=aout ;;
 
21821
    *) objformat=elf ;;
 
21822
    esac
 
21823
  fi
 
21824
  version_type=freebsd-$objformat
 
21825
  case $version_type in
 
21826
    freebsd-elf*)
 
21827
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
21828
      need_version=no
 
21829
      need_lib_prefix=no
 
21830
      ;;
 
21831
    freebsd-*)
 
21832
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
21833
      need_version=yes
 
21834
      ;;
 
21835
  esac
 
21836
  shlibpath_var=LD_LIBRARY_PATH
 
21837
  case $host_os in
 
21838
  freebsd2*)
 
21839
    shlibpath_overrides_runpath=yes
 
21840
    ;;
 
21841
  freebsd3.[01]* | freebsdelf3.[01]*)
 
21842
    shlibpath_overrides_runpath=yes
 
21843
    hardcode_into_libs=yes
 
21844
    ;;
 
21845
  *) # from 3.2 on
 
21846
    shlibpath_overrides_runpath=no
 
21847
    hardcode_into_libs=yes
 
21848
    ;;
 
21849
  esac
 
21850
  ;;
 
21851
 
 
21852
gnu*)
 
21853
  version_type=linux
 
21854
  need_lib_prefix=no
 
21855
  need_version=no
 
21856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
21857
  soname_spec='${libname}${release}${shared_ext}$major'
 
21858
  shlibpath_var=LD_LIBRARY_PATH
 
21859
  hardcode_into_libs=yes
 
21860
  ;;
 
21861
 
 
21862
hpux9* | hpux10* | hpux11*)
 
21863
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
21864
  # link against other versions.
 
21865
  version_type=sunos
 
21866
  need_lib_prefix=no
 
21867
  need_version=no
 
21868
  case $host_cpu in
 
21869
  ia64*)
 
21870
    shrext_cmds='.so'
 
21871
    hardcode_into_libs=yes
 
21872
    dynamic_linker="$host_os dld.so"
 
21873
    shlibpath_var=LD_LIBRARY_PATH
 
21874
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
21875
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
21876
    soname_spec='${libname}${release}${shared_ext}$major'
 
21877
    if test "X$HPUX_IA64_MODE" = X32; then
 
21878
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
21879
    else
 
21880
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
21881
    fi
 
21882
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
21883
    ;;
 
21884
   hppa*64*)
 
21885
     shrext_cmds='.sl'
 
21886
     hardcode_into_libs=yes
 
21887
     dynamic_linker="$host_os dld.sl"
 
21888
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
21889
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
21890
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
21891
     soname_spec='${libname}${release}${shared_ext}$major'
 
21892
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
21893
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
21894
     ;;
 
21895
   *)
 
21896
    shrext_cmds='.sl'
 
21897
    dynamic_linker="$host_os dld.sl"
 
21898
    shlibpath_var=SHLIB_PATH
 
21899
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
21900
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
21901
    soname_spec='${libname}${release}${shared_ext}$major'
 
21902
    ;;
 
21903
  esac
 
21904
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
21905
  postinstall_cmds='chmod 555 $lib'
 
21906
  ;;
 
21907
 
 
21908
irix5* | irix6* | nonstopux*)
 
21909
  case $host_os in
 
21910
    nonstopux*) version_type=nonstopux ;;
 
21911
    *)
 
21912
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
21913
                version_type=linux
 
21914
        else
 
21915
                version_type=irix
 
21916
        fi ;;
 
21917
  esac
 
21918
  need_lib_prefix=no
 
21919
  need_version=no
 
21920
  soname_spec='${libname}${release}${shared_ext}$major'
 
21921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
21922
  case $host_os in
 
21923
  irix5* | nonstopux*)
 
21924
    libsuff= shlibsuff=
 
21925
    ;;
 
21926
  *)
 
21927
    case $LD in # libtool.m4 will add one of these switches to LD
 
21928
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
21929
      libsuff= shlibsuff= libmagic=32-bit;;
 
21930
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
21931
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
21932
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
21933
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
21934
    *) libsuff= shlibsuff= libmagic=never-match;;
 
21935
    esac
 
21936
    ;;
 
21937
  esac
 
21938
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
21939
  shlibpath_overrides_runpath=no
 
21940
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
21941
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
21942
  hardcode_into_libs=yes
 
21943
  ;;
 
21944
 
 
21945
# No shared lib support for Linux oldld, aout, or coff.
 
21946
linux*oldld* | linux*aout* | linux*coff*)
 
21947
  dynamic_linker=no
 
21948
  ;;
 
21949
 
 
21950
# This must be Linux ELF.
 
21951
linux*)
 
21952
  version_type=linux
 
21953
  need_lib_prefix=no
 
21954
  need_version=no
 
21955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
21956
  soname_spec='${libname}${release}${shared_ext}$major'
 
21957
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
21958
  shlibpath_var=LD_LIBRARY_PATH
 
21959
  shlibpath_overrides_runpath=no
 
21960
  # This implies no fast_install, which is unacceptable.
 
21961
  # Some rework will be needed to allow for fast_install
 
21962
  # before this can be enabled.
 
21963
  hardcode_into_libs=yes
 
21964
 
 
21965
  # Append ld.so.conf contents to the search path
 
21966
  if test -f /etc/ld.so.conf; then
 
21967
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
21968
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
21969
  fi
 
21970
 
 
21971
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
21972
  # powerpc, because MkLinux only supported shared libraries with the
 
21973
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
21974
  # most powerpc-linux boxes support dynamic linking these days and
 
21975
  # people can always --disable-shared, the test was removed, and we
 
21976
  # assume the GNU/Linux dynamic linker is in use.
 
21977
  dynamic_linker='GNU/Linux ld.so'
 
21978
  ;;
 
21979
 
 
21980
knetbsd*-gnu)
 
21981
  version_type=linux
 
21982
  need_lib_prefix=no
 
21983
  need_version=no
 
21984
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
21985
  soname_spec='${libname}${release}${shared_ext}$major'
 
21986
  shlibpath_var=LD_LIBRARY_PATH
 
21987
  shlibpath_overrides_runpath=no
 
21988
  hardcode_into_libs=yes
 
21989
  dynamic_linker='GNU ld.so'
 
21990
  ;;
 
21991
 
 
21992
netbsd*)
 
21993
  version_type=sunos
 
21994
  need_lib_prefix=no
 
21995
  need_version=no
 
21996
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
21997
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
21998
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
21999
    dynamic_linker='NetBSD (a.out) ld.so'
 
22000
  else
 
22001
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22002
    soname_spec='${libname}${release}${shared_ext}$major'
 
22003
    dynamic_linker='NetBSD ld.elf_so'
 
22004
  fi
 
22005
  shlibpath_var=LD_LIBRARY_PATH
 
22006
  shlibpath_overrides_runpath=yes
 
22007
  hardcode_into_libs=yes
 
22008
  ;;
 
22009
 
 
22010
newsos6)
 
22011
  version_type=linux
 
22012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22013
  shlibpath_var=LD_LIBRARY_PATH
 
22014
  shlibpath_overrides_runpath=yes
 
22015
  ;;
 
22016
 
 
22017
nto-qnx*)
 
22018
  version_type=linux
 
22019
  need_lib_prefix=no
 
22020
  need_version=no
 
22021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22022
  soname_spec='${libname}${release}${shared_ext}$major'
 
22023
  shlibpath_var=LD_LIBRARY_PATH
 
22024
  shlibpath_overrides_runpath=yes
 
22025
  ;;
 
22026
 
 
22027
openbsd*)
 
22028
  version_type=sunos
 
22029
  need_lib_prefix=no
 
22030
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
22031
  case $host_os in
 
22032
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
22033
    *)                         need_version=no  ;;
 
22034
  esac
 
22035
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22036
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
22037
  shlibpath_var=LD_LIBRARY_PATH
 
22038
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
22039
    case $host_os in
 
22040
      openbsd2.[89] | openbsd2.[89].*)
 
22041
        shlibpath_overrides_runpath=no
 
22042
        ;;
 
22043
      *)
 
22044
        shlibpath_overrides_runpath=yes
 
22045
        ;;
 
22046
      esac
 
22047
  else
 
22048
    shlibpath_overrides_runpath=yes
 
22049
  fi
 
22050
  ;;
 
22051
 
 
22052
os2*)
 
22053
  libname_spec='$name'
 
22054
  shrext_cmds=".dll"
 
22055
  need_lib_prefix=no
 
22056
  library_names_spec='$libname${shared_ext} $libname.a'
 
22057
  dynamic_linker='OS/2 ld.exe'
 
22058
  shlibpath_var=LIBPATH
 
22059
  ;;
 
22060
 
 
22061
osf3* | osf4* | osf5*)
 
22062
  version_type=osf
 
22063
  need_lib_prefix=no
 
22064
  need_version=no
 
22065
  soname_spec='${libname}${release}${shared_ext}$major'
 
22066
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22067
  shlibpath_var=LD_LIBRARY_PATH
 
22068
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
22069
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
22070
  ;;
 
22071
 
 
22072
sco3.2v5*)
 
22073
  version_type=osf
 
22074
  soname_spec='${libname}${release}${shared_ext}$major'
 
22075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22076
  shlibpath_var=LD_LIBRARY_PATH
 
22077
  ;;
 
22078
 
 
22079
solaris*)
 
22080
  version_type=linux
 
22081
  need_lib_prefix=no
 
22082
  need_version=no
 
22083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22084
  soname_spec='${libname}${release}${shared_ext}$major'
 
22085
  shlibpath_var=LD_LIBRARY_PATH
 
22086
  shlibpath_overrides_runpath=yes
 
22087
  hardcode_into_libs=yes
 
22088
  # ldd complains unless libraries are executable
 
22089
  postinstall_cmds='chmod +x $lib'
 
22090
  ;;
 
22091
 
 
22092
sunos4*)
 
22093
  version_type=sunos
 
22094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22095
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
22096
  shlibpath_var=LD_LIBRARY_PATH
 
22097
  shlibpath_overrides_runpath=yes
 
22098
  if test "$with_gnu_ld" = yes; then
 
22099
    need_lib_prefix=no
 
22100
  fi
 
22101
  need_version=yes
 
22102
  ;;
 
22103
 
 
22104
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
22105
  version_type=linux
 
22106
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22107
  soname_spec='${libname}${release}${shared_ext}$major'
 
22108
  shlibpath_var=LD_LIBRARY_PATH
 
22109
  case $host_vendor in
 
22110
    sni)
 
22111
      shlibpath_overrides_runpath=no
 
22112
      need_lib_prefix=no
 
22113
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
22114
      runpath_var=LD_RUN_PATH
 
22115
      ;;
 
22116
    siemens)
 
22117
      need_lib_prefix=no
 
22118
      ;;
 
22119
    motorola)
 
22120
      need_lib_prefix=no
 
22121
      need_version=no
 
22122
      shlibpath_overrides_runpath=no
 
22123
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
22124
      ;;
 
22125
  esac
 
22126
  ;;
 
22127
 
 
22128
sysv4*MP*)
 
22129
  if test -d /usr/nec ;then
 
22130
    version_type=linux
 
22131
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
22132
    soname_spec='$libname${shared_ext}.$major'
 
22133
    shlibpath_var=LD_LIBRARY_PATH
 
22134
  fi
 
22135
  ;;
 
22136
 
 
22137
uts4*)
 
22138
  version_type=linux
 
22139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22140
  soname_spec='${libname}${release}${shared_ext}$major'
 
22141
  shlibpath_var=LD_LIBRARY_PATH
 
22142
  ;;
 
22143
 
 
22144
*)
 
22145
  dynamic_linker=no
 
22146
  ;;
 
22147
esac
 
22148
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
22149
echo "${ECHO_T}$dynamic_linker" >&6
 
22150
test "$dynamic_linker" = no && can_build_shared=no
 
22151
 
 
22152
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
22153
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
22154
hardcode_action_GCJ=
 
22155
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
22156
   test -n "$runpath_var_GCJ" || \
 
22157
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
22158
 
 
22159
  # We can hardcode non-existant directories.
 
22160
  if test "$hardcode_direct_GCJ" != no &&
 
22161
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
22162
     # have to relink, otherwise we might link with an installed library
 
22163
     # when we should be linking with a yet-to-be-installed one
 
22164
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
22165
     test "$hardcode_minus_L_GCJ" != no; then
 
22166
    # Linking always hardcodes the temporary library directory.
 
22167
    hardcode_action_GCJ=relink
 
22168
  else
 
22169
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
22170
    hardcode_action_GCJ=immediate
 
22171
  fi
 
22172
else
 
22173
  # We cannot hardcode anything, or else we can only hardcode existing
 
22174
  # directories.
 
22175
  hardcode_action_GCJ=unsupported
 
22176
fi
 
22177
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
22178
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
22179
 
 
22180
if test "$hardcode_action_GCJ" = relink; then
 
22181
  # Fast installation is not supported
 
22182
  enable_fast_install=no
 
22183
elif test "$shlibpath_overrides_runpath" = yes ||
 
22184
     test "$enable_shared" = no; then
 
22185
  # Fast installation is not necessary
 
22186
  enable_fast_install=needless
 
22187
fi
 
22188
 
 
22189
striplib=
 
22190
old_striplib=
 
22191
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
22192
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
22193
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
22194
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
22195
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
22196
  echo "$as_me:$LINENO: result: yes" >&5
 
22197
echo "${ECHO_T}yes" >&6
 
22198
else
 
22199
# FIXME - insert some real tests, host_os isn't really good enough
 
22200
  case $host_os in
 
22201
   darwin*)
 
22202
       if test -n "$STRIP" ; then
 
22203
         striplib="$STRIP -x"
 
22204
         echo "$as_me:$LINENO: result: yes" >&5
 
22205
echo "${ECHO_T}yes" >&6
 
22206
       else
 
22207
  echo "$as_me:$LINENO: result: no" >&5
 
22208
echo "${ECHO_T}no" >&6
 
22209
fi
 
22210
       ;;
 
22211
   *)
 
22212
  echo "$as_me:$LINENO: result: no" >&5
 
22213
echo "${ECHO_T}no" >&6
 
22214
    ;;
 
22215
  esac
 
22216
fi
 
22217
 
 
22218
if test "x$enable_dlopen" != xyes; then
 
22219
  enable_dlopen=unknown
 
22220
  enable_dlopen_self=unknown
 
22221
  enable_dlopen_self_static=unknown
 
22222
else
 
22223
  lt_cv_dlopen=no
 
22224
  lt_cv_dlopen_libs=
 
22225
 
 
22226
  case $host_os in
 
22227
  beos*)
 
22228
    lt_cv_dlopen="load_add_on"
 
22229
    lt_cv_dlopen_libs=
 
22230
    lt_cv_dlopen_self=yes
 
22231
    ;;
 
22232
 
 
22233
  mingw* | pw32*)
 
22234
    lt_cv_dlopen="LoadLibrary"
 
22235
    lt_cv_dlopen_libs=
 
22236
   ;;
 
22237
 
 
22238
  cygwin*)
 
22239
    lt_cv_dlopen="dlopen"
 
22240
    lt_cv_dlopen_libs=
 
22241
   ;;
 
22242
 
 
22243
  darwin*)
 
22244
  # if libdl is installed we need to link against it
 
22245
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
22246
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
22247
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
22248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22249
else
 
22250
  ac_check_lib_save_LIBS=$LIBS
 
22251
LIBS="-ldl  $LIBS"
 
22252
cat >conftest.$ac_ext <<_ACEOF
 
22253
/* confdefs.h.  */
 
22254
_ACEOF
 
22255
cat confdefs.h >>conftest.$ac_ext
 
22256
cat >>conftest.$ac_ext <<_ACEOF
 
22257
/* end confdefs.h.  */
 
22258
 
 
22259
/* Override any gcc2 internal prototype to avoid an error.  */
 
22260
#ifdef __cplusplus
 
22261
extern "C"
 
22262
#endif
 
22263
/* We use char because int might match the return type of a gcc2
 
22264
   builtin and then its argument prototype would still apply.  */
 
22265
char dlopen ();
 
22266
int
 
22267
main ()
 
22268
{
 
22269
dlopen ();
 
22270
  ;
 
22271
  return 0;
 
22272
}
 
22273
_ACEOF
 
22274
rm -f conftest.$ac_objext conftest$ac_exeext
 
22275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22276
  (eval $ac_link) 2>conftest.er1
 
22277
  ac_status=$?
 
22278
  grep -v '^ *+' conftest.er1 >conftest.err
 
22279
  rm -f conftest.er1
 
22280
  cat conftest.err >&5
 
22281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22282
  (exit $ac_status); } &&
 
22283
         { ac_try='test -z "$ac_c_werror_flag"
 
22284
                         || test ! -s conftest.err'
 
22285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22286
  (eval $ac_try) 2>&5
 
22287
  ac_status=$?
 
22288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22289
  (exit $ac_status); }; } &&
 
22290
         { ac_try='test -s conftest$ac_exeext'
 
22291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22292
  (eval $ac_try) 2>&5
 
22293
  ac_status=$?
 
22294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22295
  (exit $ac_status); }; }; then
 
22296
  ac_cv_lib_dl_dlopen=yes
 
22297
else
 
22298
  echo "$as_me: failed program was:" >&5
 
22299
sed 's/^/| /' conftest.$ac_ext >&5
 
22300
 
 
22301
ac_cv_lib_dl_dlopen=no
 
22302
fi
 
22303
rm -f conftest.err conftest.$ac_objext \
 
22304
      conftest$ac_exeext conftest.$ac_ext
 
22305
LIBS=$ac_check_lib_save_LIBS
 
22306
fi
 
22307
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
22308
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
22309
if test $ac_cv_lib_dl_dlopen = yes; then
 
22310
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
22311
else
 
22312
 
 
22313
    lt_cv_dlopen="dyld"
 
22314
    lt_cv_dlopen_libs=
 
22315
    lt_cv_dlopen_self=yes
 
22316
 
 
22317
fi
 
22318
 
 
22319
   ;;
 
22320
 
 
22321
  *)
 
22322
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
22323
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
22324
if test "${ac_cv_func_shl_load+set}" = set; then
 
22325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22326
else
 
22327
  cat >conftest.$ac_ext <<_ACEOF
 
22328
/* confdefs.h.  */
 
22329
_ACEOF
 
22330
cat confdefs.h >>conftest.$ac_ext
 
22331
cat >>conftest.$ac_ext <<_ACEOF
 
22332
/* end confdefs.h.  */
 
22333
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
22334
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22335
#define shl_load innocuous_shl_load
 
22336
 
 
22337
/* System header to define __stub macros and hopefully few prototypes,
 
22338
    which can conflict with char shl_load (); below.
 
22339
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22340
    <limits.h> exists even on freestanding compilers.  */
 
22341
 
 
22342
#ifdef __STDC__
 
22343
# include <limits.h>
 
22344
#else
 
22345
# include <assert.h>
 
22346
#endif
 
22347
 
 
22348
#undef shl_load
 
22349
 
 
22350
/* Override any gcc2 internal prototype to avoid an error.  */
 
22351
#ifdef __cplusplus
 
22352
extern "C"
 
22353
{
 
22354
#endif
 
22355
/* We use char because int might match the return type of a gcc2
 
22356
   builtin and then its argument prototype would still apply.  */
 
22357
char shl_load ();
 
22358
/* The GNU C library defines this for functions which it implements
 
22359
    to always fail with ENOSYS.  Some functions are actually named
 
22360
    something starting with __ and the normal name is an alias.  */
 
22361
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
22362
choke me
 
22363
#else
 
22364
char (*f) () = shl_load;
 
22365
#endif
 
22366
#ifdef __cplusplus
 
22367
}
 
22368
#endif
 
22369
 
 
22370
int
 
22371
main ()
 
22372
{
 
22373
return f != shl_load;
 
22374
  ;
 
22375
  return 0;
 
22376
}
 
22377
_ACEOF
 
22378
rm -f conftest.$ac_objext conftest$ac_exeext
 
22379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22380
  (eval $ac_link) 2>conftest.er1
 
22381
  ac_status=$?
 
22382
  grep -v '^ *+' conftest.er1 >conftest.err
 
22383
  rm -f conftest.er1
 
22384
  cat conftest.err >&5
 
22385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22386
  (exit $ac_status); } &&
 
22387
         { ac_try='test -z "$ac_c_werror_flag"
 
22388
                         || test ! -s conftest.err'
 
22389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22390
  (eval $ac_try) 2>&5
 
22391
  ac_status=$?
 
22392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22393
  (exit $ac_status); }; } &&
 
22394
         { ac_try='test -s conftest$ac_exeext'
 
22395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22396
  (eval $ac_try) 2>&5
 
22397
  ac_status=$?
 
22398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22399
  (exit $ac_status); }; }; then
 
22400
  ac_cv_func_shl_load=yes
 
22401
else
 
22402
  echo "$as_me: failed program was:" >&5
 
22403
sed 's/^/| /' conftest.$ac_ext >&5
 
22404
 
 
22405
ac_cv_func_shl_load=no
 
22406
fi
 
22407
rm -f conftest.err conftest.$ac_objext \
 
22408
      conftest$ac_exeext conftest.$ac_ext
 
22409
fi
 
22410
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
22411
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
22412
if test $ac_cv_func_shl_load = yes; then
 
22413
  lt_cv_dlopen="shl_load"
 
22414
else
 
22415
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
22416
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
22417
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
22418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22419
else
 
22420
  ac_check_lib_save_LIBS=$LIBS
 
22421
LIBS="-ldld  $LIBS"
 
22422
cat >conftest.$ac_ext <<_ACEOF
 
22423
/* confdefs.h.  */
 
22424
_ACEOF
 
22425
cat confdefs.h >>conftest.$ac_ext
 
22426
cat >>conftest.$ac_ext <<_ACEOF
 
22427
/* end confdefs.h.  */
 
22428
 
 
22429
/* Override any gcc2 internal prototype to avoid an error.  */
 
22430
#ifdef __cplusplus
 
22431
extern "C"
 
22432
#endif
 
22433
/* We use char because int might match the return type of a gcc2
 
22434
   builtin and then its argument prototype would still apply.  */
 
22435
char shl_load ();
 
22436
int
 
22437
main ()
 
22438
{
 
22439
shl_load ();
 
22440
  ;
 
22441
  return 0;
 
22442
}
 
22443
_ACEOF
 
22444
rm -f conftest.$ac_objext conftest$ac_exeext
 
22445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22446
  (eval $ac_link) 2>conftest.er1
 
22447
  ac_status=$?
 
22448
  grep -v '^ *+' conftest.er1 >conftest.err
 
22449
  rm -f conftest.er1
 
22450
  cat conftest.err >&5
 
22451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22452
  (exit $ac_status); } &&
 
22453
         { ac_try='test -z "$ac_c_werror_flag"
 
22454
                         || test ! -s conftest.err'
 
22455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22456
  (eval $ac_try) 2>&5
 
22457
  ac_status=$?
 
22458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22459
  (exit $ac_status); }; } &&
 
22460
         { ac_try='test -s conftest$ac_exeext'
 
22461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22462
  (eval $ac_try) 2>&5
 
22463
  ac_status=$?
 
22464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22465
  (exit $ac_status); }; }; then
 
22466
  ac_cv_lib_dld_shl_load=yes
 
22467
else
 
22468
  echo "$as_me: failed program was:" >&5
 
22469
sed 's/^/| /' conftest.$ac_ext >&5
 
22470
 
 
22471
ac_cv_lib_dld_shl_load=no
 
22472
fi
 
22473
rm -f conftest.err conftest.$ac_objext \
 
22474
      conftest$ac_exeext conftest.$ac_ext
 
22475
LIBS=$ac_check_lib_save_LIBS
 
22476
fi
 
22477
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
22478
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
22479
if test $ac_cv_lib_dld_shl_load = yes; then
 
22480
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
22481
else
 
22482
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
22483
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
22484
if test "${ac_cv_func_dlopen+set}" = set; then
 
22485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22486
else
 
22487
  cat >conftest.$ac_ext <<_ACEOF
 
22488
/* confdefs.h.  */
 
22489
_ACEOF
 
22490
cat confdefs.h >>conftest.$ac_ext
 
22491
cat >>conftest.$ac_ext <<_ACEOF
 
22492
/* end confdefs.h.  */
 
22493
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
22494
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22495
#define dlopen innocuous_dlopen
 
22496
 
 
22497
/* System header to define __stub macros and hopefully few prototypes,
 
22498
    which can conflict with char dlopen (); below.
 
22499
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22500
    <limits.h> exists even on freestanding compilers.  */
 
22501
 
 
22502
#ifdef __STDC__
 
22503
# include <limits.h>
 
22504
#else
 
22505
# include <assert.h>
 
22506
#endif
 
22507
 
 
22508
#undef dlopen
 
22509
 
 
22510
/* Override any gcc2 internal prototype to avoid an error.  */
 
22511
#ifdef __cplusplus
 
22512
extern "C"
 
22513
{
 
22514
#endif
 
22515
/* We use char because int might match the return type of a gcc2
 
22516
   builtin and then its argument prototype would still apply.  */
 
22517
char dlopen ();
 
22518
/* The GNU C library defines this for functions which it implements
 
22519
    to always fail with ENOSYS.  Some functions are actually named
 
22520
    something starting with __ and the normal name is an alias.  */
 
22521
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
22522
choke me
 
22523
#else
 
22524
char (*f) () = dlopen;
 
22525
#endif
 
22526
#ifdef __cplusplus
 
22527
}
 
22528
#endif
 
22529
 
 
22530
int
 
22531
main ()
 
22532
{
 
22533
return f != dlopen;
 
22534
  ;
 
22535
  return 0;
 
22536
}
 
22537
_ACEOF
 
22538
rm -f conftest.$ac_objext conftest$ac_exeext
 
22539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22540
  (eval $ac_link) 2>conftest.er1
 
22541
  ac_status=$?
 
22542
  grep -v '^ *+' conftest.er1 >conftest.err
 
22543
  rm -f conftest.er1
 
22544
  cat conftest.err >&5
 
22545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22546
  (exit $ac_status); } &&
 
22547
         { ac_try='test -z "$ac_c_werror_flag"
 
22548
                         || test ! -s conftest.err'
 
22549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22550
  (eval $ac_try) 2>&5
 
22551
  ac_status=$?
 
22552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22553
  (exit $ac_status); }; } &&
 
22554
         { ac_try='test -s conftest$ac_exeext'
 
22555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22556
  (eval $ac_try) 2>&5
 
22557
  ac_status=$?
 
22558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22559
  (exit $ac_status); }; }; then
 
22560
  ac_cv_func_dlopen=yes
 
22561
else
 
22562
  echo "$as_me: failed program was:" >&5
 
22563
sed 's/^/| /' conftest.$ac_ext >&5
 
22564
 
 
22565
ac_cv_func_dlopen=no
 
22566
fi
 
22567
rm -f conftest.err conftest.$ac_objext \
 
22568
      conftest$ac_exeext conftest.$ac_ext
 
22569
fi
 
22570
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
22571
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
22572
if test $ac_cv_func_dlopen = yes; then
 
22573
  lt_cv_dlopen="dlopen"
 
22574
else
 
22575
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
22576
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
22577
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
22578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22579
else
 
22580
  ac_check_lib_save_LIBS=$LIBS
 
22581
LIBS="-ldl  $LIBS"
 
22582
cat >conftest.$ac_ext <<_ACEOF
 
22583
/* confdefs.h.  */
 
22584
_ACEOF
 
22585
cat confdefs.h >>conftest.$ac_ext
 
22586
cat >>conftest.$ac_ext <<_ACEOF
 
22587
/* end confdefs.h.  */
 
22588
 
 
22589
/* Override any gcc2 internal prototype to avoid an error.  */
 
22590
#ifdef __cplusplus
 
22591
extern "C"
 
22592
#endif
 
22593
/* We use char because int might match the return type of a gcc2
 
22594
   builtin and then its argument prototype would still apply.  */
 
22595
char dlopen ();
 
22596
int
 
22597
main ()
 
22598
{
 
22599
dlopen ();
 
22600
  ;
 
22601
  return 0;
 
22602
}
 
22603
_ACEOF
 
22604
rm -f conftest.$ac_objext conftest$ac_exeext
 
22605
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22606
  (eval $ac_link) 2>conftest.er1
 
22607
  ac_status=$?
 
22608
  grep -v '^ *+' conftest.er1 >conftest.err
 
22609
  rm -f conftest.er1
 
22610
  cat conftest.err >&5
 
22611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22612
  (exit $ac_status); } &&
 
22613
         { ac_try='test -z "$ac_c_werror_flag"
 
22614
                         || test ! -s conftest.err'
 
22615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22616
  (eval $ac_try) 2>&5
 
22617
  ac_status=$?
 
22618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22619
  (exit $ac_status); }; } &&
 
22620
         { ac_try='test -s conftest$ac_exeext'
 
22621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22622
  (eval $ac_try) 2>&5
 
22623
  ac_status=$?
 
22624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22625
  (exit $ac_status); }; }; then
 
22626
  ac_cv_lib_dl_dlopen=yes
 
22627
else
 
22628
  echo "$as_me: failed program was:" >&5
 
22629
sed 's/^/| /' conftest.$ac_ext >&5
 
22630
 
 
22631
ac_cv_lib_dl_dlopen=no
 
22632
fi
 
22633
rm -f conftest.err conftest.$ac_objext \
 
22634
      conftest$ac_exeext conftest.$ac_ext
 
22635
LIBS=$ac_check_lib_save_LIBS
 
22636
fi
 
22637
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
22638
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
22639
if test $ac_cv_lib_dl_dlopen = yes; then
 
22640
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
22641
else
 
22642
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
22643
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
22644
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
22645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22646
else
 
22647
  ac_check_lib_save_LIBS=$LIBS
 
22648
LIBS="-lsvld  $LIBS"
 
22649
cat >conftest.$ac_ext <<_ACEOF
 
22650
/* confdefs.h.  */
 
22651
_ACEOF
 
22652
cat confdefs.h >>conftest.$ac_ext
 
22653
cat >>conftest.$ac_ext <<_ACEOF
 
22654
/* end confdefs.h.  */
 
22655
 
 
22656
/* Override any gcc2 internal prototype to avoid an error.  */
 
22657
#ifdef __cplusplus
 
22658
extern "C"
 
22659
#endif
 
22660
/* We use char because int might match the return type of a gcc2
 
22661
   builtin and then its argument prototype would still apply.  */
 
22662
char dlopen ();
 
22663
int
 
22664
main ()
 
22665
{
 
22666
dlopen ();
 
22667
  ;
 
22668
  return 0;
 
22669
}
 
22670
_ACEOF
 
22671
rm -f conftest.$ac_objext conftest$ac_exeext
 
22672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22673
  (eval $ac_link) 2>conftest.er1
 
22674
  ac_status=$?
 
22675
  grep -v '^ *+' conftest.er1 >conftest.err
 
22676
  rm -f conftest.er1
 
22677
  cat conftest.err >&5
 
22678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22679
  (exit $ac_status); } &&
 
22680
         { ac_try='test -z "$ac_c_werror_flag"
 
22681
                         || test ! -s conftest.err'
 
22682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22683
  (eval $ac_try) 2>&5
 
22684
  ac_status=$?
 
22685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22686
  (exit $ac_status); }; } &&
 
22687
         { ac_try='test -s conftest$ac_exeext'
 
22688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22689
  (eval $ac_try) 2>&5
 
22690
  ac_status=$?
 
22691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22692
  (exit $ac_status); }; }; then
 
22693
  ac_cv_lib_svld_dlopen=yes
 
22694
else
 
22695
  echo "$as_me: failed program was:" >&5
 
22696
sed 's/^/| /' conftest.$ac_ext >&5
 
22697
 
 
22698
ac_cv_lib_svld_dlopen=no
 
22699
fi
 
22700
rm -f conftest.err conftest.$ac_objext \
 
22701
      conftest$ac_exeext conftest.$ac_ext
 
22702
LIBS=$ac_check_lib_save_LIBS
 
22703
fi
 
22704
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
22705
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
22706
if test $ac_cv_lib_svld_dlopen = yes; then
 
22707
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
22708
else
 
22709
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
22710
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
22711
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
22712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22713
else
 
22714
  ac_check_lib_save_LIBS=$LIBS
 
22715
LIBS="-ldld  $LIBS"
 
22716
cat >conftest.$ac_ext <<_ACEOF
 
22717
/* confdefs.h.  */
 
22718
_ACEOF
 
22719
cat confdefs.h >>conftest.$ac_ext
 
22720
cat >>conftest.$ac_ext <<_ACEOF
 
22721
/* end confdefs.h.  */
 
22722
 
 
22723
/* Override any gcc2 internal prototype to avoid an error.  */
 
22724
#ifdef __cplusplus
 
22725
extern "C"
 
22726
#endif
 
22727
/* We use char because int might match the return type of a gcc2
 
22728
   builtin and then its argument prototype would still apply.  */
 
22729
char dld_link ();
 
22730
int
 
22731
main ()
 
22732
{
 
22733
dld_link ();
 
22734
  ;
 
22735
  return 0;
 
22736
}
 
22737
_ACEOF
 
22738
rm -f conftest.$ac_objext conftest$ac_exeext
 
22739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22740
  (eval $ac_link) 2>conftest.er1
 
22741
  ac_status=$?
 
22742
  grep -v '^ *+' conftest.er1 >conftest.err
 
22743
  rm -f conftest.er1
 
22744
  cat conftest.err >&5
 
22745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22746
  (exit $ac_status); } &&
 
22747
         { ac_try='test -z "$ac_c_werror_flag"
 
22748
                         || test ! -s conftest.err'
 
22749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22750
  (eval $ac_try) 2>&5
 
22751
  ac_status=$?
 
22752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22753
  (exit $ac_status); }; } &&
 
22754
         { ac_try='test -s conftest$ac_exeext'
 
22755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22756
  (eval $ac_try) 2>&5
 
22757
  ac_status=$?
 
22758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22759
  (exit $ac_status); }; }; then
 
22760
  ac_cv_lib_dld_dld_link=yes
 
22761
else
 
22762
  echo "$as_me: failed program was:" >&5
 
22763
sed 's/^/| /' conftest.$ac_ext >&5
 
22764
 
 
22765
ac_cv_lib_dld_dld_link=no
 
22766
fi
 
22767
rm -f conftest.err conftest.$ac_objext \
 
22768
      conftest$ac_exeext conftest.$ac_ext
 
22769
LIBS=$ac_check_lib_save_LIBS
 
22770
fi
 
22771
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
22772
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
22773
if test $ac_cv_lib_dld_dld_link = yes; then
 
22774
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
22775
fi
 
22776
 
 
22777
 
 
22778
fi
 
22779
 
 
22780
 
 
22781
fi
 
22782
 
 
22783
 
 
22784
fi
 
22785
 
 
22786
 
 
22787
fi
 
22788
 
 
22789
 
 
22790
fi
 
22791
 
 
22792
    ;;
 
22793
  esac
 
22794
 
 
22795
  if test "x$lt_cv_dlopen" != xno; then
 
22796
    enable_dlopen=yes
 
22797
  else
 
22798
    enable_dlopen=no
 
22799
  fi
 
22800
 
 
22801
  case $lt_cv_dlopen in
 
22802
  dlopen)
 
22803
    save_CPPFLAGS="$CPPFLAGS"
 
22804
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
22805
 
 
22806
    save_LDFLAGS="$LDFLAGS"
 
22807
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
22808
 
 
22809
    save_LIBS="$LIBS"
 
22810
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
22811
 
 
22812
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
22813
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
22814
if test "${lt_cv_dlopen_self+set}" = set; then
 
22815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22816
else
 
22817
          if test "$cross_compiling" = yes; then :
 
22818
  lt_cv_dlopen_self=cross
 
22819
else
 
22820
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
22821
  lt_status=$lt_dlunknown
 
22822
  cat > conftest.$ac_ext <<EOF
 
22823
#line 22823 "configure"
 
22824
#include "confdefs.h"
 
22825
 
 
22826
#if HAVE_DLFCN_H
 
22827
#include <dlfcn.h>
 
22828
#endif
 
22829
 
 
22830
#include <stdio.h>
 
22831
 
 
22832
#ifdef RTLD_GLOBAL
 
22833
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
22834
#else
 
22835
#  ifdef DL_GLOBAL
 
22836
#    define LT_DLGLOBAL         DL_GLOBAL
 
22837
#  else
 
22838
#    define LT_DLGLOBAL         0
 
22839
#  endif
 
22840
#endif
 
22841
 
 
22842
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
22843
   find out it does not work in some platform. */
 
22844
#ifndef LT_DLLAZY_OR_NOW
 
22845
#  ifdef RTLD_LAZY
 
22846
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
22847
#  else
 
22848
#    ifdef DL_LAZY
 
22849
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
22850
#    else
 
22851
#      ifdef RTLD_NOW
 
22852
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
22853
#      else
 
22854
#        ifdef DL_NOW
 
22855
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
22856
#        else
 
22857
#          define LT_DLLAZY_OR_NOW      0
 
22858
#        endif
 
22859
#      endif
 
22860
#    endif
 
22861
#  endif
 
22862
#endif
 
22863
 
 
22864
#ifdef __cplusplus
 
22865
extern "C" void exit (int);
 
22866
#endif
 
22867
 
 
22868
void fnord() { int i=42;}
 
22869
int main ()
 
22870
{
 
22871
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
22872
  int status = $lt_dlunknown;
 
22873
 
 
22874
  if (self)
 
22875
    {
 
22876
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
22877
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
22878
      /* dlclose (self); */
 
22879
    }
 
22880
 
 
22881
    exit (status);
 
22882
}
 
22883
EOF
 
22884
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22885
  (eval $ac_link) 2>&5
 
22886
  ac_status=$?
 
22887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22888
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
22889
    (./conftest; exit; ) >&5 2>/dev/null
 
22890
    lt_status=$?
 
22891
    case x$lt_status in
 
22892
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
22893
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
22894
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
22895
    esac
 
22896
  else :
 
22897
    # compilation failed
 
22898
    lt_cv_dlopen_self=no
 
22899
  fi
 
22900
fi
 
22901
rm -fr conftest*
 
22902
 
 
22903
 
 
22904
fi
 
22905
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
22906
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
22907
 
 
22908
    if test "x$lt_cv_dlopen_self" = xyes; then
 
22909
      LDFLAGS="$LDFLAGS $link_static_flag"
 
22910
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
22911
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
22912
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
22913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22914
else
 
22915
          if test "$cross_compiling" = yes; then :
 
22916
  lt_cv_dlopen_self_static=cross
 
22917
else
 
22918
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
22919
  lt_status=$lt_dlunknown
 
22920
  cat > conftest.$ac_ext <<EOF
 
22921
#line 22921 "configure"
 
22922
#include "confdefs.h"
 
22923
 
 
22924
#if HAVE_DLFCN_H
 
22925
#include <dlfcn.h>
 
22926
#endif
 
22927
 
 
22928
#include <stdio.h>
 
22929
 
 
22930
#ifdef RTLD_GLOBAL
 
22931
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
22932
#else
 
22933
#  ifdef DL_GLOBAL
 
22934
#    define LT_DLGLOBAL         DL_GLOBAL
 
22935
#  else
 
22936
#    define LT_DLGLOBAL         0
 
22937
#  endif
 
22938
#endif
 
22939
 
 
22940
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
22941
   find out it does not work in some platform. */
 
22942
#ifndef LT_DLLAZY_OR_NOW
 
22943
#  ifdef RTLD_LAZY
 
22944
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
22945
#  else
 
22946
#    ifdef DL_LAZY
 
22947
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
22948
#    else
 
22949
#      ifdef RTLD_NOW
 
22950
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
22951
#      else
 
22952
#        ifdef DL_NOW
 
22953
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
22954
#        else
 
22955
#          define LT_DLLAZY_OR_NOW      0
 
22956
#        endif
 
22957
#      endif
 
22958
#    endif
 
22959
#  endif
 
22960
#endif
 
22961
 
 
22962
#ifdef __cplusplus
 
22963
extern "C" void exit (int);
 
22964
#endif
 
22965
 
 
22966
void fnord() { int i=42;}
 
22967
int main ()
 
22968
{
 
22969
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
22970
  int status = $lt_dlunknown;
 
22971
 
 
22972
  if (self)
 
22973
    {
 
22974
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
22975
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
22976
      /* dlclose (self); */
 
22977
    }
 
22978
 
 
22979
    exit (status);
 
22980
}
 
22981
EOF
 
22982
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22983
  (eval $ac_link) 2>&5
 
22984
  ac_status=$?
 
22985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22986
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
22987
    (./conftest; exit; ) >&5 2>/dev/null
 
22988
    lt_status=$?
 
22989
    case x$lt_status in
 
22990
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
22991
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
22992
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
22993
    esac
 
22994
  else :
 
22995
    # compilation failed
 
22996
    lt_cv_dlopen_self_static=no
 
22997
  fi
 
22998
fi
 
22999
rm -fr conftest*
 
23000
 
 
23001
 
 
23002
fi
 
23003
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
23004
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
23005
    fi
 
23006
 
 
23007
    CPPFLAGS="$save_CPPFLAGS"
 
23008
    LDFLAGS="$save_LDFLAGS"
 
23009
    LIBS="$save_LIBS"
 
23010
    ;;
 
23011
  esac
 
23012
 
 
23013
  case $lt_cv_dlopen_self in
 
23014
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
23015
  *) enable_dlopen_self=unknown ;;
 
23016
  esac
 
23017
 
 
23018
  case $lt_cv_dlopen_self_static in
 
23019
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
23020
  *) enable_dlopen_self_static=unknown ;;
 
23021
  esac
 
23022
fi
 
23023
 
 
23024
 
 
23025
# The else clause should only fire when bootstrapping the
 
23026
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
23027
# with your package, and you will get complaints that there are
 
23028
# no rules to generate ltmain.sh.
 
23029
if test -f "$ltmain"; then
 
23030
  # See if we are running on zsh, and set the options which allow our commands through
 
23031
  # without removal of \ escapes.
 
23032
  if test -n "${ZSH_VERSION+set}" ; then
 
23033
    setopt NO_GLOB_SUBST
 
23034
  fi
 
23035
  # Now quote all the things that may contain metacharacters while being
 
23036
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
23037
  # variables and quote the copies for generation of the libtool script.
 
23038
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
23039
    SED SHELL STRIP \
 
23040
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
23041
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
23042
    deplibs_check_method reload_flag reload_cmds need_locks \
 
23043
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
23044
    lt_cv_sys_global_symbol_to_c_name_address \
 
23045
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
23046
    old_postinstall_cmds old_postuninstall_cmds \
 
23047
    compiler_GCJ \
 
23048
    CC_GCJ \
 
23049
    LD_GCJ \
 
23050
    lt_prog_compiler_wl_GCJ \
 
23051
    lt_prog_compiler_pic_GCJ \
 
23052
    lt_prog_compiler_static_GCJ \
 
23053
    lt_prog_compiler_no_builtin_flag_GCJ \
 
23054
    export_dynamic_flag_spec_GCJ \
 
23055
    thread_safe_flag_spec_GCJ \
 
23056
    whole_archive_flag_spec_GCJ \
 
23057
    enable_shared_with_static_runtimes_GCJ \
 
23058
    old_archive_cmds_GCJ \
 
23059
    old_archive_from_new_cmds_GCJ \
 
23060
    predep_objects_GCJ \
 
23061
    postdep_objects_GCJ \
 
23062
    predeps_GCJ \
 
23063
    postdeps_GCJ \
 
23064
    compiler_lib_search_path_GCJ \
 
23065
    archive_cmds_GCJ \
 
23066
    archive_expsym_cmds_GCJ \
 
23067
    postinstall_cmds_GCJ \
 
23068
    postuninstall_cmds_GCJ \
 
23069
    old_archive_from_expsyms_cmds_GCJ \
 
23070
    allow_undefined_flag_GCJ \
 
23071
    no_undefined_flag_GCJ \
 
23072
    export_symbols_cmds_GCJ \
 
23073
    hardcode_libdir_flag_spec_GCJ \
 
23074
    hardcode_libdir_flag_spec_ld_GCJ \
 
23075
    hardcode_libdir_separator_GCJ \
 
23076
    hardcode_automatic_GCJ \
 
23077
    module_cmds_GCJ \
 
23078
    module_expsym_cmds_GCJ \
 
23079
    lt_cv_prog_compiler_c_o_GCJ \
 
23080
    exclude_expsyms_GCJ \
 
23081
    include_expsyms_GCJ; do
 
23082
 
 
23083
    case $var in
 
23084
    old_archive_cmds_GCJ | \
 
23085
    old_archive_from_new_cmds_GCJ | \
 
23086
    archive_cmds_GCJ | \
 
23087
    archive_expsym_cmds_GCJ | \
 
23088
    module_cmds_GCJ | \
 
23089
    module_expsym_cmds_GCJ | \
 
23090
    old_archive_from_expsyms_cmds_GCJ | \
 
23091
    export_symbols_cmds_GCJ | \
 
23092
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
23093
    postinstall_cmds | postuninstall_cmds | \
 
23094
    old_postinstall_cmds | old_postuninstall_cmds | \
 
23095
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
23096
      # Double-quote double-evaled strings.
 
23097
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
23098
      ;;
 
23099
    *)
 
23100
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
23101
      ;;
 
23102
    esac
 
23103
  done
 
23104
 
 
23105
  case $lt_echo in
 
23106
  *'\$0 --fallback-echo"')
 
23107
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
23108
    ;;
 
23109
  esac
 
23110
 
 
23111
cfgfile="$ofile"
 
23112
 
 
23113
  cat <<__EOF__ >> "$cfgfile"
 
23114
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
23115
 
 
23116
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
23117
 
 
23118
# Shell to use when invoking shell scripts.
 
23119
SHELL=$lt_SHELL
 
23120
 
 
23121
# Whether or not to build shared libraries.
 
23122
build_libtool_libs=$enable_shared
 
23123
 
 
23124
# Whether or not to build static libraries.
 
23125
build_old_libs=$enable_static
 
23126
 
 
23127
# Whether or not to add -lc for building shared libraries.
 
23128
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
23129
 
 
23130
# Whether or not to disallow shared libs when runtime libs are static
 
23131
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
23132
 
 
23133
# Whether or not to optimize for fast installation.
 
23134
fast_install=$enable_fast_install
 
23135
 
 
23136
# The host system.
 
23137
host_alias=$host_alias
 
23138
host=$host
 
23139
host_os=$host_os
 
23140
 
 
23141
# The build system.
 
23142
build_alias=$build_alias
 
23143
build=$build
 
23144
build_os=$build_os
 
23145
 
 
23146
# An echo program that does not interpret backslashes.
 
23147
echo=$lt_echo
 
23148
 
 
23149
# The archiver.
 
23150
AR=$lt_AR
 
23151
AR_FLAGS=$lt_AR_FLAGS
 
23152
 
 
23153
# A C compiler.
 
23154
LTCC=$lt_LTCC
 
23155
 
 
23156
# A language-specific compiler.
 
23157
CC=$lt_compiler_GCJ
 
23158
 
 
23159
# Is the compiler the GNU C compiler?
 
23160
with_gcc=$GCC_GCJ
 
23161
 
 
23162
# An ERE matcher.
 
23163
EGREP=$lt_EGREP
 
23164
 
 
23165
# The linker used to build libraries.
 
23166
LD=$lt_LD_GCJ
 
23167
 
 
23168
# Whether we need hard or soft links.
 
23169
LN_S=$lt_LN_S
 
23170
 
 
23171
# A BSD-compatible nm program.
 
23172
NM=$lt_NM
 
23173
 
 
23174
# A symbol stripping program
 
23175
STRIP=$lt_STRIP
 
23176
 
 
23177
# Used to examine libraries when file_magic_cmd begins "file"
 
23178
MAGIC_CMD=$MAGIC_CMD
 
23179
 
 
23180
# Used on cygwin: DLL creation program.
 
23181
DLLTOOL="$DLLTOOL"
 
23182
 
 
23183
# Used on cygwin: object dumper.
 
23184
OBJDUMP="$OBJDUMP"
 
23185
 
 
23186
# Used on cygwin: assembler.
 
23187
AS="$AS"
 
23188
 
 
23189
# The name of the directory that contains temporary libtool files.
 
23190
objdir=$objdir
 
23191
 
 
23192
# How to create reloadable object files.
 
23193
reload_flag=$lt_reload_flag
 
23194
reload_cmds=$lt_reload_cmds
 
23195
 
 
23196
# How to pass a linker flag through the compiler.
 
23197
wl=$lt_lt_prog_compiler_wl_GCJ
 
23198
 
 
23199
# Object file suffix (normally "o").
 
23200
objext="$ac_objext"
 
23201
 
 
23202
# Old archive suffix (normally "a").
 
23203
libext="$libext"
 
23204
 
 
23205
# Shared library suffix (normally ".so").
 
23206
shrext_cmds='$shrext_cmds'
 
23207
 
 
23208
# Executable file suffix (normally "").
 
23209
exeext="$exeext"
 
23210
 
 
23211
# Additional compiler flags for building library objects.
 
23212
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
23213
pic_mode=$pic_mode
 
23214
 
 
23215
# What is the maximum length of a command?
 
23216
max_cmd_len=$lt_cv_sys_max_cmd_len
 
23217
 
 
23218
# Does compiler simultaneously support -c and -o options?
 
23219
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
23220
 
 
23221
# Must we lock files when doing compilation?
 
23222
need_locks=$lt_need_locks
 
23223
 
 
23224
# Do we need the lib prefix for modules?
 
23225
need_lib_prefix=$need_lib_prefix
 
23226
 
 
23227
# Do we need a version for libraries?
 
23228
need_version=$need_version
 
23229
 
 
23230
# Whether dlopen is supported.
 
23231
dlopen_support=$enable_dlopen
 
23232
 
 
23233
# Whether dlopen of programs is supported.
 
23234
dlopen_self=$enable_dlopen_self
 
23235
 
 
23236
# Whether dlopen of statically linked programs is supported.
 
23237
dlopen_self_static=$enable_dlopen_self_static
 
23238
 
 
23239
# Compiler flag to prevent dynamic linking.
 
23240
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
23241
 
 
23242
# Compiler flag to turn off builtin functions.
 
23243
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
23244
 
 
23245
# Compiler flag to allow reflexive dlopens.
 
23246
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
23247
 
 
23248
# Compiler flag to generate shared objects directly from archives.
 
23249
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
23250
 
 
23251
# Compiler flag to generate thread-safe objects.
 
23252
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
23253
 
 
23254
# Library versioning type.
 
23255
version_type=$version_type
 
23256
 
 
23257
# Format of library name prefix.
 
23258
libname_spec=$lt_libname_spec
 
23259
 
 
23260
# List of archive names.  First name is the real one, the rest are links.
 
23261
# The last name is the one that the linker finds with -lNAME.
 
23262
library_names_spec=$lt_library_names_spec
 
23263
 
 
23264
# The coded name of the library, if different from the real name.
 
23265
soname_spec=$lt_soname_spec
 
23266
 
 
23267
# Commands used to build and install an old-style archive.
 
23268
RANLIB=$lt_RANLIB
 
23269
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
23270
old_postinstall_cmds=$lt_old_postinstall_cmds
 
23271
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
23272
 
 
23273
# Create an old-style archive from a shared archive.
 
23274
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
23275
 
 
23276
# Create a temporary old-style archive to link instead of a shared archive.
 
23277
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
23278
 
 
23279
# Commands used to build and install a shared archive.
 
23280
archive_cmds=$lt_archive_cmds_GCJ
 
23281
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
23282
postinstall_cmds=$lt_postinstall_cmds
 
23283
postuninstall_cmds=$lt_postuninstall_cmds
 
23284
 
 
23285
# Commands used to build a loadable module (assumed same as above if empty)
 
23286
module_cmds=$lt_module_cmds_GCJ
 
23287
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
23288
 
 
23289
# Commands to strip libraries.
 
23290
old_striplib=$lt_old_striplib
 
23291
striplib=$lt_striplib
 
23292
 
 
23293
# Dependencies to place before the objects being linked to create a
 
23294
# shared library.
 
23295
predep_objects=$lt_predep_objects_GCJ
 
23296
 
 
23297
# Dependencies to place after the objects being linked to create a
 
23298
# shared library.
 
23299
postdep_objects=$lt_postdep_objects_GCJ
 
23300
 
 
23301
# Dependencies to place before the objects being linked to create a
 
23302
# shared library.
 
23303
predeps=$lt_predeps_GCJ
 
23304
 
 
23305
# Dependencies to place after the objects being linked to create a
 
23306
# shared library.
 
23307
postdeps=$lt_postdeps_GCJ
 
23308
 
 
23309
# The library search path used internally by the compiler when linking
 
23310
# a shared library.
 
23311
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
23312
 
 
23313
# Method to check whether dependent libraries are shared objects.
 
23314
deplibs_check_method=$lt_deplibs_check_method
 
23315
 
 
23316
# Command to use when deplibs_check_method == file_magic.
 
23317
file_magic_cmd=$lt_file_magic_cmd
 
23318
 
 
23319
# Flag that allows shared libraries with undefined symbols to be built.
 
23320
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
23321
 
 
23322
# Flag that forces no undefined symbols.
 
23323
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
23324
 
 
23325
# Commands used to finish a libtool library installation in a directory.
 
23326
finish_cmds=$lt_finish_cmds
 
23327
 
 
23328
# Same as above, but a single script fragment to be evaled but not shown.
 
23329
finish_eval=$lt_finish_eval
 
23330
 
 
23331
# Take the output of nm and produce a listing of raw symbols and C names.
 
23332
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
23333
 
 
23334
# Transform the output of nm in a proper C declaration
 
23335
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
23336
 
 
23337
# Transform the output of nm in a C name address pair
 
23338
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
23339
 
 
23340
# This is the shared library runtime path variable.
 
23341
runpath_var=$runpath_var
 
23342
 
 
23343
# This is the shared library path variable.
 
23344
shlibpath_var=$shlibpath_var
 
23345
 
 
23346
# Is shlibpath searched before the hard-coded library search path?
 
23347
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
23348
 
 
23349
# How to hardcode a shared library path into an executable.
 
23350
hardcode_action=$hardcode_action_GCJ
 
23351
 
 
23352
# Whether we should hardcode library paths into libraries.
 
23353
hardcode_into_libs=$hardcode_into_libs
 
23354
 
 
23355
# Flag to hardcode \$libdir into a binary during linking.
 
23356
# This must work even if \$libdir does not exist.
 
23357
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
23358
 
 
23359
# If ld is used when linking, flag to hardcode \$libdir into
 
23360
# a binary during linking. This must work even if \$libdir does
 
23361
# not exist.
 
23362
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
23363
 
 
23364
# Whether we need a single -rpath flag with a separated argument.
 
23365
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
23366
 
 
23367
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
23368
# resulting binary.
 
23369
hardcode_direct=$hardcode_direct_GCJ
 
23370
 
 
23371
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
23372
# resulting binary.
 
23373
hardcode_minus_L=$hardcode_minus_L_GCJ
 
23374
 
 
23375
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
23376
# the resulting binary.
 
23377
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
23378
 
 
23379
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
23380
# and all subsequent libraries and executables linked against it.
 
23381
hardcode_automatic=$hardcode_automatic_GCJ
 
23382
 
 
23383
# Variables whose values should be saved in libtool wrapper scripts and
 
23384
# restored at relink time.
 
23385
variables_saved_for_relink="$variables_saved_for_relink"
 
23386
 
 
23387
# Whether libtool must link a program against all its dependency libraries.
 
23388
link_all_deplibs=$link_all_deplibs_GCJ
 
23389
 
 
23390
# Compile-time system search path for libraries
 
23391
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
23392
 
 
23393
# Run-time system search path for libraries
 
23394
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
23395
 
 
23396
# Fix the shell variable \$srcfile for the compiler.
 
23397
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
23398
 
 
23399
# Set to yes if exported symbols are required.
 
23400
always_export_symbols=$always_export_symbols_GCJ
 
23401
 
 
23402
# The commands to list exported symbols.
 
23403
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
23404
 
 
23405
# The commands to extract the exported symbol list from a shared archive.
 
23406
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
23407
 
 
23408
# Symbols that should not be listed in the preloaded symbols.
 
23409
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
23410
 
 
23411
# Symbols that must always be exported.
 
23412
include_expsyms=$lt_include_expsyms_GCJ
 
23413
 
 
23414
# ### END LIBTOOL TAG CONFIG: $tagname
 
23415
 
 
23416
__EOF__
 
23417
 
 
23418
 
 
23419
else
 
23420
  # If there is no Makefile yet, we rely on a make rule to execute
 
23421
  # `config.status --recheck' to rerun these tests and create the
 
23422
  # libtool script then.
 
23423
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
23424
  if test -f "$ltmain_in"; then
 
23425
    test -f Makefile && make "$ltmain"
 
23426
  fi
 
23427
fi
 
23428
 
 
23429
 
 
23430
ac_ext=c
 
23431
ac_cpp='$CPP $CPPFLAGS'
 
23432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23435
 
 
23436
CC="$lt_save_CC"
 
23437
 
 
23438
        else
 
23439
          tagname=""
 
23440
        fi
 
23441
        ;;
 
23442
 
 
23443
      RC)
 
23444
 
 
23445
 
 
23446
 
 
23447
# Source file extension for RC test sources.
 
23448
ac_ext=rc
 
23449
 
 
23450
# Object file extension for compiled RC test sources.
 
23451
objext=o
 
23452
objext_RC=$objext
 
23453
 
 
23454
# Code to be used in simple compile tests
 
23455
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
23456
 
 
23457
# Code to be used in simple link tests
 
23458
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
23459
 
 
23460
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
23461
 
 
23462
# If no C compiler was specified, use CC.
 
23463
LTCC=${LTCC-"$CC"}
 
23464
 
 
23465
# Allow CC to be a program name with arguments.
 
23466
compiler=$CC
 
23467
 
 
23468
 
 
23469
# save warnings/boilerplate of simple test code
 
23470
ac_outfile=conftest.$ac_objext
 
23471
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
23472
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
23473
_lt_compiler_boilerplate=`cat conftest.err`
 
23474
$rm conftest*
 
23475
 
 
23476
ac_outfile=conftest.$ac_objext
 
23477
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
23478
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
23479
_lt_linker_boilerplate=`cat conftest.err`
 
23480
$rm conftest*
 
23481
 
 
23482
 
 
23483
# Allow CC to be a program name with arguments.
 
23484
lt_save_CC="$CC"
 
23485
CC=${RC-"windres"}
 
23486
compiler=$CC
 
23487
compiler_RC=$CC
 
23488
for cc_temp in $compiler""; do
 
23489
  case $cc_temp in
 
23490
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
23491
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
23492
    \-*) ;;
 
23493
    *) break;;
 
23494
  esac
 
23495
done
 
23496
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
23497
 
 
23498
lt_cv_prog_compiler_c_o_RC=yes
 
23499
 
 
23500
# The else clause should only fire when bootstrapping the
 
23501
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
23502
# with your package, and you will get complaints that there are
 
23503
# no rules to generate ltmain.sh.
 
23504
if test -f "$ltmain"; then
 
23505
  # See if we are running on zsh, and set the options which allow our commands through
 
23506
  # without removal of \ escapes.
 
23507
  if test -n "${ZSH_VERSION+set}" ; then
 
23508
    setopt NO_GLOB_SUBST
 
23509
  fi
 
23510
  # Now quote all the things that may contain metacharacters while being
 
23511
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
23512
  # variables and quote the copies for generation of the libtool script.
 
23513
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
23514
    SED SHELL STRIP \
 
23515
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
23516
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
23517
    deplibs_check_method reload_flag reload_cmds need_locks \
 
23518
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
23519
    lt_cv_sys_global_symbol_to_c_name_address \
 
23520
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
23521
    old_postinstall_cmds old_postuninstall_cmds \
 
23522
    compiler_RC \
 
23523
    CC_RC \
 
23524
    LD_RC \
 
23525
    lt_prog_compiler_wl_RC \
 
23526
    lt_prog_compiler_pic_RC \
 
23527
    lt_prog_compiler_static_RC \
 
23528
    lt_prog_compiler_no_builtin_flag_RC \
 
23529
    export_dynamic_flag_spec_RC \
 
23530
    thread_safe_flag_spec_RC \
 
23531
    whole_archive_flag_spec_RC \
 
23532
    enable_shared_with_static_runtimes_RC \
 
23533
    old_archive_cmds_RC \
 
23534
    old_archive_from_new_cmds_RC \
 
23535
    predep_objects_RC \
 
23536
    postdep_objects_RC \
 
23537
    predeps_RC \
 
23538
    postdeps_RC \
 
23539
    compiler_lib_search_path_RC \
 
23540
    archive_cmds_RC \
 
23541
    archive_expsym_cmds_RC \
 
23542
    postinstall_cmds_RC \
 
23543
    postuninstall_cmds_RC \
 
23544
    old_archive_from_expsyms_cmds_RC \
 
23545
    allow_undefined_flag_RC \
 
23546
    no_undefined_flag_RC \
 
23547
    export_symbols_cmds_RC \
 
23548
    hardcode_libdir_flag_spec_RC \
 
23549
    hardcode_libdir_flag_spec_ld_RC \
 
23550
    hardcode_libdir_separator_RC \
 
23551
    hardcode_automatic_RC \
 
23552
    module_cmds_RC \
 
23553
    module_expsym_cmds_RC \
 
23554
    lt_cv_prog_compiler_c_o_RC \
 
23555
    exclude_expsyms_RC \
 
23556
    include_expsyms_RC; do
 
23557
 
 
23558
    case $var in
 
23559
    old_archive_cmds_RC | \
 
23560
    old_archive_from_new_cmds_RC | \
 
23561
    archive_cmds_RC | \
 
23562
    archive_expsym_cmds_RC | \
 
23563
    module_cmds_RC | \
 
23564
    module_expsym_cmds_RC | \
 
23565
    old_archive_from_expsyms_cmds_RC | \
 
23566
    export_symbols_cmds_RC | \
 
23567
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
23568
    postinstall_cmds | postuninstall_cmds | \
 
23569
    old_postinstall_cmds | old_postuninstall_cmds | \
 
23570
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
23571
      # Double-quote double-evaled strings.
 
23572
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
23573
      ;;
 
23574
    *)
 
23575
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
23576
      ;;
 
23577
    esac
 
23578
  done
 
23579
 
 
23580
  case $lt_echo in
 
23581
  *'\$0 --fallback-echo"')
 
23582
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
23583
    ;;
 
23584
  esac
 
23585
 
 
23586
cfgfile="$ofile"
 
23587
 
 
23588
  cat <<__EOF__ >> "$cfgfile"
 
23589
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
23590
 
 
23591
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
23592
 
 
23593
# Shell to use when invoking shell scripts.
 
23594
SHELL=$lt_SHELL
 
23595
 
 
23596
# Whether or not to build shared libraries.
 
23597
build_libtool_libs=$enable_shared
 
23598
 
 
23599
# Whether or not to build static libraries.
 
23600
build_old_libs=$enable_static
 
23601
 
 
23602
# Whether or not to add -lc for building shared libraries.
 
23603
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
23604
 
 
23605
# Whether or not to disallow shared libs when runtime libs are static
 
23606
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
23607
 
 
23608
# Whether or not to optimize for fast installation.
 
23609
fast_install=$enable_fast_install
 
23610
 
 
23611
# The host system.
 
23612
host_alias=$host_alias
 
23613
host=$host
 
23614
host_os=$host_os
 
23615
 
 
23616
# The build system.
 
23617
build_alias=$build_alias
 
23618
build=$build
 
23619
build_os=$build_os
 
23620
 
 
23621
# An echo program that does not interpret backslashes.
 
23622
echo=$lt_echo
 
23623
 
 
23624
# The archiver.
 
23625
AR=$lt_AR
 
23626
AR_FLAGS=$lt_AR_FLAGS
 
23627
 
 
23628
# A C compiler.
 
23629
LTCC=$lt_LTCC
 
23630
 
 
23631
# A language-specific compiler.
 
23632
CC=$lt_compiler_RC
 
23633
 
 
23634
# Is the compiler the GNU C compiler?
 
23635
with_gcc=$GCC_RC
 
23636
 
 
23637
# An ERE matcher.
 
23638
EGREP=$lt_EGREP
 
23639
 
 
23640
# The linker used to build libraries.
 
23641
LD=$lt_LD_RC
 
23642
 
 
23643
# Whether we need hard or soft links.
 
23644
LN_S=$lt_LN_S
 
23645
 
 
23646
# A BSD-compatible nm program.
 
23647
NM=$lt_NM
 
23648
 
 
23649
# A symbol stripping program
 
23650
STRIP=$lt_STRIP
 
23651
 
 
23652
# Used to examine libraries when file_magic_cmd begins "file"
 
23653
MAGIC_CMD=$MAGIC_CMD
 
23654
 
 
23655
# Used on cygwin: DLL creation program.
 
23656
DLLTOOL="$DLLTOOL"
 
23657
 
 
23658
# Used on cygwin: object dumper.
 
23659
OBJDUMP="$OBJDUMP"
 
23660
 
 
23661
# Used on cygwin: assembler.
 
23662
AS="$AS"
 
23663
 
 
23664
# The name of the directory that contains temporary libtool files.
 
23665
objdir=$objdir
 
23666
 
 
23667
# How to create reloadable object files.
 
23668
reload_flag=$lt_reload_flag
 
23669
reload_cmds=$lt_reload_cmds
 
23670
 
 
23671
# How to pass a linker flag through the compiler.
 
23672
wl=$lt_lt_prog_compiler_wl_RC
 
23673
 
 
23674
# Object file suffix (normally "o").
 
23675
objext="$ac_objext"
 
23676
 
 
23677
# Old archive suffix (normally "a").
 
23678
libext="$libext"
 
23679
 
 
23680
# Shared library suffix (normally ".so").
 
23681
shrext_cmds='$shrext_cmds'
 
23682
 
 
23683
# Executable file suffix (normally "").
 
23684
exeext="$exeext"
 
23685
 
 
23686
# Additional compiler flags for building library objects.
 
23687
pic_flag=$lt_lt_prog_compiler_pic_RC
 
23688
pic_mode=$pic_mode
 
23689
 
 
23690
# What is the maximum length of a command?
 
23691
max_cmd_len=$lt_cv_sys_max_cmd_len
 
23692
 
 
23693
# Does compiler simultaneously support -c and -o options?
 
23694
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
23695
 
 
23696
# Must we lock files when doing compilation?
 
23697
need_locks=$lt_need_locks
 
23698
 
 
23699
# Do we need the lib prefix for modules?
 
23700
need_lib_prefix=$need_lib_prefix
 
23701
 
 
23702
# Do we need a version for libraries?
 
23703
need_version=$need_version
 
23704
 
 
23705
# Whether dlopen is supported.
 
23706
dlopen_support=$enable_dlopen
 
23707
 
 
23708
# Whether dlopen of programs is supported.
 
23709
dlopen_self=$enable_dlopen_self
 
23710
 
 
23711
# Whether dlopen of statically linked programs is supported.
 
23712
dlopen_self_static=$enable_dlopen_self_static
 
23713
 
 
23714
# Compiler flag to prevent dynamic linking.
 
23715
link_static_flag=$lt_lt_prog_compiler_static_RC
 
23716
 
 
23717
# Compiler flag to turn off builtin functions.
 
23718
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
23719
 
 
23720
# Compiler flag to allow reflexive dlopens.
 
23721
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
23722
 
 
23723
# Compiler flag to generate shared objects directly from archives.
 
23724
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
23725
 
 
23726
# Compiler flag to generate thread-safe objects.
 
23727
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
23728
 
 
23729
# Library versioning type.
 
23730
version_type=$version_type
 
23731
 
 
23732
# Format of library name prefix.
 
23733
libname_spec=$lt_libname_spec
 
23734
 
 
23735
# List of archive names.  First name is the real one, the rest are links.
 
23736
# The last name is the one that the linker finds with -lNAME.
 
23737
library_names_spec=$lt_library_names_spec
 
23738
 
 
23739
# The coded name of the library, if different from the real name.
 
23740
soname_spec=$lt_soname_spec
 
23741
 
 
23742
# Commands used to build and install an old-style archive.
 
23743
RANLIB=$lt_RANLIB
 
23744
old_archive_cmds=$lt_old_archive_cmds_RC
 
23745
old_postinstall_cmds=$lt_old_postinstall_cmds
 
23746
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
23747
 
 
23748
# Create an old-style archive from a shared archive.
 
23749
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
23750
 
 
23751
# Create a temporary old-style archive to link instead of a shared archive.
 
23752
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
23753
 
 
23754
# Commands used to build and install a shared archive.
 
23755
archive_cmds=$lt_archive_cmds_RC
 
23756
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
23757
postinstall_cmds=$lt_postinstall_cmds
 
23758
postuninstall_cmds=$lt_postuninstall_cmds
 
23759
 
 
23760
# Commands used to build a loadable module (assumed same as above if empty)
 
23761
module_cmds=$lt_module_cmds_RC
 
23762
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
23763
 
 
23764
# Commands to strip libraries.
 
23765
old_striplib=$lt_old_striplib
 
23766
striplib=$lt_striplib
 
23767
 
 
23768
# Dependencies to place before the objects being linked to create a
 
23769
# shared library.
 
23770
predep_objects=$lt_predep_objects_RC
 
23771
 
 
23772
# Dependencies to place after the objects being linked to create a
 
23773
# shared library.
 
23774
postdep_objects=$lt_postdep_objects_RC
 
23775
 
 
23776
# Dependencies to place before the objects being linked to create a
 
23777
# shared library.
 
23778
predeps=$lt_predeps_RC
 
23779
 
 
23780
# Dependencies to place after the objects being linked to create a
 
23781
# shared library.
 
23782
postdeps=$lt_postdeps_RC
 
23783
 
 
23784
# The library search path used internally by the compiler when linking
 
23785
# a shared library.
 
23786
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
23787
 
 
23788
# Method to check whether dependent libraries are shared objects.
 
23789
deplibs_check_method=$lt_deplibs_check_method
 
23790
 
 
23791
# Command to use when deplibs_check_method == file_magic.
 
23792
file_magic_cmd=$lt_file_magic_cmd
 
23793
 
 
23794
# Flag that allows shared libraries with undefined symbols to be built.
 
23795
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
23796
 
 
23797
# Flag that forces no undefined symbols.
 
23798
no_undefined_flag=$lt_no_undefined_flag_RC
 
23799
 
 
23800
# Commands used to finish a libtool library installation in a directory.
 
23801
finish_cmds=$lt_finish_cmds
 
23802
 
 
23803
# Same as above, but a single script fragment to be evaled but not shown.
 
23804
finish_eval=$lt_finish_eval
 
23805
 
 
23806
# Take the output of nm and produce a listing of raw symbols and C names.
 
23807
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
23808
 
 
23809
# Transform the output of nm in a proper C declaration
 
23810
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
23811
 
 
23812
# Transform the output of nm in a C name address pair
 
23813
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
23814
 
 
23815
# This is the shared library runtime path variable.
 
23816
runpath_var=$runpath_var
 
23817
 
 
23818
# This is the shared library path variable.
 
23819
shlibpath_var=$shlibpath_var
 
23820
 
 
23821
# Is shlibpath searched before the hard-coded library search path?
 
23822
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
23823
 
 
23824
# How to hardcode a shared library path into an executable.
 
23825
hardcode_action=$hardcode_action_RC
 
23826
 
 
23827
# Whether we should hardcode library paths into libraries.
 
23828
hardcode_into_libs=$hardcode_into_libs
 
23829
 
 
23830
# Flag to hardcode \$libdir into a binary during linking.
 
23831
# This must work even if \$libdir does not exist.
 
23832
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
23833
 
 
23834
# If ld is used when linking, flag to hardcode \$libdir into
 
23835
# a binary during linking. This must work even if \$libdir does
 
23836
# not exist.
 
23837
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
23838
 
 
23839
# Whether we need a single -rpath flag with a separated argument.
 
23840
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
23841
 
 
23842
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
23843
# resulting binary.
 
23844
hardcode_direct=$hardcode_direct_RC
 
23845
 
 
23846
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
23847
# resulting binary.
 
23848
hardcode_minus_L=$hardcode_minus_L_RC
 
23849
 
 
23850
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
23851
# the resulting binary.
 
23852
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
23853
 
 
23854
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
23855
# and all subsequent libraries and executables linked against it.
 
23856
hardcode_automatic=$hardcode_automatic_RC
 
23857
 
 
23858
# Variables whose values should be saved in libtool wrapper scripts and
 
23859
# restored at relink time.
 
23860
variables_saved_for_relink="$variables_saved_for_relink"
 
23861
 
 
23862
# Whether libtool must link a program against all its dependency libraries.
 
23863
link_all_deplibs=$link_all_deplibs_RC
 
23864
 
 
23865
# Compile-time system search path for libraries
 
23866
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
23867
 
 
23868
# Run-time system search path for libraries
 
23869
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
23870
 
 
23871
# Fix the shell variable \$srcfile for the compiler.
 
23872
fix_srcfile_path="$fix_srcfile_path_RC"
 
23873
 
 
23874
# Set to yes if exported symbols are required.
 
23875
always_export_symbols=$always_export_symbols_RC
 
23876
 
 
23877
# The commands to list exported symbols.
 
23878
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
23879
 
 
23880
# The commands to extract the exported symbol list from a shared archive.
 
23881
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
23882
 
 
23883
# Symbols that should not be listed in the preloaded symbols.
 
23884
exclude_expsyms=$lt_exclude_expsyms_RC
 
23885
 
 
23886
# Symbols that must always be exported.
 
23887
include_expsyms=$lt_include_expsyms_RC
 
23888
 
 
23889
# ### END LIBTOOL TAG CONFIG: $tagname
 
23890
 
 
23891
__EOF__
 
23892
 
 
23893
 
 
23894
else
 
23895
  # If there is no Makefile yet, we rely on a make rule to execute
 
23896
  # `config.status --recheck' to rerun these tests and create the
 
23897
  # libtool script then.
 
23898
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
23899
  if test -f "$ltmain_in"; then
 
23900
    test -f Makefile && make "$ltmain"
 
23901
  fi
 
23902
fi
 
23903
 
 
23904
 
 
23905
ac_ext=c
 
23906
ac_cpp='$CPP $CPPFLAGS'
 
23907
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23908
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23909
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23910
 
 
23911
CC="$lt_save_CC"
 
23912
 
 
23913
        ;;
 
23914
 
 
23915
      *)
 
23916
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
23917
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
23918
   { (exit 1); exit 1; }; }
 
23919
        ;;
 
23920
      esac
 
23921
 
 
23922
      # Append the new tag name to the list of available tags.
 
23923
      if test -n "$tagname" ; then
 
23924
      available_tags="$available_tags $tagname"
 
23925
    fi
 
23926
    fi
 
23927
  done
 
23928
  IFS="$lt_save_ifs"
 
23929
 
 
23930
  # Now substitute the updated list of available tags.
 
23931
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
23932
    mv "${ofile}T" "$ofile"
 
23933
    chmod +x "$ofile"
 
23934
  else
 
23935
    rm -f "${ofile}T"
 
23936
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
23937
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
23938
   { (exit 1); exit 1; }; }
 
23939
  fi
 
23940
fi
 
23941
 
 
23942
 
 
23943
 
 
23944
# This can be used to rebuild libtool when needed
 
23945
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
23946
 
 
23947
# Always use our own libtool.
 
23948
LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
 
23949
 
 
23950
# Prevent multiple expansion
 
23951
 
 
23952
 
 
23953
 
 
23954
 
 
23955
 
 
23956
 
 
23957
 
 
23958
 
 
23959
 
 
23960
 
 
23961
 
 
23962
 
 
23963
 
 
23964
 
 
23965
 
 
23966
 
 
23967
 
 
23968
 
 
23969
 
 
23970
 
 
23971
        # get libtool's setting of shlibpath_var
 
23972
        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
 
23973
        if test "x$shlibpath_var" = "x"; then
 
23974
            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
 
23975
        fi
 
23976
    fi
 
23977
    ;;
 
23978
esac
 
23979
 
 
23980
 
 
23981
# Check whether --with-installbuilddir or --without-installbuilddir was given.
 
23982
if test "${with_installbuilddir+set}" = set; then
 
23983
  withval="$with_installbuilddir"
 
23984
   installbuilddir=$withval
 
23985
else
 
23986
   installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
 
23987
fi;
 
23988
 
 
23989
 
 
23990
 
 
23991
# Check whether --with-libtool or --without-libtool was given.
 
23992
if test "${with_libtool+set}" = set; then
 
23993
  withval="$with_libtool"
 
23994
   use_libtool=$withval
 
23995
else
 
23996
   use_libtool="yes"
 
23997
fi;
 
23998
 
 
23999
if test "x$use_libtool" = "xyes"; then
 
24000
      lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
 
24001
      LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
 
24002
      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) ${LT_VERSION} \$(ALL_LDFLAGS) -o \$@"
 
24003
      so_ext='lo'
 
24004
      lib_target='-rpath $(libdir) $(OBJECTS)'
 
24005
      export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
 
24006
else
 
24007
      lt_compile='$(COMPILE) -o $@ -c $<'
 
24008
      link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
 
24009
      so_ext='o'
 
24010
      lib_target=''
 
24011
      export_lib_target=''
 
24012
fi
 
24013
 
 
24014
case $host in
 
24015
    *-solaris2*)
 
24016
        apr_platform_runtime_link_flag="-R"
 
24017
        ;;
 
24018
    *)
 
24019
        ;;
 
24020
esac
 
24021
 
 
24022
 
 
24023
 
 
24024
 
 
24025
 
 
24026
 
 
24027
 
 
24028
 
 
24029
 
 
24030
 
 
24031
nl='
 
24032
'
 
24033
echo "${nl}Check for compiler flags..."
 
24034
 
 
24035
 
 
24036
case $host in
 
24037
    *os390)
 
24038
        if test "$ac_test_CFLAGS" != set; then
 
24039
 
 
24040
  if test "x$CFLAGS" = "x-g"; then
 
24041
    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
 
24042
    CFLAGS=""
 
24043
  else
 
24044
    apr_new_bugger=""
 
24045
    apr_removed=0
 
24046
    for i in $CFLAGS; do
 
24047
      if test "x$i" != "x-g"; then
 
24048
        apr_new_bugger="$apr_new_bugger $i"
 
24049
      else
 
24050
        apr_removed=1
 
24051
      fi
 
24052
    done
 
24053
    if test $apr_removed = "1"; then
 
24054
      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
 
24055
      CFLAGS=$apr_new_bugger
 
24056
    fi
 
24057
  fi
 
24058
 
 
24059
        fi
 
24060
        ;;
 
24061
esac
 
24062
 
 
24063
# Check whether --enable-debug or --disable-debug was given.
 
24064
if test "${enable_debug+set}" = set; then
 
24065
  enableval="$enable_debug"
 
24066
 
 
24067
  if test "x$CFLAGS" = "x"; then
 
24068
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
 
24069
    CFLAGS="-g"
 
24070
  else
 
24071
    apr_addto_bugger="-g"
 
24072
    for i in $apr_addto_bugger; do
 
24073
      apr_addto_duplicate="0"
 
24074
      for j in $CFLAGS; do
 
24075
        if test "x$i" = "x$j"; then
 
24076
          apr_addto_duplicate="1"
 
24077
          break
 
24078
        fi
 
24079
      done
 
24080
      if test $apr_addto_duplicate = "0"; then
 
24081
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24082
        CFLAGS="$CFLAGS $i"
 
24083
      fi
 
24084
    done
 
24085
  fi
 
24086
 
 
24087
   if test "$GCC" = "yes"; then
 
24088
 
 
24089
  if test "x$CFLAGS" = "x"; then
 
24090
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall\""
 
24091
    CFLAGS="-Wall"
 
24092
  else
 
24093
    apr_addto_bugger="-Wall"
 
24094
    for i in $apr_addto_bugger; do
 
24095
      apr_addto_duplicate="0"
 
24096
      for j in $CFLAGS; do
 
24097
        if test "x$i" = "x$j"; then
 
24098
          apr_addto_duplicate="1"
 
24099
          break
 
24100
        fi
 
24101
      done
 
24102
      if test $apr_addto_duplicate = "0"; then
 
24103
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24104
        CFLAGS="$CFLAGS $i"
 
24105
      fi
 
24106
    done
 
24107
  fi
 
24108
 
 
24109
   elif test "$AIX_XLC" = "yes"; then
 
24110
 
 
24111
  if test "x$CFLAGS" = "x"; then
 
24112
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath\""
 
24113
    CFLAGS="-qfullpath"
 
24114
  else
 
24115
    apr_addto_bugger="-qfullpath"
 
24116
    for i in $apr_addto_bugger; do
 
24117
      apr_addto_duplicate="0"
 
24118
      for j in $CFLAGS; do
 
24119
        if test "x$i" = "x$j"; then
 
24120
          apr_addto_duplicate="1"
 
24121
          break
 
24122
        fi
 
24123
      done
 
24124
      if test $apr_addto_duplicate = "0"; then
 
24125
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24126
        CFLAGS="$CFLAGS $i"
 
24127
      fi
 
24128
    done
 
24129
  fi
 
24130
 
 
24131
   fi
 
24132
 
 
24133
fi;
 
24134
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
24135
if test "${enable_maintainer_mode+set}" = set; then
 
24136
  enableval="$enable_maintainer_mode"
 
24137
 
 
24138
  if test "x$CFLAGS" = "x"; then
 
24139
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
 
24140
    CFLAGS="-g"
 
24141
  else
 
24142
    apr_addto_bugger="-g"
 
24143
    for i in $apr_addto_bugger; do
 
24144
      apr_addto_duplicate="0"
 
24145
      for j in $CFLAGS; do
 
24146
        if test "x$i" = "x$j"; then
 
24147
          apr_addto_duplicate="1"
 
24148
          break
 
24149
        fi
 
24150
      done
 
24151
      if test $apr_addto_duplicate = "0"; then
 
24152
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24153
        CFLAGS="$CFLAGS $i"
 
24154
      fi
 
24155
    done
 
24156
  fi
 
24157
 
 
24158
   if test "$GCC" = "yes"; then
 
24159
 
 
24160
  if test "x$CFLAGS" = "x"; then
 
24161
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
 
24162
    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
 
24163
  else
 
24164
    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
 
24165
    for i in $apr_addto_bugger; do
 
24166
      apr_addto_duplicate="0"
 
24167
      for j in $CFLAGS; do
 
24168
        if test "x$i" = "x$j"; then
 
24169
          apr_addto_duplicate="1"
 
24170
          break
 
24171
        fi
 
24172
      done
 
24173
      if test $apr_addto_duplicate = "0"; then
 
24174
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24175
        CFLAGS="$CFLAGS $i"
 
24176
      fi
 
24177
    done
 
24178
  fi
 
24179
 
 
24180
   elif test "$AIX_XLC" = "yes"; then
 
24181
 
 
24182
  if test "x$CFLAGS" = "x"; then
 
24183
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
 
24184
    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
 
24185
  else
 
24186
    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
 
24187
    for i in $apr_addto_bugger; do
 
24188
      apr_addto_duplicate="0"
 
24189
      for j in $CFLAGS; do
 
24190
        if test "x$i" = "x$j"; then
 
24191
          apr_addto_duplicate="1"
 
24192
          break
 
24193
        fi
 
24194
      done
 
24195
      if test $apr_addto_duplicate = "0"; then
 
24196
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24197
        CFLAGS="$CFLAGS $i"
 
24198
      fi
 
24199
    done
 
24200
  fi
 
24201
 
 
24202
   fi
 
24203
 
 
24204
fi;
 
24205
# Check whether --enable-profile or --disable-profile was given.
 
24206
if test "${enable_profile+set}" = set; then
 
24207
  enableval="$enable_profile"
 
24208
  if test "$GCC" = "yes"; then
 
24209
 
 
24210
  if test "x$CFLAGS" = "x"; then
 
24211
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-pg\""
 
24212
    CFLAGS="-pg"
 
24213
  else
 
24214
    apr_addto_bugger="-pg"
 
24215
    for i in $apr_addto_bugger; do
 
24216
      apr_addto_duplicate="0"
 
24217
      for j in $CFLAGS; do
 
24218
        if test "x$i" = "x$j"; then
 
24219
          apr_addto_duplicate="1"
 
24220
          break
 
24221
        fi
 
24222
      done
 
24223
      if test $apr_addto_duplicate = "0"; then
 
24224
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24225
        CFLAGS="$CFLAGS $i"
 
24226
      fi
 
24227
    done
 
24228
  fi
 
24229
 
 
24230
 
 
24231
  if test "x$CFLAGS" = "x-g"; then
 
24232
    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
 
24233
    CFLAGS=""
 
24234
  else
 
24235
    apr_new_bugger=""
 
24236
    apr_removed=0
 
24237
    for i in $CFLAGS; do
 
24238
      if test "x$i" != "x-g"; then
 
24239
        apr_new_bugger="$apr_new_bugger $i"
 
24240
      else
 
24241
        apr_removed=1
 
24242
      fi
 
24243
    done
 
24244
    if test $apr_removed = "1"; then
 
24245
      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
 
24246
      CFLAGS=$apr_new_bugger
 
24247
    fi
 
24248
  fi
 
24249
 
 
24250
    if test "$host" = "i586-pc-beos"; then
 
24251
 
 
24252
  if test "x$CFLAGS" = "x-O2"; then
 
24253
    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
 
24254
    CFLAGS=""
 
24255
  else
 
24256
    apr_new_bugger=""
 
24257
    apr_removed=0
 
24258
    for i in $CFLAGS; do
 
24259
      if test "x$i" != "x-O2"; then
 
24260
        apr_new_bugger="$apr_new_bugger $i"
 
24261
      else
 
24262
        apr_removed=1
 
24263
      fi
 
24264
    done
 
24265
    if test $apr_removed = "1"; then
 
24266
      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
 
24267
      CFLAGS=$apr_new_bugger
 
24268
    fi
 
24269
  fi
 
24270
 
 
24271
 
 
24272
  if test "x$CFLAGS" = "x"; then
 
24273
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
 
24274
    CFLAGS="-O1"
 
24275
  else
 
24276
    apr_addto_bugger="-O1"
 
24277
    for i in $apr_addto_bugger; do
 
24278
      apr_addto_duplicate="0"
 
24279
      for j in $CFLAGS; do
 
24280
        if test "x$i" = "x$j"; then
 
24281
          apr_addto_duplicate="1"
 
24282
          break
 
24283
        fi
 
24284
      done
 
24285
      if test $apr_addto_duplicate = "0"; then
 
24286
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24287
        CFLAGS="$CFLAGS $i"
 
24288
      fi
 
24289
    done
 
24290
  fi
 
24291
 
 
24292
 
 
24293
  if test "x$LDFLAGS" = "x"; then
 
24294
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-p\""
 
24295
    LDFLAGS="-p"
 
24296
  else
 
24297
    apr_addto_bugger="-p"
 
24298
    for i in $apr_addto_bugger; do
 
24299
      apr_addto_duplicate="0"
 
24300
      for j in $LDFLAGS; do
 
24301
        if test "x$i" = "x$j"; then
 
24302
          apr_addto_duplicate="1"
 
24303
          break
 
24304
        fi
 
24305
      done
 
24306
      if test $apr_addto_duplicate = "0"; then
 
24307
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
24308
        LDFLAGS="$LDFLAGS $i"
 
24309
      fi
 
24310
    done
 
24311
  fi
 
24312
 
 
24313
    fi
 
24314
  fi
 
24315
 
 
24316
fi;
 
24317
# Check whether --enable-pool-debug or --disable-pool-debug was given.
 
24318
if test "${enable_pool_debug+set}" = set; then
 
24319
  enableval="$enable_pool_debug"
 
24320
   if test -z "$enableval"; then
 
24321
 
 
24322
  if test "x$CPPFLAGS" = "x"; then
 
24323
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
 
24324
    CPPFLAGS="-DAPR_POOL_DEBUG=1"
 
24325
  else
 
24326
    apr_addto_bugger="-DAPR_POOL_DEBUG=1"
 
24327
    for i in $apr_addto_bugger; do
 
24328
      apr_addto_duplicate="0"
 
24329
      for j in $CPPFLAGS; do
 
24330
        if test "x$i" = "x$j"; then
 
24331
          apr_addto_duplicate="1"
 
24332
          break
 
24333
        fi
 
24334
      done
 
24335
      if test $apr_addto_duplicate = "0"; then
 
24336
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
24337
        CPPFLAGS="$CPPFLAGS $i"
 
24338
      fi
 
24339
    done
 
24340
  fi
 
24341
 
 
24342
    elif test ! "$enableval" = "no"; then
 
24343
        apr_pool_debug=1
 
24344
 
 
24345
        for i in $enableval
 
24346
        do
 
24347
            flag=0
 
24348
 
 
24349
            case $i in
 
24350
            yes)
 
24351
                flag=1
 
24352
                ;;
 
24353
            verbose)
 
24354
                flag=2
 
24355
                ;;
 
24356
            lifetime)
 
24357
                flag=4
 
24358
                ;;
 
24359
            owner)
 
24360
                flag=8
 
24361
                ;;
 
24362
            verbose-alloc)
 
24363
                flag=16
 
24364
                ;;
 
24365
            all)
 
24366
                apr_pool_debug=31
 
24367
                ;;
 
24368
            *)
 
24369
                ;;
 
24370
            esac
 
24371
 
 
24372
            if test $flag -gt 0; then
 
24373
                apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
 
24374
                    '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
 
24375
            fi
 
24376
        done
 
24377
 
 
24378
 
 
24379
  if test "x$CPPFLAGS" = "x"; then
 
24380
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
 
24381
    CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
 
24382
  else
 
24383
    apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
 
24384
    for i in $apr_addto_bugger; do
 
24385
      apr_addto_duplicate="0"
 
24386
      for j in $CPPFLAGS; do
 
24387
        if test "x$i" = "x$j"; then
 
24388
          apr_addto_duplicate="1"
 
24389
          break
 
24390
        fi
 
24391
      done
 
24392
      if test $apr_addto_duplicate = "0"; then
 
24393
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
24394
        CPPFLAGS="$CPPFLAGS $i"
 
24395
      fi
 
24396
    done
 
24397
  fi
 
24398
 
 
24399
    fi
 
24400
 
 
24401
fi;
 
24402
 
 
24403
if test "$host" = "i586-pc-beos"; then
 
24404
  # Check whether --enable-malloc-debug or --disable-malloc-debug was given.
 
24405
if test "${enable_malloc_debug+set}" = set; then
 
24406
  enableval="$enable_malloc_debug"
 
24407
 
 
24408
  if test "x$CFLAGS" = "x-O2"; then
 
24409
    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
 
24410
    CFLAGS=""
 
24411
  else
 
24412
    apr_new_bugger=""
 
24413
    apr_removed=0
 
24414
    for i in $CFLAGS; do
 
24415
      if test "x$i" != "x-O2"; then
 
24416
        apr_new_bugger="$apr_new_bugger $i"
 
24417
      else
 
24418
        apr_removed=1
 
24419
      fi
 
24420
    done
 
24421
    if test $apr_removed = "1"; then
 
24422
      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
 
24423
      CFLAGS=$apr_new_bugger
 
24424
    fi
 
24425
  fi
 
24426
 
 
24427
 
 
24428
  if test "x$CPPFLAGS" = "x"; then
 
24429
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
 
24430
    CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
 
24431
  else
 
24432
    apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
 
24433
    for i in $apr_addto_bugger; do
 
24434
      apr_addto_duplicate="0"
 
24435
      for j in $CPPFLAGS; do
 
24436
        if test "x$i" = "x$j"; then
 
24437
          apr_addto_duplicate="1"
 
24438
          break
 
24439
        fi
 
24440
      done
 
24441
      if test $apr_addto_duplicate = "0"; then
 
24442
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
24443
        CPPFLAGS="$CPPFLAGS $i"
 
24444
      fi
 
24445
    done
 
24446
  fi
 
24447
 
 
24448
 
 
24449
fi;  fi
 
24450
 
 
24451
# this is the place to put specific options for platform/compiler
 
24452
# combinations
 
24453
case "$host:$CC" in
 
24454
    *-hp-hpux*:cc )
 
24455
 
 
24456
  if test "x$CFLAGS" = "x"; then
 
24457
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Ae +Z\""
 
24458
    CFLAGS="-Ae +Z"
 
24459
  else
 
24460
    apr_addto_bugger="-Ae +Z"
 
24461
    for i in $apr_addto_bugger; do
 
24462
      apr_addto_duplicate="0"
 
24463
      for j in $CFLAGS; do
 
24464
        if test "x$i" = "x$j"; then
 
24465
          apr_addto_duplicate="1"
 
24466
          break
 
24467
        fi
 
24468
      done
 
24469
      if test $apr_addto_duplicate = "0"; then
 
24470
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24471
        CFLAGS="$CFLAGS $i"
 
24472
      fi
 
24473
    done
 
24474
  fi
 
24475
 
 
24476
        case $host in
 
24477
          ia64-* )
 
24478
            ;;
 
24479
          * )
 
24480
            if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
 
24481
            else
 
24482
 
 
24483
  if test "x$CFLAGS" = "x"; then
 
24484
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"+DAportable\""
 
24485
    CFLAGS="+DAportable"
 
24486
  else
 
24487
    apr_addto_bugger="+DAportable"
 
24488
    for i in $apr_addto_bugger; do
 
24489
      apr_addto_duplicate="0"
 
24490
      for j in $CFLAGS; do
 
24491
        if test "x$i" = "x$j"; then
 
24492
          apr_addto_duplicate="1"
 
24493
          break
 
24494
        fi
 
24495
      done
 
24496
      if test $apr_addto_duplicate = "0"; then
 
24497
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24498
        CFLAGS="$CFLAGS $i"
 
24499
      fi
 
24500
    done
 
24501
  fi
 
24502
 
 
24503
            fi
 
24504
            ;;
 
24505
        esac
 
24506
        ;;
 
24507
    powerpc-*-beos:mwcc* )
 
24508
 
 
24509
  test "x$silent" != "xyes" && echo "  forcing CPP to \"mwcc -E\""
 
24510
  CPP="mwcc -E"
 
24511
 
 
24512
 
 
24513
  test "x$silent" != "xyes" && echo "  forcing CC to \"mwcc\""
 
24514
  CC="mwcc"
 
24515
 
 
24516
 
 
24517
  test "x$silent" != "xyes" && echo "  forcing AR to \"ar\""
 
24518
  AR="ar"
 
24519
 
 
24520
        ;;
 
24521
esac
 
24522
 
 
24523
 
 
24524
if test "$GCC" = "yes"; then
 
24525
  MKDEP='$(CC) -MM'
 
24526
else
 
24527
  rm -f conftest.c
 
24528
  cat > conftest.c <<EOF
 
24529
#include <sys/types.h>
 
24530
  int main() { return 0; }
 
24531
EOF
 
24532
  MKDEP="true"
 
24533
  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
 
24534
    echo "$as_me:$LINENO: checking if $i can create proper make dependencies" >&5
 
24535
echo $ECHO_N "checking if $i can create proper make dependencies... $ECHO_C" >&6
 
24536
    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
 
24537
      MKDEP=$i
 
24538
      echo "$as_me:$LINENO: result: yes" >&5
 
24539
echo "${ECHO_T}yes" >&6
 
24540
      break;
 
24541
    fi
 
24542
    echo "$as_me:$LINENO: result: no" >&5
 
24543
echo "${ECHO_T}no" >&6
 
24544
  done
 
24545
  rm -f conftest.c
 
24546
fi
 
24547
 
 
24548
 
 
24549
 
 
24550
 
 
24551
proc_mutex_is_global=0
 
24552
 
 
24553
config_subdirs="none"
 
24554
INSTALL_SUBDIRS="none"
 
24555
OBJECTS_PLATFORM='$(OBJECTS_unix)'
 
24556
 
 
24557
case $host in
 
24558
   i386-ibm-aix* | *-ibm-aix1-2.* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
 
24559
       OSDIR="aix"
 
24560
 
 
24561
  if test "x$LDFLAGS" = "x"; then
 
24562
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-lld\""
 
24563
    LDFLAGS="-lld"
 
24564
  else
 
24565
    apr_addto_bugger="-lld"
 
24566
    for i in $apr_addto_bugger; do
 
24567
      apr_addto_duplicate="0"
 
24568
      for j in $LDFLAGS; do
 
24569
        if test "x$i" = "x$j"; then
 
24570
          apr_addto_duplicate="1"
 
24571
          break
 
24572
        fi
 
24573
      done
 
24574
      if test $apr_addto_duplicate = "0"; then
 
24575
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
24576
        LDFLAGS="$LDFLAGS $i"
 
24577
      fi
 
24578
    done
 
24579
  fi
 
24580
 
 
24581
       eolstr="\\n"
 
24582
       OBJECTS_PLATFORM='$(OBJECTS_aix)'
 
24583
       ;;
 
24584
   *-os2*)
 
24585
 
 
24586
  if test "x$CPPFLAGS" = "x"; then
 
24587
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOS2\""
 
24588
    CPPFLAGS="-DOS2"
 
24589
  else
 
24590
    apr_addto_bugger="-DOS2"
 
24591
    for i in $apr_addto_bugger; do
 
24592
      apr_addto_duplicate="0"
 
24593
      for j in $CPPFLAGS; do
 
24594
        if test "x$i" = "x$j"; then
 
24595
          apr_addto_duplicate="1"
 
24596
          break
 
24597
        fi
 
24598
      done
 
24599
      if test $apr_addto_duplicate = "0"; then
 
24600
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
24601
        CPPFLAGS="$CPPFLAGS $i"
 
24602
      fi
 
24603
    done
 
24604
  fi
 
24605
 
 
24606
 
 
24607
  if test "x$CFLAGS" = "x"; then
 
24608
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
 
24609
    CFLAGS="-Zmt"
 
24610
  else
 
24611
    apr_addto_bugger="-Zmt"
 
24612
    for i in $apr_addto_bugger; do
 
24613
      apr_addto_duplicate="0"
 
24614
      for j in $CFLAGS; do
 
24615
        if test "x$i" = "x$j"; then
 
24616
          apr_addto_duplicate="1"
 
24617
          break
 
24618
        fi
 
24619
      done
 
24620
      if test $apr_addto_duplicate = "0"; then
 
24621
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
24622
        CFLAGS="$CFLAGS $i"
 
24623
      fi
 
24624
    done
 
24625
  fi
 
24626
 
 
24627
 
 
24628
echo "$as_me:$LINENO: checking for random in -lbsd" >&5
 
24629
echo $ECHO_N "checking for random in -lbsd... $ECHO_C" >&6
 
24630
if test "${ac_cv_lib_bsd_random+set}" = set; then
 
24631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24632
else
 
24633
  ac_check_lib_save_LIBS=$LIBS
 
24634
LIBS="-lbsd  $LIBS"
 
24635
cat >conftest.$ac_ext <<_ACEOF
 
24636
/* confdefs.h.  */
 
24637
_ACEOF
 
24638
cat confdefs.h >>conftest.$ac_ext
 
24639
cat >>conftest.$ac_ext <<_ACEOF
 
24640
/* end confdefs.h.  */
 
24641
 
 
24642
/* Override any gcc2 internal prototype to avoid an error.  */
 
24643
#ifdef __cplusplus
 
24644
extern "C"
 
24645
#endif
 
24646
/* We use char because int might match the return type of a gcc2
 
24647
   builtin and then its argument prototype would still apply.  */
 
24648
char random ();
 
24649
int
 
24650
main ()
 
24651
{
 
24652
random ();
 
24653
  ;
 
24654
  return 0;
 
24655
}
 
24656
_ACEOF
 
24657
rm -f conftest.$ac_objext conftest$ac_exeext
 
24658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24659
  (eval $ac_link) 2>conftest.er1
 
24660
  ac_status=$?
 
24661
  grep -v '^ *+' conftest.er1 >conftest.err
 
24662
  rm -f conftest.er1
 
24663
  cat conftest.err >&5
 
24664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24665
  (exit $ac_status); } &&
 
24666
         { ac_try='test -z "$ac_c_werror_flag"
 
24667
                         || test ! -s conftest.err'
 
24668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24669
  (eval $ac_try) 2>&5
 
24670
  ac_status=$?
 
24671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24672
  (exit $ac_status); }; } &&
 
24673
         { ac_try='test -s conftest$ac_exeext'
 
24674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24675
  (eval $ac_try) 2>&5
 
24676
  ac_status=$?
 
24677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24678
  (exit $ac_status); }; }; then
 
24679
  ac_cv_lib_bsd_random=yes
 
24680
else
 
24681
  echo "$as_me: failed program was:" >&5
 
24682
sed 's/^/| /' conftest.$ac_ext >&5
 
24683
 
 
24684
ac_cv_lib_bsd_random=no
 
24685
fi
 
24686
rm -f conftest.err conftest.$ac_objext \
 
24687
      conftest$ac_exeext conftest.$ac_ext
 
24688
LIBS=$ac_check_lib_save_LIBS
 
24689
fi
 
24690
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_random" >&5
 
24691
echo "${ECHO_T}$ac_cv_lib_bsd_random" >&6
 
24692
if test $ac_cv_lib_bsd_random = yes; then
 
24693
  cat >>confdefs.h <<_ACEOF
 
24694
#define HAVE_LIBBSD 1
 
24695
_ACEOF
 
24696
 
 
24697
  LIBS="-lbsd $LIBS"
 
24698
 
 
24699
fi
 
24700
 
 
24701
       OSDIR="os2"
 
24702
       enable_threads="system_threads"
 
24703
       eolstr="\\r\\n"
 
24704
       file_as_socket="0"
 
24705
       proc_mutex_is_global=1
 
24706
       OBJECTS_PLATFORM='$(OBJECTS_os2)'
 
24707
       ;;
 
24708
   *beos*)
 
24709
       OSDIR="beos"
 
24710
 
 
24711
  if test "x$CPPFLAGS" = "x"; then
 
24712
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
 
24713
    CPPFLAGS="-DBEOS"
 
24714
  else
 
24715
    apr_addto_bugger="-DBEOS"
 
24716
    for i in $apr_addto_bugger; do
 
24717
      apr_addto_duplicate="0"
 
24718
      for j in $CPPFLAGS; do
 
24719
        if test "x$i" = "x$j"; then
 
24720
          apr_addto_duplicate="1"
 
24721
          break
 
24722
        fi
 
24723
      done
 
24724
      if test $apr_addto_duplicate = "0"; then
 
24725
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
24726
        CPPFLAGS="$CPPFLAGS $i"
 
24727
      fi
 
24728
    done
 
24729
  fi
 
24730
 
 
24731
       enable_threads="system_threads"
 
24732
       native_mmap_emul="1"
 
24733
 
 
24734
  echo "$as_me:$LINENO: checking for BONE_VERSION in sys/socket.h" >&5
 
24735
echo $ECHO_N "checking for BONE_VERSION in sys/socket.h... $ECHO_C" >&6
 
24736
if test "${ac_cv_define_BONE_VERSION+set}" = set; then
 
24737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24738
else
 
24739
 
 
24740
    cat >conftest.$ac_ext <<_ACEOF
 
24741
/* confdefs.h.  */
 
24742
_ACEOF
 
24743
cat confdefs.h >>conftest.$ac_ext
 
24744
cat >>conftest.$ac_ext <<_ACEOF
 
24745
/* end confdefs.h.  */
 
24746
 
 
24747
#include <sys/socket.h>
 
24748
#ifdef BONE_VERSION
 
24749
YES_IS_DEFINED
 
24750
#endif
 
24751
 
 
24752
_ACEOF
 
24753
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
24754
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
24755
  ac_cv_define_BONE_VERSION=yes
 
24756
else
 
24757
  ac_cv_define_BONE_VERSION=no
 
24758
fi
 
24759
rm -f conftest*
 
24760
 
 
24761
 
 
24762
fi
 
24763
echo "$as_me:$LINENO: result: $ac_cv_define_BONE_VERSION" >&5
 
24764
echo "${ECHO_T}$ac_cv_define_BONE_VERSION" >&6
 
24765
  if test "$ac_cv_define_BONE_VERSION" = "yes"; then
 
24766
 
 
24767
cat >>confdefs.h <<\_ACEOF
 
24768
#define HAVE_BONE_VERSION 1
 
24769
_ACEOF
 
24770
 
 
24771
  fi
 
24772
 
 
24773
       eolstr="\\n"
 
24774
       osver=`uname -r`
 
24775
       proc_mutex_is_global=1
 
24776
       OBJECTS_PLATFORM='$(OBJECTS_beos)'
 
24777
       case $osver in
 
24778
          5.0.4)
 
24779
             file_as_socket="1"
 
24780
             ;;
 
24781
          *)
 
24782
             file_as_socket="0"
 
24783
             ;;
 
24784
       esac
 
24785
       ;;
 
24786
   *os390)
 
24787
       OSDIR="os390"
 
24788
       OBJECTS_PLATFORM='$(OBJECTS_os390)'
 
24789
       eolstr="\\n"
 
24790
       ;;
 
24791
   *os400)
 
24792
       OSDIR="as400"
 
24793
       eolstr="\\n"
 
24794
       ;;
 
24795
   *cygwin*)
 
24796
       OSDIR="unix"
 
24797
 
 
24798
  if test "x$CPPFLAGS" = "x"; then
 
24799
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCYGWIN\""
 
24800
    CPPFLAGS="-DCYGWIN"
 
24801
  else
 
24802
    apr_addto_bugger="-DCYGWIN"
 
24803
    for i in $apr_addto_bugger; do
 
24804
      apr_addto_duplicate="0"
 
24805
      for j in $CPPFLAGS; do
 
24806
        if test "x$i" = "x$j"; then
 
24807
          apr_addto_duplicate="1"
 
24808
          break
 
24809
        fi
 
24810
      done
 
24811
      if test $apr_addto_duplicate = "0"; then
 
24812
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
24813
        CPPFLAGS="$CPPFLAGS $i"
 
24814
      fi
 
24815
    done
 
24816
  fi
 
24817
 
 
24818
       enable_threads="no"
 
24819
       eolstr="\\n"
 
24820
       ;;
 
24821
   *hpux10* )
 
24822
       enable_threads="no"
 
24823
       OSDIR="unix"
 
24824
       eolstr="\\n"
 
24825
       ;;
 
24826
   *)
 
24827
       OSDIR="unix"
 
24828
       eolstr="\\n"
 
24829
       ;;
 
24830
esac
 
24831
 
 
24832
 
 
24833
 
 
24834
# Check whether LFS has explicitly been disabled
 
24835
# Check whether --enable-lfs or --disable-lfs was given.
 
24836
if test "${enable_lfs+set}" = set; then
 
24837
  enableval="$enable_lfs"
 
24838
  apr_lfs_choice=$enableval
 
24839
else
 
24840
  apr_lfs_choice=yes
 
24841
fi;
 
24842
 
 
24843
if test "$apr_lfs_choice" = "yes"; then
 
24844
   # Check whether the transitional LFS API is sufficient
 
24845
   echo "$as_me:$LINENO: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
 
24846
echo $ECHO_N "checking whether to enable -D_LARGEFILE64_SOURCE... $ECHO_C" >&6
 
24847
if test "${apr_cv_use_lfs64+set}" = set; then
 
24848
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24849
else
 
24850
 
 
24851
   apr_save_CPPFLAGS=$CPPFLAGS
 
24852
   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
 
24853
   if test "$cross_compiling" = yes; then
 
24854
  apr_cv_use_lfs64=no
 
24855
else
 
24856
  cat >conftest.$ac_ext <<_ACEOF
 
24857
/* confdefs.h.  */
 
24858
_ACEOF
 
24859
cat confdefs.h >>conftest.$ac_ext
 
24860
cat >>conftest.$ac_ext <<_ACEOF
 
24861
/* end confdefs.h.  */
 
24862
 
 
24863
#include <sys/types.h>
 
24864
#include <sys/stat.h>
 
24865
#include <fcntl.h>
 
24866
#include <stdlib.h>
 
24867
#include <stdio.h>
 
24868
#include <unistd.h>
 
24869
 
 
24870
void main(void)
 
24871
{
 
24872
    int fd, ret = 0;
 
24873
    struct stat64 st;
 
24874
    off64_t off = 4242;
 
24875
 
 
24876
    if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
 
24877
       exit(1);
 
24878
    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY)) < 0)
 
24879
       exit(2);
 
24880
    if (ftruncate64(fd, off) != 0)
 
24881
       ret = 3;
 
24882
    else if (fstat64(fd, &st) != 0 || st.st_size != off)
 
24883
       ret = 4;
 
24884
    else if (lseek64(fd, off, SEEK_SET) != off)
 
24885
       ret = 5;
 
24886
    else if (close(fd) != 0)
 
24887
       ret = 6;
 
24888
    else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
 
24889
       ret = 7;
 
24890
    else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
 
24891
       ret = 8;
 
24892
    unlink("conftest.lfs");
 
24893
 
 
24894
    exit(ret);
 
24895
}
 
24896
_ACEOF
 
24897
rm -f conftest$ac_exeext
 
24898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24899
  (eval $ac_link) 2>&5
 
24900
  ac_status=$?
 
24901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24902
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24904
  (eval $ac_try) 2>&5
 
24905
  ac_status=$?
 
24906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24907
  (exit $ac_status); }; }; then
 
24908
  apr_cv_use_lfs64=yes
 
24909
else
 
24910
  echo "$as_me: program exited with status $ac_status" >&5
 
24911
echo "$as_me: failed program was:" >&5
 
24912
sed 's/^/| /' conftest.$ac_ext >&5
 
24913
 
 
24914
( exit $ac_status )
 
24915
apr_cv_use_lfs64=no
 
24916
fi
 
24917
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24918
fi
 
24919
   CPPFLAGS=$apr_save_CPPFLAGS
 
24920
fi
 
24921
echo "$as_me:$LINENO: result: $apr_cv_use_lfs64" >&5
 
24922
echo "${ECHO_T}$apr_cv_use_lfs64" >&6
 
24923
   if test "$apr_cv_use_lfs64" = "yes"; then
 
24924
 
 
24925
  if test "x$CPPFLAGS" = "x"; then
 
24926
    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
 
24927
    CPPFLAGS="-D_LARGEFILE64_SOURCE"
 
24928
  else
 
24929
    apr_addto_bugger="-D_LARGEFILE64_SOURCE"
 
24930
    for i in $apr_addto_bugger; do
 
24931
      apr_addto_duplicate="0"
 
24932
      for j in $CPPFLAGS; do
 
24933
        if test "x$i" = "x$j"; then
 
24934
          apr_addto_duplicate="1"
 
24935
          break
 
24936
        fi
 
24937
      done
 
24938
      if test $apr_addto_duplicate = "0"; then
 
24939
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
 
24940
        CPPFLAGS="$CPPFLAGS $i"
 
24941
      fi
 
24942
    done
 
24943
  fi
 
24944
 
 
24945
   fi
 
24946
fi
 
24947
 
 
24948
# Check whether --enable-nonportable-atomics or --disable-nonportable-atomics was given.
 
24949
if test "${enable_nonportable_atomics+set}" = set; then
 
24950
  enableval="$enable_nonportable_atomics"
 
24951
  if test $enableval = yes; then
 
24952
   force_generic_atomics=no
 
24953
 else
 
24954
   force_generic_atomics=yes
 
24955
 fi
 
24956
 
 
24957
else
 
24958
  case $host_cpu in
 
24959
   i[456]86) force_generic_atomics=yes ;;
 
24960
   *) force_generic_atomics=no ;;
 
24961
esac
 
24962
 
 
24963
fi;
 
24964
 
 
24965
if test $force_generic_atomics = yes; then
 
24966
 
 
24967
cat >>confdefs.h <<\_ACEOF
 
24968
#define USE_GENERIC_ATOMICS 1
 
24969
_ACEOF
 
24970
 
 
24971
fi
 
24972
 
 
24973
 
 
24974
 
 
24975
 
 
24976
 
 
24977
# For some platforms we need a version string which allows easy numeric
 
24978
# comparisons.
 
24979
case $host in
 
24980
    *freebsd*)
 
24981
        if test -x /sbin/sysctl; then
 
24982
            os_version=`/sbin/sysctl -n kern.osreldate`
 
24983
        else
 
24984
            os_version=000000
 
24985
        fi
 
24986
        ;;
 
24987
    *linux*)
 
24988
        os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
 
24989
        ;;
 
24990
    *darwin*)
 
24991
        os_version=`uname -r | sed -e 's/\(.\)\.\(.\).*/\1\2/'`
 
24992
        ;;
 
24993
    *)
 
24994
        os_version=OS_VERSION_IS_NOT_SET
 
24995
        ;;
 
24996
esac
 
24997
 
 
24998
echo "${nl}Checking for libraries..."
 
24999
 
 
25000
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
25001
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
25002
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
25003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25004
else
 
25005
  ac_func_search_save_LIBS=$LIBS
 
25006
ac_cv_search_gethostbyname=no
 
25007
cat >conftest.$ac_ext <<_ACEOF
 
25008
/* confdefs.h.  */
 
25009
_ACEOF
 
25010
cat confdefs.h >>conftest.$ac_ext
 
25011
cat >>conftest.$ac_ext <<_ACEOF
 
25012
/* end confdefs.h.  */
 
25013
 
 
25014
/* Override any gcc2 internal prototype to avoid an error.  */
 
25015
#ifdef __cplusplus
 
25016
extern "C"
 
25017
#endif
 
25018
/* We use char because int might match the return type of a gcc2
 
25019
   builtin and then its argument prototype would still apply.  */
 
25020
char gethostbyname ();
 
25021
int
 
25022
main ()
 
25023
{
 
25024
gethostbyname ();
 
25025
  ;
 
25026
  return 0;
 
25027
}
 
25028
_ACEOF
 
25029
rm -f conftest.$ac_objext conftest$ac_exeext
 
25030
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25031
  (eval $ac_link) 2>conftest.er1
 
25032
  ac_status=$?
 
25033
  grep -v '^ *+' conftest.er1 >conftest.err
 
25034
  rm -f conftest.er1
 
25035
  cat conftest.err >&5
 
25036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25037
  (exit $ac_status); } &&
 
25038
         { ac_try='test -z "$ac_c_werror_flag"
 
25039
                         || test ! -s conftest.err'
 
25040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25041
  (eval $ac_try) 2>&5
 
25042
  ac_status=$?
 
25043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25044
  (exit $ac_status); }; } &&
 
25045
         { ac_try='test -s conftest$ac_exeext'
 
25046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25047
  (eval $ac_try) 2>&5
 
25048
  ac_status=$?
 
25049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25050
  (exit $ac_status); }; }; then
 
25051
  ac_cv_search_gethostbyname="none required"
 
25052
else
 
25053
  echo "$as_me: failed program was:" >&5
 
25054
sed 's/^/| /' conftest.$ac_ext >&5
 
25055
 
 
25056
fi
 
25057
rm -f conftest.err conftest.$ac_objext \
 
25058
      conftest$ac_exeext conftest.$ac_ext
 
25059
if test "$ac_cv_search_gethostbyname" = no; then
 
25060
  for ac_lib in nsl; do
 
25061
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
25062
    cat >conftest.$ac_ext <<_ACEOF
 
25063
/* confdefs.h.  */
 
25064
_ACEOF
 
25065
cat confdefs.h >>conftest.$ac_ext
 
25066
cat >>conftest.$ac_ext <<_ACEOF
 
25067
/* end confdefs.h.  */
 
25068
 
 
25069
/* Override any gcc2 internal prototype to avoid an error.  */
 
25070
#ifdef __cplusplus
 
25071
extern "C"
 
25072
#endif
 
25073
/* We use char because int might match the return type of a gcc2
 
25074
   builtin and then its argument prototype would still apply.  */
 
25075
char gethostbyname ();
 
25076
int
 
25077
main ()
 
25078
{
 
25079
gethostbyname ();
 
25080
  ;
 
25081
  return 0;
 
25082
}
 
25083
_ACEOF
 
25084
rm -f conftest.$ac_objext conftest$ac_exeext
 
25085
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25086
  (eval $ac_link) 2>conftest.er1
 
25087
  ac_status=$?
 
25088
  grep -v '^ *+' conftest.er1 >conftest.err
 
25089
  rm -f conftest.er1
 
25090
  cat conftest.err >&5
 
25091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25092
  (exit $ac_status); } &&
 
25093
         { ac_try='test -z "$ac_c_werror_flag"
 
25094
                         || test ! -s conftest.err'
 
25095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25096
  (eval $ac_try) 2>&5
 
25097
  ac_status=$?
 
25098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25099
  (exit $ac_status); }; } &&
 
25100
         { ac_try='test -s conftest$ac_exeext'
 
25101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25102
  (eval $ac_try) 2>&5
 
25103
  ac_status=$?
 
25104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25105
  (exit $ac_status); }; }; then
 
25106
  ac_cv_search_gethostbyname="-l$ac_lib"
 
25107
break
 
25108
else
 
25109
  echo "$as_me: failed program was:" >&5
 
25110
sed 's/^/| /' conftest.$ac_ext >&5
 
25111
 
 
25112
fi
 
25113
rm -f conftest.err conftest.$ac_objext \
 
25114
      conftest$ac_exeext conftest.$ac_ext
 
25115
  done
 
25116
fi
 
25117
LIBS=$ac_func_search_save_LIBS
 
25118
fi
 
25119
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
25120
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
 
25121
if test "$ac_cv_search_gethostbyname" != no; then
 
25122
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
 
25123
 
 
25124
fi
 
25125
 
 
25126
echo "$as_me:$LINENO: checking for library containing gethostname" >&5
 
25127
echo $ECHO_N "checking for library containing gethostname... $ECHO_C" >&6
 
25128
if test "${ac_cv_search_gethostname+set}" = set; then
 
25129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25130
else
 
25131
  ac_func_search_save_LIBS=$LIBS
 
25132
ac_cv_search_gethostname=no
 
25133
cat >conftest.$ac_ext <<_ACEOF
 
25134
/* confdefs.h.  */
 
25135
_ACEOF
 
25136
cat confdefs.h >>conftest.$ac_ext
 
25137
cat >>conftest.$ac_ext <<_ACEOF
 
25138
/* end confdefs.h.  */
 
25139
 
 
25140
/* Override any gcc2 internal prototype to avoid an error.  */
 
25141
#ifdef __cplusplus
 
25142
extern "C"
 
25143
#endif
 
25144
/* We use char because int might match the return type of a gcc2
 
25145
   builtin and then its argument prototype would still apply.  */
 
25146
char gethostname ();
 
25147
int
 
25148
main ()
 
25149
{
 
25150
gethostname ();
 
25151
  ;
 
25152
  return 0;
 
25153
}
 
25154
_ACEOF
 
25155
rm -f conftest.$ac_objext conftest$ac_exeext
 
25156
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25157
  (eval $ac_link) 2>conftest.er1
 
25158
  ac_status=$?
 
25159
  grep -v '^ *+' conftest.er1 >conftest.err
 
25160
  rm -f conftest.er1
 
25161
  cat conftest.err >&5
 
25162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25163
  (exit $ac_status); } &&
 
25164
         { ac_try='test -z "$ac_c_werror_flag"
 
25165
                         || test ! -s conftest.err'
 
25166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25167
  (eval $ac_try) 2>&5
 
25168
  ac_status=$?
 
25169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25170
  (exit $ac_status); }; } &&
 
25171
         { ac_try='test -s conftest$ac_exeext'
 
25172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25173
  (eval $ac_try) 2>&5
 
25174
  ac_status=$?
 
25175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25176
  (exit $ac_status); }; }; then
 
25177
  ac_cv_search_gethostname="none required"
 
25178
else
 
25179
  echo "$as_me: failed program was:" >&5
 
25180
sed 's/^/| /' conftest.$ac_ext >&5
 
25181
 
 
25182
fi
 
25183
rm -f conftest.err conftest.$ac_objext \
 
25184
      conftest$ac_exeext conftest.$ac_ext
 
25185
if test "$ac_cv_search_gethostname" = no; then
 
25186
  for ac_lib in nsl; do
 
25187
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
25188
    cat >conftest.$ac_ext <<_ACEOF
 
25189
/* confdefs.h.  */
 
25190
_ACEOF
 
25191
cat confdefs.h >>conftest.$ac_ext
 
25192
cat >>conftest.$ac_ext <<_ACEOF
 
25193
/* end confdefs.h.  */
 
25194
 
 
25195
/* Override any gcc2 internal prototype to avoid an error.  */
 
25196
#ifdef __cplusplus
 
25197
extern "C"
 
25198
#endif
 
25199
/* We use char because int might match the return type of a gcc2
 
25200
   builtin and then its argument prototype would still apply.  */
 
25201
char gethostname ();
 
25202
int
 
25203
main ()
 
25204
{
 
25205
gethostname ();
 
25206
  ;
 
25207
  return 0;
 
25208
}
 
25209
_ACEOF
 
25210
rm -f conftest.$ac_objext conftest$ac_exeext
 
25211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25212
  (eval $ac_link) 2>conftest.er1
 
25213
  ac_status=$?
 
25214
  grep -v '^ *+' conftest.er1 >conftest.err
 
25215
  rm -f conftest.er1
 
25216
  cat conftest.err >&5
 
25217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25218
  (exit $ac_status); } &&
 
25219
         { ac_try='test -z "$ac_c_werror_flag"
 
25220
                         || test ! -s conftest.err'
 
25221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25222
  (eval $ac_try) 2>&5
 
25223
  ac_status=$?
 
25224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25225
  (exit $ac_status); }; } &&
 
25226
         { ac_try='test -s conftest$ac_exeext'
 
25227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25228
  (eval $ac_try) 2>&5
 
25229
  ac_status=$?
 
25230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25231
  (exit $ac_status); }; }; then
 
25232
  ac_cv_search_gethostname="-l$ac_lib"
 
25233
break
 
25234
else
 
25235
  echo "$as_me: failed program was:" >&5
 
25236
sed 's/^/| /' conftest.$ac_ext >&5
 
25237
 
 
25238
fi
 
25239
rm -f conftest.err conftest.$ac_objext \
 
25240
      conftest$ac_exeext conftest.$ac_ext
 
25241
  done
 
25242
fi
 
25243
LIBS=$ac_func_search_save_LIBS
 
25244
fi
 
25245
echo "$as_me:$LINENO: result: $ac_cv_search_gethostname" >&5
 
25246
echo "${ECHO_T}$ac_cv_search_gethostname" >&6
 
25247
if test "$ac_cv_search_gethostname" != no; then
 
25248
  test "$ac_cv_search_gethostname" = "none required" || LIBS="$ac_cv_search_gethostname $LIBS"
 
25249
 
 
25250
fi
 
25251
 
 
25252
echo "$as_me:$LINENO: checking for library containing socket" >&5
 
25253
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
 
25254
if test "${ac_cv_search_socket+set}" = set; then
 
25255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25256
else
 
25257
  ac_func_search_save_LIBS=$LIBS
 
25258
ac_cv_search_socket=no
 
25259
cat >conftest.$ac_ext <<_ACEOF
 
25260
/* confdefs.h.  */
 
25261
_ACEOF
 
25262
cat confdefs.h >>conftest.$ac_ext
 
25263
cat >>conftest.$ac_ext <<_ACEOF
 
25264
/* end confdefs.h.  */
 
25265
 
 
25266
/* Override any gcc2 internal prototype to avoid an error.  */
 
25267
#ifdef __cplusplus
 
25268
extern "C"
 
25269
#endif
 
25270
/* We use char because int might match the return type of a gcc2
 
25271
   builtin and then its argument prototype would still apply.  */
 
25272
char socket ();
 
25273
int
 
25274
main ()
 
25275
{
 
25276
socket ();
 
25277
  ;
 
25278
  return 0;
 
25279
}
 
25280
_ACEOF
 
25281
rm -f conftest.$ac_objext conftest$ac_exeext
 
25282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25283
  (eval $ac_link) 2>conftest.er1
 
25284
  ac_status=$?
 
25285
  grep -v '^ *+' conftest.er1 >conftest.err
 
25286
  rm -f conftest.er1
 
25287
  cat conftest.err >&5
 
25288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25289
  (exit $ac_status); } &&
 
25290
         { ac_try='test -z "$ac_c_werror_flag"
 
25291
                         || test ! -s conftest.err'
 
25292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25293
  (eval $ac_try) 2>&5
 
25294
  ac_status=$?
 
25295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25296
  (exit $ac_status); }; } &&
 
25297
         { ac_try='test -s conftest$ac_exeext'
 
25298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25299
  (eval $ac_try) 2>&5
 
25300
  ac_status=$?
 
25301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25302
  (exit $ac_status); }; }; then
 
25303
  ac_cv_search_socket="none required"
 
25304
else
 
25305
  echo "$as_me: failed program was:" >&5
 
25306
sed 's/^/| /' conftest.$ac_ext >&5
 
25307
 
 
25308
fi
 
25309
rm -f conftest.err conftest.$ac_objext \
 
25310
      conftest$ac_exeext conftest.$ac_ext
 
25311
if test "$ac_cv_search_socket" = no; then
 
25312
  for ac_lib in socket; do
 
25313
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
25314
    cat >conftest.$ac_ext <<_ACEOF
 
25315
/* confdefs.h.  */
 
25316
_ACEOF
 
25317
cat confdefs.h >>conftest.$ac_ext
 
25318
cat >>conftest.$ac_ext <<_ACEOF
 
25319
/* end confdefs.h.  */
 
25320
 
 
25321
/* Override any gcc2 internal prototype to avoid an error.  */
 
25322
#ifdef __cplusplus
 
25323
extern "C"
 
25324
#endif
 
25325
/* We use char because int might match the return type of a gcc2
 
25326
   builtin and then its argument prototype would still apply.  */
 
25327
char socket ();
 
25328
int
 
25329
main ()
 
25330
{
 
25331
socket ();
 
25332
  ;
 
25333
  return 0;
 
25334
}
 
25335
_ACEOF
 
25336
rm -f conftest.$ac_objext conftest$ac_exeext
 
25337
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25338
  (eval $ac_link) 2>conftest.er1
 
25339
  ac_status=$?
 
25340
  grep -v '^ *+' conftest.er1 >conftest.err
 
25341
  rm -f conftest.er1
 
25342
  cat conftest.err >&5
 
25343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25344
  (exit $ac_status); } &&
 
25345
         { ac_try='test -z "$ac_c_werror_flag"
 
25346
                         || test ! -s conftest.err'
 
25347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25348
  (eval $ac_try) 2>&5
 
25349
  ac_status=$?
 
25350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25351
  (exit $ac_status); }; } &&
 
25352
         { ac_try='test -s conftest$ac_exeext'
 
25353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25354
  (eval $ac_try) 2>&5
 
25355
  ac_status=$?
 
25356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25357
  (exit $ac_status); }; }; then
 
25358
  ac_cv_search_socket="-l$ac_lib"
 
25359
break
 
25360
else
 
25361
  echo "$as_me: failed program was:" >&5
 
25362
sed 's/^/| /' conftest.$ac_ext >&5
 
25363
 
 
25364
fi
 
25365
rm -f conftest.err conftest.$ac_objext \
 
25366
      conftest$ac_exeext conftest.$ac_ext
 
25367
  done
 
25368
fi
 
25369
LIBS=$ac_func_search_save_LIBS
 
25370
fi
 
25371
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
 
25372
echo "${ECHO_T}$ac_cv_search_socket" >&6
 
25373
if test "$ac_cv_search_socket" != no; then
 
25374
  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
 
25375
 
 
25376
fi
 
25377
 
 
25378
echo "$as_me:$LINENO: checking for library containing crypt" >&5
 
25379
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
 
25380
if test "${ac_cv_search_crypt+set}" = set; then
 
25381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25382
else
 
25383
  ac_func_search_save_LIBS=$LIBS
 
25384
ac_cv_search_crypt=no
 
25385
cat >conftest.$ac_ext <<_ACEOF
 
25386
/* confdefs.h.  */
 
25387
_ACEOF
 
25388
cat confdefs.h >>conftest.$ac_ext
 
25389
cat >>conftest.$ac_ext <<_ACEOF
 
25390
/* end confdefs.h.  */
 
25391
 
 
25392
/* Override any gcc2 internal prototype to avoid an error.  */
 
25393
#ifdef __cplusplus
 
25394
extern "C"
 
25395
#endif
 
25396
/* We use char because int might match the return type of a gcc2
 
25397
   builtin and then its argument prototype would still apply.  */
 
25398
char crypt ();
 
25399
int
 
25400
main ()
 
25401
{
 
25402
crypt ();
 
25403
  ;
 
25404
  return 0;
 
25405
}
 
25406
_ACEOF
 
25407
rm -f conftest.$ac_objext conftest$ac_exeext
 
25408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25409
  (eval $ac_link) 2>conftest.er1
 
25410
  ac_status=$?
 
25411
  grep -v '^ *+' conftest.er1 >conftest.err
 
25412
  rm -f conftest.er1
 
25413
  cat conftest.err >&5
 
25414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25415
  (exit $ac_status); } &&
 
25416
         { ac_try='test -z "$ac_c_werror_flag"
 
25417
                         || test ! -s conftest.err'
 
25418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25419
  (eval $ac_try) 2>&5
 
25420
  ac_status=$?
 
25421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25422
  (exit $ac_status); }; } &&
 
25423
         { ac_try='test -s conftest$ac_exeext'
 
25424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25425
  (eval $ac_try) 2>&5
 
25426
  ac_status=$?
 
25427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25428
  (exit $ac_status); }; }; then
 
25429
  ac_cv_search_crypt="none required"
 
25430
else
 
25431
  echo "$as_me: failed program was:" >&5
 
25432
sed 's/^/| /' conftest.$ac_ext >&5
 
25433
 
 
25434
fi
 
25435
rm -f conftest.err conftest.$ac_objext \
 
25436
      conftest$ac_exeext conftest.$ac_ext
 
25437
if test "$ac_cv_search_crypt" = no; then
 
25438
  for ac_lib in crypt ufc; do
 
25439
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
25440
    cat >conftest.$ac_ext <<_ACEOF
 
25441
/* confdefs.h.  */
 
25442
_ACEOF
 
25443
cat confdefs.h >>conftest.$ac_ext
 
25444
cat >>conftest.$ac_ext <<_ACEOF
 
25445
/* end confdefs.h.  */
 
25446
 
 
25447
/* Override any gcc2 internal prototype to avoid an error.  */
 
25448
#ifdef __cplusplus
 
25449
extern "C"
 
25450
#endif
 
25451
/* We use char because int might match the return type of a gcc2
 
25452
   builtin and then its argument prototype would still apply.  */
 
25453
char crypt ();
 
25454
int
 
25455
main ()
 
25456
{
 
25457
crypt ();
 
25458
  ;
 
25459
  return 0;
 
25460
}
 
25461
_ACEOF
 
25462
rm -f conftest.$ac_objext conftest$ac_exeext
 
25463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25464
  (eval $ac_link) 2>conftest.er1
 
25465
  ac_status=$?
 
25466
  grep -v '^ *+' conftest.er1 >conftest.err
 
25467
  rm -f conftest.er1
 
25468
  cat conftest.err >&5
 
25469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25470
  (exit $ac_status); } &&
 
25471
         { ac_try='test -z "$ac_c_werror_flag"
 
25472
                         || test ! -s conftest.err'
 
25473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25474
  (eval $ac_try) 2>&5
 
25475
  ac_status=$?
 
25476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25477
  (exit $ac_status); }; } &&
 
25478
         { ac_try='test -s conftest$ac_exeext'
 
25479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25480
  (eval $ac_try) 2>&5
 
25481
  ac_status=$?
 
25482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25483
  (exit $ac_status); }; }; then
 
25484
  ac_cv_search_crypt="-l$ac_lib"
 
25485
break
 
25486
else
 
25487
  echo "$as_me: failed program was:" >&5
 
25488
sed 's/^/| /' conftest.$ac_ext >&5
 
25489
 
 
25490
fi
 
25491
rm -f conftest.err conftest.$ac_objext \
 
25492
      conftest$ac_exeext conftest.$ac_ext
 
25493
  done
 
25494
fi
 
25495
LIBS=$ac_func_search_save_LIBS
 
25496
fi
 
25497
echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
 
25498
echo "${ECHO_T}$ac_cv_search_crypt" >&6
 
25499
if test "$ac_cv_search_crypt" != no; then
 
25500
  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
 
25501
 
 
25502
fi
 
25503
 
 
25504
 
 
25505
echo "$as_me:$LINENO: checking for main in -ltruerand" >&5
 
25506
echo $ECHO_N "checking for main in -ltruerand... $ECHO_C" >&6
 
25507
if test "${ac_cv_lib_truerand_main+set}" = set; then
 
25508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25509
else
 
25510
  ac_check_lib_save_LIBS=$LIBS
 
25511
LIBS="-ltruerand  $LIBS"
 
25512
cat >conftest.$ac_ext <<_ACEOF
 
25513
/* confdefs.h.  */
 
25514
_ACEOF
 
25515
cat confdefs.h >>conftest.$ac_ext
 
25516
cat >>conftest.$ac_ext <<_ACEOF
 
25517
/* end confdefs.h.  */
 
25518
 
 
25519
 
 
25520
int
 
25521
main ()
 
25522
{
 
25523
main ();
 
25524
  ;
 
25525
  return 0;
 
25526
}
 
25527
_ACEOF
 
25528
rm -f conftest.$ac_objext conftest$ac_exeext
 
25529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25530
  (eval $ac_link) 2>conftest.er1
 
25531
  ac_status=$?
 
25532
  grep -v '^ *+' conftest.er1 >conftest.err
 
25533
  rm -f conftest.er1
 
25534
  cat conftest.err >&5
 
25535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25536
  (exit $ac_status); } &&
 
25537
         { ac_try='test -z "$ac_c_werror_flag"
 
25538
                         || test ! -s conftest.err'
 
25539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25540
  (eval $ac_try) 2>&5
 
25541
  ac_status=$?
 
25542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25543
  (exit $ac_status); }; } &&
 
25544
         { ac_try='test -s conftest$ac_exeext'
 
25545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25546
  (eval $ac_try) 2>&5
 
25547
  ac_status=$?
 
25548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25549
  (exit $ac_status); }; }; then
 
25550
  ac_cv_lib_truerand_main=yes
 
25551
else
 
25552
  echo "$as_me: failed program was:" >&5
 
25553
sed 's/^/| /' conftest.$ac_ext >&5
 
25554
 
 
25555
ac_cv_lib_truerand_main=no
 
25556
fi
 
25557
rm -f conftest.err conftest.$ac_objext \
 
25558
      conftest$ac_exeext conftest.$ac_ext
 
25559
LIBS=$ac_check_lib_save_LIBS
 
25560
fi
 
25561
echo "$as_me:$LINENO: result: $ac_cv_lib_truerand_main" >&5
 
25562
echo "${ECHO_T}$ac_cv_lib_truerand_main" >&6
 
25563
if test $ac_cv_lib_truerand_main = yes; then
 
25564
  cat >>confdefs.h <<_ACEOF
 
25565
#define HAVE_LIBTRUERAND 1
 
25566
_ACEOF
 
25567
 
 
25568
  LIBS="-ltruerand $LIBS"
 
25569
 
 
25570
fi
 
25571
 
 
25572
echo "$as_me:$LINENO: checking for library containing modf" >&5
 
25573
echo $ECHO_N "checking for library containing modf... $ECHO_C" >&6
 
25574
if test "${ac_cv_search_modf+set}" = set; then
 
25575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25576
else
 
25577
  ac_func_search_save_LIBS=$LIBS
 
25578
ac_cv_search_modf=no
 
25579
cat >conftest.$ac_ext <<_ACEOF
 
25580
/* confdefs.h.  */
 
25581
_ACEOF
 
25582
cat confdefs.h >>conftest.$ac_ext
 
25583
cat >>conftest.$ac_ext <<_ACEOF
 
25584
/* end confdefs.h.  */
 
25585
 
 
25586
/* Override any gcc2 internal prototype to avoid an error.  */
 
25587
#ifdef __cplusplus
 
25588
extern "C"
 
25589
#endif
 
25590
/* We use char because int might match the return type of a gcc2
 
25591
   builtin and then its argument prototype would still apply.  */
 
25592
char modf ();
 
25593
int
 
25594
main ()
 
25595
{
 
25596
modf ();
 
25597
  ;
 
25598
  return 0;
 
25599
}
 
25600
_ACEOF
 
25601
rm -f conftest.$ac_objext conftest$ac_exeext
 
25602
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25603
  (eval $ac_link) 2>conftest.er1
 
25604
  ac_status=$?
 
25605
  grep -v '^ *+' conftest.er1 >conftest.err
 
25606
  rm -f conftest.er1
 
25607
  cat conftest.err >&5
 
25608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25609
  (exit $ac_status); } &&
 
25610
         { ac_try='test -z "$ac_c_werror_flag"
 
25611
                         || test ! -s conftest.err'
 
25612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25613
  (eval $ac_try) 2>&5
 
25614
  ac_status=$?
 
25615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25616
  (exit $ac_status); }; } &&
 
25617
         { ac_try='test -s conftest$ac_exeext'
 
25618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25619
  (eval $ac_try) 2>&5
 
25620
  ac_status=$?
 
25621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25622
  (exit $ac_status); }; }; then
 
25623
  ac_cv_search_modf="none required"
 
25624
else
 
25625
  echo "$as_me: failed program was:" >&5
 
25626
sed 's/^/| /' conftest.$ac_ext >&5
 
25627
 
 
25628
fi
 
25629
rm -f conftest.err conftest.$ac_objext \
 
25630
      conftest$ac_exeext conftest.$ac_ext
 
25631
if test "$ac_cv_search_modf" = no; then
 
25632
  for ac_lib in m; do
 
25633
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
25634
    cat >conftest.$ac_ext <<_ACEOF
 
25635
/* confdefs.h.  */
 
25636
_ACEOF
 
25637
cat confdefs.h >>conftest.$ac_ext
 
25638
cat >>conftest.$ac_ext <<_ACEOF
 
25639
/* end confdefs.h.  */
 
25640
 
 
25641
/* Override any gcc2 internal prototype to avoid an error.  */
 
25642
#ifdef __cplusplus
 
25643
extern "C"
 
25644
#endif
 
25645
/* We use char because int might match the return type of a gcc2
 
25646
   builtin and then its argument prototype would still apply.  */
 
25647
char modf ();
 
25648
int
 
25649
main ()
 
25650
{
 
25651
modf ();
 
25652
  ;
 
25653
  return 0;
 
25654
}
 
25655
_ACEOF
 
25656
rm -f conftest.$ac_objext conftest$ac_exeext
 
25657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25658
  (eval $ac_link) 2>conftest.er1
 
25659
  ac_status=$?
 
25660
  grep -v '^ *+' conftest.er1 >conftest.err
 
25661
  rm -f conftest.er1
 
25662
  cat conftest.err >&5
 
25663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25664
  (exit $ac_status); } &&
 
25665
         { ac_try='test -z "$ac_c_werror_flag"
 
25666
                         || test ! -s conftest.err'
 
25667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25668
  (eval $ac_try) 2>&5
 
25669
  ac_status=$?
 
25670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25671
  (exit $ac_status); }; } &&
 
25672
         { ac_try='test -s conftest$ac_exeext'
 
25673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25674
  (eval $ac_try) 2>&5
 
25675
  ac_status=$?
 
25676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25677
  (exit $ac_status); }; }; then
 
25678
  ac_cv_search_modf="-l$ac_lib"
 
25679
break
 
25680
else
 
25681
  echo "$as_me: failed program was:" >&5
 
25682
sed 's/^/| /' conftest.$ac_ext >&5
 
25683
 
 
25684
fi
 
25685
rm -f conftest.err conftest.$ac_objext \
 
25686
      conftest$ac_exeext conftest.$ac_ext
 
25687
  done
 
25688
fi
 
25689
LIBS=$ac_func_search_save_LIBS
 
25690
fi
 
25691
echo "$as_me:$LINENO: result: $ac_cv_search_modf" >&5
 
25692
echo "${ECHO_T}$ac_cv_search_modf" >&6
 
25693
if test "$ac_cv_search_modf" != no; then
 
25694
  test "$ac_cv_search_modf" = "none required" || LIBS="$ac_cv_search_modf $LIBS"
 
25695
 
 
25696
fi
 
25697
 
 
25698
 
 
25699
echo "${nl}Checking for Threads..."
 
25700
 
 
25701
if test -z "$enable_threads"; then
 
25702
        # Check whether --enable-threads or --disable-threads was given.
 
25703
if test "${enable_threads+set}" = set; then
 
25704
  enableval="$enable_threads"
 
25705
   enable_threads=$enableval
 
25706
else
 
25707
 
 
25708
  if test "$GCC" = "yes"; then
 
25709
    SAVE_FL="$CPPFLAGS"
 
25710
    CPPFLAGS="$CPPFLAGS -w"
 
25711
 
 
25712
for ac_header in pthread.h
 
25713
do
 
25714
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25715
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
25716
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25717
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
25718
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
25719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25720
fi
 
25721
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
25722
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
25723
else
 
25724
  # Is the header compilable?
 
25725
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
25726
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
25727
cat >conftest.$ac_ext <<_ACEOF
 
25728
/* confdefs.h.  */
 
25729
_ACEOF
 
25730
cat confdefs.h >>conftest.$ac_ext
 
25731
cat >>conftest.$ac_ext <<_ACEOF
 
25732
/* end confdefs.h.  */
 
25733
$ac_includes_default
 
25734
#include <$ac_header>
 
25735
_ACEOF
 
25736
rm -f conftest.$ac_objext
 
25737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25738
  (eval $ac_compile) 2>conftest.er1
 
25739
  ac_status=$?
 
25740
  grep -v '^ *+' conftest.er1 >conftest.err
 
25741
  rm -f conftest.er1
 
25742
  cat conftest.err >&5
 
25743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25744
  (exit $ac_status); } &&
 
25745
         { ac_try='test -z "$ac_c_werror_flag"
 
25746
                         || test ! -s conftest.err'
 
25747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25748
  (eval $ac_try) 2>&5
 
25749
  ac_status=$?
 
25750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25751
  (exit $ac_status); }; } &&
 
25752
         { ac_try='test -s conftest.$ac_objext'
 
25753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25754
  (eval $ac_try) 2>&5
 
25755
  ac_status=$?
 
25756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25757
  (exit $ac_status); }; }; then
 
25758
  ac_header_compiler=yes
 
25759
else
 
25760
  echo "$as_me: failed program was:" >&5
 
25761
sed 's/^/| /' conftest.$ac_ext >&5
 
25762
 
 
25763
ac_header_compiler=no
 
25764
fi
 
25765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25766
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25767
echo "${ECHO_T}$ac_header_compiler" >&6
 
25768
 
 
25769
# Is the header present?
 
25770
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25771
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
25772
cat >conftest.$ac_ext <<_ACEOF
 
25773
/* confdefs.h.  */
 
25774
_ACEOF
 
25775
cat confdefs.h >>conftest.$ac_ext
 
25776
cat >>conftest.$ac_ext <<_ACEOF
 
25777
/* end confdefs.h.  */
 
25778
#include <$ac_header>
 
25779
_ACEOF
 
25780
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
25781
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25782
  ac_status=$?
 
25783
  grep -v '^ *+' conftest.er1 >conftest.err
 
25784
  rm -f conftest.er1
 
25785
  cat conftest.err >&5
 
25786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25787
  (exit $ac_status); } >/dev/null; then
 
25788
  if test -s conftest.err; then
 
25789
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25790
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
25791
  else
 
25792
    ac_cpp_err=
 
25793
  fi
 
25794
else
 
25795
  ac_cpp_err=yes
 
25796
fi
 
25797
if test -z "$ac_cpp_err"; then
 
25798
  ac_header_preproc=yes
 
25799
else
 
25800
  echo "$as_me: failed program was:" >&5
 
25801
sed 's/^/| /' conftest.$ac_ext >&5
 
25802
 
 
25803
  ac_header_preproc=no
 
25804
fi
 
25805
rm -f conftest.err conftest.$ac_ext
 
25806
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25807
echo "${ECHO_T}$ac_header_preproc" >&6
 
25808
 
 
25809
# So?  What about this header?
 
25810
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25811
  yes:no: )
 
25812
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25813
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25814
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25815
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25816
    ac_header_preproc=yes
 
25817
    ;;
 
25818
  no:yes:* )
 
25819
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25820
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25821
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25822
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25823
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25824
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25825
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25826
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25827
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25828
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25829
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25830
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25831
    (
 
25832
      cat <<\_ASBOX
 
25833
## ------------------------------------------ ##
 
25834
## Report this to the AC_PACKAGE_NAME lists.  ##
 
25835
## ------------------------------------------ ##
 
25836
_ASBOX
 
25837
    ) |
 
25838
      sed "s/^/$as_me: WARNING:     /" >&2
 
25839
    ;;
 
25840
esac
 
25841
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25842
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
25843
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
25844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25845
else
 
25846
  eval "$as_ac_Header=\$ac_header_preproc"
 
25847
fi
 
25848
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
25849
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
25850
 
 
25851
fi
 
25852
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
25853
  cat >>confdefs.h <<_ACEOF
 
25854
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25855
_ACEOF
 
25856
   enable_threads="pthread"
 
25857
else
 
25858
    enable_threads="no"
 
25859
fi
 
25860
 
 
25861
done
 
25862
 
 
25863
    CPPFLAGS="$SAVE_FL"
 
25864
  else
 
25865
 
 
25866
for ac_header in pthread.h
 
25867
do
 
25868
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25869
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
25870
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25871
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
25872
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
25873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25874
fi
 
25875
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
25876
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
25877
else
 
25878
  # Is the header compilable?
 
25879
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
25880
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
25881
cat >conftest.$ac_ext <<_ACEOF
 
25882
/* confdefs.h.  */
 
25883
_ACEOF
 
25884
cat confdefs.h >>conftest.$ac_ext
 
25885
cat >>conftest.$ac_ext <<_ACEOF
 
25886
/* end confdefs.h.  */
 
25887
$ac_includes_default
 
25888
#include <$ac_header>
 
25889
_ACEOF
 
25890
rm -f conftest.$ac_objext
 
25891
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25892
  (eval $ac_compile) 2>conftest.er1
 
25893
  ac_status=$?
 
25894
  grep -v '^ *+' conftest.er1 >conftest.err
 
25895
  rm -f conftest.er1
 
25896
  cat conftest.err >&5
 
25897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25898
  (exit $ac_status); } &&
 
25899
         { ac_try='test -z "$ac_c_werror_flag"
 
25900
                         || test ! -s conftest.err'
 
25901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25902
  (eval $ac_try) 2>&5
 
25903
  ac_status=$?
 
25904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25905
  (exit $ac_status); }; } &&
 
25906
         { ac_try='test -s conftest.$ac_objext'
 
25907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25908
  (eval $ac_try) 2>&5
 
25909
  ac_status=$?
 
25910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25911
  (exit $ac_status); }; }; then
 
25912
  ac_header_compiler=yes
 
25913
else
 
25914
  echo "$as_me: failed program was:" >&5
 
25915
sed 's/^/| /' conftest.$ac_ext >&5
 
25916
 
 
25917
ac_header_compiler=no
 
25918
fi
 
25919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25920
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25921
echo "${ECHO_T}$ac_header_compiler" >&6
 
25922
 
 
25923
# Is the header present?
 
25924
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25925
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
25926
cat >conftest.$ac_ext <<_ACEOF
 
25927
/* confdefs.h.  */
 
25928
_ACEOF
 
25929
cat confdefs.h >>conftest.$ac_ext
 
25930
cat >>conftest.$ac_ext <<_ACEOF
 
25931
/* end confdefs.h.  */
 
25932
#include <$ac_header>
 
25933
_ACEOF
 
25934
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
25935
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25936
  ac_status=$?
 
25937
  grep -v '^ *+' conftest.er1 >conftest.err
 
25938
  rm -f conftest.er1
 
25939
  cat conftest.err >&5
 
25940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25941
  (exit $ac_status); } >/dev/null; then
 
25942
  if test -s conftest.err; then
 
25943
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25944
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
25945
  else
 
25946
    ac_cpp_err=
 
25947
  fi
 
25948
else
 
25949
  ac_cpp_err=yes
 
25950
fi
 
25951
if test -z "$ac_cpp_err"; then
 
25952
  ac_header_preproc=yes
 
25953
else
 
25954
  echo "$as_me: failed program was:" >&5
 
25955
sed 's/^/| /' conftest.$ac_ext >&5
 
25956
 
 
25957
  ac_header_preproc=no
 
25958
fi
 
25959
rm -f conftest.err conftest.$ac_ext
 
25960
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25961
echo "${ECHO_T}$ac_header_preproc" >&6
 
25962
 
 
25963
# So?  What about this header?
 
25964
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25965
  yes:no: )
 
25966
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25967
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25968
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25969
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25970
    ac_header_preproc=yes
 
25971
    ;;
 
25972
  no:yes:* )
 
25973
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25974
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25975
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25976
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25977
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25978
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25979
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25980
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25981
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25982
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25983
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25984
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25985
    (
 
25986
      cat <<\_ASBOX
 
25987
## ------------------------------------------ ##
 
25988
## Report this to the AC_PACKAGE_NAME lists.  ##
 
25989
## ------------------------------------------ ##
 
25990
_ASBOX
 
25991
    ) |
 
25992
      sed "s/^/$as_me: WARNING:     /" >&2
 
25993
    ;;
 
25994
esac
 
25995
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25996
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
25997
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
25998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25999
else
 
26000
  eval "$as_ac_Header=\$ac_header_preproc"
 
26001
fi
 
26002
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26003
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26004
 
 
26005
fi
 
26006
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26007
  cat >>confdefs.h <<_ACEOF
 
26008
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26009
_ACEOF
 
26010
   enable_threads="pthread"
 
26011
else
 
26012
    enable_threads="no"
 
26013
fi
 
26014
 
 
26015
done
 
26016
 
 
26017
  fi
 
26018
 
 
26019
fi;
 
26020
fi
 
26021
 
 
26022
if test "$enable_threads" = "no"; then
 
26023
    threads="0"
 
26024
    pthreadh="0"
 
26025
    pthreadser="0"
 
26026
else
 
26027
    if test "$enable_threads" = "pthread"; then
 
26028
# We have specified pthreads for our threading library, just make sure
 
26029
# that we have everything we need
 
26030
 
 
26031
  apr_pthsv_CFLAGS="$CFLAGS"
 
26032
  apr_pthsv_LIBS="$LIBS"
 
26033
 
 
26034
 
 
26035
 
 
26036
echo "$as_me:$LINENO: checking for CFLAGS needed for pthreads" >&5
 
26037
echo $ECHO_N "checking for CFLAGS needed for pthreads... $ECHO_C" >&6
 
26038
if test "${apr_cv_pthreads_cflags+set}" = set; then
 
26039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26040
else
 
26041
  apr_ptc_cflags=$CFLAGS
 
26042
 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
 
26043
    CFLAGS=$apr_ptc_cflags
 
26044
    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
 
26045
 
 
26046
if test "$cross_compiling" = yes; then
 
26047
  apr_p_t_r=no
 
26048
else
 
26049
  cat >conftest.$ac_ext <<_ACEOF
 
26050
/* confdefs.h.  */
 
26051
_ACEOF
 
26052
cat confdefs.h >>conftest.$ac_ext
 
26053
cat >>conftest.$ac_ext <<_ACEOF
 
26054
/* end confdefs.h.  */
 
26055
 
 
26056
#include <pthread.h>
 
26057
#include <stddef.h>
 
26058
 
 
26059
void *thread_routine(void *data) {
 
26060
    return data;
 
26061
}
 
26062
 
 
26063
int main() {
 
26064
    pthread_t thd;
 
26065
    pthread_mutexattr_t mattr;
 
26066
    pthread_once_t once_init = PTHREAD_ONCE_INIT;
 
26067
    int data = 1;
 
26068
    pthread_mutexattr_init(&mattr);
 
26069
    return pthread_create(&thd, NULL, thread_routine, &data);
 
26070
}
 
26071
_ACEOF
 
26072
rm -f conftest$ac_exeext
 
26073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26074
  (eval $ac_link) 2>&5
 
26075
  ac_status=$?
 
26076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26077
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26079
  (eval $ac_try) 2>&5
 
26080
  ac_status=$?
 
26081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26082
  (exit $ac_status); }; }; then
 
26083
  apr_p_t_r=yes
 
26084
else
 
26085
  echo "$as_me: program exited with status $ac_status" >&5
 
26086
echo "$as_me: failed program was:" >&5
 
26087
sed 's/^/| /' conftest.$ac_ext >&5
 
26088
 
 
26089
( exit $ac_status )
 
26090
apr_p_t_r=no
 
26091
fi
 
26092
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26093
fi
 
26094
 
 
26095
if test $apr_p_t_r = yes; then
 
26096
 
 
26097
      apr_cv_pthreads_cflags="$flag"
 
26098
      break
 
26099
 
 
26100
fi
 
26101
 
 
26102
 
 
26103
 done
 
26104
 CFLAGS=$apr_ptc_cflags
 
26105
 
 
26106
fi
 
26107
echo "$as_me:$LINENO: result: $apr_cv_pthreads_cflags" >&5
 
26108
echo "${ECHO_T}$apr_cv_pthreads_cflags" >&6
 
26109
 
 
26110
if test -n "$apr_cv_pthreads_cflags"; then
 
26111
   pthreads_working=yes
 
26112
   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
 
26113
 
 
26114
  if test "x$CFLAGS" = "x"; then
 
26115
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
 
26116
    CFLAGS="$apr_cv_pthreads_cflags"
 
26117
  else
 
26118
    apr_addto_bugger="$apr_cv_pthreads_cflags"
 
26119
    for i in $apr_addto_bugger; do
 
26120
      apr_addto_duplicate="0"
 
26121
      for j in $CFLAGS; do
 
26122
        if test "x$i" = "x$j"; then
 
26123
          apr_addto_duplicate="1"
 
26124
          break
 
26125
        fi
 
26126
      done
 
26127
      if test $apr_addto_duplicate = "0"; then
 
26128
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
26129
        CFLAGS="$CFLAGS $i"
 
26130
      fi
 
26131
    done
 
26132
  fi
 
26133
 
 
26134
   fi
 
26135
fi
 
26136
 
 
26137
# The CFLAGS may or may not be sufficient to ensure that libapr
 
26138
# depends on the pthreads library: some versions of libtool
 
26139
# drop -pthread when passed on the link line; some versions of
 
26140
# gcc ignore -pthread when linking a shared object.  So always
 
26141
# try and add the relevant library to LIBS too.
 
26142
 
 
26143
echo "$as_me:$LINENO: checking for LIBS needed for pthreads" >&5
 
26144
echo $ECHO_N "checking for LIBS needed for pthreads... $ECHO_C" >&6
 
26145
if test "${apr_cv_pthreads_lib+set}" = set; then
 
26146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26147
else
 
26148
 
 
26149
  apr_ptc_libs=$LIBS
 
26150
  for lib in -lpthread -lpthreads -lc_r; do
 
26151
    LIBS="$apr_ptc_libs $lib"
 
26152
 
 
26153
if test "$cross_compiling" = yes; then
 
26154
  apr_p_t_r=no
 
26155
else
 
26156
  cat >conftest.$ac_ext <<_ACEOF
 
26157
/* confdefs.h.  */
 
26158
_ACEOF
 
26159
cat confdefs.h >>conftest.$ac_ext
 
26160
cat >>conftest.$ac_ext <<_ACEOF
 
26161
/* end confdefs.h.  */
 
26162
 
 
26163
#include <pthread.h>
 
26164
#include <stddef.h>
 
26165
 
 
26166
void *thread_routine(void *data) {
 
26167
    return data;
 
26168
}
 
26169
 
 
26170
int main() {
 
26171
    pthread_t thd;
 
26172
    pthread_mutexattr_t mattr;
 
26173
    pthread_once_t once_init = PTHREAD_ONCE_INIT;
 
26174
    int data = 1;
 
26175
    pthread_mutexattr_init(&mattr);
 
26176
    return pthread_create(&thd, NULL, thread_routine, &data);
 
26177
}
 
26178
_ACEOF
 
26179
rm -f conftest$ac_exeext
 
26180
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26181
  (eval $ac_link) 2>&5
 
26182
  ac_status=$?
 
26183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26184
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26186
  (eval $ac_try) 2>&5
 
26187
  ac_status=$?
 
26188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26189
  (exit $ac_status); }; }; then
 
26190
  apr_p_t_r=yes
 
26191
else
 
26192
  echo "$as_me: program exited with status $ac_status" >&5
 
26193
echo "$as_me: failed program was:" >&5
 
26194
sed 's/^/| /' conftest.$ac_ext >&5
 
26195
 
 
26196
( exit $ac_status )
 
26197
apr_p_t_r=no
 
26198
fi
 
26199
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26200
fi
 
26201
 
 
26202
if test $apr_p_t_r = yes; then
 
26203
 
 
26204
      apr_cv_pthreads_lib=$lib
 
26205
      break
 
26206
 
 
26207
fi
 
26208
 
 
26209
 
 
26210
  done
 
26211
  LIBS=$apr_ptc_libs
 
26212
 
 
26213
fi
 
26214
echo "$as_me:$LINENO: result: $apr_cv_pthreads_lib" >&5
 
26215
echo "${ECHO_T}$apr_cv_pthreads_lib" >&6
 
26216
 
 
26217
if test -n "$apr_cv_pthreads_lib"; then
 
26218
   pthreads_working=yes
 
26219
 
 
26220
  if test "x$LIBS" = "x"; then
 
26221
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
 
26222
    LIBS="$apr_cv_pthreads_lib"
 
26223
  else
 
26224
    apr_addto_bugger="$apr_cv_pthreads_lib"
 
26225
    for i in $apr_addto_bugger; do
 
26226
      apr_addto_duplicate="0"
 
26227
      for j in $LIBS; do
 
26228
        if test "x$i" = "x$j"; then
 
26229
          apr_addto_duplicate="1"
 
26230
          break
 
26231
        fi
 
26232
      done
 
26233
      if test $apr_addto_duplicate = "0"; then
 
26234
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
26235
        LIBS="$LIBS $i"
 
26236
      fi
 
26237
    done
 
26238
  fi
 
26239
 
 
26240
fi
 
26241
 
 
26242
if test "$pthreads_working" = "yes"; then
 
26243
  threads_result="POSIX Threads found"
 
26244
else
 
26245
  threads_result="POSIX Threads not found"
 
26246
fi
 
26247
 
 
26248
 
 
26249
  if test "$GCC" = "yes"; then
 
26250
    SAVE_FL="$CPPFLAGS"
 
26251
    CPPFLAGS="$CPPFLAGS -w"
 
26252
 
 
26253
for ac_header in pthread.h
 
26254
do
 
26255
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26256
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26257
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26258
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26259
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26261
fi
 
26262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26263
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26264
else
 
26265
  # Is the header compilable?
 
26266
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26267
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26268
cat >conftest.$ac_ext <<_ACEOF
 
26269
/* confdefs.h.  */
 
26270
_ACEOF
 
26271
cat confdefs.h >>conftest.$ac_ext
 
26272
cat >>conftest.$ac_ext <<_ACEOF
 
26273
/* end confdefs.h.  */
 
26274
$ac_includes_default
 
26275
#include <$ac_header>
 
26276
_ACEOF
 
26277
rm -f conftest.$ac_objext
 
26278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26279
  (eval $ac_compile) 2>conftest.er1
 
26280
  ac_status=$?
 
26281
  grep -v '^ *+' conftest.er1 >conftest.err
 
26282
  rm -f conftest.er1
 
26283
  cat conftest.err >&5
 
26284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26285
  (exit $ac_status); } &&
 
26286
         { ac_try='test -z "$ac_c_werror_flag"
 
26287
                         || test ! -s conftest.err'
 
26288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26289
  (eval $ac_try) 2>&5
 
26290
  ac_status=$?
 
26291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26292
  (exit $ac_status); }; } &&
 
26293
         { ac_try='test -s conftest.$ac_objext'
 
26294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26295
  (eval $ac_try) 2>&5
 
26296
  ac_status=$?
 
26297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26298
  (exit $ac_status); }; }; then
 
26299
  ac_header_compiler=yes
 
26300
else
 
26301
  echo "$as_me: failed program was:" >&5
 
26302
sed 's/^/| /' conftest.$ac_ext >&5
 
26303
 
 
26304
ac_header_compiler=no
 
26305
fi
 
26306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26307
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26308
echo "${ECHO_T}$ac_header_compiler" >&6
 
26309
 
 
26310
# Is the header present?
 
26311
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26312
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26313
cat >conftest.$ac_ext <<_ACEOF
 
26314
/* confdefs.h.  */
 
26315
_ACEOF
 
26316
cat confdefs.h >>conftest.$ac_ext
 
26317
cat >>conftest.$ac_ext <<_ACEOF
 
26318
/* end confdefs.h.  */
 
26319
#include <$ac_header>
 
26320
_ACEOF
 
26321
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26322
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26323
  ac_status=$?
 
26324
  grep -v '^ *+' conftest.er1 >conftest.err
 
26325
  rm -f conftest.er1
 
26326
  cat conftest.err >&5
 
26327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26328
  (exit $ac_status); } >/dev/null; then
 
26329
  if test -s conftest.err; then
 
26330
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26331
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26332
  else
 
26333
    ac_cpp_err=
 
26334
  fi
 
26335
else
 
26336
  ac_cpp_err=yes
 
26337
fi
 
26338
if test -z "$ac_cpp_err"; then
 
26339
  ac_header_preproc=yes
 
26340
else
 
26341
  echo "$as_me: failed program was:" >&5
 
26342
sed 's/^/| /' conftest.$ac_ext >&5
 
26343
 
 
26344
  ac_header_preproc=no
 
26345
fi
 
26346
rm -f conftest.err conftest.$ac_ext
 
26347
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26348
echo "${ECHO_T}$ac_header_preproc" >&6
 
26349
 
 
26350
# So?  What about this header?
 
26351
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26352
  yes:no: )
 
26353
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
26354
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26355
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
26356
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
26357
    ac_header_preproc=yes
 
26358
    ;;
 
26359
  no:yes:* )
 
26360
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
26361
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
26362
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
26363
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
26364
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
26365
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
26366
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
26367
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26368
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
26369
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
26370
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
26371
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
26372
    (
 
26373
      cat <<\_ASBOX
 
26374
## ------------------------------------------ ##
 
26375
## Report this to the AC_PACKAGE_NAME lists.  ##
 
26376
## ------------------------------------------ ##
 
26377
_ASBOX
 
26378
    ) |
 
26379
      sed "s/^/$as_me: WARNING:     /" >&2
 
26380
    ;;
 
26381
esac
 
26382
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26383
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26384
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26386
else
 
26387
  eval "$as_ac_Header=\$ac_header_preproc"
 
26388
fi
 
26389
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26390
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26391
 
 
26392
fi
 
26393
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26394
  cat >>confdefs.h <<_ACEOF
 
26395
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26396
_ACEOF
 
26397
 
 
26398
          threads="1"
 
26399
          pthreadh="1"
 
26400
          pthreadser="1"
 
26401
else
 
26402
 
 
26403
          threads="0"
 
26404
          pthreadh="0"
 
26405
          pthreadser="0"
 
26406
 
 
26407
  CFLAGS="$apr_pthsv_CFLAGS"
 
26408
  LIBS="$apr_pthsv_LIBS"
 
26409
 
 
26410
fi
 
26411
 
 
26412
done
 
26413
 
 
26414
    CPPFLAGS="$SAVE_FL"
 
26415
  else
 
26416
 
 
26417
for ac_header in pthread.h
 
26418
do
 
26419
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26420
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26421
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26422
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26423
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26425
fi
 
26426
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26427
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26428
else
 
26429
  # Is the header compilable?
 
26430
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26431
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26432
cat >conftest.$ac_ext <<_ACEOF
 
26433
/* confdefs.h.  */
 
26434
_ACEOF
 
26435
cat confdefs.h >>conftest.$ac_ext
 
26436
cat >>conftest.$ac_ext <<_ACEOF
 
26437
/* end confdefs.h.  */
 
26438
$ac_includes_default
 
26439
#include <$ac_header>
 
26440
_ACEOF
 
26441
rm -f conftest.$ac_objext
 
26442
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26443
  (eval $ac_compile) 2>conftest.er1
 
26444
  ac_status=$?
 
26445
  grep -v '^ *+' conftest.er1 >conftest.err
 
26446
  rm -f conftest.er1
 
26447
  cat conftest.err >&5
 
26448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26449
  (exit $ac_status); } &&
 
26450
         { ac_try='test -z "$ac_c_werror_flag"
 
26451
                         || test ! -s conftest.err'
 
26452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26453
  (eval $ac_try) 2>&5
 
26454
  ac_status=$?
 
26455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26456
  (exit $ac_status); }; } &&
 
26457
         { ac_try='test -s conftest.$ac_objext'
 
26458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26459
  (eval $ac_try) 2>&5
 
26460
  ac_status=$?
 
26461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26462
  (exit $ac_status); }; }; then
 
26463
  ac_header_compiler=yes
 
26464
else
 
26465
  echo "$as_me: failed program was:" >&5
 
26466
sed 's/^/| /' conftest.$ac_ext >&5
 
26467
 
 
26468
ac_header_compiler=no
 
26469
fi
 
26470
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26471
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26472
echo "${ECHO_T}$ac_header_compiler" >&6
 
26473
 
 
26474
# Is the header present?
 
26475
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26476
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26477
cat >conftest.$ac_ext <<_ACEOF
 
26478
/* confdefs.h.  */
 
26479
_ACEOF
 
26480
cat confdefs.h >>conftest.$ac_ext
 
26481
cat >>conftest.$ac_ext <<_ACEOF
 
26482
/* end confdefs.h.  */
 
26483
#include <$ac_header>
 
26484
_ACEOF
 
26485
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26486
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26487
  ac_status=$?
 
26488
  grep -v '^ *+' conftest.er1 >conftest.err
 
26489
  rm -f conftest.er1
 
26490
  cat conftest.err >&5
 
26491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26492
  (exit $ac_status); } >/dev/null; then
 
26493
  if test -s conftest.err; then
 
26494
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26495
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26496
  else
 
26497
    ac_cpp_err=
 
26498
  fi
 
26499
else
 
26500
  ac_cpp_err=yes
 
26501
fi
 
26502
if test -z "$ac_cpp_err"; then
 
26503
  ac_header_preproc=yes
 
26504
else
 
26505
  echo "$as_me: failed program was:" >&5
 
26506
sed 's/^/| /' conftest.$ac_ext >&5
 
26507
 
 
26508
  ac_header_preproc=no
 
26509
fi
 
26510
rm -f conftest.err conftest.$ac_ext
 
26511
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26512
echo "${ECHO_T}$ac_header_preproc" >&6
 
26513
 
 
26514
# So?  What about this header?
 
26515
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26516
  yes:no: )
 
26517
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
26518
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26519
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
26520
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
26521
    ac_header_preproc=yes
 
26522
    ;;
 
26523
  no:yes:* )
 
26524
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
26525
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
26526
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
26527
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
26528
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
26529
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
26530
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
26531
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26532
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
26533
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
26534
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
26535
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
26536
    (
 
26537
      cat <<\_ASBOX
 
26538
## ------------------------------------------ ##
 
26539
## Report this to the AC_PACKAGE_NAME lists.  ##
 
26540
## ------------------------------------------ ##
 
26541
_ASBOX
 
26542
    ) |
 
26543
      sed "s/^/$as_me: WARNING:     /" >&2
 
26544
    ;;
 
26545
esac
 
26546
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26547
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26548
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26550
else
 
26551
  eval "$as_ac_Header=\$ac_header_preproc"
 
26552
fi
 
26553
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26554
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26555
 
 
26556
fi
 
26557
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26558
  cat >>confdefs.h <<_ACEOF
 
26559
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26560
_ACEOF
 
26561
 
 
26562
          threads="1"
 
26563
          pthreadh="1"
 
26564
          pthreadser="1"
 
26565
else
 
26566
 
 
26567
          threads="0"
 
26568
          pthreadh="0"
 
26569
          pthreadser="0"
 
26570
 
 
26571
  CFLAGS="$apr_pthsv_CFLAGS"
 
26572
  LIBS="$apr_pthsv_LIBS"
 
26573
 
 
26574
fi
 
26575
 
 
26576
done
 
26577
 
 
26578
  fi
 
26579
 
 
26580
    elif test "$enable_threads" = "system_threads"; then
 
26581
        threads="1"
 
26582
        pthreadh="0"
 
26583
        pthreadser="0"
 
26584
    else
 
26585
# We basically specified that we wanted threads, but not how to implement
 
26586
# them.  In this case, just look for pthreads.  In the future, we can check
 
26587
# for other threading libraries as well.
 
26588
 
 
26589
  apr_pthsv_CFLAGS="$CFLAGS"
 
26590
  apr_pthsv_LIBS="$LIBS"
 
26591
 
 
26592
 
 
26593
 
 
26594
echo "$as_me:$LINENO: checking for CFLAGS needed for pthreads" >&5
 
26595
echo $ECHO_N "checking for CFLAGS needed for pthreads... $ECHO_C" >&6
 
26596
if test "${apr_cv_pthreads_cflags+set}" = set; then
 
26597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26598
else
 
26599
  apr_ptc_cflags=$CFLAGS
 
26600
 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
 
26601
    CFLAGS=$apr_ptc_cflags
 
26602
    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
 
26603
 
 
26604
if test "$cross_compiling" = yes; then
 
26605
  apr_p_t_r=no
 
26606
else
 
26607
  cat >conftest.$ac_ext <<_ACEOF
 
26608
/* confdefs.h.  */
 
26609
_ACEOF
 
26610
cat confdefs.h >>conftest.$ac_ext
 
26611
cat >>conftest.$ac_ext <<_ACEOF
 
26612
/* end confdefs.h.  */
 
26613
 
 
26614
#include <pthread.h>
 
26615
#include <stddef.h>
 
26616
 
 
26617
void *thread_routine(void *data) {
 
26618
    return data;
 
26619
}
 
26620
 
 
26621
int main() {
 
26622
    pthread_t thd;
 
26623
    pthread_mutexattr_t mattr;
 
26624
    pthread_once_t once_init = PTHREAD_ONCE_INIT;
 
26625
    int data = 1;
 
26626
    pthread_mutexattr_init(&mattr);
 
26627
    return pthread_create(&thd, NULL, thread_routine, &data);
 
26628
}
 
26629
_ACEOF
 
26630
rm -f conftest$ac_exeext
 
26631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26632
  (eval $ac_link) 2>&5
 
26633
  ac_status=$?
 
26634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26635
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26637
  (eval $ac_try) 2>&5
 
26638
  ac_status=$?
 
26639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26640
  (exit $ac_status); }; }; then
 
26641
  apr_p_t_r=yes
 
26642
else
 
26643
  echo "$as_me: program exited with status $ac_status" >&5
 
26644
echo "$as_me: failed program was:" >&5
 
26645
sed 's/^/| /' conftest.$ac_ext >&5
 
26646
 
 
26647
( exit $ac_status )
 
26648
apr_p_t_r=no
 
26649
fi
 
26650
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26651
fi
 
26652
 
 
26653
if test $apr_p_t_r = yes; then
 
26654
 
 
26655
      apr_cv_pthreads_cflags="$flag"
 
26656
      break
 
26657
 
 
26658
fi
 
26659
 
 
26660
 
 
26661
 done
 
26662
 CFLAGS=$apr_ptc_cflags
 
26663
 
 
26664
fi
 
26665
echo "$as_me:$LINENO: result: $apr_cv_pthreads_cflags" >&5
 
26666
echo "${ECHO_T}$apr_cv_pthreads_cflags" >&6
 
26667
 
 
26668
if test -n "$apr_cv_pthreads_cflags"; then
 
26669
   pthreads_working=yes
 
26670
   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
 
26671
 
 
26672
  if test "x$CFLAGS" = "x"; then
 
26673
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
 
26674
    CFLAGS="$apr_cv_pthreads_cflags"
 
26675
  else
 
26676
    apr_addto_bugger="$apr_cv_pthreads_cflags"
 
26677
    for i in $apr_addto_bugger; do
 
26678
      apr_addto_duplicate="0"
 
26679
      for j in $CFLAGS; do
 
26680
        if test "x$i" = "x$j"; then
 
26681
          apr_addto_duplicate="1"
 
26682
          break
 
26683
        fi
 
26684
      done
 
26685
      if test $apr_addto_duplicate = "0"; then
 
26686
        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
 
26687
        CFLAGS="$CFLAGS $i"
 
26688
      fi
 
26689
    done
 
26690
  fi
 
26691
 
 
26692
   fi
 
26693
fi
 
26694
 
 
26695
# The CFLAGS may or may not be sufficient to ensure that libapr
 
26696
# depends on the pthreads library: some versions of libtool
 
26697
# drop -pthread when passed on the link line; some versions of
 
26698
# gcc ignore -pthread when linking a shared object.  So always
 
26699
# try and add the relevant library to LIBS too.
 
26700
 
 
26701
echo "$as_me:$LINENO: checking for LIBS needed for pthreads" >&5
 
26702
echo $ECHO_N "checking for LIBS needed for pthreads... $ECHO_C" >&6
 
26703
if test "${apr_cv_pthreads_lib+set}" = set; then
 
26704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26705
else
 
26706
 
 
26707
  apr_ptc_libs=$LIBS
 
26708
  for lib in -lpthread -lpthreads -lc_r; do
 
26709
    LIBS="$apr_ptc_libs $lib"
 
26710
 
 
26711
if test "$cross_compiling" = yes; then
 
26712
  apr_p_t_r=no
 
26713
else
 
26714
  cat >conftest.$ac_ext <<_ACEOF
 
26715
/* confdefs.h.  */
 
26716
_ACEOF
 
26717
cat confdefs.h >>conftest.$ac_ext
 
26718
cat >>conftest.$ac_ext <<_ACEOF
 
26719
/* end confdefs.h.  */
 
26720
 
 
26721
#include <pthread.h>
 
26722
#include <stddef.h>
 
26723
 
 
26724
void *thread_routine(void *data) {
 
26725
    return data;
 
26726
}
 
26727
 
 
26728
int main() {
 
26729
    pthread_t thd;
 
26730
    pthread_mutexattr_t mattr;
 
26731
    pthread_once_t once_init = PTHREAD_ONCE_INIT;
 
26732
    int data = 1;
 
26733
    pthread_mutexattr_init(&mattr);
 
26734
    return pthread_create(&thd, NULL, thread_routine, &data);
 
26735
}
 
26736
_ACEOF
 
26737
rm -f conftest$ac_exeext
 
26738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26739
  (eval $ac_link) 2>&5
 
26740
  ac_status=$?
 
26741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26742
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
26743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26744
  (eval $ac_try) 2>&5
 
26745
  ac_status=$?
 
26746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26747
  (exit $ac_status); }; }; then
 
26748
  apr_p_t_r=yes
 
26749
else
 
26750
  echo "$as_me: program exited with status $ac_status" >&5
 
26751
echo "$as_me: failed program was:" >&5
 
26752
sed 's/^/| /' conftest.$ac_ext >&5
 
26753
 
 
26754
( exit $ac_status )
 
26755
apr_p_t_r=no
 
26756
fi
 
26757
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26758
fi
 
26759
 
 
26760
if test $apr_p_t_r = yes; then
 
26761
 
 
26762
      apr_cv_pthreads_lib=$lib
 
26763
      break
 
26764
 
 
26765
fi
 
26766
 
 
26767
 
 
26768
  done
 
26769
  LIBS=$apr_ptc_libs
 
26770
 
 
26771
fi
 
26772
echo "$as_me:$LINENO: result: $apr_cv_pthreads_lib" >&5
 
26773
echo "${ECHO_T}$apr_cv_pthreads_lib" >&6
 
26774
 
 
26775
if test -n "$apr_cv_pthreads_lib"; then
 
26776
   pthreads_working=yes
 
26777
 
 
26778
  if test "x$LIBS" = "x"; then
 
26779
    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
 
26780
    LIBS="$apr_cv_pthreads_lib"
 
26781
  else
 
26782
    apr_addto_bugger="$apr_cv_pthreads_lib"
 
26783
    for i in $apr_addto_bugger; do
 
26784
      apr_addto_duplicate="0"
 
26785
      for j in $LIBS; do
 
26786
        if test "x$i" = "x$j"; then
 
26787
          apr_addto_duplicate="1"
 
26788
          break
 
26789
        fi
 
26790
      done
 
26791
      if test $apr_addto_duplicate = "0"; then
 
26792
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
26793
        LIBS="$LIBS $i"
 
26794
      fi
 
26795
    done
 
26796
  fi
 
26797
 
 
26798
fi
 
26799
 
 
26800
if test "$pthreads_working" = "yes"; then
 
26801
  threads_result="POSIX Threads found"
 
26802
else
 
26803
  threads_result="POSIX Threads not found"
 
26804
fi
 
26805
 
 
26806
 
 
26807
  if test "$GCC" = "yes"; then
 
26808
    SAVE_FL="$CPPFLAGS"
 
26809
    CPPFLAGS="$CPPFLAGS -w"
 
26810
 
 
26811
for ac_header in pthread.h
 
26812
do
 
26813
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26814
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26815
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26816
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26817
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26819
fi
 
26820
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26821
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26822
else
 
26823
  # Is the header compilable?
 
26824
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26825
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26826
cat >conftest.$ac_ext <<_ACEOF
 
26827
/* confdefs.h.  */
 
26828
_ACEOF
 
26829
cat confdefs.h >>conftest.$ac_ext
 
26830
cat >>conftest.$ac_ext <<_ACEOF
 
26831
/* end confdefs.h.  */
 
26832
$ac_includes_default
 
26833
#include <$ac_header>
 
26834
_ACEOF
 
26835
rm -f conftest.$ac_objext
 
26836
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26837
  (eval $ac_compile) 2>conftest.er1
 
26838
  ac_status=$?
 
26839
  grep -v '^ *+' conftest.er1 >conftest.err
 
26840
  rm -f conftest.er1
 
26841
  cat conftest.err >&5
 
26842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26843
  (exit $ac_status); } &&
 
26844
         { ac_try='test -z "$ac_c_werror_flag"
 
26845
                         || test ! -s conftest.err'
 
26846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26847
  (eval $ac_try) 2>&5
 
26848
  ac_status=$?
 
26849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26850
  (exit $ac_status); }; } &&
 
26851
         { ac_try='test -s conftest.$ac_objext'
 
26852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26853
  (eval $ac_try) 2>&5
 
26854
  ac_status=$?
 
26855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26856
  (exit $ac_status); }; }; then
 
26857
  ac_header_compiler=yes
 
26858
else
 
26859
  echo "$as_me: failed program was:" >&5
 
26860
sed 's/^/| /' conftest.$ac_ext >&5
 
26861
 
 
26862
ac_header_compiler=no
 
26863
fi
 
26864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26865
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26866
echo "${ECHO_T}$ac_header_compiler" >&6
 
26867
 
 
26868
# Is the header present?
 
26869
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26870
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26871
cat >conftest.$ac_ext <<_ACEOF
 
26872
/* confdefs.h.  */
 
26873
_ACEOF
 
26874
cat confdefs.h >>conftest.$ac_ext
 
26875
cat >>conftest.$ac_ext <<_ACEOF
 
26876
/* end confdefs.h.  */
 
26877
#include <$ac_header>
 
26878
_ACEOF
 
26879
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26880
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26881
  ac_status=$?
 
26882
  grep -v '^ *+' conftest.er1 >conftest.err
 
26883
  rm -f conftest.er1
 
26884
  cat conftest.err >&5
 
26885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26886
  (exit $ac_status); } >/dev/null; then
 
26887
  if test -s conftest.err; then
 
26888
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26889
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26890
  else
 
26891
    ac_cpp_err=
 
26892
  fi
 
26893
else
 
26894
  ac_cpp_err=yes
 
26895
fi
 
26896
if test -z "$ac_cpp_err"; then
 
26897
  ac_header_preproc=yes
 
26898
else
 
26899
  echo "$as_me: failed program was:" >&5
 
26900
sed 's/^/| /' conftest.$ac_ext >&5
 
26901
 
 
26902
  ac_header_preproc=no
 
26903
fi
 
26904
rm -f conftest.err conftest.$ac_ext
 
26905
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26906
echo "${ECHO_T}$ac_header_preproc" >&6
 
26907
 
 
26908
# So?  What about this header?
 
26909
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26910
  yes:no: )
 
26911
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
26912
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26913
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
26914
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
26915
    ac_header_preproc=yes
 
26916
    ;;
 
26917
  no:yes:* )
 
26918
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
26919
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
26920
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
26921
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
26922
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
26923
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
26924
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
26925
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26926
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
26927
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
26928
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
26929
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
26930
    (
 
26931
      cat <<\_ASBOX
 
26932
## ------------------------------------------ ##
 
26933
## Report this to the AC_PACKAGE_NAME lists.  ##
 
26934
## ------------------------------------------ ##
 
26935
_ASBOX
 
26936
    ) |
 
26937
      sed "s/^/$as_me: WARNING:     /" >&2
 
26938
    ;;
 
26939
esac
 
26940
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26941
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26942
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26944
else
 
26945
  eval "$as_ac_Header=\$ac_header_preproc"
 
26946
fi
 
26947
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26948
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26949
 
 
26950
fi
 
26951
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26952
  cat >>confdefs.h <<_ACEOF
 
26953
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26954
_ACEOF
 
26955
 
 
26956
          threads="1"
 
26957
          pthreadh="1"
 
26958
          pthreadser="1"
 
26959
else
 
26960
 
 
26961
          threads="0"
 
26962
          pthreadser="0"
 
26963
          pthreadh="0"
 
26964
 
 
26965
  CFLAGS="$apr_pthsv_CFLAGS"
 
26966
  LIBS="$apr_pthsv_LIBS"
 
26967
 
 
26968
fi
 
26969
 
 
26970
done
 
26971
 
 
26972
    CPPFLAGS="$SAVE_FL"
 
26973
  else
 
26974
 
 
26975
for ac_header in pthread.h
 
26976
do
 
26977
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26978
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26979
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26980
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26981
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26983
fi
 
26984
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26985
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26986
else
 
26987
  # Is the header compilable?
 
26988
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26989
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26990
cat >conftest.$ac_ext <<_ACEOF
 
26991
/* confdefs.h.  */
 
26992
_ACEOF
 
26993
cat confdefs.h >>conftest.$ac_ext
 
26994
cat >>conftest.$ac_ext <<_ACEOF
 
26995
/* end confdefs.h.  */
 
26996
$ac_includes_default
 
26997
#include <$ac_header>
 
26998
_ACEOF
 
26999
rm -f conftest.$ac_objext
 
27000
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27001
  (eval $ac_compile) 2>conftest.er1
 
27002
  ac_status=$?
 
27003
  grep -v '^ *+' conftest.er1 >conftest.err
 
27004
  rm -f conftest.er1
 
27005
  cat conftest.err >&5
 
27006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27007
  (exit $ac_status); } &&
 
27008
         { ac_try='test -z "$ac_c_werror_flag"
 
27009
                         || test ! -s conftest.err'
 
27010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27011
  (eval $ac_try) 2>&5
 
27012
  ac_status=$?
 
27013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27014
  (exit $ac_status); }; } &&
 
27015
         { ac_try='test -s conftest.$ac_objext'
 
27016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27017
  (eval $ac_try) 2>&5
 
27018
  ac_status=$?
 
27019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27020
  (exit $ac_status); }; }; then
 
27021
  ac_header_compiler=yes
 
27022
else
 
27023
  echo "$as_me: failed program was:" >&5
 
27024
sed 's/^/| /' conftest.$ac_ext >&5
 
27025
 
 
27026
ac_header_compiler=no
 
27027
fi
 
27028
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27029
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27030
echo "${ECHO_T}$ac_header_compiler" >&6
 
27031
 
 
27032
# Is the header present?
 
27033
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
27034
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
27035
cat >conftest.$ac_ext <<_ACEOF
 
27036
/* confdefs.h.  */
 
27037
_ACEOF
 
27038
cat confdefs.h >>conftest.$ac_ext
 
27039
cat >>conftest.$ac_ext <<_ACEOF
 
27040
/* end confdefs.h.  */
 
27041
#include <$ac_header>
 
27042
_ACEOF
 
27043
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
27044
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
27045
  ac_status=$?
 
27046
  grep -v '^ *+' conftest.er1 >conftest.err
 
27047
  rm -f conftest.er1
 
27048
  cat conftest.err >&5
 
27049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27050
  (exit $ac_status); } >/dev/null; then
 
27051
  if test -s conftest.err; then
 
27052
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27053
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
27054
  else
 
27055
    ac_cpp_err=
 
27056
  fi
 
27057
else
 
27058
  ac_cpp_err=yes
 
27059
fi
 
27060
if test -z "$ac_cpp_err"; then
 
27061
  ac_header_preproc=yes
 
27062
else
 
27063
  echo "$as_me: failed program was:" >&5
 
27064
sed 's/^/| /' conftest.$ac_ext >&5
 
27065
 
 
27066
  ac_header_preproc=no
 
27067
fi
 
27068
rm -f conftest.err conftest.$ac_ext
 
27069
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27070
echo "${ECHO_T}$ac_header_preproc" >&6
 
27071
 
 
27072
# So?  What about this header?
 
27073
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27074
  yes:no: )
 
27075
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
27076
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27077
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27078
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27079
    ac_header_preproc=yes
 
27080
    ;;
 
27081
  no:yes:* )
 
27082
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
27083
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
27084
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27085
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27086
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27087
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27088
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27089
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27090
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
27091
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27092
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27093
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
27094
    (
 
27095
      cat <<\_ASBOX
 
27096
## ------------------------------------------ ##
 
27097
## Report this to the AC_PACKAGE_NAME lists.  ##
 
27098
## ------------------------------------------ ##
 
27099
_ASBOX
 
27100
    ) |
 
27101
      sed "s/^/$as_me: WARNING:     /" >&2
 
27102
    ;;
 
27103
esac
 
27104
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27105
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27106
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27108
else
 
27109
  eval "$as_ac_Header=\$ac_header_preproc"
 
27110
fi
 
27111
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27112
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27113
 
 
27114
fi
 
27115
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
27116
  cat >>confdefs.h <<_ACEOF
 
27117
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
27118
_ACEOF
 
27119
 
 
27120
          threads="1"
 
27121
          pthreadh="1"
 
27122
          pthreadser="1"
 
27123
else
 
27124
 
 
27125
          threads="0"
 
27126
          pthreadser="0"
 
27127
          pthreadh="0"
 
27128
 
 
27129
  CFLAGS="$apr_pthsv_CFLAGS"
 
27130
  LIBS="$apr_pthsv_LIBS"
 
27131
 
 
27132
fi
 
27133
 
 
27134
done
 
27135
 
 
27136
  fi
 
27137
 
 
27138
    fi
 
27139
    if test "$pthreadh" = "1"; then
 
27140
 
 
27141
echo "$as_me:$LINENO: checking whether pthread_getspecific takes two arguments" >&5
 
27142
echo $ECHO_N "checking whether pthread_getspecific takes two arguments... $ECHO_C" >&6
 
27143
if test "${ac_cv_pthread_getspecific_two_args+set}" = set; then
 
27144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27145
else
 
27146
 
 
27147
cat >conftest.$ac_ext <<_ACEOF
 
27148
/* confdefs.h.  */
 
27149
_ACEOF
 
27150
cat confdefs.h >>conftest.$ac_ext
 
27151
cat >>conftest.$ac_ext <<_ACEOF
 
27152
/* end confdefs.h.  */
 
27153
 
 
27154
#include <pthread.h>
 
27155
 
 
27156
int
 
27157
main ()
 
27158
{
 
27159
 
 
27160
pthread_key_t key;
 
27161
void *tmp;
 
27162
pthread_getspecific(key,&tmp);
 
27163
 
 
27164
  ;
 
27165
  return 0;
 
27166
}
 
27167
_ACEOF
 
27168
rm -f conftest.$ac_objext
 
27169
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27170
  (eval $ac_compile) 2>conftest.er1
 
27171
  ac_status=$?
 
27172
  grep -v '^ *+' conftest.er1 >conftest.err
 
27173
  rm -f conftest.er1
 
27174
  cat conftest.err >&5
 
27175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27176
  (exit $ac_status); } &&
 
27177
         { ac_try='test -z "$ac_c_werror_flag"
 
27178
                         || test ! -s conftest.err'
 
27179
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27180
  (eval $ac_try) 2>&5
 
27181
  ac_status=$?
 
27182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27183
  (exit $ac_status); }; } &&
 
27184
         { ac_try='test -s conftest.$ac_objext'
 
27185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27186
  (eval $ac_try) 2>&5
 
27187
  ac_status=$?
 
27188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27189
  (exit $ac_status); }; }; then
 
27190
 
 
27191
    ac_cv_pthread_getspecific_two_args=yes
 
27192
 
 
27193
else
 
27194
  echo "$as_me: failed program was:" >&5
 
27195
sed 's/^/| /' conftest.$ac_ext >&5
 
27196
 
 
27197
 
 
27198
    ac_cv_pthread_getspecific_two_args=no
 
27199
 
 
27200
fi
 
27201
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27202
 
 
27203
fi
 
27204
echo "$as_me:$LINENO: result: $ac_cv_pthread_getspecific_two_args" >&5
 
27205
echo "${ECHO_T}$ac_cv_pthread_getspecific_two_args" >&6
 
27206
 
 
27207
if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
 
27208
 
 
27209
cat >>confdefs.h <<\_ACEOF
 
27210
#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1
 
27211
_ACEOF
 
27212
 
 
27213
fi
 
27214
 
 
27215
 
 
27216
echo "$as_me:$LINENO: checking whether pthread_attr_getdetachstate takes one argument" >&5
 
27217
echo $ECHO_N "checking whether pthread_attr_getdetachstate takes one argument... $ECHO_C" >&6
 
27218
if test "${ac_cv_pthread_attr_getdetachstate_one_arg+set}" = set; then
 
27219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27220
else
 
27221
 
 
27222
cat >conftest.$ac_ext <<_ACEOF
 
27223
/* confdefs.h.  */
 
27224
_ACEOF
 
27225
cat confdefs.h >>conftest.$ac_ext
 
27226
cat >>conftest.$ac_ext <<_ACEOF
 
27227
/* end confdefs.h.  */
 
27228
 
 
27229
#include <pthread.h>
 
27230
 
 
27231
int
 
27232
main ()
 
27233
{
 
27234
 
 
27235
pthread_attr_t *attr;
 
27236
pthread_attr_getdetachstate(attr);
 
27237
 
 
27238
  ;
 
27239
  return 0;
 
27240
}
 
27241
_ACEOF
 
27242
rm -f conftest.$ac_objext
 
27243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27244
  (eval $ac_compile) 2>conftest.er1
 
27245
  ac_status=$?
 
27246
  grep -v '^ *+' conftest.er1 >conftest.err
 
27247
  rm -f conftest.er1
 
27248
  cat conftest.err >&5
 
27249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27250
  (exit $ac_status); } &&
 
27251
         { ac_try='test -z "$ac_c_werror_flag"
 
27252
                         || test ! -s conftest.err'
 
27253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27254
  (eval $ac_try) 2>&5
 
27255
  ac_status=$?
 
27256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27257
  (exit $ac_status); }; } &&
 
27258
         { ac_try='test -s conftest.$ac_objext'
 
27259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27260
  (eval $ac_try) 2>&5
 
27261
  ac_status=$?
 
27262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27263
  (exit $ac_status); }; }; then
 
27264
 
 
27265
    ac_cv_pthread_attr_getdetachstate_one_arg=yes
 
27266
 
 
27267
else
 
27268
  echo "$as_me: failed program was:" >&5
 
27269
sed 's/^/| /' conftest.$ac_ext >&5
 
27270
 
 
27271
 
 
27272
    ac_cv_pthread_attr_getdetachstate_one_arg=no
 
27273
 
 
27274
fi
 
27275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27276
 
 
27277
fi
 
27278
echo "$as_me:$LINENO: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
 
27279
echo "${ECHO_T}$ac_cv_pthread_attr_getdetachstate_one_arg" >&6
 
27280
 
 
27281
if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
 
27282
 
 
27283
cat >>confdefs.h <<\_ACEOF
 
27284
#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1
 
27285
_ACEOF
 
27286
 
 
27287
fi
 
27288
 
 
27289
 
 
27290
  echo "$as_me:$LINENO: checking for recursive mutex support" >&5
 
27291
echo $ECHO_N "checking for recursive mutex support... $ECHO_C" >&6
 
27292
if test "${apr_cv_mutex_recursive+set}" = set; then
 
27293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27294
else
 
27295
  if test "$cross_compiling" = yes; then
 
27296
  apr_cv_mutex_recursive=no
 
27297
else
 
27298
  cat >conftest.$ac_ext <<_ACEOF
 
27299
/* confdefs.h.  */
 
27300
_ACEOF
 
27301
cat confdefs.h >>conftest.$ac_ext
 
27302
cat >>conftest.$ac_ext <<_ACEOF
 
27303
/* end confdefs.h.  */
 
27304
#include <sys/types.h>
 
27305
#include <pthread.h>
 
27306
#include <stdlib.h>
 
27307
 
 
27308
int main() {
 
27309
    pthread_mutexattr_t attr;
 
27310
    pthread_mutex_t m;
 
27311
 
 
27312
    exit (pthread_mutexattr_init(&attr)
 
27313
          || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
 
27314
          || pthread_mutex_init(&m, &attr));
 
27315
}
 
27316
_ACEOF
 
27317
rm -f conftest$ac_exeext
 
27318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27319
  (eval $ac_link) 2>&5
 
27320
  ac_status=$?
 
27321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27322
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27324
  (eval $ac_try) 2>&5
 
27325
  ac_status=$?
 
27326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27327
  (exit $ac_status); }; }; then
 
27328
  apr_cv_mutex_recursive=yes
 
27329
else
 
27330
  echo "$as_me: program exited with status $ac_status" >&5
 
27331
echo "$as_me: failed program was:" >&5
 
27332
sed 's/^/| /' conftest.$ac_ext >&5
 
27333
 
 
27334
( exit $ac_status )
 
27335
apr_cv_mutex_recursive=no
 
27336
fi
 
27337
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27338
fi
 
27339
fi
 
27340
echo "$as_me:$LINENO: result: $apr_cv_mutex_recursive" >&5
 
27341
echo "${ECHO_T}$apr_cv_mutex_recursive" >&6
 
27342
 
 
27343
if test "$apr_cv_mutex_recursive" = "yes"; then
 
27344
 
 
27345
cat >>confdefs.h <<\_ACEOF
 
27346
#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
 
27347
_ACEOF
 
27348
 
 
27349
fi
 
27350
 
 
27351
 
 
27352
 
 
27353
 
 
27354
for ac_func in pthread_key_delete pthread_rwlock_init \
 
27355
                        pthread_attr_setguardsize
 
27356
do
 
27357
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27358
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27359
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
27360
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
27361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27362
else
 
27363
  cat >conftest.$ac_ext <<_ACEOF
 
27364
/* confdefs.h.  */
 
27365
_ACEOF
 
27366
cat confdefs.h >>conftest.$ac_ext
 
27367
cat >>conftest.$ac_ext <<_ACEOF
 
27368
/* end confdefs.h.  */
 
27369
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27370
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27371
#define $ac_func innocuous_$ac_func
 
27372
 
 
27373
/* System header to define __stub macros and hopefully few prototypes,
 
27374
    which can conflict with char $ac_func (); below.
 
27375
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27376
    <limits.h> exists even on freestanding compilers.  */
 
27377
 
 
27378
#ifdef __STDC__
 
27379
# include <limits.h>
 
27380
#else
 
27381
# include <assert.h>
 
27382
#endif
 
27383
 
 
27384
#undef $ac_func
 
27385
 
 
27386
/* Override any gcc2 internal prototype to avoid an error.  */
 
27387
#ifdef __cplusplus
 
27388
extern "C"
 
27389
{
 
27390
#endif
 
27391
/* We use char because int might match the return type of a gcc2
 
27392
   builtin and then its argument prototype would still apply.  */
 
27393
char $ac_func ();
 
27394
/* The GNU C library defines this for functions which it implements
 
27395
    to always fail with ENOSYS.  Some functions are actually named
 
27396
    something starting with __ and the normal name is an alias.  */
 
27397
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
27398
choke me
 
27399
#else
 
27400
char (*f) () = $ac_func;
 
27401
#endif
 
27402
#ifdef __cplusplus
 
27403
}
 
27404
#endif
 
27405
 
 
27406
int
 
27407
main ()
 
27408
{
 
27409
return f != $ac_func;
 
27410
  ;
 
27411
  return 0;
 
27412
}
 
27413
_ACEOF
 
27414
rm -f conftest.$ac_objext conftest$ac_exeext
 
27415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27416
  (eval $ac_link) 2>conftest.er1
 
27417
  ac_status=$?
 
27418
  grep -v '^ *+' conftest.er1 >conftest.err
 
27419
  rm -f conftest.er1
 
27420
  cat conftest.err >&5
 
27421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27422
  (exit $ac_status); } &&
 
27423
         { ac_try='test -z "$ac_c_werror_flag"
 
27424
                         || test ! -s conftest.err'
 
27425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27426
  (eval $ac_try) 2>&5
 
27427
  ac_status=$?
 
27428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27429
  (exit $ac_status); }; } &&
 
27430
         { ac_try='test -s conftest$ac_exeext'
 
27431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27432
  (eval $ac_try) 2>&5
 
27433
  ac_status=$?
 
27434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27435
  (exit $ac_status); }; }; then
 
27436
  eval "$as_ac_var=yes"
 
27437
else
 
27438
  echo "$as_me: failed program was:" >&5
 
27439
sed 's/^/| /' conftest.$ac_ext >&5
 
27440
 
 
27441
eval "$as_ac_var=no"
 
27442
fi
 
27443
rm -f conftest.err conftest.$ac_objext \
 
27444
      conftest$ac_exeext conftest.$ac_ext
 
27445
fi
 
27446
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27447
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27448
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27449
  cat >>confdefs.h <<_ACEOF
 
27450
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27451
_ACEOF
 
27452
 
 
27453
fi
 
27454
done
 
27455
 
 
27456
 
 
27457
        if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
 
27458
                        echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
 
27459
echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
 
27460
if test "${apr_cv_type_rwlock_t+set}" = set; then
 
27461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27462
else
 
27463
  cat >conftest.$ac_ext <<_ACEOF
 
27464
/* confdefs.h.  */
 
27465
_ACEOF
 
27466
cat confdefs.h >>conftest.$ac_ext
 
27467
cat >>conftest.$ac_ext <<_ACEOF
 
27468
/* end confdefs.h.  */
 
27469
#include <sys/types.h>
 
27470
#include <pthread.h>
 
27471
int
 
27472
main ()
 
27473
{
 
27474
pthread_rwlock_t *rwlock;
 
27475
  ;
 
27476
  return 0;
 
27477
}
 
27478
_ACEOF
 
27479
rm -f conftest.$ac_objext
 
27480
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27481
  (eval $ac_compile) 2>conftest.er1
 
27482
  ac_status=$?
 
27483
  grep -v '^ *+' conftest.er1 >conftest.err
 
27484
  rm -f conftest.er1
 
27485
  cat conftest.err >&5
 
27486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27487
  (exit $ac_status); } &&
 
27488
         { ac_try='test -z "$ac_c_werror_flag"
 
27489
                         || test ! -s conftest.err'
 
27490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27491
  (eval $ac_try) 2>&5
 
27492
  ac_status=$?
 
27493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27494
  (exit $ac_status); }; } &&
 
27495
         { ac_try='test -s conftest.$ac_objext'
 
27496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27497
  (eval $ac_try) 2>&5
 
27498
  ac_status=$?
 
27499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27500
  (exit $ac_status); }; }; then
 
27501
  apr_cv_type_rwlock_t=yes
 
27502
else
 
27503
  echo "$as_me: failed program was:" >&5
 
27504
sed 's/^/| /' conftest.$ac_ext >&5
 
27505
 
 
27506
apr_cv_type_rwlock_t=no
 
27507
fi
 
27508
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27509
fi
 
27510
echo "$as_me:$LINENO: result: $apr_cv_type_rwlock_t" >&5
 
27511
echo "${ECHO_T}$apr_cv_type_rwlock_t" >&6
 
27512
            if test "$apr_cv_type_rwlock_t" = "yes"; then
 
27513
 
 
27514
cat >>confdefs.h <<\_ACEOF
 
27515
#define HAVE_PTHREAD_RWLOCKS 1
 
27516
_ACEOF
 
27517
 
 
27518
            fi
 
27519
        fi
 
27520
    fi
 
27521
fi
 
27522
 
 
27523
ac_cv_define_READDIR_IS_THREAD_SAFE=no
 
27524
ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
 
27525
ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
 
27526
if test "$threads" = "1"; then
 
27527
    echo "APR will use threads"
 
27528
    echo "$as_me:$LINENO: checking for readdir in -lc_r" >&5
 
27529
echo $ECHO_N "checking for readdir in -lc_r... $ECHO_C" >&6
 
27530
if test "${ac_cv_lib_c_r_readdir+set}" = set; then
 
27531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27532
else
 
27533
  ac_check_lib_save_LIBS=$LIBS
 
27534
LIBS="-lc_r  $LIBS"
 
27535
cat >conftest.$ac_ext <<_ACEOF
 
27536
/* confdefs.h.  */
 
27537
_ACEOF
 
27538
cat confdefs.h >>conftest.$ac_ext
 
27539
cat >>conftest.$ac_ext <<_ACEOF
 
27540
/* end confdefs.h.  */
 
27541
 
 
27542
/* Override any gcc2 internal prototype to avoid an error.  */
 
27543
#ifdef __cplusplus
 
27544
extern "C"
 
27545
#endif
 
27546
/* We use char because int might match the return type of a gcc2
 
27547
   builtin and then its argument prototype would still apply.  */
 
27548
char readdir ();
 
27549
int
 
27550
main ()
 
27551
{
 
27552
readdir ();
 
27553
  ;
 
27554
  return 0;
 
27555
}
 
27556
_ACEOF
 
27557
rm -f conftest.$ac_objext conftest$ac_exeext
 
27558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27559
  (eval $ac_link) 2>conftest.er1
 
27560
  ac_status=$?
 
27561
  grep -v '^ *+' conftest.er1 >conftest.err
 
27562
  rm -f conftest.er1
 
27563
  cat conftest.err >&5
 
27564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27565
  (exit $ac_status); } &&
 
27566
         { ac_try='test -z "$ac_c_werror_flag"
 
27567
                         || test ! -s conftest.err'
 
27568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27569
  (eval $ac_try) 2>&5
 
27570
  ac_status=$?
 
27571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27572
  (exit $ac_status); }; } &&
 
27573
         { ac_try='test -s conftest$ac_exeext'
 
27574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27575
  (eval $ac_try) 2>&5
 
27576
  ac_status=$?
 
27577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27578
  (exit $ac_status); }; }; then
 
27579
  ac_cv_lib_c_r_readdir=yes
 
27580
else
 
27581
  echo "$as_me: failed program was:" >&5
 
27582
sed 's/^/| /' conftest.$ac_ext >&5
 
27583
 
 
27584
ac_cv_lib_c_r_readdir=no
 
27585
fi
 
27586
rm -f conftest.err conftest.$ac_objext \
 
27587
      conftest$ac_exeext conftest.$ac_ext
 
27588
LIBS=$ac_check_lib_save_LIBS
 
27589
fi
 
27590
echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_readdir" >&5
 
27591
echo "${ECHO_T}$ac_cv_lib_c_r_readdir" >&6
 
27592
if test $ac_cv_lib_c_r_readdir = yes; then
 
27593
 
 
27594
cat >>confdefs.h <<\_ACEOF
 
27595
#define READDIR_IS_THREAD_SAFE 1
 
27596
_ACEOF
 
27597
 
 
27598
fi
 
27599
 
 
27600
    if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
 
27601
        echo "$as_me:$LINENO: checking for gethostbyname in -lc_r" >&5
 
27602
echo $ECHO_N "checking for gethostbyname in -lc_r... $ECHO_C" >&6
 
27603
if test "${ac_cv_lib_c_r_gethostbyname+set}" = set; then
 
27604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27605
else
 
27606
  ac_check_lib_save_LIBS=$LIBS
 
27607
LIBS="-lc_r  $LIBS"
 
27608
cat >conftest.$ac_ext <<_ACEOF
 
27609
/* confdefs.h.  */
 
27610
_ACEOF
 
27611
cat confdefs.h >>conftest.$ac_ext
 
27612
cat >>conftest.$ac_ext <<_ACEOF
 
27613
/* end confdefs.h.  */
 
27614
 
 
27615
/* Override any gcc2 internal prototype to avoid an error.  */
 
27616
#ifdef __cplusplus
 
27617
extern "C"
 
27618
#endif
 
27619
/* We use char because int might match the return type of a gcc2
 
27620
   builtin and then its argument prototype would still apply.  */
 
27621
char gethostbyname ();
 
27622
int
 
27623
main ()
 
27624
{
 
27625
gethostbyname ();
 
27626
  ;
 
27627
  return 0;
 
27628
}
 
27629
_ACEOF
 
27630
rm -f conftest.$ac_objext conftest$ac_exeext
 
27631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27632
  (eval $ac_link) 2>conftest.er1
 
27633
  ac_status=$?
 
27634
  grep -v '^ *+' conftest.er1 >conftest.err
 
27635
  rm -f conftest.er1
 
27636
  cat conftest.err >&5
 
27637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27638
  (exit $ac_status); } &&
 
27639
         { ac_try='test -z "$ac_c_werror_flag"
 
27640
                         || test ! -s conftest.err'
 
27641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27642
  (eval $ac_try) 2>&5
 
27643
  ac_status=$?
 
27644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27645
  (exit $ac_status); }; } &&
 
27646
         { ac_try='test -s conftest$ac_exeext'
 
27647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27648
  (eval $ac_try) 2>&5
 
27649
  ac_status=$?
 
27650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27651
  (exit $ac_status); }; }; then
 
27652
  ac_cv_lib_c_r_gethostbyname=yes
 
27653
else
 
27654
  echo "$as_me: failed program was:" >&5
 
27655
sed 's/^/| /' conftest.$ac_ext >&5
 
27656
 
 
27657
ac_cv_lib_c_r_gethostbyname=no
 
27658
fi
 
27659
rm -f conftest.err conftest.$ac_objext \
 
27660
      conftest$ac_exeext conftest.$ac_ext
 
27661
LIBS=$ac_check_lib_save_LIBS
 
27662
fi
 
27663
echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname" >&5
 
27664
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyname" >&6
 
27665
if test $ac_cv_lib_c_r_gethostbyname = yes; then
 
27666
  apr_gethostbyname_is_thread_safe=yes
 
27667
fi
 
27668
 
 
27669
    fi
 
27670
    if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
 
27671
 
 
27672
cat >>confdefs.h <<\_ACEOF
 
27673
#define GETHOSTBYNAME_IS_THREAD_SAFE 1
 
27674
_ACEOF
 
27675
 
 
27676
    fi
 
27677
    if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
 
27678
        echo "$as_me:$LINENO: checking for gethostbyaddr in -lc_r" >&5
 
27679
echo $ECHO_N "checking for gethostbyaddr in -lc_r... $ECHO_C" >&6
 
27680
if test "${ac_cv_lib_c_r_gethostbyaddr+set}" = set; then
 
27681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27682
else
 
27683
  ac_check_lib_save_LIBS=$LIBS
 
27684
LIBS="-lc_r  $LIBS"
 
27685
cat >conftest.$ac_ext <<_ACEOF
 
27686
/* confdefs.h.  */
 
27687
_ACEOF
 
27688
cat confdefs.h >>conftest.$ac_ext
 
27689
cat >>conftest.$ac_ext <<_ACEOF
 
27690
/* end confdefs.h.  */
 
27691
 
 
27692
/* Override any gcc2 internal prototype to avoid an error.  */
 
27693
#ifdef __cplusplus
 
27694
extern "C"
 
27695
#endif
 
27696
/* We use char because int might match the return type of a gcc2
 
27697
   builtin and then its argument prototype would still apply.  */
 
27698
char gethostbyaddr ();
 
27699
int
 
27700
main ()
 
27701
{
 
27702
gethostbyaddr ();
 
27703
  ;
 
27704
  return 0;
 
27705
}
 
27706
_ACEOF
 
27707
rm -f conftest.$ac_objext conftest$ac_exeext
 
27708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27709
  (eval $ac_link) 2>conftest.er1
 
27710
  ac_status=$?
 
27711
  grep -v '^ *+' conftest.er1 >conftest.err
 
27712
  rm -f conftest.er1
 
27713
  cat conftest.err >&5
 
27714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27715
  (exit $ac_status); } &&
 
27716
         { ac_try='test -z "$ac_c_werror_flag"
 
27717
                         || test ! -s conftest.err'
 
27718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27719
  (eval $ac_try) 2>&5
 
27720
  ac_status=$?
 
27721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27722
  (exit $ac_status); }; } &&
 
27723
         { ac_try='test -s conftest$ac_exeext'
 
27724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27725
  (eval $ac_try) 2>&5
 
27726
  ac_status=$?
 
27727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27728
  (exit $ac_status); }; }; then
 
27729
  ac_cv_lib_c_r_gethostbyaddr=yes
 
27730
else
 
27731
  echo "$as_me: failed program was:" >&5
 
27732
sed 's/^/| /' conftest.$ac_ext >&5
 
27733
 
 
27734
ac_cv_lib_c_r_gethostbyaddr=no
 
27735
fi
 
27736
rm -f conftest.err conftest.$ac_objext \
 
27737
      conftest$ac_exeext conftest.$ac_ext
 
27738
LIBS=$ac_check_lib_save_LIBS
 
27739
fi
 
27740
echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
 
27741
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyaddr" >&6
 
27742
if test $ac_cv_lib_c_r_gethostbyaddr = yes; then
 
27743
  apr_gethostbyaddr_is_thread_safe=yes
 
27744
fi
 
27745
 
 
27746
    fi
 
27747
    if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
 
27748
 
 
27749
cat >>confdefs.h <<\_ACEOF
 
27750
#define GETHOSTBYADDR_IS_THREAD_SAFE 1
 
27751
_ACEOF
 
27752
 
 
27753
    fi
 
27754
 
 
27755
 
 
27756
for ac_func in gethostbyname_r gethostbyaddr_r
 
27757
do
 
27758
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27759
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27760
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
27761
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
27762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27763
else
 
27764
  cat >conftest.$ac_ext <<_ACEOF
 
27765
/* confdefs.h.  */
 
27766
_ACEOF
 
27767
cat confdefs.h >>conftest.$ac_ext
 
27768
cat >>conftest.$ac_ext <<_ACEOF
 
27769
/* end confdefs.h.  */
 
27770
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27771
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27772
#define $ac_func innocuous_$ac_func
 
27773
 
 
27774
/* System header to define __stub macros and hopefully few prototypes,
 
27775
    which can conflict with char $ac_func (); below.
 
27776
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27777
    <limits.h> exists even on freestanding compilers.  */
 
27778
 
 
27779
#ifdef __STDC__
 
27780
# include <limits.h>
 
27781
#else
 
27782
# include <assert.h>
 
27783
#endif
 
27784
 
 
27785
#undef $ac_func
 
27786
 
 
27787
/* Override any gcc2 internal prototype to avoid an error.  */
 
27788
#ifdef __cplusplus
 
27789
extern "C"
 
27790
{
 
27791
#endif
 
27792
/* We use char because int might match the return type of a gcc2
 
27793
   builtin and then its argument prototype would still apply.  */
 
27794
char $ac_func ();
 
27795
/* The GNU C library defines this for functions which it implements
 
27796
    to always fail with ENOSYS.  Some functions are actually named
 
27797
    something starting with __ and the normal name is an alias.  */
 
27798
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
27799
choke me
 
27800
#else
 
27801
char (*f) () = $ac_func;
 
27802
#endif
 
27803
#ifdef __cplusplus
 
27804
}
 
27805
#endif
 
27806
 
 
27807
int
 
27808
main ()
 
27809
{
 
27810
return f != $ac_func;
 
27811
  ;
 
27812
  return 0;
 
27813
}
 
27814
_ACEOF
 
27815
rm -f conftest.$ac_objext conftest$ac_exeext
 
27816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27817
  (eval $ac_link) 2>conftest.er1
 
27818
  ac_status=$?
 
27819
  grep -v '^ *+' conftest.er1 >conftest.err
 
27820
  rm -f conftest.er1
 
27821
  cat conftest.err >&5
 
27822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27823
  (exit $ac_status); } &&
 
27824
         { ac_try='test -z "$ac_c_werror_flag"
 
27825
                         || test ! -s conftest.err'
 
27826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27827
  (eval $ac_try) 2>&5
 
27828
  ac_status=$?
 
27829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27830
  (exit $ac_status); }; } &&
 
27831
         { ac_try='test -s conftest$ac_exeext'
 
27832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27833
  (eval $ac_try) 2>&5
 
27834
  ac_status=$?
 
27835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27836
  (exit $ac_status); }; }; then
 
27837
  eval "$as_ac_var=yes"
 
27838
else
 
27839
  echo "$as_me: failed program was:" >&5
 
27840
sed 's/^/| /' conftest.$ac_ext >&5
 
27841
 
 
27842
eval "$as_ac_var=no"
 
27843
fi
 
27844
rm -f conftest.err conftest.$ac_objext \
 
27845
      conftest$ac_exeext conftest.$ac_ext
 
27846
fi
 
27847
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27848
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27849
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27850
  cat >>confdefs.h <<_ACEOF
 
27851
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27852
_ACEOF
 
27853
 
 
27854
fi
 
27855
done
 
27856
 
 
27857
else
 
27858
    echo "APR will be non-threaded"
 
27859
fi
 
27860
 
 
27861
 
 
27862
# Check whether --with-efence or --without-efence was given.
 
27863
if test "${with_efence+set}" = set; then
 
27864
  withval="$with_efence"
 
27865
   apr_efence_dir="$withval"
 
27866
    if test "$apr_efence_dir" != "yes"; then
 
27867
 
 
27868
  if test "x$LDFLAGS" = "x"; then
 
27869
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$apr_efence_dir/lib\""
 
27870
    LDFLAGS="-L$apr_efence_dir/lib"
 
27871
  else
 
27872
    apr_addto_bugger="-L$apr_efence_dir/lib"
 
27873
    for i in $apr_addto_bugger; do
 
27874
      apr_addto_duplicate="0"
 
27875
      for j in $LDFLAGS; do
 
27876
        if test "x$i" = "x$j"; then
 
27877
          apr_addto_duplicate="1"
 
27878
          break
 
27879
        fi
 
27880
      done
 
27881
      if test $apr_addto_duplicate = "0"; then
 
27882
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
27883
        LDFLAGS="$LDFLAGS $i"
 
27884
      fi
 
27885
    done
 
27886
  fi
 
27887
 
 
27888
      if test "x$apr_platform_runtime_link_flag" != "x"; then
 
27889
 
 
27890
  if test "x$LDFLAGS" = "x"; then
 
27891
    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
 
27892
    LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
 
27893
  else
 
27894
    apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
 
27895
    for i in $apr_addto_bugger; do
 
27896
      apr_addto_duplicate="0"
 
27897
      for j in $LDFLAGS; do
 
27898
        if test "x$i" = "x$j"; then
 
27899
          apr_addto_duplicate="1"
 
27900
          break
 
27901
        fi
 
27902
      done
 
27903
      if test $apr_addto_duplicate = "0"; then
 
27904
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
 
27905
        LDFLAGS="$LDFLAGS $i"
 
27906
      fi
 
27907
    done
 
27908
  fi
 
27909
 
 
27910
      fi
 
27911
    fi
 
27912
    echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
 
27913
echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
 
27914
if test "${ac_cv_lib_efence_malloc+set}" = set; then
 
27915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27916
else
 
27917
  ac_check_lib_save_LIBS=$LIBS
 
27918
LIBS="-lefence  $LIBS"
 
27919
cat >conftest.$ac_ext <<_ACEOF
 
27920
/* confdefs.h.  */
 
27921
_ACEOF
 
27922
cat confdefs.h >>conftest.$ac_ext
 
27923
cat >>conftest.$ac_ext <<_ACEOF
 
27924
/* end confdefs.h.  */
 
27925
 
 
27926
/* Override any gcc2 internal prototype to avoid an error.  */
 
27927
#ifdef __cplusplus
 
27928
extern "C"
 
27929
#endif
 
27930
/* We use char because int might match the return type of a gcc2
 
27931
   builtin and then its argument prototype would still apply.  */
 
27932
char malloc ();
 
27933
int
 
27934
main ()
 
27935
{
 
27936
malloc ();
 
27937
  ;
 
27938
  return 0;
 
27939
}
 
27940
_ACEOF
 
27941
rm -f conftest.$ac_objext conftest$ac_exeext
 
27942
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27943
  (eval $ac_link) 2>conftest.er1
 
27944
  ac_status=$?
 
27945
  grep -v '^ *+' conftest.er1 >conftest.err
 
27946
  rm -f conftest.er1
 
27947
  cat conftest.err >&5
 
27948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27949
  (exit $ac_status); } &&
 
27950
         { ac_try='test -z "$ac_c_werror_flag"
 
27951
                         || test ! -s conftest.err'
 
27952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27953
  (eval $ac_try) 2>&5
 
27954
  ac_status=$?
 
27955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27956
  (exit $ac_status); }; } &&
 
27957
         { ac_try='test -s conftest$ac_exeext'
 
27958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27959
  (eval $ac_try) 2>&5
 
27960
  ac_status=$?
 
27961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27962
  (exit $ac_status); }; }; then
 
27963
  ac_cv_lib_efence_malloc=yes
 
27964
else
 
27965
  echo "$as_me: failed program was:" >&5
 
27966
sed 's/^/| /' conftest.$ac_ext >&5
 
27967
 
 
27968
ac_cv_lib_efence_malloc=no
 
27969
fi
 
27970
rm -f conftest.err conftest.$ac_objext \
 
27971
      conftest$ac_exeext conftest.$ac_ext
 
27972
LIBS=$ac_check_lib_save_LIBS
 
27973
fi
 
27974
echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
 
27975
echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
 
27976
if test $ac_cv_lib_efence_malloc = yes; then
 
27977
 
 
27978
  if test "x$LIBS" = "x"; then
 
27979
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lefence\""
 
27980
    LIBS="-lefence"
 
27981
  else
 
27982
    apr_addto_bugger="-lefence"
 
27983
    for i in $apr_addto_bugger; do
 
27984
      apr_addto_duplicate="0"
 
27985
      for j in $LIBS; do
 
27986
        if test "x$i" = "x$j"; then
 
27987
          apr_addto_duplicate="1"
 
27988
          break
 
27989
        fi
 
27990
      done
 
27991
      if test $apr_addto_duplicate = "0"; then
 
27992
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
27993
        LIBS="$LIBS $i"
 
27994
      fi
 
27995
    done
 
27996
  fi
 
27997
 
 
27998
else
 
27999
   { { echo "$as_me:$LINENO: error: Electric Fence requested but not detected" >&5
 
28000
echo "$as_me: error: Electric Fence requested but not detected" >&2;}
 
28001
   { (exit 1); exit 1; }; }
 
28002
fi
 
28003
 
 
28004
 
 
28005
fi;
 
28006
 
 
28007
 
 
28008
for ac_func in sigsuspend
 
28009
do
 
28010
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28011
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
28012
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
28013
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
28014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28015
else
 
28016
  cat >conftest.$ac_ext <<_ACEOF
 
28017
/* confdefs.h.  */
 
28018
_ACEOF
 
28019
cat confdefs.h >>conftest.$ac_ext
 
28020
cat >>conftest.$ac_ext <<_ACEOF
 
28021
/* end confdefs.h.  */
 
28022
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
28023
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28024
#define $ac_func innocuous_$ac_func
 
28025
 
 
28026
/* System header to define __stub macros and hopefully few prototypes,
 
28027
    which can conflict with char $ac_func (); below.
 
28028
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28029
    <limits.h> exists even on freestanding compilers.  */
 
28030
 
 
28031
#ifdef __STDC__
 
28032
# include <limits.h>
 
28033
#else
 
28034
# include <assert.h>
 
28035
#endif
 
28036
 
 
28037
#undef $ac_func
 
28038
 
 
28039
/* Override any gcc2 internal prototype to avoid an error.  */
 
28040
#ifdef __cplusplus
 
28041
extern "C"
 
28042
{
 
28043
#endif
 
28044
/* We use char because int might match the return type of a gcc2
 
28045
   builtin and then its argument prototype would still apply.  */
 
28046
char $ac_func ();
 
28047
/* The GNU C library defines this for functions which it implements
 
28048
    to always fail with ENOSYS.  Some functions are actually named
 
28049
    something starting with __ and the normal name is an alias.  */
 
28050
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
28051
choke me
 
28052
#else
 
28053
char (*f) () = $ac_func;
 
28054
#endif
 
28055
#ifdef __cplusplus
 
28056
}
 
28057
#endif
 
28058
 
 
28059
int
 
28060
main ()
 
28061
{
 
28062
return f != $ac_func;
 
28063
  ;
 
28064
  return 0;
 
28065
}
 
28066
_ACEOF
 
28067
rm -f conftest.$ac_objext conftest$ac_exeext
 
28068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28069
  (eval $ac_link) 2>conftest.er1
 
28070
  ac_status=$?
 
28071
  grep -v '^ *+' conftest.er1 >conftest.err
 
28072
  rm -f conftest.er1
 
28073
  cat conftest.err >&5
 
28074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28075
  (exit $ac_status); } &&
 
28076
         { ac_try='test -z "$ac_c_werror_flag"
 
28077
                         || test ! -s conftest.err'
 
28078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28079
  (eval $ac_try) 2>&5
 
28080
  ac_status=$?
 
28081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28082
  (exit $ac_status); }; } &&
 
28083
         { ac_try='test -s conftest$ac_exeext'
 
28084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28085
  (eval $ac_try) 2>&5
 
28086
  ac_status=$?
 
28087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28088
  (exit $ac_status); }; }; then
 
28089
  eval "$as_ac_var=yes"
 
28090
else
 
28091
  echo "$as_me: failed program was:" >&5
 
28092
sed 's/^/| /' conftest.$ac_ext >&5
 
28093
 
 
28094
eval "$as_ac_var=no"
 
28095
fi
 
28096
rm -f conftest.err conftest.$ac_objext \
 
28097
      conftest$ac_exeext conftest.$ac_ext
 
28098
fi
 
28099
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
28100
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
28101
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
28102
  cat >>confdefs.h <<_ACEOF
 
28103
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28104
_ACEOF
 
28105
  have_sigsuspend="1"
 
28106
else
 
28107
   have_sigsuspend="0"
 
28108
fi
 
28109
done
 
28110
 
 
28111
 
 
28112
for ac_func in sigwait
 
28113
do
 
28114
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28115
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
28116
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
28117
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
28118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28119
else
 
28120
  cat >conftest.$ac_ext <<_ACEOF
 
28121
/* confdefs.h.  */
 
28122
_ACEOF
 
28123
cat confdefs.h >>conftest.$ac_ext
 
28124
cat >>conftest.$ac_ext <<_ACEOF
 
28125
/* end confdefs.h.  */
 
28126
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
28127
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28128
#define $ac_func innocuous_$ac_func
 
28129
 
 
28130
/* System header to define __stub macros and hopefully few prototypes,
 
28131
    which can conflict with char $ac_func (); below.
 
28132
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28133
    <limits.h> exists even on freestanding compilers.  */
 
28134
 
 
28135
#ifdef __STDC__
 
28136
# include <limits.h>
 
28137
#else
 
28138
# include <assert.h>
 
28139
#endif
 
28140
 
 
28141
#undef $ac_func
 
28142
 
 
28143
/* Override any gcc2 internal prototype to avoid an error.  */
 
28144
#ifdef __cplusplus
 
28145
extern "C"
 
28146
{
 
28147
#endif
 
28148
/* We use char because int might match the return type of a gcc2
 
28149
   builtin and then its argument prototype would still apply.  */
 
28150
char $ac_func ();
 
28151
/* The GNU C library defines this for functions which it implements
 
28152
    to always fail with ENOSYS.  Some functions are actually named
 
28153
    something starting with __ and the normal name is an alias.  */
 
28154
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
28155
choke me
 
28156
#else
 
28157
char (*f) () = $ac_func;
 
28158
#endif
 
28159
#ifdef __cplusplus
 
28160
}
 
28161
#endif
 
28162
 
 
28163
int
 
28164
main ()
 
28165
{
 
28166
return f != $ac_func;
 
28167
  ;
 
28168
  return 0;
 
28169
}
 
28170
_ACEOF
 
28171
rm -f conftest.$ac_objext conftest$ac_exeext
 
28172
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28173
  (eval $ac_link) 2>conftest.er1
 
28174
  ac_status=$?
 
28175
  grep -v '^ *+' conftest.er1 >conftest.err
 
28176
  rm -f conftest.er1
 
28177
  cat conftest.err >&5
 
28178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28179
  (exit $ac_status); } &&
 
28180
         { ac_try='test -z "$ac_c_werror_flag"
 
28181
                         || test ! -s conftest.err'
 
28182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28183
  (eval $ac_try) 2>&5
 
28184
  ac_status=$?
 
28185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28186
  (exit $ac_status); }; } &&
 
28187
         { ac_try='test -s conftest$ac_exeext'
 
28188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28189
  (eval $ac_try) 2>&5
 
28190
  ac_status=$?
 
28191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28192
  (exit $ac_status); }; }; then
 
28193
  eval "$as_ac_var=yes"
 
28194
else
 
28195
  echo "$as_me: failed program was:" >&5
 
28196
sed 's/^/| /' conftest.$ac_ext >&5
 
28197
 
 
28198
eval "$as_ac_var=no"
 
28199
fi
 
28200
rm -f conftest.err conftest.$ac_objext \
 
28201
      conftest$ac_exeext conftest.$ac_ext
 
28202
fi
 
28203
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
28204
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
28205
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
28206
  cat >>confdefs.h <<_ACEOF
 
28207
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28208
_ACEOF
 
28209
  have_sigwait="1"
 
28210
else
 
28211
   have_sigwait="0"
 
28212
fi
 
28213
done
 
28214
 
 
28215
case $host in
 
28216
    *alpha*-dec-osf* )
 
28217
        have_sigwait="1"
 
28218
        ;;
 
28219
esac
 
28220
 
 
28221
 
 
28222
 
 
28223
 
 
28224
 
 
28225
 
 
28226
 
 
28227
 
 
28228
for ac_func in poll kqueue port_create
 
28229
do
 
28230
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28231
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
28232
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
28233
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
28234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28235
else
 
28236
  cat >conftest.$ac_ext <<_ACEOF
 
28237
/* confdefs.h.  */
 
28238
_ACEOF
 
28239
cat confdefs.h >>conftest.$ac_ext
 
28240
cat >>conftest.$ac_ext <<_ACEOF
 
28241
/* end confdefs.h.  */
 
28242
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
28243
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28244
#define $ac_func innocuous_$ac_func
 
28245
 
 
28246
/* System header to define __stub macros and hopefully few prototypes,
 
28247
    which can conflict with char $ac_func (); below.
 
28248
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28249
    <limits.h> exists even on freestanding compilers.  */
 
28250
 
 
28251
#ifdef __STDC__
 
28252
# include <limits.h>
 
28253
#else
 
28254
# include <assert.h>
 
28255
#endif
 
28256
 
 
28257
#undef $ac_func
 
28258
 
 
28259
/* Override any gcc2 internal prototype to avoid an error.  */
 
28260
#ifdef __cplusplus
 
28261
extern "C"
 
28262
{
 
28263
#endif
 
28264
/* We use char because int might match the return type of a gcc2
 
28265
   builtin and then its argument prototype would still apply.  */
 
28266
char $ac_func ();
 
28267
/* The GNU C library defines this for functions which it implements
 
28268
    to always fail with ENOSYS.  Some functions are actually named
 
28269
    something starting with __ and the normal name is an alias.  */
 
28270
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
28271
choke me
 
28272
#else
 
28273
char (*f) () = $ac_func;
 
28274
#endif
 
28275
#ifdef __cplusplus
 
28276
}
 
28277
#endif
 
28278
 
 
28279
int
 
28280
main ()
 
28281
{
 
28282
return f != $ac_func;
 
28283
  ;
 
28284
  return 0;
 
28285
}
 
28286
_ACEOF
 
28287
rm -f conftest.$ac_objext conftest$ac_exeext
 
28288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28289
  (eval $ac_link) 2>conftest.er1
 
28290
  ac_status=$?
 
28291
  grep -v '^ *+' conftest.er1 >conftest.err
 
28292
  rm -f conftest.er1
 
28293
  cat conftest.err >&5
 
28294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28295
  (exit $ac_status); } &&
 
28296
         { ac_try='test -z "$ac_c_werror_flag"
 
28297
                         || test ! -s conftest.err'
 
28298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28299
  (eval $ac_try) 2>&5
 
28300
  ac_status=$?
 
28301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28302
  (exit $ac_status); }; } &&
 
28303
         { ac_try='test -s conftest$ac_exeext'
 
28304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28305
  (eval $ac_try) 2>&5
 
28306
  ac_status=$?
 
28307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28308
  (exit $ac_status); }; }; then
 
28309
  eval "$as_ac_var=yes"
 
28310
else
 
28311
  echo "$as_me: failed program was:" >&5
 
28312
sed 's/^/| /' conftest.$ac_ext >&5
 
28313
 
 
28314
eval "$as_ac_var=no"
 
28315
fi
 
28316
rm -f conftest.err conftest.$ac_objext \
 
28317
      conftest$ac_exeext conftest.$ac_ext
 
28318
fi
 
28319
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
28320
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
28321
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
28322
  cat >>confdefs.h <<_ACEOF
 
28323
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28324
_ACEOF
 
28325
 
 
28326
fi
 
28327
done
 
28328
 
 
28329
 
 
28330
# Check for the Linux epoll interface; epoll* may be available in libc
 
28331
# but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
 
28332
echo "$as_me:$LINENO: checking for epoll support" >&5
 
28333
echo $ECHO_N "checking for epoll support... $ECHO_C" >&6
 
28334
if test "${apr_cv_epoll+set}" = set; then
 
28335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28336
else
 
28337
  if test "$cross_compiling" = yes; then
 
28338
  apr_cv_epoll=no
 
28339
else
 
28340
  cat >conftest.$ac_ext <<_ACEOF
 
28341
/* confdefs.h.  */
 
28342
_ACEOF
 
28343
cat confdefs.h >>conftest.$ac_ext
 
28344
cat >>conftest.$ac_ext <<_ACEOF
 
28345
/* end confdefs.h.  */
 
28346
 
 
28347
#include <sys/epoll.h>
 
28348
#include <unistd.h>
 
28349
 
 
28350
int main()
 
28351
{
 
28352
    return epoll_create(5) == -1;
 
28353
}
 
28354
_ACEOF
 
28355
rm -f conftest$ac_exeext
 
28356
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28357
  (eval $ac_link) 2>&5
 
28358
  ac_status=$?
 
28359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28360
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28362
  (eval $ac_try) 2>&5
 
28363
  ac_status=$?
 
28364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28365
  (exit $ac_status); }; }; then
 
28366
  apr_cv_epoll=yes
 
28367
else
 
28368
  echo "$as_me: program exited with status $ac_status" >&5
 
28369
echo "$as_me: failed program was:" >&5
 
28370
sed 's/^/| /' conftest.$ac_ext >&5
 
28371
 
 
28372
( exit $ac_status )
 
28373
apr_cv_epoll=no
 
28374
fi
 
28375
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28376
fi
 
28377
fi
 
28378
echo "$as_me:$LINENO: result: $apr_cv_epoll" >&5
 
28379
echo "${ECHO_T}$apr_cv_epoll" >&6
 
28380
 
 
28381
if test "$apr_cv_epoll" = "yes"; then
 
28382
 
 
28383
cat >>confdefs.h <<\_ACEOF
 
28384
#define HAVE_EPOLL 1
 
28385
_ACEOF
 
28386
 
 
28387
fi
 
28388
 
 
28389
 
 
28390
 
 
28391
 
 
28392
 
 
28393
for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
 
28394
do
 
28395
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28396
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
28397
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
28398
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
28399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28400
else
 
28401
  cat >conftest.$ac_ext <<_ACEOF
 
28402
/* confdefs.h.  */
 
28403
_ACEOF
 
28404
cat confdefs.h >>conftest.$ac_ext
 
28405
cat >>conftest.$ac_ext <<_ACEOF
 
28406
/* end confdefs.h.  */
 
28407
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
28408
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28409
#define $ac_func innocuous_$ac_func
 
28410
 
 
28411
/* System header to define __stub macros and hopefully few prototypes,
 
28412
    which can conflict with char $ac_func (); below.
 
28413
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28414
    <limits.h> exists even on freestanding compilers.  */
 
28415
 
 
28416
#ifdef __STDC__
 
28417
# include <limits.h>
 
28418
#else
 
28419
# include <assert.h>
 
28420
#endif
 
28421
 
 
28422
#undef $ac_func
 
28423
 
 
28424
/* Override any gcc2 internal prototype to avoid an error.  */
 
28425
#ifdef __cplusplus
 
28426
extern "C"
 
28427
{
 
28428
#endif
 
28429
/* We use char because int might match the return type of a gcc2
 
28430
   builtin and then its argument prototype would still apply.  */
 
28431
char $ac_func ();
 
28432
/* The GNU C library defines this for functions which it implements
 
28433
    to always fail with ENOSYS.  Some functions are actually named
 
28434
    something starting with __ and the normal name is an alias.  */
 
28435
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
28436
choke me
 
28437
#else
 
28438
char (*f) () = $ac_func;
 
28439
#endif
 
28440
#ifdef __cplusplus
 
28441
}
 
28442
#endif
 
28443
 
 
28444
int
 
28445
main ()
 
28446
{
 
28447
return f != $ac_func;
 
28448
  ;
 
28449
  return 0;
 
28450
}
 
28451
_ACEOF
 
28452
rm -f conftest.$ac_objext conftest$ac_exeext
 
28453
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28454
  (eval $ac_link) 2>conftest.er1
 
28455
  ac_status=$?
 
28456
  grep -v '^ *+' conftest.er1 >conftest.err
 
28457
  rm -f conftest.er1
 
28458
  cat conftest.err >&5
 
28459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28460
  (exit $ac_status); } &&
 
28461
         { ac_try='test -z "$ac_c_werror_flag"
 
28462
                         || test ! -s conftest.err'
 
28463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28464
  (eval $ac_try) 2>&5
 
28465
  ac_status=$?
 
28466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28467
  (exit $ac_status); }; } &&
 
28468
         { ac_try='test -s conftest$ac_exeext'
 
28469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28470
  (eval $ac_try) 2>&5
 
28471
  ac_status=$?
 
28472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28473
  (exit $ac_status); }; }; then
 
28474
  eval "$as_ac_var=yes"
 
28475
else
 
28476
  echo "$as_me: failed program was:" >&5
 
28477
sed 's/^/| /' conftest.$ac_ext >&5
 
28478
 
 
28479
eval "$as_ac_var=no"
 
28480
fi
 
28481
rm -f conftest.err conftest.$ac_objext \
 
28482
      conftest$ac_exeext conftest.$ac_ext
 
28483
fi
 
28484
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
28485
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
28486
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
28487
  cat >>confdefs.h <<_ACEOF
 
28488
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28489
_ACEOF
 
28490
 
 
28491
fi
 
28492
done
 
28493
 
 
28494
 
 
28495
echo "${nl}Checking for Shared Memory Support..."
 
28496
 
 
28497
# The real-time POSIX extensions (e.g. shm_*, sem_*) may only
 
28498
# be available if linking against librt.
 
28499
echo "$as_me:$LINENO: checking for library containing shm_open" >&5
 
28500
echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
 
28501
if test "${ac_cv_search_shm_open+set}" = set; then
 
28502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28503
else
 
28504
  ac_func_search_save_LIBS=$LIBS
 
28505
ac_cv_search_shm_open=no
 
28506
cat >conftest.$ac_ext <<_ACEOF
 
28507
/* confdefs.h.  */
 
28508
_ACEOF
 
28509
cat confdefs.h >>conftest.$ac_ext
 
28510
cat >>conftest.$ac_ext <<_ACEOF
 
28511
/* end confdefs.h.  */
 
28512
 
 
28513
/* Override any gcc2 internal prototype to avoid an error.  */
 
28514
#ifdef __cplusplus
 
28515
extern "C"
 
28516
#endif
 
28517
/* We use char because int might match the return type of a gcc2
 
28518
   builtin and then its argument prototype would still apply.  */
 
28519
char shm_open ();
 
28520
int
 
28521
main ()
 
28522
{
 
28523
shm_open ();
 
28524
  ;
 
28525
  return 0;
 
28526
}
 
28527
_ACEOF
 
28528
rm -f conftest.$ac_objext conftest$ac_exeext
 
28529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28530
  (eval $ac_link) 2>conftest.er1
 
28531
  ac_status=$?
 
28532
  grep -v '^ *+' conftest.er1 >conftest.err
 
28533
  rm -f conftest.er1
 
28534
  cat conftest.err >&5
 
28535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28536
  (exit $ac_status); } &&
 
28537
         { ac_try='test -z "$ac_c_werror_flag"
 
28538
                         || test ! -s conftest.err'
 
28539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28540
  (eval $ac_try) 2>&5
 
28541
  ac_status=$?
 
28542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28543
  (exit $ac_status); }; } &&
 
28544
         { ac_try='test -s conftest$ac_exeext'
 
28545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28546
  (eval $ac_try) 2>&5
 
28547
  ac_status=$?
 
28548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28549
  (exit $ac_status); }; }; then
 
28550
  ac_cv_search_shm_open="none required"
 
28551
else
 
28552
  echo "$as_me: failed program was:" >&5
 
28553
sed 's/^/| /' conftest.$ac_ext >&5
 
28554
 
 
28555
fi
 
28556
rm -f conftest.err conftest.$ac_objext \
 
28557
      conftest$ac_exeext conftest.$ac_ext
 
28558
if test "$ac_cv_search_shm_open" = no; then
 
28559
  for ac_lib in rt; do
 
28560
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
28561
    cat >conftest.$ac_ext <<_ACEOF
 
28562
/* confdefs.h.  */
 
28563
_ACEOF
 
28564
cat confdefs.h >>conftest.$ac_ext
 
28565
cat >>conftest.$ac_ext <<_ACEOF
 
28566
/* end confdefs.h.  */
 
28567
 
 
28568
/* Override any gcc2 internal prototype to avoid an error.  */
 
28569
#ifdef __cplusplus
 
28570
extern "C"
 
28571
#endif
 
28572
/* We use char because int might match the return type of a gcc2
 
28573
   builtin and then its argument prototype would still apply.  */
 
28574
char shm_open ();
 
28575
int
 
28576
main ()
 
28577
{
 
28578
shm_open ();
 
28579
  ;
 
28580
  return 0;
 
28581
}
 
28582
_ACEOF
 
28583
rm -f conftest.$ac_objext conftest$ac_exeext
 
28584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28585
  (eval $ac_link) 2>conftest.er1
 
28586
  ac_status=$?
 
28587
  grep -v '^ *+' conftest.er1 >conftest.err
 
28588
  rm -f conftest.er1
 
28589
  cat conftest.err >&5
 
28590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28591
  (exit $ac_status); } &&
 
28592
         { ac_try='test -z "$ac_c_werror_flag"
 
28593
                         || test ! -s conftest.err'
 
28594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28595
  (eval $ac_try) 2>&5
 
28596
  ac_status=$?
 
28597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28598
  (exit $ac_status); }; } &&
 
28599
         { ac_try='test -s conftest$ac_exeext'
 
28600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28601
  (eval $ac_try) 2>&5
 
28602
  ac_status=$?
 
28603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28604
  (exit $ac_status); }; }; then
 
28605
  ac_cv_search_shm_open="-l$ac_lib"
 
28606
break
 
28607
else
 
28608
  echo "$as_me: failed program was:" >&5
 
28609
sed 's/^/| /' conftest.$ac_ext >&5
 
28610
 
 
28611
fi
 
28612
rm -f conftest.err conftest.$ac_objext \
 
28613
      conftest$ac_exeext conftest.$ac_ext
 
28614
  done
 
28615
fi
 
28616
LIBS=$ac_func_search_save_LIBS
 
28617
fi
 
28618
echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
 
28619
echo "${ECHO_T}$ac_cv_search_shm_open" >&6
 
28620
if test "$ac_cv_search_shm_open" != no; then
 
28621
  test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
 
28622
 
 
28623
fi
 
28624
 
 
28625
 
 
28626
case $host in
 
28627
 *-sysv*)
 
28628
   ac_includes_default="$ac_includes_default
 
28629
#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
 
28630
# include <sys/mutex.h>
 
28631
#endif";;
 
28632
esac
 
28633
 
 
28634
 
 
28635
 
 
28636
 
 
28637
 
 
28638
 
 
28639
 
 
28640
 
 
28641
 
 
28642
for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h
 
28643
do
 
28644
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
28645
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28646
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28647
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
28648
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28650
fi
 
28651
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
28652
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
28653
else
 
28654
  # Is the header compilable?
 
28655
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
28656
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
28657
cat >conftest.$ac_ext <<_ACEOF
 
28658
/* confdefs.h.  */
 
28659
_ACEOF
 
28660
cat confdefs.h >>conftest.$ac_ext
 
28661
cat >>conftest.$ac_ext <<_ACEOF
 
28662
/* end confdefs.h.  */
 
28663
$ac_includes_default
 
28664
#include <$ac_header>
 
28665
_ACEOF
 
28666
rm -f conftest.$ac_objext
 
28667
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28668
  (eval $ac_compile) 2>conftest.er1
 
28669
  ac_status=$?
 
28670
  grep -v '^ *+' conftest.er1 >conftest.err
 
28671
  rm -f conftest.er1
 
28672
  cat conftest.err >&5
 
28673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28674
  (exit $ac_status); } &&
 
28675
         { ac_try='test -z "$ac_c_werror_flag"
 
28676
                         || test ! -s conftest.err'
 
28677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28678
  (eval $ac_try) 2>&5
 
28679
  ac_status=$?
 
28680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28681
  (exit $ac_status); }; } &&
 
28682
         { ac_try='test -s conftest.$ac_objext'
 
28683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28684
  (eval $ac_try) 2>&5
 
28685
  ac_status=$?
 
28686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28687
  (exit $ac_status); }; }; then
 
28688
  ac_header_compiler=yes
 
28689
else
 
28690
  echo "$as_me: failed program was:" >&5
 
28691
sed 's/^/| /' conftest.$ac_ext >&5
 
28692
 
 
28693
ac_header_compiler=no
 
28694
fi
 
28695
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28696
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
28697
echo "${ECHO_T}$ac_header_compiler" >&6
 
28698
 
 
28699
# Is the header present?
 
28700
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
28701
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
28702
cat >conftest.$ac_ext <<_ACEOF
 
28703
/* confdefs.h.  */
 
28704
_ACEOF
 
28705
cat confdefs.h >>conftest.$ac_ext
 
28706
cat >>conftest.$ac_ext <<_ACEOF
 
28707
/* end confdefs.h.  */
 
28708
#include <$ac_header>
 
28709
_ACEOF
 
28710
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
28711
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
28712
  ac_status=$?
 
28713
  grep -v '^ *+' conftest.er1 >conftest.err
 
28714
  rm -f conftest.er1
 
28715
  cat conftest.err >&5
 
28716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28717
  (exit $ac_status); } >/dev/null; then
 
28718
  if test -s conftest.err; then
 
28719
    ac_cpp_err=$ac_c_preproc_warn_flag
 
28720
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
28721
  else
 
28722
    ac_cpp_err=
 
28723
  fi
 
28724
else
 
28725
  ac_cpp_err=yes
 
28726
fi
 
28727
if test -z "$ac_cpp_err"; then
 
28728
  ac_header_preproc=yes
 
28729
else
 
28730
  echo "$as_me: failed program was:" >&5
 
28731
sed 's/^/| /' conftest.$ac_ext >&5
 
28732
 
 
28733
  ac_header_preproc=no
 
28734
fi
 
28735
rm -f conftest.err conftest.$ac_ext
 
28736
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28737
echo "${ECHO_T}$ac_header_preproc" >&6
 
28738
 
 
28739
# So?  What about this header?
 
28740
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28741
  yes:no: )
 
28742
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
28743
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28744
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
28745
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
28746
    ac_header_preproc=yes
 
28747
    ;;
 
28748
  no:yes:* )
 
28749
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
28750
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
28751
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
28752
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
28753
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
28754
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
28755
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
28756
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28757
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
28758
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
28759
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
28760
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
28761
    (
 
28762
      cat <<\_ASBOX
 
28763
## ------------------------------------------ ##
 
28764
## Report this to the AC_PACKAGE_NAME lists.  ##
 
28765
## ------------------------------------------ ##
 
28766
_ASBOX
 
28767
    ) |
 
28768
      sed "s/^/$as_me: WARNING:     /" >&2
 
28769
    ;;
 
28770
esac
 
28771
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
28772
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
28773
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
28774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28775
else
 
28776
  eval "$as_ac_Header=\$ac_header_preproc"
 
28777
fi
 
28778
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
28779
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
28780
 
 
28781
fi
 
28782
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
28783
  cat >>confdefs.h <<_ACEOF
 
28784
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
28785
_ACEOF
 
28786
 
 
28787
fi
 
28788
 
 
28789
done
 
28790
 
 
28791
 
 
28792
 
 
28793
 
 
28794
 
 
28795
 
 
28796
 
 
28797
 
 
28798
 
 
28799
 
 
28800
for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
 
28801
                create_area
 
28802
do
 
28803
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28804
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
28805
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
28806
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
28807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28808
else
 
28809
  cat >conftest.$ac_ext <<_ACEOF
 
28810
/* confdefs.h.  */
 
28811
_ACEOF
 
28812
cat confdefs.h >>conftest.$ac_ext
 
28813
cat >>conftest.$ac_ext <<_ACEOF
 
28814
/* end confdefs.h.  */
 
28815
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
28816
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28817
#define $ac_func innocuous_$ac_func
 
28818
 
 
28819
/* System header to define __stub macros and hopefully few prototypes,
 
28820
    which can conflict with char $ac_func (); below.
 
28821
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28822
    <limits.h> exists even on freestanding compilers.  */
 
28823
 
 
28824
#ifdef __STDC__
 
28825
# include <limits.h>
 
28826
#else
 
28827
# include <assert.h>
 
28828
#endif
 
28829
 
 
28830
#undef $ac_func
 
28831
 
 
28832
/* Override any gcc2 internal prototype to avoid an error.  */
 
28833
#ifdef __cplusplus
 
28834
extern "C"
 
28835
{
 
28836
#endif
 
28837
/* We use char because int might match the return type of a gcc2
 
28838
   builtin and then its argument prototype would still apply.  */
 
28839
char $ac_func ();
 
28840
/* The GNU C library defines this for functions which it implements
 
28841
    to always fail with ENOSYS.  Some functions are actually named
 
28842
    something starting with __ and the normal name is an alias.  */
 
28843
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
28844
choke me
 
28845
#else
 
28846
char (*f) () = $ac_func;
 
28847
#endif
 
28848
#ifdef __cplusplus
 
28849
}
 
28850
#endif
 
28851
 
 
28852
int
 
28853
main ()
 
28854
{
 
28855
return f != $ac_func;
 
28856
  ;
 
28857
  return 0;
 
28858
}
 
28859
_ACEOF
 
28860
rm -f conftest.$ac_objext conftest$ac_exeext
 
28861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28862
  (eval $ac_link) 2>conftest.er1
 
28863
  ac_status=$?
 
28864
  grep -v '^ *+' conftest.er1 >conftest.err
 
28865
  rm -f conftest.er1
 
28866
  cat conftest.err >&5
 
28867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28868
  (exit $ac_status); } &&
 
28869
         { ac_try='test -z "$ac_c_werror_flag"
 
28870
                         || test ! -s conftest.err'
 
28871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28872
  (eval $ac_try) 2>&5
 
28873
  ac_status=$?
 
28874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28875
  (exit $ac_status); }; } &&
 
28876
         { ac_try='test -s conftest$ac_exeext'
 
28877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28878
  (eval $ac_try) 2>&5
 
28879
  ac_status=$?
 
28880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28881
  (exit $ac_status); }; }; then
 
28882
  eval "$as_ac_var=yes"
 
28883
else
 
28884
  echo "$as_me: failed program was:" >&5
 
28885
sed 's/^/| /' conftest.$ac_ext >&5
 
28886
 
 
28887
eval "$as_ac_var=no"
 
28888
fi
 
28889
rm -f conftest.err conftest.$ac_objext \
 
28890
      conftest$ac_exeext conftest.$ac_ext
 
28891
fi
 
28892
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
28893
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
28894
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
28895
  cat >>confdefs.h <<_ACEOF
 
28896
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28897
_ACEOF
 
28898
 
 
28899
fi
 
28900
done
 
28901
 
 
28902
 
 
28903
  echo "$as_me:$LINENO: checking for MAP_ANON in sys/mman.h" >&5
 
28904
echo $ECHO_N "checking for MAP_ANON in sys/mman.h... $ECHO_C" >&6
 
28905
if test "${ac_cv_define_MAP_ANON+set}" = set; then
 
28906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28907
else
 
28908
 
 
28909
    cat >conftest.$ac_ext <<_ACEOF
 
28910
/* confdefs.h.  */
 
28911
_ACEOF
 
28912
cat confdefs.h >>conftest.$ac_ext
 
28913
cat >>conftest.$ac_ext <<_ACEOF
 
28914
/* end confdefs.h.  */
 
28915
 
 
28916
#include <sys/mman.h>
 
28917
#ifdef MAP_ANON
 
28918
YES_IS_DEFINED
 
28919
#endif
 
28920
 
 
28921
_ACEOF
 
28922
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
28923
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
28924
  ac_cv_define_MAP_ANON=yes
 
28925
else
 
28926
  ac_cv_define_MAP_ANON=no
 
28927
fi
 
28928
rm -f conftest*
 
28929
 
 
28930
 
 
28931
fi
 
28932
echo "$as_me:$LINENO: result: $ac_cv_define_MAP_ANON" >&5
 
28933
echo "${ECHO_T}$ac_cv_define_MAP_ANON" >&6
 
28934
  if test "$ac_cv_define_MAP_ANON" = "yes"; then
 
28935
 
 
28936
cat >>confdefs.h <<\_ACEOF
 
28937
#define HAVE_MAP_ANON 1
 
28938
_ACEOF
 
28939
 
 
28940
  fi
 
28941
 
 
28942
 
 
28943
 
 
28944
echo "$as_me:$LINENO: checking for /dev/zero" >&5
 
28945
echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
 
28946
if test "${ac_cv_file__dev_zero+set}" = set; then
 
28947
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28948
else
 
28949
  if test -r /dev/zero; then
 
28950
   ac_cv_file__dev_zero=yes
 
28951
 else
 
28952
   ac_cv_file__dev_zero=no
 
28953
 fi
 
28954
fi
 
28955
echo "$as_me:$LINENO: result: $ac_cv_file__dev_zero" >&5
 
28956
echo "${ECHO_T}$ac_cv_file__dev_zero" >&6
 
28957
 
 
28958
 
 
28959
# Not all systems can mmap /dev/zero (such as HP-UX).  Check for that.
 
28960
if test "$ac_cv_func_mmap" = "yes" &&
 
28961
   test "$ac_cv_file__dev_zero" = "yes"; then
 
28962
    echo "$as_me:$LINENO: checking for mmap that can map /dev/zero" >&5
 
28963
echo $ECHO_N "checking for mmap that can map /dev/zero... $ECHO_C" >&6
 
28964
    if test "$cross_compiling" = yes; then
 
28965
  ac_cv_file__dev_zero=no
 
28966
else
 
28967
  cat >conftest.$ac_ext <<_ACEOF
 
28968
/* confdefs.h.  */
 
28969
_ACEOF
 
28970
cat confdefs.h >>conftest.$ac_ext
 
28971
cat >>conftest.$ac_ext <<_ACEOF
 
28972
/* end confdefs.h.  */
 
28973
 
 
28974
#include <sys/types.h>
 
28975
#include <sys/stat.h>
 
28976
#include <fcntl.h>
 
28977
#ifdef HAVE_SYS_MMAN_H
 
28978
#include <sys/mman.h>
 
28979
#endif
 
28980
    int main()
 
28981
    {
 
28982
        int fd;
 
28983
        void *m;
 
28984
        fd = open("/dev/zero", O_RDWR);
 
28985
        if (fd < 0) {
 
28986
            return 1;
 
28987
        }
 
28988
        m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
 
28989
        if (m == (void *)-1) {  /* aka MAP_FAILED */
 
28990
            return 2;
 
28991
        }
 
28992
        if (munmap(m, sizeof(void*)) < 0) {
 
28993
            return 3;
 
28994
        }
 
28995
        return 0;
 
28996
    }
 
28997
_ACEOF
 
28998
rm -f conftest$ac_exeext
 
28999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29000
  (eval $ac_link) 2>&5
 
29001
  ac_status=$?
 
29002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29003
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29005
  (eval $ac_try) 2>&5
 
29006
  ac_status=$?
 
29007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29008
  (exit $ac_status); }; }; then
 
29009
  :
 
29010
else
 
29011
  echo "$as_me: program exited with status $ac_status" >&5
 
29012
echo "$as_me: failed program was:" >&5
 
29013
sed 's/^/| /' conftest.$ac_ext >&5
 
29014
 
 
29015
( exit $ac_status )
 
29016
ac_cv_file__dev_zero=no
 
29017
fi
 
29018
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29019
fi
 
29020
 
 
29021
    echo "$as_me:$LINENO: result: $ac_cv_file__dev_zero" >&5
 
29022
echo "${ECHO_T}$ac_cv_file__dev_zero" >&6
 
29023
fi
 
29024
 
 
29025
# Now we determine which one is our anonymous shmem preference.
 
29026
haveshmgetanon="0"
 
29027
havemmapzero="0"
 
29028
havemmapanon="0"
 
29029
ac_decision_item='anonymous shared memory allocation method'
 
29030
ac_decision_msg='FAILED'
 
29031
ac_decision=''
 
29032
 
 
29033
ac_rc=yes
 
29034
for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
 
29035
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29036
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29037
    case $ac_type in
 
29038
        header )
 
29039
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29040
            ac_var="ac_cv_header_$ac_item"
 
29041
            ;;
 
29042
        file )
 
29043
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29044
            ac_var="ac_cv_file_$ac_item"
 
29045
            ;;
 
29046
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29047
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29048
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29049
        custom ) ac_var="$ac_item" ;;
 
29050
    esac
 
29051
    eval "ac_val=\$$ac_var"
 
29052
    if test ".$ac_val" != .yes; then
 
29053
        ac_rc=no
 
29054
        break
 
29055
    fi
 
29056
done
 
29057
if test ".$ac_rc" = .yes; then
 
29058
    :
 
29059
    haveshmgetanon="1"
 
29060
 
 
29061
 
 
29062
ac_decision='USE_SHMEM_SHMGET_ANON'
 
29063
ac_decision_msg='SysV IPC shmget()'
 
29064
ac_decision_USE_SHMEM_SHMGET_ANON=yes
 
29065
ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
 
29066
 
 
29067
else
 
29068
    :
 
29069
 
 
29070
fi
 
29071
 
 
29072
ac_rc=yes
 
29073
for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
 
29074
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29075
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29076
    case $ac_type in
 
29077
        header )
 
29078
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29079
            ac_var="ac_cv_header_$ac_item"
 
29080
            ;;
 
29081
        file )
 
29082
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29083
            ac_var="ac_cv_file_$ac_item"
 
29084
            ;;
 
29085
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29086
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29087
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29088
        custom ) ac_var="$ac_item" ;;
 
29089
    esac
 
29090
    eval "ac_val=\$$ac_var"
 
29091
    if test ".$ac_val" != .yes; then
 
29092
        ac_rc=no
 
29093
        break
 
29094
    fi
 
29095
done
 
29096
if test ".$ac_rc" = .yes; then
 
29097
    :
 
29098
    havemmapzero="1"
 
29099
 
 
29100
 
 
29101
ac_decision='USE_SHMEM_MMAP_ZERO'
 
29102
ac_decision_msg='SVR4-style mmap() on /dev/zero'
 
29103
ac_decision_USE_SHMEM_MMAP_ZERO=yes
 
29104
ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
 
29105
 
 
29106
else
 
29107
    :
 
29108
 
 
29109
fi
 
29110
 
 
29111
ac_rc=yes
 
29112
for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
 
29113
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29114
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29115
    case $ac_type in
 
29116
        header )
 
29117
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29118
            ac_var="ac_cv_header_$ac_item"
 
29119
            ;;
 
29120
        file )
 
29121
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29122
            ac_var="ac_cv_file_$ac_item"
 
29123
            ;;
 
29124
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29125
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29126
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29127
        custom ) ac_var="$ac_item" ;;
 
29128
    esac
 
29129
    eval "ac_val=\$$ac_var"
 
29130
    if test ".$ac_val" != .yes; then
 
29131
        ac_rc=no
 
29132
        break
 
29133
    fi
 
29134
done
 
29135
if test ".$ac_rc" = .yes; then
 
29136
    :
 
29137
    havemmapanon="1"
 
29138
 
 
29139
 
 
29140
ac_decision='USE_SHMEM_MMAP_ANON'
 
29141
ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
 
29142
ac_decision_USE_SHMEM_MMAP_ANON=yes
 
29143
ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
 
29144
 
 
29145
else
 
29146
    :
 
29147
 
 
29148
fi
 
29149
 
 
29150
ac_rc=yes
 
29151
for ac_spec in header:os2.h; do
 
29152
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29153
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29154
    case $ac_type in
 
29155
        header )
 
29156
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29157
            ac_var="ac_cv_header_$ac_item"
 
29158
            ;;
 
29159
        file )
 
29160
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29161
            ac_var="ac_cv_file_$ac_item"
 
29162
            ;;
 
29163
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29164
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29165
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29166
        custom ) ac_var="$ac_item" ;;
 
29167
    esac
 
29168
    eval "ac_val=\$$ac_var"
 
29169
    if test ".$ac_val" != .yes; then
 
29170
        ac_rc=no
 
29171
        break
 
29172
    fi
 
29173
done
 
29174
if test ".$ac_rc" = .yes; then
 
29175
    :
 
29176
    haveos2shm="1"
 
29177
 
 
29178
 
 
29179
ac_decision='USE_SHMEM_OS2_ANON'
 
29180
ac_decision_msg='OS/2 DosAllocSharedMem()'
 
29181
ac_decision_USE_SHMEM_OS2_ANON=yes
 
29182
ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
 
29183
 
 
29184
else
 
29185
    :
 
29186
 
 
29187
fi
 
29188
 
 
29189
ac_rc=yes
 
29190
for ac_spec in header:kernel/OS.h func:create_area; do
 
29191
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29192
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29193
    case $ac_type in
 
29194
        header )
 
29195
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29196
            ac_var="ac_cv_header_$ac_item"
 
29197
            ;;
 
29198
        file )
 
29199
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29200
            ac_var="ac_cv_file_$ac_item"
 
29201
            ;;
 
29202
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29203
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29204
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29205
        custom ) ac_var="$ac_item" ;;
 
29206
    esac
 
29207
    eval "ac_val=\$$ac_var"
 
29208
    if test ".$ac_val" != .yes; then
 
29209
        ac_rc=no
 
29210
        break
 
29211
    fi
 
29212
done
 
29213
if test ".$ac_rc" = .yes; then
 
29214
    :
 
29215
    havebeosshm="1"
 
29216
 
 
29217
 
 
29218
ac_decision='USE_SHMEM_BEOS_ANON'
 
29219
ac_decision_msg='BeOS areas'
 
29220
ac_decision_USE_SHMEM_BEOS_ANON=yes
 
29221
ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
 
29222
 
 
29223
else
 
29224
    :
 
29225
 
 
29226
fi
 
29227
 
 
29228
case $host in
 
29229
    *linux* )
 
29230
        # Linux has problems with MM_SHMT_MMANON even though it reports
 
29231
        # that it has it.
 
29232
        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
 
29233
        # confirmed fixed in 2.4 series.
 
29234
        if test $os_version -le "240"; then
 
29235
                ac_decision=''
 
29236
    for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
 
29237
         eval "ac_decision_this=\$ac_decision_${ac_item}"
 
29238
         if test ".$ac_decision_this" = .yes; then
 
29239
             ac_decision=$ac_item
 
29240
             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
 
29241
         fi
 
29242
    done
 
29243
 
 
29244
        fi
 
29245
        ;;
 
29246
    *hpux11* )
 
29247
            ac_decision=''
 
29248
    for ac_item in USE_SHMEM_SHMGET_ANON; do
 
29249
         eval "ac_decision_this=\$ac_decision_${ac_item}"
 
29250
         if test ".$ac_decision_this" = .yes; then
 
29251
             ac_decision=$ac_item
 
29252
             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
 
29253
         fi
 
29254
    done
 
29255
 
 
29256
        ;;
 
29257
esac
 
29258
if test ".$ac_decision" = .; then
 
29259
    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
 
29260
    exit 1
 
29261
else
 
29262
    if test ".$ac_decision_msg" = .; then
 
29263
        ac_decision_msg="$ac_decision"
 
29264
    fi
 
29265
    cat >>confdefs.h <<_ACEOF
 
29266
#define ${ac_decision_item} 1
 
29267
_ACEOF
 
29268
 
 
29269
    echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
 
29270
echo "${ECHO_T}decision on $ac_decision_item... $ac_decision_msg" >&6
 
29271
fi
 
29272
 
 
29273
cat >>confdefs.h <<_ACEOF
 
29274
#define $ac_decision 1
 
29275
_ACEOF
 
29276
 
 
29277
 
 
29278
useshmgetanon="0"
 
29279
usemmapzero="0"
 
29280
usemmapanon="0"
 
29281
 
 
29282
case $ac_decision in
 
29283
    USE_SHMEM_SHMGET_ANON )
 
29284
        useshmgetanon="1"
 
29285
        ;;
 
29286
    USE_SHMEM_MMAP_ZERO )
 
29287
        usemmapzero="1"
 
29288
        ;;
 
29289
    USE_SHMEM_MMAP_ANON )
 
29290
        usemmapanon="1"
 
29291
        ;;
 
29292
esac
 
29293
 
 
29294
 
 
29295
 
 
29296
 
 
29297
 
 
29298
 
 
29299
 
 
29300
 
 
29301
# Now we determine which one is our name-based shmem preference.
 
29302
havemmaptmp="0"
 
29303
havemmapshm="0"
 
29304
haveshmget="0"
 
29305
havebeosarea="0"
 
29306
haveos2shm="0"
 
29307
ac_decision_item='namebased memory allocation method'
 
29308
ac_decision_msg='FAILED'
 
29309
ac_decision=''
 
29310
 
 
29311
ac_rc=yes
 
29312
for ac_spec in header:sys/mman.h func:mmap func:munmap; do
 
29313
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29314
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29315
    case $ac_type in
 
29316
        header )
 
29317
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29318
            ac_var="ac_cv_header_$ac_item"
 
29319
            ;;
 
29320
        file )
 
29321
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29322
            ac_var="ac_cv_file_$ac_item"
 
29323
            ;;
 
29324
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29325
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29326
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29327
        custom ) ac_var="$ac_item" ;;
 
29328
    esac
 
29329
    eval "ac_val=\$$ac_var"
 
29330
    if test ".$ac_val" != .yes; then
 
29331
        ac_rc=no
 
29332
        break
 
29333
    fi
 
29334
done
 
29335
if test ".$ac_rc" = .yes; then
 
29336
    :
 
29337
    havemmaptmp="1"
 
29338
 
 
29339
 
 
29340
ac_decision='USE_SHMEM_MMAP_TMP'
 
29341
ac_decision_msg='Classical mmap() on temporary file'
 
29342
ac_decision_USE_SHMEM_MMAP_TMP=yes
 
29343
ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
 
29344
 
 
29345
else
 
29346
    :
 
29347
 
 
29348
fi
 
29349
 
 
29350
ac_rc=yes
 
29351
for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open              func:shm_unlink; do
 
29352
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29353
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29354
    case $ac_type in
 
29355
        header )
 
29356
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29357
            ac_var="ac_cv_header_$ac_item"
 
29358
            ;;
 
29359
        file )
 
29360
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29361
            ac_var="ac_cv_file_$ac_item"
 
29362
            ;;
 
29363
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29364
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29365
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29366
        custom ) ac_var="$ac_item" ;;
 
29367
    esac
 
29368
    eval "ac_val=\$$ac_var"
 
29369
    if test ".$ac_val" != .yes; then
 
29370
        ac_rc=no
 
29371
        break
 
29372
    fi
 
29373
done
 
29374
if test ".$ac_rc" = .yes; then
 
29375
    :
 
29376
    havemmapshm="1"
 
29377
 
 
29378
 
 
29379
ac_decision='USE_SHMEM_MMAP_SHM'
 
29380
ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
 
29381
ac_decision_USE_SHMEM_MMAP_SHM=yes
 
29382
ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
 
29383
 
 
29384
else
 
29385
    :
 
29386
 
 
29387
fi
 
29388
 
 
29389
ac_rc=yes
 
29390
for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
 
29391
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29392
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29393
    case $ac_type in
 
29394
        header )
 
29395
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29396
            ac_var="ac_cv_header_$ac_item"
 
29397
            ;;
 
29398
        file )
 
29399
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29400
            ac_var="ac_cv_file_$ac_item"
 
29401
            ;;
 
29402
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29403
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29404
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29405
        custom ) ac_var="$ac_item" ;;
 
29406
    esac
 
29407
    eval "ac_val=\$$ac_var"
 
29408
    if test ".$ac_val" != .yes; then
 
29409
        ac_rc=no
 
29410
        break
 
29411
    fi
 
29412
done
 
29413
if test ".$ac_rc" = .yes; then
 
29414
    :
 
29415
    haveshmget="1"
 
29416
 
 
29417
 
 
29418
ac_decision='USE_SHMEM_SHMGET'
 
29419
ac_decision_msg='SysV IPC shmget()'
 
29420
ac_decision_USE_SHMEM_SHMGET=yes
 
29421
ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
 
29422
 
 
29423
else
 
29424
    :
 
29425
 
 
29426
fi
 
29427
 
 
29428
ac_rc=yes
 
29429
for ac_spec in header:kernel/OS.h func:create_area; do
 
29430
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29431
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29432
    case $ac_type in
 
29433
        header )
 
29434
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29435
            ac_var="ac_cv_header_$ac_item"
 
29436
            ;;
 
29437
        file )
 
29438
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29439
            ac_var="ac_cv_file_$ac_item"
 
29440
            ;;
 
29441
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29442
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29443
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29444
        custom ) ac_var="$ac_item" ;;
 
29445
    esac
 
29446
    eval "ac_val=\$$ac_var"
 
29447
    if test ".$ac_val" != .yes; then
 
29448
        ac_rc=no
 
29449
        break
 
29450
    fi
 
29451
done
 
29452
if test ".$ac_rc" = .yes; then
 
29453
    :
 
29454
    havebeosshm="1"
 
29455
 
 
29456
 
 
29457
ac_decision='USE_SHMEM_BEOS'
 
29458
ac_decision_msg='BeOS areas'
 
29459
ac_decision_USE_SHMEM_BEOS=yes
 
29460
ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
 
29461
 
 
29462
else
 
29463
    :
 
29464
 
 
29465
fi
 
29466
 
 
29467
ac_rc=yes
 
29468
for ac_spec in header:os2.h; do
 
29469
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
29470
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
29471
    case $ac_type in
 
29472
        header )
 
29473
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29474
            ac_var="ac_cv_header_$ac_item"
 
29475
            ;;
 
29476
        file )
 
29477
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
29478
            ac_var="ac_cv_file_$ac_item"
 
29479
            ;;
 
29480
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
29481
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
29482
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
29483
        custom ) ac_var="$ac_item" ;;
 
29484
    esac
 
29485
    eval "ac_val=\$$ac_var"
 
29486
    if test ".$ac_val" != .yes; then
 
29487
        ac_rc=no
 
29488
        break
 
29489
    fi
 
29490
done
 
29491
if test ".$ac_rc" = .yes; then
 
29492
    :
 
29493
    haveos2shm="1"
 
29494
 
 
29495
 
 
29496
ac_decision='USE_SHMEM_OS2'
 
29497
ac_decision_msg='OS/2 DosAllocSharedMem()'
 
29498
ac_decision_USE_SHMEM_OS2=yes
 
29499
ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
 
29500
 
 
29501
else
 
29502
    :
 
29503
 
 
29504
fi
 
29505
 
 
29506
case $host in
 
29507
    *linux* )
 
29508
        # Linux has problems with MM_SHMT_MMANON even though it reports
 
29509
        # that it has it.
 
29510
        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
 
29511
        # confirmed fixed in 2.4 series.
 
29512
        if test $os_version -le "240"; then
 
29513
                ac_decision=''
 
29514
    for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM                                   USE_SHMEM_SHMGET; do
 
29515
         eval "ac_decision_this=\$ac_decision_${ac_item}"
 
29516
         if test ".$ac_decision_this" = .yes; then
 
29517
             ac_decision=$ac_item
 
29518
             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
 
29519
         fi
 
29520
    done
 
29521
 
 
29522
        fi
 
29523
        ;;
 
29524
esac
 
29525
if test ".$ac_decision" = .; then
 
29526
    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
 
29527
    exit 1
 
29528
else
 
29529
    if test ".$ac_decision_msg" = .; then
 
29530
        ac_decision_msg="$ac_decision"
 
29531
    fi
 
29532
    cat >>confdefs.h <<_ACEOF
 
29533
#define ${ac_decision_item} 1
 
29534
_ACEOF
 
29535
 
 
29536
    echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
 
29537
echo "${ECHO_T}decision on $ac_decision_item... $ac_decision_msg" >&6
 
29538
fi
 
29539
 
 
29540
cat >>confdefs.h <<_ACEOF
 
29541
#define $ac_decision 1
 
29542
_ACEOF
 
29543
 
 
29544
 
 
29545
usemmaptmp="0"
 
29546
usemmapshm="0"
 
29547
useshmget="0"
 
29548
usebeosarea="0"
 
29549
useos2shm="0"
 
29550
 
 
29551
case $ac_decision in
 
29552
    USE_SHMEM_MMAP_TMP )
 
29553
        usemmaptmp="1"
 
29554
        ;;
 
29555
    USE_SHMEM_MMAP_SHM )
 
29556
        usemmapshm="1"
 
29557
        ;;
 
29558
    USE_SHMEM_SHMGET )
 
29559
        useshmget="1"
 
29560
        ;;
 
29561
    USE_SHMEM_BEOS )
 
29562
        usebeosarea="1"
 
29563
        ;;
 
29564
    USE_SHMEM_OS2 )
 
29565
        useos2shm="1"
 
29566
        ;;
 
29567
esac
 
29568
 
 
29569
# Do we have any shared memory support?
 
29570
if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm" = "0000000"; then
 
29571
  sharedmem="0"
 
29572
else
 
29573
  sharedmem="1"
 
29574
fi
 
29575
 
 
29576
 
 
29577
 
 
29578
 
 
29579
 
 
29580
 
 
29581
 
 
29582
 
 
29583
 
 
29584
 
 
29585
 
 
29586
 
 
29587
 
 
29588
 
 
29589
 
 
29590
 
 
29591
 
 
29592
 
 
29593
 
 
29594
 
 
29595
 
 
29596
 
 
29597
 
 
29598
 
 
29599
 
 
29600
 
 
29601
for ac_func in alloca calloc setsid isinf isnan \
 
29602
                getenv putenv setenv unsetenv \
 
29603
                writev getifaddrs utime utimes
 
29604
do
 
29605
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
29606
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
29607
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
29608
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
29609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29610
else
 
29611
  cat >conftest.$ac_ext <<_ACEOF
 
29612
/* confdefs.h.  */
 
29613
_ACEOF
 
29614
cat confdefs.h >>conftest.$ac_ext
 
29615
cat >>conftest.$ac_ext <<_ACEOF
 
29616
/* end confdefs.h.  */
 
29617
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
29618
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
29619
#define $ac_func innocuous_$ac_func
 
29620
 
 
29621
/* System header to define __stub macros and hopefully few prototypes,
 
29622
    which can conflict with char $ac_func (); below.
 
29623
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
29624
    <limits.h> exists even on freestanding compilers.  */
 
29625
 
 
29626
#ifdef __STDC__
 
29627
# include <limits.h>
 
29628
#else
 
29629
# include <assert.h>
 
29630
#endif
 
29631
 
 
29632
#undef $ac_func
 
29633
 
 
29634
/* Override any gcc2 internal prototype to avoid an error.  */
 
29635
#ifdef __cplusplus
 
29636
extern "C"
 
29637
{
 
29638
#endif
 
29639
/* We use char because int might match the return type of a gcc2
 
29640
   builtin and then its argument prototype would still apply.  */
 
29641
char $ac_func ();
 
29642
/* The GNU C library defines this for functions which it implements
 
29643
    to always fail with ENOSYS.  Some functions are actually named
 
29644
    something starting with __ and the normal name is an alias.  */
 
29645
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
29646
choke me
 
29647
#else
 
29648
char (*f) () = $ac_func;
 
29649
#endif
 
29650
#ifdef __cplusplus
 
29651
}
 
29652
#endif
 
29653
 
 
29654
int
 
29655
main ()
 
29656
{
 
29657
return f != $ac_func;
 
29658
  ;
 
29659
  return 0;
 
29660
}
 
29661
_ACEOF
 
29662
rm -f conftest.$ac_objext conftest$ac_exeext
 
29663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29664
  (eval $ac_link) 2>conftest.er1
 
29665
  ac_status=$?
 
29666
  grep -v '^ *+' conftest.er1 >conftest.err
 
29667
  rm -f conftest.er1
 
29668
  cat conftest.err >&5
 
29669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29670
  (exit $ac_status); } &&
 
29671
         { ac_try='test -z "$ac_c_werror_flag"
 
29672
                         || test ! -s conftest.err'
 
29673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29674
  (eval $ac_try) 2>&5
 
29675
  ac_status=$?
 
29676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29677
  (exit $ac_status); }; } &&
 
29678
         { ac_try='test -s conftest$ac_exeext'
 
29679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29680
  (eval $ac_try) 2>&5
 
29681
  ac_status=$?
 
29682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29683
  (exit $ac_status); }; }; then
 
29684
  eval "$as_ac_var=yes"
 
29685
else
 
29686
  echo "$as_me: failed program was:" >&5
 
29687
sed 's/^/| /' conftest.$ac_ext >&5
 
29688
 
 
29689
eval "$as_ac_var=no"
 
29690
fi
 
29691
rm -f conftest.err conftest.$ac_objext \
 
29692
      conftest$ac_exeext conftest.$ac_ext
 
29693
fi
 
29694
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
29695
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
29696
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
29697
  cat >>confdefs.h <<_ACEOF
 
29698
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
29699
_ACEOF
 
29700
 
 
29701
fi
 
29702
done
 
29703
 
 
29704
 
 
29705
for ac_func in setrlimit
 
29706
do
 
29707
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
29708
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
29709
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
29710
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
29711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29712
else
 
29713
  cat >conftest.$ac_ext <<_ACEOF
 
29714
/* confdefs.h.  */
 
29715
_ACEOF
 
29716
cat confdefs.h >>conftest.$ac_ext
 
29717
cat >>conftest.$ac_ext <<_ACEOF
 
29718
/* end confdefs.h.  */
 
29719
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
29720
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
29721
#define $ac_func innocuous_$ac_func
 
29722
 
 
29723
/* System header to define __stub macros and hopefully few prototypes,
 
29724
    which can conflict with char $ac_func (); below.
 
29725
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
29726
    <limits.h> exists even on freestanding compilers.  */
 
29727
 
 
29728
#ifdef __STDC__
 
29729
# include <limits.h>
 
29730
#else
 
29731
# include <assert.h>
 
29732
#endif
 
29733
 
 
29734
#undef $ac_func
 
29735
 
 
29736
/* Override any gcc2 internal prototype to avoid an error.  */
 
29737
#ifdef __cplusplus
 
29738
extern "C"
 
29739
{
 
29740
#endif
 
29741
/* We use char because int might match the return type of a gcc2
 
29742
   builtin and then its argument prototype would still apply.  */
 
29743
char $ac_func ();
 
29744
/* The GNU C library defines this for functions which it implements
 
29745
    to always fail with ENOSYS.  Some functions are actually named
 
29746
    something starting with __ and the normal name is an alias.  */
 
29747
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
29748
choke me
 
29749
#else
 
29750
char (*f) () = $ac_func;
 
29751
#endif
 
29752
#ifdef __cplusplus
 
29753
}
 
29754
#endif
 
29755
 
 
29756
int
 
29757
main ()
 
29758
{
 
29759
return f != $ac_func;
 
29760
  ;
 
29761
  return 0;
 
29762
}
 
29763
_ACEOF
 
29764
rm -f conftest.$ac_objext conftest$ac_exeext
 
29765
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29766
  (eval $ac_link) 2>conftest.er1
 
29767
  ac_status=$?
 
29768
  grep -v '^ *+' conftest.er1 >conftest.err
 
29769
  rm -f conftest.er1
 
29770
  cat conftest.err >&5
 
29771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29772
  (exit $ac_status); } &&
 
29773
         { ac_try='test -z "$ac_c_werror_flag"
 
29774
                         || test ! -s conftest.err'
 
29775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29776
  (eval $ac_try) 2>&5
 
29777
  ac_status=$?
 
29778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29779
  (exit $ac_status); }; } &&
 
29780
         { ac_try='test -s conftest$ac_exeext'
 
29781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29782
  (eval $ac_try) 2>&5
 
29783
  ac_status=$?
 
29784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29785
  (exit $ac_status); }; }; then
 
29786
  eval "$as_ac_var=yes"
 
29787
else
 
29788
  echo "$as_me: failed program was:" >&5
 
29789
sed 's/^/| /' conftest.$ac_ext >&5
 
29790
 
 
29791
eval "$as_ac_var=no"
 
29792
fi
 
29793
rm -f conftest.err conftest.$ac_objext \
 
29794
      conftest$ac_exeext conftest.$ac_ext
 
29795
fi
 
29796
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
29797
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
29798
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
29799
  cat >>confdefs.h <<_ACEOF
 
29800
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
29801
_ACEOF
 
29802
  have_setrlimit="1"
 
29803
else
 
29804
   have_setrlimit="0"
 
29805
fi
 
29806
done
 
29807
 
 
29808
 
 
29809
for ac_func in getrlimit
 
29810
do
 
29811
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
29812
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
29813
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
29814
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
29815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29816
else
 
29817
  cat >conftest.$ac_ext <<_ACEOF
 
29818
/* confdefs.h.  */
 
29819
_ACEOF
 
29820
cat confdefs.h >>conftest.$ac_ext
 
29821
cat >>conftest.$ac_ext <<_ACEOF
 
29822
/* end confdefs.h.  */
 
29823
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
29824
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
29825
#define $ac_func innocuous_$ac_func
 
29826
 
 
29827
/* System header to define __stub macros and hopefully few prototypes,
 
29828
    which can conflict with char $ac_func (); below.
 
29829
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
29830
    <limits.h> exists even on freestanding compilers.  */
 
29831
 
 
29832
#ifdef __STDC__
 
29833
# include <limits.h>
 
29834
#else
 
29835
# include <assert.h>
 
29836
#endif
 
29837
 
 
29838
#undef $ac_func
 
29839
 
 
29840
/* Override any gcc2 internal prototype to avoid an error.  */
 
29841
#ifdef __cplusplus
 
29842
extern "C"
 
29843
{
 
29844
#endif
 
29845
/* We use char because int might match the return type of a gcc2
 
29846
   builtin and then its argument prototype would still apply.  */
 
29847
char $ac_func ();
 
29848
/* The GNU C library defines this for functions which it implements
 
29849
    to always fail with ENOSYS.  Some functions are actually named
 
29850
    something starting with __ and the normal name is an alias.  */
 
29851
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
29852
choke me
 
29853
#else
 
29854
char (*f) () = $ac_func;
 
29855
#endif
 
29856
#ifdef __cplusplus
 
29857
}
 
29858
#endif
 
29859
 
 
29860
int
 
29861
main ()
 
29862
{
 
29863
return f != $ac_func;
 
29864
  ;
 
29865
  return 0;
 
29866
}
 
29867
_ACEOF
 
29868
rm -f conftest.$ac_objext conftest$ac_exeext
 
29869
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29870
  (eval $ac_link) 2>conftest.er1
 
29871
  ac_status=$?
 
29872
  grep -v '^ *+' conftest.er1 >conftest.err
 
29873
  rm -f conftest.er1
 
29874
  cat conftest.err >&5
 
29875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29876
  (exit $ac_status); } &&
 
29877
         { ac_try='test -z "$ac_c_werror_flag"
 
29878
                         || test ! -s conftest.err'
 
29879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29880
  (eval $ac_try) 2>&5
 
29881
  ac_status=$?
 
29882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29883
  (exit $ac_status); }; } &&
 
29884
         { ac_try='test -s conftest$ac_exeext'
 
29885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29886
  (eval $ac_try) 2>&5
 
29887
  ac_status=$?
 
29888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29889
  (exit $ac_status); }; }; then
 
29890
  eval "$as_ac_var=yes"
 
29891
else
 
29892
  echo "$as_me: failed program was:" >&5
 
29893
sed 's/^/| /' conftest.$ac_ext >&5
 
29894
 
 
29895
eval "$as_ac_var=no"
 
29896
fi
 
29897
rm -f conftest.err conftest.$ac_objext \
 
29898
      conftest$ac_exeext conftest.$ac_ext
 
29899
fi
 
29900
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
29901
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
29902
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
29903
  cat >>confdefs.h <<_ACEOF
 
29904
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
29905
_ACEOF
 
29906
  have_getrlimit="1"
 
29907
else
 
29908
   have_getrlimit="0"
 
29909
fi
 
29910
done
 
29911
 
 
29912
sendfile="0"
 
29913
 
 
29914
echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
 
29915
echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
 
29916
if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
 
29917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29918
else
 
29919
  ac_check_lib_save_LIBS=$LIBS
 
29920
LIBS="-lsendfile  $LIBS"
 
29921
cat >conftest.$ac_ext <<_ACEOF
 
29922
/* confdefs.h.  */
 
29923
_ACEOF
 
29924
cat confdefs.h >>conftest.$ac_ext
 
29925
cat >>conftest.$ac_ext <<_ACEOF
 
29926
/* end confdefs.h.  */
 
29927
 
 
29928
/* Override any gcc2 internal prototype to avoid an error.  */
 
29929
#ifdef __cplusplus
 
29930
extern "C"
 
29931
#endif
 
29932
/* We use char because int might match the return type of a gcc2
 
29933
   builtin and then its argument prototype would still apply.  */
 
29934
char sendfilev ();
 
29935
int
 
29936
main ()
 
29937
{
 
29938
sendfilev ();
 
29939
  ;
 
29940
  return 0;
 
29941
}
 
29942
_ACEOF
 
29943
rm -f conftest.$ac_objext conftest$ac_exeext
 
29944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29945
  (eval $ac_link) 2>conftest.er1
 
29946
  ac_status=$?
 
29947
  grep -v '^ *+' conftest.er1 >conftest.err
 
29948
  rm -f conftest.er1
 
29949
  cat conftest.err >&5
 
29950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29951
  (exit $ac_status); } &&
 
29952
         { ac_try='test -z "$ac_c_werror_flag"
 
29953
                         || test ! -s conftest.err'
 
29954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29955
  (eval $ac_try) 2>&5
 
29956
  ac_status=$?
 
29957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29958
  (exit $ac_status); }; } &&
 
29959
         { ac_try='test -s conftest$ac_exeext'
 
29960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29961
  (eval $ac_try) 2>&5
 
29962
  ac_status=$?
 
29963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29964
  (exit $ac_status); }; }; then
 
29965
  ac_cv_lib_sendfile_sendfilev=yes
 
29966
else
 
29967
  echo "$as_me: failed program was:" >&5
 
29968
sed 's/^/| /' conftest.$ac_ext >&5
 
29969
 
 
29970
ac_cv_lib_sendfile_sendfilev=no
 
29971
fi
 
29972
rm -f conftest.err conftest.$ac_objext \
 
29973
      conftest$ac_exeext conftest.$ac_ext
 
29974
LIBS=$ac_check_lib_save_LIBS
 
29975
fi
 
29976
echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
 
29977
echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
 
29978
if test $ac_cv_lib_sendfile_sendfilev = yes; then
 
29979
  cat >>confdefs.h <<_ACEOF
 
29980
#define HAVE_LIBSENDFILE 1
 
29981
_ACEOF
 
29982
 
 
29983
  LIBS="-lsendfile $LIBS"
 
29984
 
 
29985
fi
 
29986
 
 
29987
 
 
29988
 
 
29989
 
 
29990
for ac_func in sendfile send_file sendfilev
 
29991
do
 
29992
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
29993
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
29994
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
29995
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
29996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29997
else
 
29998
  cat >conftest.$ac_ext <<_ACEOF
 
29999
/* confdefs.h.  */
 
30000
_ACEOF
 
30001
cat confdefs.h >>conftest.$ac_ext
 
30002
cat >>conftest.$ac_ext <<_ACEOF
 
30003
/* end confdefs.h.  */
 
30004
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
30005
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
30006
#define $ac_func innocuous_$ac_func
 
30007
 
 
30008
/* System header to define __stub macros and hopefully few prototypes,
 
30009
    which can conflict with char $ac_func (); below.
 
30010
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
30011
    <limits.h> exists even on freestanding compilers.  */
 
30012
 
 
30013
#ifdef __STDC__
 
30014
# include <limits.h>
 
30015
#else
 
30016
# include <assert.h>
 
30017
#endif
 
30018
 
 
30019
#undef $ac_func
 
30020
 
 
30021
/* Override any gcc2 internal prototype to avoid an error.  */
 
30022
#ifdef __cplusplus
 
30023
extern "C"
 
30024
{
 
30025
#endif
 
30026
/* We use char because int might match the return type of a gcc2
 
30027
   builtin and then its argument prototype would still apply.  */
 
30028
char $ac_func ();
 
30029
/* The GNU C library defines this for functions which it implements
 
30030
    to always fail with ENOSYS.  Some functions are actually named
 
30031
    something starting with __ and the normal name is an alias.  */
 
30032
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
30033
choke me
 
30034
#else
 
30035
char (*f) () = $ac_func;
 
30036
#endif
 
30037
#ifdef __cplusplus
 
30038
}
 
30039
#endif
 
30040
 
 
30041
int
 
30042
main ()
 
30043
{
 
30044
return f != $ac_func;
 
30045
  ;
 
30046
  return 0;
 
30047
}
 
30048
_ACEOF
 
30049
rm -f conftest.$ac_objext conftest$ac_exeext
 
30050
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30051
  (eval $ac_link) 2>conftest.er1
 
30052
  ac_status=$?
 
30053
  grep -v '^ *+' conftest.er1 >conftest.err
 
30054
  rm -f conftest.er1
 
30055
  cat conftest.err >&5
 
30056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30057
  (exit $ac_status); } &&
 
30058
         { ac_try='test -z "$ac_c_werror_flag"
 
30059
                         || test ! -s conftest.err'
 
30060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30061
  (eval $ac_try) 2>&5
 
30062
  ac_status=$?
 
30063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30064
  (exit $ac_status); }; } &&
 
30065
         { ac_try='test -s conftest$ac_exeext'
 
30066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30067
  (eval $ac_try) 2>&5
 
30068
  ac_status=$?
 
30069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30070
  (exit $ac_status); }; }; then
 
30071
  eval "$as_ac_var=yes"
 
30072
else
 
30073
  echo "$as_me: failed program was:" >&5
 
30074
sed 's/^/| /' conftest.$ac_ext >&5
 
30075
 
 
30076
eval "$as_ac_var=no"
 
30077
fi
 
30078
rm -f conftest.err conftest.$ac_objext \
 
30079
      conftest$ac_exeext conftest.$ac_ext
 
30080
fi
 
30081
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
30082
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
30083
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
30084
  cat >>confdefs.h <<_ACEOF
 
30085
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30086
_ACEOF
 
30087
  sendfile="1"
 
30088
fi
 
30089
done
 
30090
 
 
30091
 
 
30092
 
 
30093
 
 
30094
# Check whether --with-sendfile or --without-sendfile was given.
 
30095
if test "${with_sendfile+set}" = set; then
 
30096
  withval="$with_sendfile"
 
30097
   if test "$withval" = "yes"; then
 
30098
        sendfile="1"
 
30099
    else
 
30100
        sendfile="0"
 
30101
    fi
 
30102
else
 
30103
 
 
30104
    orig_sendfile=$sendfile
 
30105
    case $host in
 
30106
        *freebsd*)
 
30107
            # FreeBSD < 4.2 has issues with threads+sendfile
 
30108
            if test $os_version -le "401999"; then
 
30109
                if test "$threads" = "1"; then
 
30110
                    sendfile="0"
 
30111
                fi
 
30112
            fi
 
30113
            ;;
 
30114
        *alpha*-dec-osf* )
 
30115
            sendfile="0"
 
30116
            ;;
 
30117
        s390-*-linux-gnu)
 
30118
            # disable sendfile support for 2.2 on S/390
 
30119
            if test $os_version -lt 240; then
 
30120
                sendfile="0"
 
30121
            fi
 
30122
            ;;
 
30123
        *aix*)
 
30124
            # compiler-independent check for 64-bit build
 
30125
            echo "$as_me:$LINENO: checking for void*" >&5
 
30126
echo $ECHO_N "checking for void*... $ECHO_C" >&6
 
30127
if test "${ac_cv_type_voidp+set}" = set; then
 
30128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30129
else
 
30130
  cat >conftest.$ac_ext <<_ACEOF
 
30131
/* confdefs.h.  */
 
30132
_ACEOF
 
30133
cat confdefs.h >>conftest.$ac_ext
 
30134
cat >>conftest.$ac_ext <<_ACEOF
 
30135
/* end confdefs.h.  */
 
30136
$ac_includes_default
 
30137
int
 
30138
main ()
 
30139
{
 
30140
if ((void* *) 0)
 
30141
  return 0;
 
30142
if (sizeof (void*))
 
30143
  return 0;
 
30144
  ;
 
30145
  return 0;
 
30146
}
 
30147
_ACEOF
 
30148
rm -f conftest.$ac_objext
 
30149
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30150
  (eval $ac_compile) 2>conftest.er1
 
30151
  ac_status=$?
 
30152
  grep -v '^ *+' conftest.er1 >conftest.err
 
30153
  rm -f conftest.er1
 
30154
  cat conftest.err >&5
 
30155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30156
  (exit $ac_status); } &&
 
30157
         { ac_try='test -z "$ac_c_werror_flag"
 
30158
                         || test ! -s conftest.err'
 
30159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30160
  (eval $ac_try) 2>&5
 
30161
  ac_status=$?
 
30162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30163
  (exit $ac_status); }; } &&
 
30164
         { ac_try='test -s conftest.$ac_objext'
 
30165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30166
  (eval $ac_try) 2>&5
 
30167
  ac_status=$?
 
30168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30169
  (exit $ac_status); }; }; then
 
30170
  ac_cv_type_voidp=yes
 
30171
else
 
30172
  echo "$as_me: failed program was:" >&5
 
30173
sed 's/^/| /' conftest.$ac_ext >&5
 
30174
 
 
30175
ac_cv_type_voidp=no
 
30176
fi
 
30177
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30178
fi
 
30179
echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
 
30180
echo "${ECHO_T}$ac_cv_type_voidp" >&6
 
30181
 
 
30182
echo "$as_me:$LINENO: checking size of void*" >&5
 
30183
echo $ECHO_N "checking size of void*... $ECHO_C" >&6
 
30184
if test "${ac_cv_sizeof_voidp+set}" = set; then
 
30185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30186
else
 
30187
  if test "$ac_cv_type_voidp" = yes; then
 
30188
  # The cast to unsigned long works around a bug in the HP C Compiler
 
30189
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
30190
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
30191
  # This bug is HP SR number 8606223364.
 
30192
  if test "$cross_compiling" = yes; then
 
30193
  # Depending upon the size, compute the lo and hi bounds.
 
30194
cat >conftest.$ac_ext <<_ACEOF
 
30195
/* confdefs.h.  */
 
30196
_ACEOF
 
30197
cat confdefs.h >>conftest.$ac_ext
 
30198
cat >>conftest.$ac_ext <<_ACEOF
 
30199
/* end confdefs.h.  */
 
30200
$ac_includes_default
 
30201
int
 
30202
main ()
 
30203
{
 
30204
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
 
30205
test_array [0] = 0
 
30206
 
 
30207
  ;
 
30208
  return 0;
 
30209
}
 
30210
_ACEOF
 
30211
rm -f conftest.$ac_objext
 
30212
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30213
  (eval $ac_compile) 2>conftest.er1
 
30214
  ac_status=$?
 
30215
  grep -v '^ *+' conftest.er1 >conftest.err
 
30216
  rm -f conftest.er1
 
30217
  cat conftest.err >&5
 
30218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30219
  (exit $ac_status); } &&
 
30220
         { ac_try='test -z "$ac_c_werror_flag"
 
30221
                         || test ! -s conftest.err'
 
30222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30223
  (eval $ac_try) 2>&5
 
30224
  ac_status=$?
 
30225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30226
  (exit $ac_status); }; } &&
 
30227
         { ac_try='test -s conftest.$ac_objext'
 
30228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30229
  (eval $ac_try) 2>&5
 
30230
  ac_status=$?
 
30231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30232
  (exit $ac_status); }; }; then
 
30233
  ac_lo=0 ac_mid=0
 
30234
  while :; do
 
30235
    cat >conftest.$ac_ext <<_ACEOF
 
30236
/* confdefs.h.  */
 
30237
_ACEOF
 
30238
cat confdefs.h >>conftest.$ac_ext
 
30239
cat >>conftest.$ac_ext <<_ACEOF
 
30240
/* end confdefs.h.  */
 
30241
$ac_includes_default
 
30242
int
 
30243
main ()
 
30244
{
 
30245
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
 
30246
test_array [0] = 0
 
30247
 
 
30248
  ;
 
30249
  return 0;
 
30250
}
 
30251
_ACEOF
 
30252
rm -f conftest.$ac_objext
 
30253
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30254
  (eval $ac_compile) 2>conftest.er1
 
30255
  ac_status=$?
 
30256
  grep -v '^ *+' conftest.er1 >conftest.err
 
30257
  rm -f conftest.er1
 
30258
  cat conftest.err >&5
 
30259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30260
  (exit $ac_status); } &&
 
30261
         { ac_try='test -z "$ac_c_werror_flag"
 
30262
                         || test ! -s conftest.err'
 
30263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30264
  (eval $ac_try) 2>&5
 
30265
  ac_status=$?
 
30266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30267
  (exit $ac_status); }; } &&
 
30268
         { ac_try='test -s conftest.$ac_objext'
 
30269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30270
  (eval $ac_try) 2>&5
 
30271
  ac_status=$?
 
30272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30273
  (exit $ac_status); }; }; then
 
30274
  ac_hi=$ac_mid; break
 
30275
else
 
30276
  echo "$as_me: failed program was:" >&5
 
30277
sed 's/^/| /' conftest.$ac_ext >&5
 
30278
 
 
30279
ac_lo=`expr $ac_mid + 1`
 
30280
                    if test $ac_lo -le $ac_mid; then
 
30281
                      ac_lo= ac_hi=
 
30282
                      break
 
30283
                    fi
 
30284
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
30285
fi
 
30286
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30287
  done
 
30288
else
 
30289
  echo "$as_me: failed program was:" >&5
 
30290
sed 's/^/| /' conftest.$ac_ext >&5
 
30291
 
 
30292
cat >conftest.$ac_ext <<_ACEOF
 
30293
/* confdefs.h.  */
 
30294
_ACEOF
 
30295
cat confdefs.h >>conftest.$ac_ext
 
30296
cat >>conftest.$ac_ext <<_ACEOF
 
30297
/* end confdefs.h.  */
 
30298
$ac_includes_default
 
30299
int
 
30300
main ()
 
30301
{
 
30302
static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
 
30303
test_array [0] = 0
 
30304
 
 
30305
  ;
 
30306
  return 0;
 
30307
}
 
30308
_ACEOF
 
30309
rm -f conftest.$ac_objext
 
30310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30311
  (eval $ac_compile) 2>conftest.er1
 
30312
  ac_status=$?
 
30313
  grep -v '^ *+' conftest.er1 >conftest.err
 
30314
  rm -f conftest.er1
 
30315
  cat conftest.err >&5
 
30316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30317
  (exit $ac_status); } &&
 
30318
         { ac_try='test -z "$ac_c_werror_flag"
 
30319
                         || test ! -s conftest.err'
 
30320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30321
  (eval $ac_try) 2>&5
 
30322
  ac_status=$?
 
30323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30324
  (exit $ac_status); }; } &&
 
30325
         { ac_try='test -s conftest.$ac_objext'
 
30326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30327
  (eval $ac_try) 2>&5
 
30328
  ac_status=$?
 
30329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30330
  (exit $ac_status); }; }; then
 
30331
  ac_hi=-1 ac_mid=-1
 
30332
  while :; do
 
30333
    cat >conftest.$ac_ext <<_ACEOF
 
30334
/* confdefs.h.  */
 
30335
_ACEOF
 
30336
cat confdefs.h >>conftest.$ac_ext
 
30337
cat >>conftest.$ac_ext <<_ACEOF
 
30338
/* end confdefs.h.  */
 
30339
$ac_includes_default
 
30340
int
 
30341
main ()
 
30342
{
 
30343
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
 
30344
test_array [0] = 0
 
30345
 
 
30346
  ;
 
30347
  return 0;
 
30348
}
 
30349
_ACEOF
 
30350
rm -f conftest.$ac_objext
 
30351
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30352
  (eval $ac_compile) 2>conftest.er1
 
30353
  ac_status=$?
 
30354
  grep -v '^ *+' conftest.er1 >conftest.err
 
30355
  rm -f conftest.er1
 
30356
  cat conftest.err >&5
 
30357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30358
  (exit $ac_status); } &&
 
30359
         { ac_try='test -z "$ac_c_werror_flag"
 
30360
                         || test ! -s conftest.err'
 
30361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30362
  (eval $ac_try) 2>&5
 
30363
  ac_status=$?
 
30364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30365
  (exit $ac_status); }; } &&
 
30366
         { ac_try='test -s conftest.$ac_objext'
 
30367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30368
  (eval $ac_try) 2>&5
 
30369
  ac_status=$?
 
30370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30371
  (exit $ac_status); }; }; then
 
30372
  ac_lo=$ac_mid; break
 
30373
else
 
30374
  echo "$as_me: failed program was:" >&5
 
30375
sed 's/^/| /' conftest.$ac_ext >&5
 
30376
 
 
30377
ac_hi=`expr '(' $ac_mid ')' - 1`
 
30378
                       if test $ac_mid -le $ac_hi; then
 
30379
                         ac_lo= ac_hi=
 
30380
                         break
 
30381
                       fi
 
30382
                       ac_mid=`expr 2 '*' $ac_mid`
 
30383
fi
 
30384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30385
  done
 
30386
else
 
30387
  echo "$as_me: failed program was:" >&5
 
30388
sed 's/^/| /' conftest.$ac_ext >&5
 
30389
 
 
30390
ac_lo= ac_hi=
 
30391
fi
 
30392
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30393
fi
 
30394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30395
# Binary search between lo and hi bounds.
 
30396
while test "x$ac_lo" != "x$ac_hi"; do
 
30397
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
30398
  cat >conftest.$ac_ext <<_ACEOF
 
30399
/* confdefs.h.  */
 
30400
_ACEOF
 
30401
cat confdefs.h >>conftest.$ac_ext
 
30402
cat >>conftest.$ac_ext <<_ACEOF
 
30403
/* end confdefs.h.  */
 
30404
$ac_includes_default
 
30405
int
 
30406
main ()
 
30407
{
 
30408
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
 
30409
test_array [0] = 0
 
30410
 
 
30411
  ;
 
30412
  return 0;
 
30413
}
 
30414
_ACEOF
 
30415
rm -f conftest.$ac_objext
 
30416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30417
  (eval $ac_compile) 2>conftest.er1
 
30418
  ac_status=$?
 
30419
  grep -v '^ *+' conftest.er1 >conftest.err
 
30420
  rm -f conftest.er1
 
30421
  cat conftest.err >&5
 
30422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30423
  (exit $ac_status); } &&
 
30424
         { ac_try='test -z "$ac_c_werror_flag"
 
30425
                         || test ! -s conftest.err'
 
30426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30427
  (eval $ac_try) 2>&5
 
30428
  ac_status=$?
 
30429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30430
  (exit $ac_status); }; } &&
 
30431
         { ac_try='test -s conftest.$ac_objext'
 
30432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30433
  (eval $ac_try) 2>&5
 
30434
  ac_status=$?
 
30435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30436
  (exit $ac_status); }; }; then
 
30437
  ac_hi=$ac_mid
 
30438
else
 
30439
  echo "$as_me: failed program was:" >&5
 
30440
sed 's/^/| /' conftest.$ac_ext >&5
 
30441
 
 
30442
ac_lo=`expr '(' $ac_mid ')' + 1`
 
30443
fi
 
30444
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30445
done
 
30446
case $ac_lo in
 
30447
?*) ac_cv_sizeof_voidp=$ac_lo;;
 
30448
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
 
30449
See \`config.log' for more details." >&5
 
30450
echo "$as_me: error: cannot compute sizeof (void*), 77
 
30451
See \`config.log' for more details." >&2;}
 
30452
   { (exit 1); exit 1; }; } ;;
 
30453
esac
 
30454
else
 
30455
  if test "$cross_compiling" = yes; then
 
30456
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
30457
See \`config.log' for more details." >&5
 
30458
echo "$as_me: error: cannot run test program while cross compiling
 
30459
See \`config.log' for more details." >&2;}
 
30460
   { (exit 1); exit 1; }; }
 
30461
else
 
30462
  cat >conftest.$ac_ext <<_ACEOF
 
30463
/* confdefs.h.  */
 
30464
_ACEOF
 
30465
cat confdefs.h >>conftest.$ac_ext
 
30466
cat >>conftest.$ac_ext <<_ACEOF
 
30467
/* end confdefs.h.  */
 
30468
$ac_includes_default
 
30469
long longval () { return (long) (sizeof (void*)); }
 
30470
unsigned long ulongval () { return (long) (sizeof (void*)); }
 
30471
#include <stdio.h>
 
30472
#include <stdlib.h>
 
30473
int
 
30474
main ()
 
30475
{
 
30476
 
 
30477
  FILE *f = fopen ("conftest.val", "w");
 
30478
  if (! f)
 
30479
    exit (1);
 
30480
  if (((long) (sizeof (void*))) < 0)
 
30481
    {
 
30482
      long i = longval ();
 
30483
      if (i != ((long) (sizeof (void*))))
 
30484
        exit (1);
 
30485
      fprintf (f, "%ld\n", i);
 
30486
    }
 
30487
  else
 
30488
    {
 
30489
      unsigned long i = ulongval ();
 
30490
      if (i != ((long) (sizeof (void*))))
 
30491
        exit (1);
 
30492
      fprintf (f, "%lu\n", i);
 
30493
    }
 
30494
  exit (ferror (f) || fclose (f) != 0);
 
30495
 
 
30496
  ;
 
30497
  return 0;
 
30498
}
 
30499
_ACEOF
 
30500
rm -f conftest$ac_exeext
 
30501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30502
  (eval $ac_link) 2>&5
 
30503
  ac_status=$?
 
30504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30505
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
30506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30507
  (eval $ac_try) 2>&5
 
30508
  ac_status=$?
 
30509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30510
  (exit $ac_status); }; }; then
 
30511
  ac_cv_sizeof_voidp=`cat conftest.val`
 
30512
else
 
30513
  echo "$as_me: program exited with status $ac_status" >&5
 
30514
echo "$as_me: failed program was:" >&5
 
30515
sed 's/^/| /' conftest.$ac_ext >&5
 
30516
 
 
30517
( exit $ac_status )
 
30518
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
 
30519
See \`config.log' for more details." >&5
 
30520
echo "$as_me: error: cannot compute sizeof (void*), 77
 
30521
See \`config.log' for more details." >&2;}
 
30522
   { (exit 1); exit 1; }; }
 
30523
fi
 
30524
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
30525
fi
 
30526
fi
 
30527
rm -f conftest.val
 
30528
else
 
30529
  ac_cv_sizeof_voidp=0
 
30530
fi
 
30531
fi
 
30532
echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
 
30533
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
 
30534
cat >>confdefs.h <<_ACEOF
 
30535
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
 
30536
_ACEOF
 
30537
 
 
30538
 
 
30539
            if test "x$ac_cv_sizeof_voidp" = "x8"; then
 
30540
                # sendfile not working for 64-bit build
 
30541
                sendfile="0"
 
30542
            fi
 
30543
            ;;
 
30544
    esac
 
30545
    if test "$orig_sendfile" != "$sendfile"; then
 
30546
      echo "sendfile support disabled to avoid system problem"
 
30547
    fi
 
30548
fi;
 
30549
 
 
30550
 
 
30551
 
 
30552
for ac_func in sigaction
 
30553
do
 
30554
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
30555
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
30556
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
30557
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
30558
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30559
else
 
30560
  cat >conftest.$ac_ext <<_ACEOF
 
30561
/* confdefs.h.  */
 
30562
_ACEOF
 
30563
cat confdefs.h >>conftest.$ac_ext
 
30564
cat >>conftest.$ac_ext <<_ACEOF
 
30565
/* end confdefs.h.  */
 
30566
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
30567
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
30568
#define $ac_func innocuous_$ac_func
 
30569
 
 
30570
/* System header to define __stub macros and hopefully few prototypes,
 
30571
    which can conflict with char $ac_func (); below.
 
30572
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
30573
    <limits.h> exists even on freestanding compilers.  */
 
30574
 
 
30575
#ifdef __STDC__
 
30576
# include <limits.h>
 
30577
#else
 
30578
# include <assert.h>
 
30579
#endif
 
30580
 
 
30581
#undef $ac_func
 
30582
 
 
30583
/* Override any gcc2 internal prototype to avoid an error.  */
 
30584
#ifdef __cplusplus
 
30585
extern "C"
 
30586
{
 
30587
#endif
 
30588
/* We use char because int might match the return type of a gcc2
 
30589
   builtin and then its argument prototype would still apply.  */
 
30590
char $ac_func ();
 
30591
/* The GNU C library defines this for functions which it implements
 
30592
    to always fail with ENOSYS.  Some functions are actually named
 
30593
    something starting with __ and the normal name is an alias.  */
 
30594
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
30595
choke me
 
30596
#else
 
30597
char (*f) () = $ac_func;
 
30598
#endif
 
30599
#ifdef __cplusplus
 
30600
}
 
30601
#endif
 
30602
 
 
30603
int
 
30604
main ()
 
30605
{
 
30606
return f != $ac_func;
 
30607
  ;
 
30608
  return 0;
 
30609
}
 
30610
_ACEOF
 
30611
rm -f conftest.$ac_objext conftest$ac_exeext
 
30612
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30613
  (eval $ac_link) 2>conftest.er1
 
30614
  ac_status=$?
 
30615
  grep -v '^ *+' conftest.er1 >conftest.err
 
30616
  rm -f conftest.er1
 
30617
  cat conftest.err >&5
 
30618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30619
  (exit $ac_status); } &&
 
30620
         { ac_try='test -z "$ac_c_werror_flag"
 
30621
                         || test ! -s conftest.err'
 
30622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30623
  (eval $ac_try) 2>&5
 
30624
  ac_status=$?
 
30625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30626
  (exit $ac_status); }; } &&
 
30627
         { ac_try='test -s conftest$ac_exeext'
 
30628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30629
  (eval $ac_try) 2>&5
 
30630
  ac_status=$?
 
30631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30632
  (exit $ac_status); }; }; then
 
30633
  eval "$as_ac_var=yes"
 
30634
else
 
30635
  echo "$as_me: failed program was:" >&5
 
30636
sed 's/^/| /' conftest.$ac_ext >&5
 
30637
 
 
30638
eval "$as_ac_var=no"
 
30639
fi
 
30640
rm -f conftest.err conftest.$ac_objext \
 
30641
      conftest$ac_exeext conftest.$ac_ext
 
30642
fi
 
30643
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
30644
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
30645
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
30646
  cat >>confdefs.h <<_ACEOF
 
30647
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30648
_ACEOF
 
30649
  have_sigaction="1"
 
30650
else
 
30651
   have_sigaction="0"
 
30652
fi
 
30653
done
 
30654
 
 
30655
echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
 
30656
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
 
30657
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
 
30658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30659
else
 
30660
  cat >conftest.$ac_ext <<_ACEOF
 
30661
/* confdefs.h.  */
 
30662
_ACEOF
 
30663
cat confdefs.h >>conftest.$ac_ext
 
30664
cat >>conftest.$ac_ext <<_ACEOF
 
30665
/* end confdefs.h.  */
 
30666
#include <signal.h>
 
30667
/* NetBSD declares sys_siglist in unistd.h.  */
 
30668
#if HAVE_UNISTD_H
 
30669
# include <unistd.h>
 
30670
#endif
 
30671
 
 
30672
 
 
30673
int
 
30674
main ()
 
30675
{
 
30676
#ifndef sys_siglist
 
30677
  char *p = (char *) sys_siglist;
 
30678
#endif
 
30679
 
 
30680
  ;
 
30681
  return 0;
 
30682
}
 
30683
_ACEOF
 
30684
rm -f conftest.$ac_objext
 
30685
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30686
  (eval $ac_compile) 2>conftest.er1
 
30687
  ac_status=$?
 
30688
  grep -v '^ *+' conftest.er1 >conftest.err
 
30689
  rm -f conftest.er1
 
30690
  cat conftest.err >&5
 
30691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30692
  (exit $ac_status); } &&
 
30693
         { ac_try='test -z "$ac_c_werror_flag"
 
30694
                         || test ! -s conftest.err'
 
30695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30696
  (eval $ac_try) 2>&5
 
30697
  ac_status=$?
 
30698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30699
  (exit $ac_status); }; } &&
 
30700
         { ac_try='test -s conftest.$ac_objext'
 
30701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30702
  (eval $ac_try) 2>&5
 
30703
  ac_status=$?
 
30704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30705
  (exit $ac_status); }; }; then
 
30706
  ac_cv_have_decl_sys_siglist=yes
 
30707
else
 
30708
  echo "$as_me: failed program was:" >&5
 
30709
sed 's/^/| /' conftest.$ac_ext >&5
 
30710
 
 
30711
ac_cv_have_decl_sys_siglist=no
 
30712
fi
 
30713
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30714
fi
 
30715
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
 
30716
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
 
30717
if test $ac_cv_have_decl_sys_siglist = yes; then
 
30718
 
 
30719
cat >>confdefs.h <<_ACEOF
 
30720
#define HAVE_DECL_SYS_SIGLIST 1
 
30721
_ACEOF
 
30722
 
 
30723
 
 
30724
else
 
30725
  cat >>confdefs.h <<_ACEOF
 
30726
#define HAVE_DECL_SYS_SIGLIST 0
 
30727
_ACEOF
 
30728
 
 
30729
 
 
30730
fi
 
30731
 
 
30732
 
 
30733
 
 
30734
 
 
30735
 
 
30736
for ac_func in fork
 
30737
do
 
30738
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
30739
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
30740
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
30741
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
30742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30743
else
 
30744
  cat >conftest.$ac_ext <<_ACEOF
 
30745
/* confdefs.h.  */
 
30746
_ACEOF
 
30747
cat confdefs.h >>conftest.$ac_ext
 
30748
cat >>conftest.$ac_ext <<_ACEOF
 
30749
/* end confdefs.h.  */
 
30750
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
30751
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
30752
#define $ac_func innocuous_$ac_func
 
30753
 
 
30754
/* System header to define __stub macros and hopefully few prototypes,
 
30755
    which can conflict with char $ac_func (); below.
 
30756
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
30757
    <limits.h> exists even on freestanding compilers.  */
 
30758
 
 
30759
#ifdef __STDC__
 
30760
# include <limits.h>
 
30761
#else
 
30762
# include <assert.h>
 
30763
#endif
 
30764
 
 
30765
#undef $ac_func
 
30766
 
 
30767
/* Override any gcc2 internal prototype to avoid an error.  */
 
30768
#ifdef __cplusplus
 
30769
extern "C"
 
30770
{
 
30771
#endif
 
30772
/* We use char because int might match the return type of a gcc2
 
30773
   builtin and then its argument prototype would still apply.  */
 
30774
char $ac_func ();
 
30775
/* The GNU C library defines this for functions which it implements
 
30776
    to always fail with ENOSYS.  Some functions are actually named
 
30777
    something starting with __ and the normal name is an alias.  */
 
30778
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
30779
choke me
 
30780
#else
 
30781
char (*f) () = $ac_func;
 
30782
#endif
 
30783
#ifdef __cplusplus
 
30784
}
 
30785
#endif
 
30786
 
 
30787
int
 
30788
main ()
 
30789
{
 
30790
return f != $ac_func;
 
30791
  ;
 
30792
  return 0;
 
30793
}
 
30794
_ACEOF
 
30795
rm -f conftest.$ac_objext conftest$ac_exeext
 
30796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30797
  (eval $ac_link) 2>conftest.er1
 
30798
  ac_status=$?
 
30799
  grep -v '^ *+' conftest.er1 >conftest.err
 
30800
  rm -f conftest.er1
 
30801
  cat conftest.err >&5
 
30802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30803
  (exit $ac_status); } &&
 
30804
         { ac_try='test -z "$ac_c_werror_flag"
 
30805
                         || test ! -s conftest.err'
 
30806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30807
  (eval $ac_try) 2>&5
 
30808
  ac_status=$?
 
30809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30810
  (exit $ac_status); }; } &&
 
30811
         { ac_try='test -s conftest$ac_exeext'
 
30812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30813
  (eval $ac_try) 2>&5
 
30814
  ac_status=$?
 
30815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30816
  (exit $ac_status); }; }; then
 
30817
  eval "$as_ac_var=yes"
 
30818
else
 
30819
  echo "$as_me: failed program was:" >&5
 
30820
sed 's/^/| /' conftest.$ac_ext >&5
 
30821
 
 
30822
eval "$as_ac_var=no"
 
30823
fi
 
30824
rm -f conftest.err conftest.$ac_objext \
 
30825
      conftest$ac_exeext conftest.$ac_ext
 
30826
fi
 
30827
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
30828
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
30829
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
30830
  cat >>confdefs.h <<_ACEOF
 
30831
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30832
_ACEOF
 
30833
  fork="1"
 
30834
else
 
30835
   fork="0"
 
30836
fi
 
30837
done
 
30838
 
 
30839
 
 
30840
echo "$as_me:$LINENO: checking for inet_addr" >&5
 
30841
echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
 
30842
if test "${ac_cv_func_inet_addr+set}" = set; then
 
30843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30844
else
 
30845
 
 
30846
cat >conftest.$ac_ext <<_ACEOF
 
30847
/* confdefs.h.  */
 
30848
_ACEOF
 
30849
cat confdefs.h >>conftest.$ac_ext
 
30850
cat >>conftest.$ac_ext <<_ACEOF
 
30851
/* end confdefs.h.  */
 
30852
 
 
30853
#ifdef HAVE_SYS_TYPES_H
 
30854
#include <sys/types.h>
 
30855
#endif
 
30856
#ifdef HAVE_ARPA_INET_H
 
30857
#include <arpa/inet.h>
 
30858
#endif
 
30859
 
 
30860
int
 
30861
main ()
 
30862
{
 
30863
 
 
30864
inet_addr("127.0.0.1");
 
30865
 
 
30866
  ;
 
30867
  return 0;
 
30868
}
 
30869
_ACEOF
 
30870
rm -f conftest.$ac_objext
 
30871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30872
  (eval $ac_compile) 2>conftest.er1
 
30873
  ac_status=$?
 
30874
  grep -v '^ *+' conftest.er1 >conftest.err
 
30875
  rm -f conftest.er1
 
30876
  cat conftest.err >&5
 
30877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30878
  (exit $ac_status); } &&
 
30879
         { ac_try='test -z "$ac_c_werror_flag"
 
30880
                         || test ! -s conftest.err'
 
30881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30882
  (eval $ac_try) 2>&5
 
30883
  ac_status=$?
 
30884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30885
  (exit $ac_status); }; } &&
 
30886
         { ac_try='test -s conftest.$ac_objext'
 
30887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30888
  (eval $ac_try) 2>&5
 
30889
  ac_status=$?
 
30890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30891
  (exit $ac_status); }; }; then
 
30892
 
 
30893
    ac_cv_func_inet_addr=yes
 
30894
 
 
30895
else
 
30896
  echo "$as_me: failed program was:" >&5
 
30897
sed 's/^/| /' conftest.$ac_ext >&5
 
30898
 
 
30899
 
 
30900
    ac_cv_func_inet_addr=no
 
30901
 
 
30902
fi
 
30903
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30904
 
 
30905
fi
 
30906
echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
 
30907
echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
 
30908
 
 
30909
if test "$ac_cv_func_inet_addr" = "yes"; then
 
30910
  have_inet_addr=1
 
30911
else
 
30912
  have_inet_addr=0
 
30913
fi
 
30914
 
 
30915
 
 
30916
echo "$as_me:$LINENO: checking for inet_network" >&5
 
30917
echo $ECHO_N "checking for inet_network... $ECHO_C" >&6
 
30918
if test "${ac_cv_func_inet_network+set}" = set; then
 
30919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30920
else
 
30921
 
 
30922
cat >conftest.$ac_ext <<_ACEOF
 
30923
/* confdefs.h.  */
 
30924
_ACEOF
 
30925
cat confdefs.h >>conftest.$ac_ext
 
30926
cat >>conftest.$ac_ext <<_ACEOF
 
30927
/* end confdefs.h.  */
 
30928
 
 
30929
#ifdef HAVE_SYS_TYPES_H
 
30930
#include <sys/types.h>
 
30931
#endif
 
30932
#ifdef HAVE_ARPA_INET_H
 
30933
#include <arpa/inet.h>
 
30934
#endif
 
30935
 
 
30936
int
 
30937
main ()
 
30938
{
 
30939
 
 
30940
inet_network("127.0.0.1");
 
30941
 
 
30942
  ;
 
30943
  return 0;
 
30944
}
 
30945
_ACEOF
 
30946
rm -f conftest.$ac_objext
 
30947
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30948
  (eval $ac_compile) 2>conftest.er1
 
30949
  ac_status=$?
 
30950
  grep -v '^ *+' conftest.er1 >conftest.err
 
30951
  rm -f conftest.er1
 
30952
  cat conftest.err >&5
 
30953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30954
  (exit $ac_status); } &&
 
30955
         { ac_try='test -z "$ac_c_werror_flag"
 
30956
                         || test ! -s conftest.err'
 
30957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30958
  (eval $ac_try) 2>&5
 
30959
  ac_status=$?
 
30960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30961
  (exit $ac_status); }; } &&
 
30962
         { ac_try='test -s conftest.$ac_objext'
 
30963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30964
  (eval $ac_try) 2>&5
 
30965
  ac_status=$?
 
30966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30967
  (exit $ac_status); }; }; then
 
30968
 
 
30969
    ac_cv_func_inet_network=yes
 
30970
 
 
30971
else
 
30972
  echo "$as_me: failed program was:" >&5
 
30973
sed 's/^/| /' conftest.$ac_ext >&5
 
30974
 
 
30975
 
 
30976
    ac_cv_func_inet_network=no
 
30977
 
 
30978
fi
 
30979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30980
 
 
30981
fi
 
30982
echo "$as_me:$LINENO: result: $ac_cv_func_inet_network" >&5
 
30983
echo "${ECHO_T}$ac_cv_func_inet_network" >&6
 
30984
 
 
30985
if test "$ac_cv_func_inet_network" = "yes"; then
 
30986
  have_inet_network=1
 
30987
else
 
30988
  have_inet_network=0
 
30989
fi
 
30990
 
 
30991
 
 
30992
echo "$as_me:$LINENO: checking for _getch" >&5
 
30993
echo $ECHO_N "checking for _getch... $ECHO_C" >&6
 
30994
if test "${ac_cv_func__getch+set}" = set; then
 
30995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30996
else
 
30997
  cat >conftest.$ac_ext <<_ACEOF
 
30998
/* confdefs.h.  */
 
30999
_ACEOF
 
31000
cat confdefs.h >>conftest.$ac_ext
 
31001
cat >>conftest.$ac_ext <<_ACEOF
 
31002
/* end confdefs.h.  */
 
31003
/* Define _getch to an innocuous variant, in case <limits.h> declares _getch.
 
31004
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
31005
#define _getch innocuous__getch
 
31006
 
 
31007
/* System header to define __stub macros and hopefully few prototypes,
 
31008
    which can conflict with char _getch (); below.
 
31009
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
31010
    <limits.h> exists even on freestanding compilers.  */
 
31011
 
 
31012
#ifdef __STDC__
 
31013
# include <limits.h>
 
31014
#else
 
31015
# include <assert.h>
 
31016
#endif
 
31017
 
 
31018
#undef _getch
 
31019
 
 
31020
/* Override any gcc2 internal prototype to avoid an error.  */
 
31021
#ifdef __cplusplus
 
31022
extern "C"
 
31023
{
 
31024
#endif
 
31025
/* We use char because int might match the return type of a gcc2
 
31026
   builtin and then its argument prototype would still apply.  */
 
31027
char _getch ();
 
31028
/* The GNU C library defines this for functions which it implements
 
31029
    to always fail with ENOSYS.  Some functions are actually named
 
31030
    something starting with __ and the normal name is an alias.  */
 
31031
#if defined (__stub__getch) || defined (__stub____getch)
 
31032
choke me
 
31033
#else
 
31034
char (*f) () = _getch;
 
31035
#endif
 
31036
#ifdef __cplusplus
 
31037
}
 
31038
#endif
 
31039
 
 
31040
int
 
31041
main ()
 
31042
{
 
31043
return f != _getch;
 
31044
  ;
 
31045
  return 0;
 
31046
}
 
31047
_ACEOF
 
31048
rm -f conftest.$ac_objext conftest$ac_exeext
 
31049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31050
  (eval $ac_link) 2>conftest.er1
 
31051
  ac_status=$?
 
31052
  grep -v '^ *+' conftest.er1 >conftest.err
 
31053
  rm -f conftest.er1
 
31054
  cat conftest.err >&5
 
31055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31056
  (exit $ac_status); } &&
 
31057
         { ac_try='test -z "$ac_c_werror_flag"
 
31058
                         || test ! -s conftest.err'
 
31059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31060
  (eval $ac_try) 2>&5
 
31061
  ac_status=$?
 
31062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31063
  (exit $ac_status); }; } &&
 
31064
         { ac_try='test -s conftest$ac_exeext'
 
31065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31066
  (eval $ac_try) 2>&5
 
31067
  ac_status=$?
 
31068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31069
  (exit $ac_status); }; }; then
 
31070
  ac_cv_func__getch=yes
 
31071
else
 
31072
  echo "$as_me: failed program was:" >&5
 
31073
sed 's/^/| /' conftest.$ac_ext >&5
 
31074
 
 
31075
ac_cv_func__getch=no
 
31076
fi
 
31077
rm -f conftest.err conftest.$ac_objext \
 
31078
      conftest$ac_exeext conftest.$ac_ext
 
31079
fi
 
31080
echo "$as_me:$LINENO: result: $ac_cv_func__getch" >&5
 
31081
echo "${ECHO_T}$ac_cv_func__getch" >&6
 
31082
 
 
31083
 
 
31084
for ac_func in strerror_r
 
31085
do
 
31086
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31087
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31088
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
31089
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
31090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31091
else
 
31092
  cat >conftest.$ac_ext <<_ACEOF
 
31093
/* confdefs.h.  */
 
31094
_ACEOF
 
31095
cat confdefs.h >>conftest.$ac_ext
 
31096
cat >>conftest.$ac_ext <<_ACEOF
 
31097
/* end confdefs.h.  */
 
31098
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
31099
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
31100
#define $ac_func innocuous_$ac_func
 
31101
 
 
31102
/* System header to define __stub macros and hopefully few prototypes,
 
31103
    which can conflict with char $ac_func (); below.
 
31104
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
31105
    <limits.h> exists even on freestanding compilers.  */
 
31106
 
 
31107
#ifdef __STDC__
 
31108
# include <limits.h>
 
31109
#else
 
31110
# include <assert.h>
 
31111
#endif
 
31112
 
 
31113
#undef $ac_func
 
31114
 
 
31115
/* Override any gcc2 internal prototype to avoid an error.  */
 
31116
#ifdef __cplusplus
 
31117
extern "C"
 
31118
{
 
31119
#endif
 
31120
/* We use char because int might match the return type of a gcc2
 
31121
   builtin and then its argument prototype would still apply.  */
 
31122
char $ac_func ();
 
31123
/* The GNU C library defines this for functions which it implements
 
31124
    to always fail with ENOSYS.  Some functions are actually named
 
31125
    something starting with __ and the normal name is an alias.  */
 
31126
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
31127
choke me
 
31128
#else
 
31129
char (*f) () = $ac_func;
 
31130
#endif
 
31131
#ifdef __cplusplus
 
31132
}
 
31133
#endif
 
31134
 
 
31135
int
 
31136
main ()
 
31137
{
 
31138
return f != $ac_func;
 
31139
  ;
 
31140
  return 0;
 
31141
}
 
31142
_ACEOF
 
31143
rm -f conftest.$ac_objext conftest$ac_exeext
 
31144
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31145
  (eval $ac_link) 2>conftest.er1
 
31146
  ac_status=$?
 
31147
  grep -v '^ *+' conftest.er1 >conftest.err
 
31148
  rm -f conftest.er1
 
31149
  cat conftest.err >&5
 
31150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31151
  (exit $ac_status); } &&
 
31152
         { ac_try='test -z "$ac_c_werror_flag"
 
31153
                         || test ! -s conftest.err'
 
31154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31155
  (eval $ac_try) 2>&5
 
31156
  ac_status=$?
 
31157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31158
  (exit $ac_status); }; } &&
 
31159
         { ac_try='test -s conftest$ac_exeext'
 
31160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31161
  (eval $ac_try) 2>&5
 
31162
  ac_status=$?
 
31163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31164
  (exit $ac_status); }; }; then
 
31165
  eval "$as_ac_var=yes"
 
31166
else
 
31167
  echo "$as_me: failed program was:" >&5
 
31168
sed 's/^/| /' conftest.$ac_ext >&5
 
31169
 
 
31170
eval "$as_ac_var=no"
 
31171
fi
 
31172
rm -f conftest.err conftest.$ac_objext \
 
31173
      conftest$ac_exeext conftest.$ac_ext
 
31174
fi
 
31175
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
31176
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
31177
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
31178
  cat >>confdefs.h <<_ACEOF
 
31179
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
31180
_ACEOF
 
31181
  strerror_r="1"
 
31182
else
 
31183
   strerror_r="0"
 
31184
fi
 
31185
done
 
31186
 
 
31187
if test "$strerror_r" = "1"; then
 
31188
 
 
31189
echo "$as_me:$LINENO: checking for type of return code from strerror_r" >&5
 
31190
echo $ECHO_N "checking for type of return code from strerror_r... $ECHO_C" >&6
 
31191
if test "$cross_compiling" = yes; then
 
31192
 
 
31193
    ac_cv_strerror_r_rc_int=no
 
31194
else
 
31195
  cat >conftest.$ac_ext <<_ACEOF
 
31196
/* confdefs.h.  */
 
31197
_ACEOF
 
31198
cat confdefs.h >>conftest.$ac_ext
 
31199
cat >>conftest.$ac_ext <<_ACEOF
 
31200
/* end confdefs.h.  */
 
31201
 
 
31202
#include <errno.h>
 
31203
#include <string.h>
 
31204
#include <stdio.h>
 
31205
main()
 
31206
{
 
31207
  char buf[1024];
 
31208
  if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
 
31209
    exit(0);
 
31210
  }
 
31211
  else {
 
31212
    exit(1);
 
31213
  }
 
31214
}
 
31215
_ACEOF
 
31216
rm -f conftest$ac_exeext
 
31217
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31218
  (eval $ac_link) 2>&5
 
31219
  ac_status=$?
 
31220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31221
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31223
  (eval $ac_try) 2>&5
 
31224
  ac_status=$?
 
31225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31226
  (exit $ac_status); }; }; then
 
31227
 
 
31228
    ac_cv_strerror_r_rc_int=yes
 
31229
else
 
31230
  echo "$as_me: program exited with status $ac_status" >&5
 
31231
echo "$as_me: failed program was:" >&5
 
31232
sed 's/^/| /' conftest.$ac_ext >&5
 
31233
 
 
31234
( exit $ac_status )
 
31235
 
 
31236
    ac_cv_strerror_r_rc_int=no
 
31237
fi
 
31238
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31239
fi
 
31240
if test "x$ac_cv_strerror_r_rc_int" = xyes; then
 
31241
 
 
31242
cat >>confdefs.h <<\_ACEOF
 
31243
#define STRERROR_R_RC_INT 1
 
31244
_ACEOF
 
31245
 
 
31246
  msg="int"
 
31247
else
 
31248
  msg="pointer"
 
31249
fi
 
31250
echo "$as_me:$LINENO: result: $msg" >&5
 
31251
echo "${ECHO_T}$msg" >&6
 
31252
 
 
31253
fi
 
31254
 
 
31255
for ac_func in mmap
 
31256
do
 
31257
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31258
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31259
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
31260
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
31261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31262
else
 
31263
  cat >conftest.$ac_ext <<_ACEOF
 
31264
/* confdefs.h.  */
 
31265
_ACEOF
 
31266
cat confdefs.h >>conftest.$ac_ext
 
31267
cat >>conftest.$ac_ext <<_ACEOF
 
31268
/* end confdefs.h.  */
 
31269
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
31270
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
31271
#define $ac_func innocuous_$ac_func
 
31272
 
 
31273
/* System header to define __stub macros and hopefully few prototypes,
 
31274
    which can conflict with char $ac_func (); below.
 
31275
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
31276
    <limits.h> exists even on freestanding compilers.  */
 
31277
 
 
31278
#ifdef __STDC__
 
31279
# include <limits.h>
 
31280
#else
 
31281
# include <assert.h>
 
31282
#endif
 
31283
 
 
31284
#undef $ac_func
 
31285
 
 
31286
/* Override any gcc2 internal prototype to avoid an error.  */
 
31287
#ifdef __cplusplus
 
31288
extern "C"
 
31289
{
 
31290
#endif
 
31291
/* We use char because int might match the return type of a gcc2
 
31292
   builtin and then its argument prototype would still apply.  */
 
31293
char $ac_func ();
 
31294
/* The GNU C library defines this for functions which it implements
 
31295
    to always fail with ENOSYS.  Some functions are actually named
 
31296
    something starting with __ and the normal name is an alias.  */
 
31297
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
31298
choke me
 
31299
#else
 
31300
char (*f) () = $ac_func;
 
31301
#endif
 
31302
#ifdef __cplusplus
 
31303
}
 
31304
#endif
 
31305
 
 
31306
int
 
31307
main ()
 
31308
{
 
31309
return f != $ac_func;
 
31310
  ;
 
31311
  return 0;
 
31312
}
 
31313
_ACEOF
 
31314
rm -f conftest.$ac_objext conftest$ac_exeext
 
31315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31316
  (eval $ac_link) 2>conftest.er1
 
31317
  ac_status=$?
 
31318
  grep -v '^ *+' conftest.er1 >conftest.err
 
31319
  rm -f conftest.er1
 
31320
  cat conftest.err >&5
 
31321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31322
  (exit $ac_status); } &&
 
31323
         { ac_try='test -z "$ac_c_werror_flag"
 
31324
                         || test ! -s conftest.err'
 
31325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31326
  (eval $ac_try) 2>&5
 
31327
  ac_status=$?
 
31328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31329
  (exit $ac_status); }; } &&
 
31330
         { ac_try='test -s conftest$ac_exeext'
 
31331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31332
  (eval $ac_try) 2>&5
 
31333
  ac_status=$?
 
31334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31335
  (exit $ac_status); }; }; then
 
31336
  eval "$as_ac_var=yes"
 
31337
else
 
31338
  echo "$as_me: failed program was:" >&5
 
31339
sed 's/^/| /' conftest.$ac_ext >&5
 
31340
 
 
31341
eval "$as_ac_var=no"
 
31342
fi
 
31343
rm -f conftest.err conftest.$ac_objext \
 
31344
      conftest$ac_exeext conftest.$ac_ext
 
31345
fi
 
31346
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
31347
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
31348
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
31349
  cat >>confdefs.h <<_ACEOF
 
31350
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
31351
_ACEOF
 
31352
  mmap="1"
 
31353
else
 
31354
   mmap="0"
 
31355
fi
 
31356
done
 
31357
 
 
31358
if test "$native_mmap_emul" = "1"; then
 
31359
    mmap="1"
 
31360
fi
 
31361
 
 
31362
for ac_func in memmove
 
31363
do
 
31364
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31365
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31366
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
31367
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
31368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31369
else
 
31370
  cat >conftest.$ac_ext <<_ACEOF
 
31371
/* confdefs.h.  */
 
31372
_ACEOF
 
31373
cat confdefs.h >>conftest.$ac_ext
 
31374
cat >>conftest.$ac_ext <<_ACEOF
 
31375
/* end confdefs.h.  */
 
31376
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
31377
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
31378
#define $ac_func innocuous_$ac_func
 
31379
 
 
31380
/* System header to define __stub macros and hopefully few prototypes,
 
31381
    which can conflict with char $ac_func (); below.
 
31382
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
31383
    <limits.h> exists even on freestanding compilers.  */
 
31384
 
 
31385
#ifdef __STDC__
 
31386
# include <limits.h>
 
31387
#else
 
31388
# include <assert.h>
 
31389
#endif
 
31390
 
 
31391
#undef $ac_func
 
31392
 
 
31393
/* Override any gcc2 internal prototype to avoid an error.  */
 
31394
#ifdef __cplusplus
 
31395
extern "C"
 
31396
{
 
31397
#endif
 
31398
/* We use char because int might match the return type of a gcc2
 
31399
   builtin and then its argument prototype would still apply.  */
 
31400
char $ac_func ();
 
31401
/* The GNU C library defines this for functions which it implements
 
31402
    to always fail with ENOSYS.  Some functions are actually named
 
31403
    something starting with __ and the normal name is an alias.  */
 
31404
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
31405
choke me
 
31406
#else
 
31407
char (*f) () = $ac_func;
 
31408
#endif
 
31409
#ifdef __cplusplus
 
31410
}
 
31411
#endif
 
31412
 
 
31413
int
 
31414
main ()
 
31415
{
 
31416
return f != $ac_func;
 
31417
  ;
 
31418
  return 0;
 
31419
}
 
31420
_ACEOF
 
31421
rm -f conftest.$ac_objext conftest$ac_exeext
 
31422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31423
  (eval $ac_link) 2>conftest.er1
 
31424
  ac_status=$?
 
31425
  grep -v '^ *+' conftest.er1 >conftest.err
 
31426
  rm -f conftest.er1
 
31427
  cat conftest.err >&5
 
31428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31429
  (exit $ac_status); } &&
 
31430
         { ac_try='test -z "$ac_c_werror_flag"
 
31431
                         || test ! -s conftest.err'
 
31432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31433
  (eval $ac_try) 2>&5
 
31434
  ac_status=$?
 
31435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31436
  (exit $ac_status); }; } &&
 
31437
         { ac_try='test -s conftest$ac_exeext'
 
31438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31439
  (eval $ac_try) 2>&5
 
31440
  ac_status=$?
 
31441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31442
  (exit $ac_status); }; }; then
 
31443
  eval "$as_ac_var=yes"
 
31444
else
 
31445
  echo "$as_me: failed program was:" >&5
 
31446
sed 's/^/| /' conftest.$ac_ext >&5
 
31447
 
 
31448
eval "$as_ac_var=no"
 
31449
fi
 
31450
rm -f conftest.err conftest.$ac_objext \
 
31451
      conftest$ac_exeext conftest.$ac_ext
 
31452
fi
 
31453
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
31454
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
31455
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
31456
  cat >>confdefs.h <<_ACEOF
 
31457
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
31458
_ACEOF
 
31459
  have_memmove="1"
 
31460
else
 
31461
  have_memmove="0"
 
31462
fi
 
31463
done
 
31464
 
 
31465
 
 
31466
 
 
31467
 
 
31468
 
 
31469
 
 
31470
for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
 
31471
do
 
31472
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31473
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31474
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
31475
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
31476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31477
else
 
31478
  cat >conftest.$ac_ext <<_ACEOF
 
31479
/* confdefs.h.  */
 
31480
_ACEOF
 
31481
cat confdefs.h >>conftest.$ac_ext
 
31482
cat >>conftest.$ac_ext <<_ACEOF
 
31483
/* end confdefs.h.  */
 
31484
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
31485
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
31486
#define $ac_func innocuous_$ac_func
 
31487
 
 
31488
/* System header to define __stub macros and hopefully few prototypes,
 
31489
    which can conflict with char $ac_func (); below.
 
31490
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
31491
    <limits.h> exists even on freestanding compilers.  */
 
31492
 
 
31493
#ifdef __STDC__
 
31494
# include <limits.h>
 
31495
#else
 
31496
# include <assert.h>
 
31497
#endif
 
31498
 
 
31499
#undef $ac_func
 
31500
 
 
31501
/* Override any gcc2 internal prototype to avoid an error.  */
 
31502
#ifdef __cplusplus
 
31503
extern "C"
 
31504
{
 
31505
#endif
 
31506
/* We use char because int might match the return type of a gcc2
 
31507
   builtin and then its argument prototype would still apply.  */
 
31508
char $ac_func ();
 
31509
/* The GNU C library defines this for functions which it implements
 
31510
    to always fail with ENOSYS.  Some functions are actually named
 
31511
    something starting with __ and the normal name is an alias.  */
 
31512
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
31513
choke me
 
31514
#else
 
31515
char (*f) () = $ac_func;
 
31516
#endif
 
31517
#ifdef __cplusplus
 
31518
}
 
31519
#endif
 
31520
 
 
31521
int
 
31522
main ()
 
31523
{
 
31524
return f != $ac_func;
 
31525
  ;
 
31526
  return 0;
 
31527
}
 
31528
_ACEOF
 
31529
rm -f conftest.$ac_objext conftest$ac_exeext
 
31530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31531
  (eval $ac_link) 2>conftest.er1
 
31532
  ac_status=$?
 
31533
  grep -v '^ *+' conftest.er1 >conftest.err
 
31534
  rm -f conftest.er1
 
31535
  cat conftest.err >&5
 
31536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31537
  (exit $ac_status); } &&
 
31538
         { ac_try='test -z "$ac_c_werror_flag"
 
31539
                         || test ! -s conftest.err'
 
31540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31541
  (eval $ac_try) 2>&5
 
31542
  ac_status=$?
 
31543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31544
  (exit $ac_status); }; } &&
 
31545
         { ac_try='test -s conftest$ac_exeext'
 
31546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31547
  (eval $ac_try) 2>&5
 
31548
  ac_status=$?
 
31549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31550
  (exit $ac_status); }; }; then
 
31551
  eval "$as_ac_var=yes"
 
31552
else
 
31553
  echo "$as_me: failed program was:" >&5
 
31554
sed 's/^/| /' conftest.$ac_ext >&5
 
31555
 
 
31556
eval "$as_ac_var=no"
 
31557
fi
 
31558
rm -f conftest.err conftest.$ac_objext \
 
31559
      conftest$ac_exeext conftest.$ac_ext
 
31560
fi
 
31561
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
31562
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
31563
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
31564
  cat >>confdefs.h <<_ACEOF
 
31565
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
31566
_ACEOF
 
31567
 
 
31568
fi
 
31569
done
 
31570
 
 
31571
 
 
31572
 
 
31573
 
 
31574
 
 
31575
 
 
31576
 
 
31577
 
 
31578
 
 
31579
 
 
31580
 
 
31581
 
 
31582
 
 
31583
 
 
31584
  echo "$as_me:$LINENO: checking whether sigwait takes one argument" >&5
 
31585
echo $ECHO_N "checking whether sigwait takes one argument... $ECHO_C" >&6
 
31586
if test "${ac_cv_sigwait_one_arg+set}" = set; then
 
31587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31588
else
 
31589
 
 
31590
  cat >conftest.$ac_ext <<_ACEOF
 
31591
/* confdefs.h.  */
 
31592
_ACEOF
 
31593
cat confdefs.h >>conftest.$ac_ext
 
31594
cat >>conftest.$ac_ext <<_ACEOF
 
31595
/* end confdefs.h.  */
 
31596
 
 
31597
#if defined(__NETBSD__) || defined(DARWIN)
 
31598
    /* When using the unproven-pthreads package, we need to pull in this
 
31599
     * header to get a prototype for sigwait().  Else things will fail later
 
31600
     * on.  XXX Should probably be fixed in the unproven-pthreads package.
 
31601
     * Darwin is declaring sigwait() in the wrong place as well.
 
31602
     */
 
31603
#include <pthread.h>
 
31604
#endif
 
31605
#include <signal.h>
 
31606
 
 
31607
int
 
31608
main ()
 
31609
{
 
31610
 
 
31611
  sigset_t set;
 
31612
 
 
31613
  sigwait(&set);
 
31614
 
 
31615
  ;
 
31616
  return 0;
 
31617
}
 
31618
_ACEOF
 
31619
rm -f conftest.$ac_objext
 
31620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31621
  (eval $ac_compile) 2>conftest.er1
 
31622
  ac_status=$?
 
31623
  grep -v '^ *+' conftest.er1 >conftest.err
 
31624
  rm -f conftest.er1
 
31625
  cat conftest.err >&5
 
31626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31627
  (exit $ac_status); } &&
 
31628
         { ac_try='test -z "$ac_c_werror_flag"
 
31629
                         || test ! -s conftest.err'
 
31630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31631
  (eval $ac_try) 2>&5
 
31632
  ac_status=$?
 
31633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31634
  (exit $ac_status); }; } &&
 
31635
         { ac_try='test -s conftest.$ac_objext'
 
31636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31637
  (eval $ac_try) 2>&5
 
31638
  ac_status=$?
 
31639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31640
  (exit $ac_status); }; }; then
 
31641
 
 
31642
  ac_cv_sigwait_one_arg=yes
 
31643
 
 
31644
else
 
31645
  echo "$as_me: failed program was:" >&5
 
31646
sed 's/^/| /' conftest.$ac_ext >&5
 
31647
 
 
31648
 
 
31649
  ac_cv_sigwait_one_arg=no
 
31650
 
 
31651
fi
 
31652
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31653
fi
 
31654
echo "$as_me:$LINENO: result: $ac_cv_sigwait_one_arg" >&5
 
31655
echo "${ECHO_T}$ac_cv_sigwait_one_arg" >&6
 
31656
  if test "$ac_cv_sigwait_one_arg" = "yes"; then
 
31657
 
 
31658
cat >>confdefs.h <<\_ACEOF
 
31659
#define SIGWAIT_TAKES_ONE_ARG 1
 
31660
_ACEOF
 
31661
 
 
31662
  fi
 
31663
 
 
31664
 
 
31665
echo "$as_me:$LINENO: checking for inode member of struct dirent" >&5
 
31666
echo $ECHO_N "checking for inode member of struct dirent... $ECHO_C" >&6
 
31667
if test "${apr_cv_dirent_inode+set}" = set; then
 
31668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31669
else
 
31670
 
 
31671
apr_cv_dirent_inode=no
 
31672
cat >conftest.$ac_ext <<_ACEOF
 
31673
/* confdefs.h.  */
 
31674
_ACEOF
 
31675
cat confdefs.h >>conftest.$ac_ext
 
31676
cat >>conftest.$ac_ext <<_ACEOF
 
31677
/* end confdefs.h.  */
 
31678
 
 
31679
#include <sys/types.h>
 
31680
#include <dirent.h>
 
31681
 
 
31682
int
 
31683
main ()
 
31684
{
 
31685
 
 
31686
#ifdef d_ino
 
31687
#undef d_ino
 
31688
#endif
 
31689
struct dirent de; de.d_fileno;
 
31690
 
 
31691
  ;
 
31692
  return 0;
 
31693
}
 
31694
_ACEOF
 
31695
rm -f conftest.$ac_objext
 
31696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31697
  (eval $ac_compile) 2>conftest.er1
 
31698
  ac_status=$?
 
31699
  grep -v '^ *+' conftest.er1 >conftest.err
 
31700
  rm -f conftest.er1
 
31701
  cat conftest.err >&5
 
31702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31703
  (exit $ac_status); } &&
 
31704
         { ac_try='test -z "$ac_c_werror_flag"
 
31705
                         || test ! -s conftest.err'
 
31706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31707
  (eval $ac_try) 2>&5
 
31708
  ac_status=$?
 
31709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31710
  (exit $ac_status); }; } &&
 
31711
         { ac_try='test -s conftest.$ac_objext'
 
31712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31713
  (eval $ac_try) 2>&5
 
31714
  ac_status=$?
 
31715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31716
  (exit $ac_status); }; }; then
 
31717
  apr_cv_dirent_inode=d_fileno
 
31718
else
 
31719
  echo "$as_me: failed program was:" >&5
 
31720
sed 's/^/| /' conftest.$ac_ext >&5
 
31721
 
 
31722
fi
 
31723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31724
if test "$apr_cv_dirent_inode" = "no"; then
 
31725
cat >conftest.$ac_ext <<_ACEOF
 
31726
/* confdefs.h.  */
 
31727
_ACEOF
 
31728
cat confdefs.h >>conftest.$ac_ext
 
31729
cat >>conftest.$ac_ext <<_ACEOF
 
31730
/* end confdefs.h.  */
 
31731
 
 
31732
#include <sys/types.h>
 
31733
#include <dirent.h>
 
31734
 
 
31735
int
 
31736
main ()
 
31737
{
 
31738
 
 
31739
#ifdef d_fileno
 
31740
#undef d_fileno
 
31741
#endif
 
31742
struct dirent de; de.d_ino;
 
31743
 
 
31744
  ;
 
31745
  return 0;
 
31746
}
 
31747
_ACEOF
 
31748
rm -f conftest.$ac_objext
 
31749
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31750
  (eval $ac_compile) 2>conftest.er1
 
31751
  ac_status=$?
 
31752
  grep -v '^ *+' conftest.er1 >conftest.err
 
31753
  rm -f conftest.er1
 
31754
  cat conftest.err >&5
 
31755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31756
  (exit $ac_status); } &&
 
31757
         { ac_try='test -z "$ac_c_werror_flag"
 
31758
                         || test ! -s conftest.err'
 
31759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31760
  (eval $ac_try) 2>&5
 
31761
  ac_status=$?
 
31762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31763
  (exit $ac_status); }; } &&
 
31764
         { ac_try='test -s conftest.$ac_objext'
 
31765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31766
  (eval $ac_try) 2>&5
 
31767
  ac_status=$?
 
31768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31769
  (exit $ac_status); }; }; then
 
31770
  apr_cv_dirent_inode=d_ino
 
31771
else
 
31772
  echo "$as_me: failed program was:" >&5
 
31773
sed 's/^/| /' conftest.$ac_ext >&5
 
31774
 
 
31775
fi
 
31776
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31777
fi
 
31778
 
 
31779
fi
 
31780
echo "$as_me:$LINENO: result: $apr_cv_dirent_inode" >&5
 
31781
echo "${ECHO_T}$apr_cv_dirent_inode" >&6
 
31782
if test "$apr_cv_dirent_inode" != "no"; then
 
31783
 
 
31784
cat >>confdefs.h <<_ACEOF
 
31785
#define DIRENT_INODE $apr_cv_dirent_inode
 
31786
_ACEOF
 
31787
 
 
31788
fi
 
31789
 
 
31790
 
 
31791
echo "$as_me:$LINENO: checking for file type member of struct dirent" >&5
 
31792
echo $ECHO_N "checking for file type member of struct dirent... $ECHO_C" >&6
 
31793
if test "${apr_cv_dirent_type+set}" = set; then
 
31794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31795
else
 
31796
 
 
31797
apr_cv_dirent_type=no
 
31798
cat >conftest.$ac_ext <<_ACEOF
 
31799
/* confdefs.h.  */
 
31800
_ACEOF
 
31801
cat confdefs.h >>conftest.$ac_ext
 
31802
cat >>conftest.$ac_ext <<_ACEOF
 
31803
/* end confdefs.h.  */
 
31804
 
 
31805
#include <sys/types.h>
 
31806
#include <dirent.h>
 
31807
 
 
31808
int
 
31809
main ()
 
31810
{
 
31811
 
 
31812
struct dirent de; de.d_type = DT_REG;
 
31813
 
 
31814
  ;
 
31815
  return 0;
 
31816
}
 
31817
_ACEOF
 
31818
rm -f conftest.$ac_objext
 
31819
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31820
  (eval $ac_compile) 2>conftest.er1
 
31821
  ac_status=$?
 
31822
  grep -v '^ *+' conftest.er1 >conftest.err
 
31823
  rm -f conftest.er1
 
31824
  cat conftest.err >&5
 
31825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31826
  (exit $ac_status); } &&
 
31827
         { ac_try='test -z "$ac_c_werror_flag"
 
31828
                         || test ! -s conftest.err'
 
31829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31830
  (eval $ac_try) 2>&5
 
31831
  ac_status=$?
 
31832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31833
  (exit $ac_status); }; } &&
 
31834
         { ac_try='test -s conftest.$ac_objext'
 
31835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31836
  (eval $ac_try) 2>&5
 
31837
  ac_status=$?
 
31838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31839
  (exit $ac_status); }; }; then
 
31840
  apr_cv_dirent_type=d_type
 
31841
else
 
31842
  echo "$as_me: failed program was:" >&5
 
31843
sed 's/^/| /' conftest.$ac_ext >&5
 
31844
 
 
31845
fi
 
31846
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31847
 
 
31848
fi
 
31849
echo "$as_me:$LINENO: result: $apr_cv_dirent_type" >&5
 
31850
echo "${ECHO_T}$apr_cv_dirent_type" >&6
 
31851
if test "$apr_cv_dirent_type" != "no"; then
 
31852
 
 
31853
cat >>confdefs.h <<_ACEOF
 
31854
#define DIRENT_TYPE $apr_cv_dirent_type
 
31855
_ACEOF
 
31856
 
 
31857
fi
 
31858
 
 
31859
 
 
31860
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
31861
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
31862
if test "${ac_cv_header_stdc+set}" = set; then
 
31863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31864
else
 
31865
  cat >conftest.$ac_ext <<_ACEOF
 
31866
/* confdefs.h.  */
 
31867
_ACEOF
 
31868
cat confdefs.h >>conftest.$ac_ext
 
31869
cat >>conftest.$ac_ext <<_ACEOF
 
31870
/* end confdefs.h.  */
 
31871
#include <stdlib.h>
 
31872
#include <stdarg.h>
 
31873
#include <string.h>
 
31874
#include <float.h>
 
31875
 
 
31876
int
 
31877
main ()
 
31878
{
 
31879
 
 
31880
  ;
 
31881
  return 0;
 
31882
}
 
31883
_ACEOF
 
31884
rm -f conftest.$ac_objext
 
31885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31886
  (eval $ac_compile) 2>conftest.er1
 
31887
  ac_status=$?
 
31888
  grep -v '^ *+' conftest.er1 >conftest.err
 
31889
  rm -f conftest.er1
 
31890
  cat conftest.err >&5
 
31891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31892
  (exit $ac_status); } &&
 
31893
         { ac_try='test -z "$ac_c_werror_flag"
 
31894
                         || test ! -s conftest.err'
 
31895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31896
  (eval $ac_try) 2>&5
 
31897
  ac_status=$?
 
31898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31899
  (exit $ac_status); }; } &&
 
31900
         { ac_try='test -s conftest.$ac_objext'
 
31901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31902
  (eval $ac_try) 2>&5
 
31903
  ac_status=$?
 
31904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31905
  (exit $ac_status); }; }; then
 
31906
  ac_cv_header_stdc=yes
 
31907
else
 
31908
  echo "$as_me: failed program was:" >&5
 
31909
sed 's/^/| /' conftest.$ac_ext >&5
 
31910
 
 
31911
ac_cv_header_stdc=no
 
31912
fi
 
31913
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31914
 
 
31915
if test $ac_cv_header_stdc = yes; then
 
31916
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
31917
  cat >conftest.$ac_ext <<_ACEOF
 
31918
/* confdefs.h.  */
 
31919
_ACEOF
 
31920
cat confdefs.h >>conftest.$ac_ext
 
31921
cat >>conftest.$ac_ext <<_ACEOF
 
31922
/* end confdefs.h.  */
 
31923
#include <string.h>
 
31924
 
 
31925
_ACEOF
 
31926
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
31927
  $EGREP "memchr" >/dev/null 2>&1; then
 
31928
  :
 
31929
else
 
31930
  ac_cv_header_stdc=no
 
31931
fi
 
31932
rm -f conftest*
 
31933
 
 
31934
fi
 
31935
 
 
31936
if test $ac_cv_header_stdc = yes; then
 
31937
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
31938
  cat >conftest.$ac_ext <<_ACEOF
 
31939
/* confdefs.h.  */
 
31940
_ACEOF
 
31941
cat confdefs.h >>conftest.$ac_ext
 
31942
cat >>conftest.$ac_ext <<_ACEOF
 
31943
/* end confdefs.h.  */
 
31944
#include <stdlib.h>
 
31945
 
 
31946
_ACEOF
 
31947
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
31948
  $EGREP "free" >/dev/null 2>&1; then
 
31949
  :
 
31950
else
 
31951
  ac_cv_header_stdc=no
 
31952
fi
 
31953
rm -f conftest*
 
31954
 
 
31955
fi
 
31956
 
 
31957
if test $ac_cv_header_stdc = yes; then
 
31958
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
31959
  if test "$cross_compiling" = yes; then
 
31960
  :
 
31961
else
 
31962
  cat >conftest.$ac_ext <<_ACEOF
 
31963
/* confdefs.h.  */
 
31964
_ACEOF
 
31965
cat confdefs.h >>conftest.$ac_ext
 
31966
cat >>conftest.$ac_ext <<_ACEOF
 
31967
/* end confdefs.h.  */
 
31968
#include <ctype.h>
 
31969
#if ((' ' & 0x0FF) == 0x020)
 
31970
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
31971
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
31972
#else
 
31973
# define ISLOWER(c) \
 
31974
                   (('a' <= (c) && (c) <= 'i') \
 
31975
                     || ('j' <= (c) && (c) <= 'r') \
 
31976
                     || ('s' <= (c) && (c) <= 'z'))
 
31977
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
31978
#endif
 
31979
 
 
31980
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
31981
int
 
31982
main ()
 
31983
{
 
31984
  int i;
 
31985
  for (i = 0; i < 256; i++)
 
31986
    if (XOR (islower (i), ISLOWER (i))
 
31987
        || toupper (i) != TOUPPER (i))
 
31988
      exit(2);
 
31989
  exit (0);
 
31990
}
 
31991
_ACEOF
 
31992
rm -f conftest$ac_exeext
 
31993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31994
  (eval $ac_link) 2>&5
 
31995
  ac_status=$?
 
31996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31997
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31999
  (eval $ac_try) 2>&5
 
32000
  ac_status=$?
 
32001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32002
  (exit $ac_status); }; }; then
 
32003
  :
 
32004
else
 
32005
  echo "$as_me: program exited with status $ac_status" >&5
 
32006
echo "$as_me: failed program was:" >&5
 
32007
sed 's/^/| /' conftest.$ac_ext >&5
 
32008
 
 
32009
( exit $ac_status )
 
32010
ac_cv_header_stdc=no
 
32011
fi
 
32012
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32013
fi
 
32014
fi
 
32015
fi
 
32016
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
32017
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
32018
if test $ac_cv_header_stdc = yes; then
 
32019
 
 
32020
cat >>confdefs.h <<\_ACEOF
 
32021
#define STDC_HEADERS 1
 
32022
_ACEOF
 
32023
 
 
32024
fi
 
32025
 
 
32026
 
 
32027
 
 
32028
 
 
32029
 
 
32030
 
 
32031
 
 
32032
 
 
32033
 
 
32034
 
 
32035
 
 
32036
 
 
32037
 
 
32038
 
 
32039
 
 
32040
 
 
32041
 
 
32042
 
 
32043
 
 
32044
 
 
32045
 
 
32046
 
 
32047
 
 
32048
 
 
32049
 
 
32050
 
 
32051
 
 
32052
 
 
32053
 
 
32054
 
 
32055
 
 
32056
 
 
32057
 
 
32058
 
 
32059
 
 
32060
 
 
32061
 
 
32062
 
 
32063
 
 
32064
 
 
32065
 
 
32066
 
 
32067
 
 
32068
 
 
32069
 
 
32070
 
 
32071
 
 
32072
 
 
32073
 
 
32074
 
 
32075
 
 
32076
 
 
32077
 
 
32078
 
 
32079
 
 
32080
 
 
32081
 
 
32082
 
 
32083
 
 
32084
 
 
32085
 
 
32086
 
 
32087
 
 
32088
 
 
32089
 
 
32090
 
 
32091
for ac_header in alloca.h            \
 
32092
    ByteOrder.h         \
 
32093
    conio.h             \
 
32094
    crypt.h             \
 
32095
    ctype.h             \
 
32096
    dir.h               \
 
32097
    dirent.h            \
 
32098
    dl.h                \
 
32099
    dlfcn.h             \
 
32100
    errno.h             \
 
32101
    fcntl.h             \
 
32102
    grp.h               \
 
32103
    io.h                \
 
32104
    limits.h            \
 
32105
    mach-o/dyld.h       \
 
32106
    malloc.h            \
 
32107
    memory.h            \
 
32108
    netdb.h             \
 
32109
    osreldate.h         \
 
32110
    poll.h              \
 
32111
    process.h           \
 
32112
    pwd.h               \
 
32113
    semaphore.h         \
 
32114
    signal.h            \
 
32115
    stdarg.h            \
 
32116
    stddef.h            \
 
32117
    stdio.h             \
 
32118
    stdlib.h            \
 
32119
    string.h            \
 
32120
    strings.h           \
 
32121
    sysapi.h            \
 
32122
    sysgtime.h          \
 
32123
    termios.h           \
 
32124
    time.h              \
 
32125
    tpfeq.h             \
 
32126
    tpfio.h             \
 
32127
    unistd.h            \
 
32128
    unix.h              \
 
32129
    arpa/inet.h         \
 
32130
    kernel/OS.h         \
 
32131
    net/errno.h         \
 
32132
    netinet/in.h        \
 
32133
    netinet/sctp.h      \
 
32134
    netinet/sctp_uio.h  \
 
32135
    sys/file.h          \
 
32136
    sys/ioctl.h         \
 
32137
    sys/mman.h          \
 
32138
    sys/poll.h          \
 
32139
    sys/resource.h      \
 
32140
    sys/select.h        \
 
32141
    sys/sem.h           \
 
32142
    sys/sendfile.h      \
 
32143
    sys/signal.h        \
 
32144
    sys/socket.h        \
 
32145
    sys/sockio.h        \
 
32146
    sys/stat.h          \
 
32147
    sys/sysctl.h        \
 
32148
    sys/syslimits.h     \
 
32149
    sys/time.h          \
 
32150
    sys/types.h         \
 
32151
    sys/uio.h           \
 
32152
    sys/un.h            \
 
32153
    sys/wait.h
 
32154
do
 
32155
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
32156
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32157
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32158
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
32159
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32161
fi
 
32162
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
32163
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
32164
else
 
32165
  # Is the header compilable?
 
32166
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
32167
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
32168
cat >conftest.$ac_ext <<_ACEOF
 
32169
/* confdefs.h.  */
 
32170
_ACEOF
 
32171
cat confdefs.h >>conftest.$ac_ext
 
32172
cat >>conftest.$ac_ext <<_ACEOF
 
32173
/* end confdefs.h.  */
 
32174
$ac_includes_default
 
32175
#include <$ac_header>
 
32176
_ACEOF
 
32177
rm -f conftest.$ac_objext
 
32178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32179
  (eval $ac_compile) 2>conftest.er1
 
32180
  ac_status=$?
 
32181
  grep -v '^ *+' conftest.er1 >conftest.err
 
32182
  rm -f conftest.er1
 
32183
  cat conftest.err >&5
 
32184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32185
  (exit $ac_status); } &&
 
32186
         { ac_try='test -z "$ac_c_werror_flag"
 
32187
                         || test ! -s conftest.err'
 
32188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32189
  (eval $ac_try) 2>&5
 
32190
  ac_status=$?
 
32191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32192
  (exit $ac_status); }; } &&
 
32193
         { ac_try='test -s conftest.$ac_objext'
 
32194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32195
  (eval $ac_try) 2>&5
 
32196
  ac_status=$?
 
32197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32198
  (exit $ac_status); }; }; then
 
32199
  ac_header_compiler=yes
 
32200
else
 
32201
  echo "$as_me: failed program was:" >&5
 
32202
sed 's/^/| /' conftest.$ac_ext >&5
 
32203
 
 
32204
ac_header_compiler=no
 
32205
fi
 
32206
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32207
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32208
echo "${ECHO_T}$ac_header_compiler" >&6
 
32209
 
 
32210
# Is the header present?
 
32211
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
32212
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
32213
cat >conftest.$ac_ext <<_ACEOF
 
32214
/* confdefs.h.  */
 
32215
_ACEOF
 
32216
cat confdefs.h >>conftest.$ac_ext
 
32217
cat >>conftest.$ac_ext <<_ACEOF
 
32218
/* end confdefs.h.  */
 
32219
#include <$ac_header>
 
32220
_ACEOF
 
32221
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
32222
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
32223
  ac_status=$?
 
32224
  grep -v '^ *+' conftest.er1 >conftest.err
 
32225
  rm -f conftest.er1
 
32226
  cat conftest.err >&5
 
32227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32228
  (exit $ac_status); } >/dev/null; then
 
32229
  if test -s conftest.err; then
 
32230
    ac_cpp_err=$ac_c_preproc_warn_flag
 
32231
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
32232
  else
 
32233
    ac_cpp_err=
 
32234
  fi
 
32235
else
 
32236
  ac_cpp_err=yes
 
32237
fi
 
32238
if test -z "$ac_cpp_err"; then
 
32239
  ac_header_preproc=yes
 
32240
else
 
32241
  echo "$as_me: failed program was:" >&5
 
32242
sed 's/^/| /' conftest.$ac_ext >&5
 
32243
 
 
32244
  ac_header_preproc=no
 
32245
fi
 
32246
rm -f conftest.err conftest.$ac_ext
 
32247
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32248
echo "${ECHO_T}$ac_header_preproc" >&6
 
32249
 
 
32250
# So?  What about this header?
 
32251
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
32252
  yes:no: )
 
32253
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
32254
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32255
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
32256
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
32257
    ac_header_preproc=yes
 
32258
    ;;
 
32259
  no:yes:* )
 
32260
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
32261
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
32262
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
32263
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
32264
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
32265
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
32266
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
32267
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32268
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
32269
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
32270
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
32271
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
32272
    (
 
32273
      cat <<\_ASBOX
 
32274
## ------------------------------------------ ##
 
32275
## Report this to the AC_PACKAGE_NAME lists.  ##
 
32276
## ------------------------------------------ ##
 
32277
_ASBOX
 
32278
    ) |
 
32279
      sed "s/^/$as_me: WARNING:     /" >&2
 
32280
    ;;
 
32281
esac
 
32282
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32283
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
32284
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32286
else
 
32287
  eval "$as_ac_Header=\$ac_header_preproc"
 
32288
fi
 
32289
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
32290
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
32291
 
 
32292
fi
 
32293
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
32294
  cat >>confdefs.h <<_ACEOF
 
32295
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
32296
_ACEOF
 
32297
 
 
32298
fi
 
32299
 
 
32300
done
 
32301
 
 
32302
for aprt_i in alloca.h            \
 
32303
    ByteOrder.h         \
 
32304
    conio.h             \
 
32305
    crypt.h             \
 
32306
    ctype.h             \
 
32307
    dir.h               \
 
32308
    dirent.h            \
 
32309
    dl.h                \
 
32310
    dlfcn.h             \
 
32311
    errno.h             \
 
32312
    fcntl.h             \
 
32313
    grp.h               \
 
32314
    io.h                \
 
32315
    limits.h            \
 
32316
    mach-o/dyld.h       \
 
32317
    malloc.h            \
 
32318
    memory.h            \
 
32319
    netdb.h             \
 
32320
    osreldate.h         \
 
32321
    poll.h              \
 
32322
    process.h           \
 
32323
    pwd.h               \
 
32324
    semaphore.h         \
 
32325
    signal.h            \
 
32326
    stdarg.h            \
 
32327
    stddef.h            \
 
32328
    stdio.h             \
 
32329
    stdlib.h            \
 
32330
    string.h            \
 
32331
    strings.h           \
 
32332
    sysapi.h            \
 
32333
    sysgtime.h          \
 
32334
    termios.h           \
 
32335
    time.h              \
 
32336
    tpfeq.h             \
 
32337
    tpfio.h             \
 
32338
    unistd.h            \
 
32339
    unix.h              \
 
32340
    arpa/inet.h         \
 
32341
    kernel/OS.h         \
 
32342
    net/errno.h         \
 
32343
    netinet/in.h        \
 
32344
    netinet/sctp.h      \
 
32345
    netinet/sctp_uio.h  \
 
32346
    sys/file.h          \
 
32347
    sys/ioctl.h         \
 
32348
    sys/mman.h          \
 
32349
    sys/poll.h          \
 
32350
    sys/resource.h      \
 
32351
    sys/select.h        \
 
32352
    sys/sem.h           \
 
32353
    sys/sendfile.h      \
 
32354
    sys/signal.h        \
 
32355
    sys/socket.h        \
 
32356
    sys/sockio.h        \
 
32357
    sys/stat.h          \
 
32358
    sys/sysctl.h        \
 
32359
    sys/syslimits.h     \
 
32360
    sys/time.h          \
 
32361
    sys/types.h         \
 
32362
    sys/uio.h           \
 
32363
    sys/un.h            \
 
32364
    sys/wait.h
 
32365
do
 
32366
    ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
 
32367
    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
 
32368
    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
32369
       eval "$aprt_2=1"
 
32370
    else
 
32371
       eval "$aprt_2=0"
 
32372
    fi
 
32373
done
 
32374
 
 
32375
 
 
32376
# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
 
32377
# being included by itself.  Check for <netinet/tcp.h> manually,
 
32378
# including another header file first.
 
32379
echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
 
32380
echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6
 
32381
if test "${apr_cv_hdr_netinet_tcp_h+set}" = set; then
 
32382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32383
else
 
32384
  cat >conftest.$ac_ext <<_ACEOF
 
32385
/* confdefs.h.  */
 
32386
_ACEOF
 
32387
cat confdefs.h >>conftest.$ac_ext
 
32388
cat >>conftest.$ac_ext <<_ACEOF
 
32389
/* end confdefs.h.  */
 
32390
#ifdef HAVE_NETINET_IN_H
 
32391
#include <netinet/in.h>
 
32392
#endif
 
32393
#include <netinet/tcp.h>
 
32394
 
 
32395
_ACEOF
 
32396
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
32397
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
32398
  ac_status=$?
 
32399
  grep -v '^ *+' conftest.er1 >conftest.err
 
32400
  rm -f conftest.er1
 
32401
  cat conftest.err >&5
 
32402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32403
  (exit $ac_status); } >/dev/null; then
 
32404
  if test -s conftest.err; then
 
32405
    ac_cpp_err=$ac_c_preproc_warn_flag
 
32406
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
32407
  else
 
32408
    ac_cpp_err=
 
32409
  fi
 
32410
else
 
32411
  ac_cpp_err=yes
 
32412
fi
 
32413
if test -z "$ac_cpp_err"; then
 
32414
  apr_cv_hdr_netinet_tcp_h=yes
 
32415
else
 
32416
  echo "$as_me: failed program was:" >&5
 
32417
sed 's/^/| /' conftest.$ac_ext >&5
 
32418
 
 
32419
  apr_cv_hdr_netinet_tcp_h=no
 
32420
fi
 
32421
rm -f conftest.err conftest.$ac_ext
 
32422
fi
 
32423
echo "$as_me:$LINENO: result: $apr_cv_hdr_netinet_tcp_h" >&5
 
32424
echo "${ECHO_T}$apr_cv_hdr_netinet_tcp_h" >&6
 
32425
if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
 
32426
   netinet_tcph=1
 
32427
 
 
32428
cat >>confdefs.h <<\_ACEOF
 
32429
#define HAVE_NETINET_TCP_H 1
 
32430
_ACEOF
 
32431
 
 
32432
else
 
32433
   netinet_tcph=0
 
32434
fi
 
32435
 
 
32436
 
 
32437
 
 
32438
 
 
32439
 
 
32440
 
 
32441
 
 
32442
 
 
32443
 
 
32444
 
 
32445
 
 
32446
 
 
32447
 
 
32448
 
 
32449
 
 
32450
 
 
32451
 
 
32452
 
 
32453
 
 
32454
 
 
32455
 
 
32456
 
 
32457
 
 
32458
 
 
32459
 
 
32460
 
 
32461
 
 
32462
 
 
32463
 
 
32464
 
 
32465
 
 
32466
 
 
32467
 
 
32468
 
 
32469
 
 
32470
 
 
32471
 
 
32472
# Checking for h_errno in <netdb.h>
 
32473
if test "$netdbh" = "1"; then
 
32474
 
 
32475
  echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
 
32476
echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6
 
32477
  if test "${ac_cv_h_errno_cppflags+set}" = set; then
 
32478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32479
else
 
32480
 
 
32481
 
 
32482
  if test x != x; then
 
32483
    CPPFLAGS="-D $CPPFLAGS"
 
32484
  fi
 
32485
  cat >conftest.$ac_ext <<_ACEOF
 
32486
/* confdefs.h.  */
 
32487
_ACEOF
 
32488
cat confdefs.h >>conftest.$ac_ext
 
32489
cat >>conftest.$ac_ext <<_ACEOF
 
32490
/* end confdefs.h.  */
 
32491
 
 
32492
#ifdef HAVE_SYS_TYPES_H
 
32493
#include <sys/types.h>
 
32494
#endif
 
32495
#ifdef HAVE_NETDB_H
 
32496
#include <netdb.h>
 
32497
#endif
 
32498
 
 
32499
int
 
32500
main ()
 
32501
{
 
32502
 
 
32503
int h_e = h_errno;
 
32504
 
 
32505
  ;
 
32506
  return 0;
 
32507
}
 
32508
_ACEOF
 
32509
rm -f conftest.$ac_objext
 
32510
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32511
  (eval $ac_compile) 2>conftest.er1
 
32512
  ac_status=$?
 
32513
  grep -v '^ *+' conftest.er1 >conftest.err
 
32514
  rm -f conftest.er1
 
32515
  cat conftest.err >&5
 
32516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32517
  (exit $ac_status); } &&
 
32518
         { ac_try='test -z "$ac_c_werror_flag"
 
32519
                         || test ! -s conftest.err'
 
32520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32521
  (eval $ac_try) 2>&5
 
32522
  ac_status=$?
 
32523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32524
  (exit $ac_status); }; } &&
 
32525
         { ac_try='test -s conftest.$ac_objext'
 
32526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32527
  (eval $ac_try) 2>&5
 
32528
  ac_status=$?
 
32529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32530
  (exit $ac_status); }; }; then
 
32531
 
 
32532
  if test x != x; then
 
32533
    ac_cv_h_errno_cppflags=""
 
32534
  else
 
32535
    ac_cv_h_errno_cppflags=yes
 
32536
  fi
 
32537
 
 
32538
else
 
32539
  echo "$as_me: failed program was:" >&5
 
32540
sed 's/^/| /' conftest.$ac_ext >&5
 
32541
 
 
32542
 
 
32543
  ac_cv_h_errno_cppflags=no
 
32544
 
 
32545
fi
 
32546
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32547
    if test "$ac_cv_h_errno_cppflags" = "no"; then
 
32548
      ac_save="$CPPFLAGS"
 
32549
      for flag in _XOPEN_SOURCE_EXTENDED; do
 
32550
 
 
32551
  if test x$flag != x; then
 
32552
    CPPFLAGS="-D$flag $CPPFLAGS"
 
32553
  fi
 
32554
  cat >conftest.$ac_ext <<_ACEOF
 
32555
/* confdefs.h.  */
 
32556
_ACEOF
 
32557
cat confdefs.h >>conftest.$ac_ext
 
32558
cat >>conftest.$ac_ext <<_ACEOF
 
32559
/* end confdefs.h.  */
 
32560
 
 
32561
#ifdef HAVE_SYS_TYPES_H
 
32562
#include <sys/types.h>
 
32563
#endif
 
32564
#ifdef HAVE_NETDB_H
 
32565
#include <netdb.h>
 
32566
#endif
 
32567
 
 
32568
int
 
32569
main ()
 
32570
{
 
32571
 
 
32572
int h_e = h_errno;
 
32573
 
 
32574
  ;
 
32575
  return 0;
 
32576
}
 
32577
_ACEOF
 
32578
rm -f conftest.$ac_objext
 
32579
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32580
  (eval $ac_compile) 2>conftest.er1
 
32581
  ac_status=$?
 
32582
  grep -v '^ *+' conftest.er1 >conftest.err
 
32583
  rm -f conftest.er1
 
32584
  cat conftest.err >&5
 
32585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32586
  (exit $ac_status); } &&
 
32587
         { ac_try='test -z "$ac_c_werror_flag"
 
32588
                         || test ! -s conftest.err'
 
32589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32590
  (eval $ac_try) 2>&5
 
32591
  ac_status=$?
 
32592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32593
  (exit $ac_status); }; } &&
 
32594
         { ac_try='test -s conftest.$ac_objext'
 
32595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32596
  (eval $ac_try) 2>&5
 
32597
  ac_status=$?
 
32598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32599
  (exit $ac_status); }; }; then
 
32600
 
 
32601
  if test x$flag != x; then
 
32602
    ac_cv_h_errno_cppflags="$flag"
 
32603
  else
 
32604
    ac_cv_h_errno_cppflags=yes
 
32605
  fi
 
32606
 
 
32607
else
 
32608
  echo "$as_me: failed program was:" >&5
 
32609
sed 's/^/| /' conftest.$ac_ext >&5
 
32610
 
 
32611
 
 
32612
  ac_cv_h_errno_cppflags=no
 
32613
 
 
32614
fi
 
32615
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32616
        if test "$ac_cv_h_errno_cppflags" != "no"; then
 
32617
          break
 
32618
        fi
 
32619
      done
 
32620
      CPPFLAGS="$ac_save"
 
32621
    fi
 
32622
 
 
32623
fi
 
32624
 
 
32625
  if test "$ac_cv_h_errno_cppflags" != "no"; then
 
32626
    if test "$ac_cv_h_errno_cppflags" != "yes"; then
 
32627
      CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
 
32628
      echo "$as_me:$LINENO: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
 
32629
echo "${ECHO_T}yes, with -D$ac_cv_h_errno_cppflags" >&6
 
32630
    else
 
32631
      echo "$as_me:$LINENO: result: $ac_cv_h_errno_cppflags" >&5
 
32632
echo "${ECHO_T}$ac_cv_h_errno_cppflags" >&6
 
32633
    fi
 
32634
  else
 
32635
    echo "$as_me:$LINENO: result: $ac_cv_h_errno_cppflags" >&5
 
32636
echo "${ECHO_T}$ac_cv_h_errno_cppflags" >&6
 
32637
  fi
 
32638
 
 
32639
  if test "$ac_cv_h_errno_cflags" = "no"; then
 
32640
    { { echo "$as_me:$LINENO: error: can not find h_errno in netdb.h" >&5
 
32641
echo "$as_me: error: can not find h_errno in netdb.h" >&2;}
 
32642
   { (exit 1); exit 1; }; }
 
32643
  fi
 
32644
fi
 
32645
 
 
32646
echo "$as_me:$LINENO: checking for off_t" >&5
 
32647
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
32648
if test "${ac_cv_type_off_t+set}" = set; then
 
32649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32650
else
 
32651
  cat >conftest.$ac_ext <<_ACEOF
 
32652
/* confdefs.h.  */
 
32653
_ACEOF
 
32654
cat confdefs.h >>conftest.$ac_ext
 
32655
cat >>conftest.$ac_ext <<_ACEOF
 
32656
/* end confdefs.h.  */
 
32657
$ac_includes_default
 
32658
int
 
32659
main ()
 
32660
{
 
32661
if ((off_t *) 0)
 
32662
  return 0;
 
32663
if (sizeof (off_t))
 
32664
  return 0;
 
32665
  ;
 
32666
  return 0;
 
32667
}
 
32668
_ACEOF
 
32669
rm -f conftest.$ac_objext
 
32670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32671
  (eval $ac_compile) 2>conftest.er1
 
32672
  ac_status=$?
 
32673
  grep -v '^ *+' conftest.er1 >conftest.err
 
32674
  rm -f conftest.er1
 
32675
  cat conftest.err >&5
 
32676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32677
  (exit $ac_status); } &&
 
32678
         { ac_try='test -z "$ac_c_werror_flag"
 
32679
                         || test ! -s conftest.err'
 
32680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32681
  (eval $ac_try) 2>&5
 
32682
  ac_status=$?
 
32683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32684
  (exit $ac_status); }; } &&
 
32685
         { ac_try='test -s conftest.$ac_objext'
 
32686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32687
  (eval $ac_try) 2>&5
 
32688
  ac_status=$?
 
32689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32690
  (exit $ac_status); }; }; then
 
32691
  ac_cv_type_off_t=yes
 
32692
else
 
32693
  echo "$as_me: failed program was:" >&5
 
32694
sed 's/^/| /' conftest.$ac_ext >&5
 
32695
 
 
32696
ac_cv_type_off_t=no
 
32697
fi
 
32698
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32699
fi
 
32700
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
32701
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
32702
if test $ac_cv_type_off_t = yes; then
 
32703
  :
 
32704
else
 
32705
 
 
32706
cat >>confdefs.h <<_ACEOF
 
32707
#define off_t long
 
32708
_ACEOF
 
32709
 
 
32710
fi
 
32711
 
 
32712
echo "$as_me:$LINENO: checking for pid_t" >&5
 
32713
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
32714
if test "${ac_cv_type_pid_t+set}" = set; then
 
32715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32716
else
 
32717
  cat >conftest.$ac_ext <<_ACEOF
 
32718
/* confdefs.h.  */
 
32719
_ACEOF
 
32720
cat confdefs.h >>conftest.$ac_ext
 
32721
cat >>conftest.$ac_ext <<_ACEOF
 
32722
/* end confdefs.h.  */
 
32723
$ac_includes_default
 
32724
int
 
32725
main ()
 
32726
{
 
32727
if ((pid_t *) 0)
 
32728
  return 0;
 
32729
if (sizeof (pid_t))
 
32730
  return 0;
 
32731
  ;
 
32732
  return 0;
 
32733
}
 
32734
_ACEOF
 
32735
rm -f conftest.$ac_objext
 
32736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32737
  (eval $ac_compile) 2>conftest.er1
 
32738
  ac_status=$?
 
32739
  grep -v '^ *+' conftest.er1 >conftest.err
 
32740
  rm -f conftest.er1
 
32741
  cat conftest.err >&5
 
32742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32743
  (exit $ac_status); } &&
 
32744
         { ac_try='test -z "$ac_c_werror_flag"
 
32745
                         || test ! -s conftest.err'
 
32746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32747
  (eval $ac_try) 2>&5
 
32748
  ac_status=$?
 
32749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32750
  (exit $ac_status); }; } &&
 
32751
         { ac_try='test -s conftest.$ac_objext'
 
32752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32753
  (eval $ac_try) 2>&5
 
32754
  ac_status=$?
 
32755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32756
  (exit $ac_status); }; }; then
 
32757
  ac_cv_type_pid_t=yes
 
32758
else
 
32759
  echo "$as_me: failed program was:" >&5
 
32760
sed 's/^/| /' conftest.$ac_ext >&5
 
32761
 
 
32762
ac_cv_type_pid_t=no
 
32763
fi
 
32764
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32765
fi
 
32766
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
32767
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
32768
if test $ac_cv_type_pid_t = yes; then
 
32769
  :
 
32770
else
 
32771
 
 
32772
cat >>confdefs.h <<_ACEOF
 
32773
#define pid_t int
 
32774
_ACEOF
 
32775
 
 
32776
fi
 
32777
 
 
32778
echo "$as_me:$LINENO: checking for size_t" >&5
 
32779
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
32780
if test "${ac_cv_type_size_t+set}" = set; then
 
32781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32782
else
 
32783
  cat >conftest.$ac_ext <<_ACEOF
 
32784
/* confdefs.h.  */
 
32785
_ACEOF
 
32786
cat confdefs.h >>conftest.$ac_ext
 
32787
cat >>conftest.$ac_ext <<_ACEOF
 
32788
/* end confdefs.h.  */
 
32789
$ac_includes_default
 
32790
int
 
32791
main ()
 
32792
{
 
32793
if ((size_t *) 0)
 
32794
  return 0;
 
32795
if (sizeof (size_t))
 
32796
  return 0;
 
32797
  ;
 
32798
  return 0;
 
32799
}
 
32800
_ACEOF
 
32801
rm -f conftest.$ac_objext
 
32802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32803
  (eval $ac_compile) 2>conftest.er1
 
32804
  ac_status=$?
 
32805
  grep -v '^ *+' conftest.er1 >conftest.err
 
32806
  rm -f conftest.er1
 
32807
  cat conftest.err >&5
 
32808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32809
  (exit $ac_status); } &&
 
32810
         { ac_try='test -z "$ac_c_werror_flag"
 
32811
                         || test ! -s conftest.err'
 
32812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32813
  (eval $ac_try) 2>&5
 
32814
  ac_status=$?
 
32815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32816
  (exit $ac_status); }; } &&
 
32817
         { ac_try='test -s conftest.$ac_objext'
 
32818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32819
  (eval $ac_try) 2>&5
 
32820
  ac_status=$?
 
32821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32822
  (exit $ac_status); }; }; then
 
32823
  ac_cv_type_size_t=yes
 
32824
else
 
32825
  echo "$as_me: failed program was:" >&5
 
32826
sed 's/^/| /' conftest.$ac_ext >&5
 
32827
 
 
32828
ac_cv_type_size_t=no
 
32829
fi
 
32830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32831
fi
 
32832
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
32833
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
32834
if test $ac_cv_type_size_t = yes; then
 
32835
  :
 
32836
else
 
32837
 
 
32838
cat >>confdefs.h <<_ACEOF
 
32839
#define size_t unsigned
 
32840
_ACEOF
 
32841
 
 
32842
fi
 
32843
 
 
32844
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
32845
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
 
32846
if test "${ac_cv_type_uid_t+set}" = set; then
 
32847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32848
else
 
32849
  cat >conftest.$ac_ext <<_ACEOF
 
32850
/* confdefs.h.  */
 
32851
_ACEOF
 
32852
cat confdefs.h >>conftest.$ac_ext
 
32853
cat >>conftest.$ac_ext <<_ACEOF
 
32854
/* end confdefs.h.  */
 
32855
#include <sys/types.h>
 
32856
 
 
32857
_ACEOF
 
32858
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
32859
  $EGREP "uid_t" >/dev/null 2>&1; then
 
32860
  ac_cv_type_uid_t=yes
 
32861
else
 
32862
  ac_cv_type_uid_t=no
 
32863
fi
 
32864
rm -f conftest*
 
32865
 
 
32866
fi
 
32867
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
32868
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
 
32869
if test $ac_cv_type_uid_t = no; then
 
32870
 
 
32871
cat >>confdefs.h <<\_ACEOF
 
32872
#define uid_t int
 
32873
_ACEOF
 
32874
 
 
32875
 
 
32876
cat >>confdefs.h <<\_ACEOF
 
32877
#define gid_t int
 
32878
_ACEOF
 
32879
 
 
32880
fi
 
32881
 
 
32882
echo "$as_me:$LINENO: checking for ssize_t" >&5
 
32883
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
 
32884
if test "${ac_cv_type_ssize_t+set}" = set; then
 
32885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32886
else
 
32887
  cat >conftest.$ac_ext <<_ACEOF
 
32888
/* confdefs.h.  */
 
32889
_ACEOF
 
32890
cat confdefs.h >>conftest.$ac_ext
 
32891
cat >>conftest.$ac_ext <<_ACEOF
 
32892
/* end confdefs.h.  */
 
32893
$ac_includes_default
 
32894
int
 
32895
main ()
 
32896
{
 
32897
if ((ssize_t *) 0)
 
32898
  return 0;
 
32899
if (sizeof (ssize_t))
 
32900
  return 0;
 
32901
  ;
 
32902
  return 0;
 
32903
}
 
32904
_ACEOF
 
32905
rm -f conftest.$ac_objext
 
32906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32907
  (eval $ac_compile) 2>conftest.er1
 
32908
  ac_status=$?
 
32909
  grep -v '^ *+' conftest.er1 >conftest.err
 
32910
  rm -f conftest.er1
 
32911
  cat conftest.err >&5
 
32912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32913
  (exit $ac_status); } &&
 
32914
         { ac_try='test -z "$ac_c_werror_flag"
 
32915
                         || test ! -s conftest.err'
 
32916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32917
  (eval $ac_try) 2>&5
 
32918
  ac_status=$?
 
32919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32920
  (exit $ac_status); }; } &&
 
32921
         { ac_try='test -s conftest.$ac_objext'
 
32922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32923
  (eval $ac_try) 2>&5
 
32924
  ac_status=$?
 
32925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32926
  (exit $ac_status); }; }; then
 
32927
  ac_cv_type_ssize_t=yes
 
32928
else
 
32929
  echo "$as_me: failed program was:" >&5
 
32930
sed 's/^/| /' conftest.$ac_ext >&5
 
32931
 
 
32932
ac_cv_type_ssize_t=no
 
32933
fi
 
32934
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32935
fi
 
32936
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
 
32937
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
 
32938
if test $ac_cv_type_ssize_t = yes; then
 
32939
  :
 
32940
else
 
32941
 
 
32942
cat >>confdefs.h <<_ACEOF
 
32943
#define ssize_t int
 
32944
_ACEOF
 
32945
 
 
32946
fi
 
32947
 
 
32948
echo "$as_me:$LINENO: checking for inline" >&5
 
32949
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
32950
if test "${ac_cv_c_inline+set}" = set; then
 
32951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32952
else
 
32953
  ac_cv_c_inline=no
 
32954
for ac_kw in inline __inline__ __inline; do
 
32955
  cat >conftest.$ac_ext <<_ACEOF
 
32956
/* confdefs.h.  */
 
32957
_ACEOF
 
32958
cat confdefs.h >>conftest.$ac_ext
 
32959
cat >>conftest.$ac_ext <<_ACEOF
 
32960
/* end confdefs.h.  */
 
32961
#ifndef __cplusplus
 
32962
typedef int foo_t;
 
32963
static $ac_kw foo_t static_foo () {return 0; }
 
32964
$ac_kw foo_t foo () {return 0; }
 
32965
#endif
 
32966
 
 
32967
_ACEOF
 
32968
rm -f conftest.$ac_objext
 
32969
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32970
  (eval $ac_compile) 2>conftest.er1
 
32971
  ac_status=$?
 
32972
  grep -v '^ *+' conftest.er1 >conftest.err
 
32973
  rm -f conftest.er1
 
32974
  cat conftest.err >&5
 
32975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32976
  (exit $ac_status); } &&
 
32977
         { ac_try='test -z "$ac_c_werror_flag"
 
32978
                         || test ! -s conftest.err'
 
32979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32980
  (eval $ac_try) 2>&5
 
32981
  ac_status=$?
 
32982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32983
  (exit $ac_status); }; } &&
 
32984
         { ac_try='test -s conftest.$ac_objext'
 
32985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32986
  (eval $ac_try) 2>&5
 
32987
  ac_status=$?
 
32988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32989
  (exit $ac_status); }; }; then
 
32990
  ac_cv_c_inline=$ac_kw; break
 
32991
else
 
32992
  echo "$as_me: failed program was:" >&5
 
32993
sed 's/^/| /' conftest.$ac_ext >&5
 
32994
 
 
32995
fi
 
32996
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32997
done
 
32998
 
 
32999
fi
 
33000
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
33001
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
33002
 
 
33003
 
 
33004
case $ac_cv_c_inline in
 
33005
  inline | yes) ;;
 
33006
  *)
 
33007
    case $ac_cv_c_inline in
 
33008
      no) ac_val=;;
 
33009
      *) ac_val=$ac_cv_c_inline;;
 
33010
    esac
 
33011
    cat >>confdefs.h <<_ACEOF
 
33012
#ifndef __cplusplus
 
33013
#define inline $ac_val
 
33014
#endif
 
33015
_ACEOF
 
33016
    ;;
 
33017
esac
 
33018
 
 
33019
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
33020
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
33021
if test "${ac_cv_c_const+set}" = set; then
 
33022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33023
else
 
33024
  cat >conftest.$ac_ext <<_ACEOF
 
33025
/* confdefs.h.  */
 
33026
_ACEOF
 
33027
cat confdefs.h >>conftest.$ac_ext
 
33028
cat >>conftest.$ac_ext <<_ACEOF
 
33029
/* end confdefs.h.  */
 
33030
 
 
33031
int
 
33032
main ()
 
33033
{
 
33034
/* FIXME: Include the comments suggested by Paul. */
 
33035
#ifndef __cplusplus
 
33036
  /* Ultrix mips cc rejects this.  */
 
33037
  typedef int charset[2];
 
33038
  const charset x;
 
33039
  /* SunOS 4.1.1 cc rejects this.  */
 
33040
  char const *const *ccp;
 
33041
  char **p;
 
33042
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
33043
  struct point {int x, y;};
 
33044
  static struct point const zero = {0,0};
 
33045
  /* AIX XL C 1.02.0.0 rejects this.
 
33046
     It does not let you subtract one const X* pointer from another in
 
33047
     an arm of an if-expression whose if-part is not a constant
 
33048
     expression */
 
33049
  const char *g = "string";
 
33050
  ccp = &g + (g ? g-g : 0);
 
33051
  /* HPUX 7.0 cc rejects these. */
 
33052
  ++ccp;
 
33053
  p = (char**) ccp;
 
33054
  ccp = (char const *const *) p;
 
33055
  { /* SCO 3.2v4 cc rejects this.  */
 
33056
    char *t;
 
33057
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
33058
 
 
33059
    *t++ = 0;
 
33060
  }
 
33061
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
33062
    int x[] = {25, 17};
 
33063
    const int *foo = &x[0];
 
33064
    ++foo;
 
33065
  }
 
33066
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
33067
    typedef const int *iptr;
 
33068
    iptr p = 0;
 
33069
    ++p;
 
33070
  }
 
33071
  { /* AIX XL C 1.02.0.0 rejects this saying
 
33072
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
33073
    struct s { int j; const int *ap[3]; };
 
33074
    struct s *b; b->j = 5;
 
33075
  }
 
33076
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
33077
    const int foo = 10;
 
33078
  }
 
33079
#endif
 
33080
 
 
33081
  ;
 
33082
  return 0;
 
33083
}
 
33084
_ACEOF
 
33085
rm -f conftest.$ac_objext
 
33086
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33087
  (eval $ac_compile) 2>conftest.er1
 
33088
  ac_status=$?
 
33089
  grep -v '^ *+' conftest.er1 >conftest.err
 
33090
  rm -f conftest.er1
 
33091
  cat conftest.err >&5
 
33092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33093
  (exit $ac_status); } &&
 
33094
         { ac_try='test -z "$ac_c_werror_flag"
 
33095
                         || test ! -s conftest.err'
 
33096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33097
  (eval $ac_try) 2>&5
 
33098
  ac_status=$?
 
33099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33100
  (exit $ac_status); }; } &&
 
33101
         { ac_try='test -s conftest.$ac_objext'
 
33102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33103
  (eval $ac_try) 2>&5
 
33104
  ac_status=$?
 
33105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33106
  (exit $ac_status); }; }; then
 
33107
  ac_cv_c_const=yes
 
33108
else
 
33109
  echo "$as_me: failed program was:" >&5
 
33110
sed 's/^/| /' conftest.$ac_ext >&5
 
33111
 
 
33112
ac_cv_c_const=no
 
33113
fi
 
33114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33115
fi
 
33116
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
33117
echo "${ECHO_T}$ac_cv_c_const" >&6
 
33118
if test $ac_cv_c_const = no; then
 
33119
 
 
33120
cat >>confdefs.h <<\_ACEOF
 
33121
#define const
 
33122
_ACEOF
 
33123
 
 
33124
fi
 
33125
 
 
33126
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
 
33127
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
 
33128
if test "${ac_cv_func_setpgrp_void+set}" = set; then
 
33129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33130
else
 
33131
  if test "$cross_compiling" = yes; then
 
33132
  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
 
33133
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
 
33134
   { (exit 1); exit 1; }; }
 
33135
else
 
33136
  cat >conftest.$ac_ext <<_ACEOF
 
33137
/* confdefs.h.  */
 
33138
_ACEOF
 
33139
cat confdefs.h >>conftest.$ac_ext
 
33140
cat >>conftest.$ac_ext <<_ACEOF
 
33141
/* end confdefs.h.  */
 
33142
#if HAVE_UNISTD_H
 
33143
# include <unistd.h>
 
33144
#endif
 
33145
 
 
33146
int
 
33147
main ()
 
33148
{
 
33149
/* If this system has a BSD-style setpgrp which takes arguments,
 
33150
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
 
33151
  exit successfully. */
 
33152
  exit (setpgrp (1,1) == -1 ? 0 : 1);
 
33153
  ;
 
33154
  return 0;
 
33155
}
 
33156
_ACEOF
 
33157
rm -f conftest$ac_exeext
 
33158
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33159
  (eval $ac_link) 2>&5
 
33160
  ac_status=$?
 
33161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33162
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
33163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33164
  (eval $ac_try) 2>&5
 
33165
  ac_status=$?
 
33166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33167
  (exit $ac_status); }; }; then
 
33168
  ac_cv_func_setpgrp_void=no
 
33169
else
 
33170
  echo "$as_me: program exited with status $ac_status" >&5
 
33171
echo "$as_me: failed program was:" >&5
 
33172
sed 's/^/| /' conftest.$ac_ext >&5
 
33173
 
 
33174
( exit $ac_status )
 
33175
ac_cv_func_setpgrp_void=yes
 
33176
fi
 
33177
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
33178
fi
 
33179
fi
 
33180
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
 
33181
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
 
33182
if test $ac_cv_func_setpgrp_void = yes; then
 
33183
 
 
33184
cat >>confdefs.h <<\_ACEOF
 
33185
#define SETPGRP_VOID 1
 
33186
_ACEOF
 
33187
 
 
33188
fi
 
33189
 
 
33190
 
 
33191
 
 
33192
echo "$as_me:$LINENO: checking for socklen_t" >&5
 
33193
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
33194
if test "${ac_cv_socklen_t+set}" = set; then
 
33195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33196
else
 
33197
 
 
33198
cat >conftest.$ac_ext <<_ACEOF
 
33199
/* confdefs.h.  */
 
33200
_ACEOF
 
33201
cat confdefs.h >>conftest.$ac_ext
 
33202
cat >>conftest.$ac_ext <<_ACEOF
 
33203
/* end confdefs.h.  */
 
33204
 
 
33205
#ifdef HAVE_SYS_TYPES_H
 
33206
#include <sys/types.h>
 
33207
#endif
 
33208
#ifdef HAVE_SYS_SOCKET_H
 
33209
#include <sys/socket.h>
 
33210
#endif
 
33211
 
 
33212
int
 
33213
main ()
 
33214
{
 
33215
 
 
33216
socklen_t foo = (socklen_t) 0;
 
33217
 
 
33218
  ;
 
33219
  return 0;
 
33220
}
 
33221
_ACEOF
 
33222
rm -f conftest.$ac_objext
 
33223
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33224
  (eval $ac_compile) 2>conftest.er1
 
33225
  ac_status=$?
 
33226
  grep -v '^ *+' conftest.er1 >conftest.err
 
33227
  rm -f conftest.er1
 
33228
  cat conftest.err >&5
 
33229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33230
  (exit $ac_status); } &&
 
33231
         { ac_try='test -z "$ac_c_werror_flag"
 
33232
                         || test ! -s conftest.err'
 
33233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33234
  (eval $ac_try) 2>&5
 
33235
  ac_status=$?
 
33236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33237
  (exit $ac_status); }; } &&
 
33238
         { ac_try='test -s conftest.$ac_objext'
 
33239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33240
  (eval $ac_try) 2>&5
 
33241
  ac_status=$?
 
33242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33243
  (exit $ac_status); }; }; then
 
33244
 
 
33245
    ac_cv_socklen_t=yes
 
33246
 
 
33247
else
 
33248
  echo "$as_me: failed program was:" >&5
 
33249
sed 's/^/| /' conftest.$ac_ext >&5
 
33250
 
 
33251
 
 
33252
    ac_cv_socklen_t=no
 
33253
 
 
33254
fi
 
33255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33256
 
 
33257
fi
 
33258
echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
 
33259
echo "${ECHO_T}$ac_cv_socklen_t" >&6
 
33260
 
 
33261
if test "$ac_cv_socklen_t" = "yes"; then
 
33262
 
 
33263
cat >>confdefs.h <<\_ACEOF
 
33264
#define HAVE_SOCKLEN_T 1
 
33265
_ACEOF
 
33266
 
 
33267
fi
 
33268
 
 
33269
 
 
33270
echo "$as_me:$LINENO: checking for void*" >&5
 
33271
echo $ECHO_N "checking for void*... $ECHO_C" >&6
 
33272
if test "${ac_cv_type_voidp+set}" = set; then
 
33273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33274
else
 
33275
  cat >conftest.$ac_ext <<_ACEOF
 
33276
/* confdefs.h.  */
 
33277
_ACEOF
 
33278
cat confdefs.h >>conftest.$ac_ext
 
33279
cat >>conftest.$ac_ext <<_ACEOF
 
33280
/* end confdefs.h.  */
 
33281
$ac_includes_default
 
33282
int
 
33283
main ()
 
33284
{
 
33285
if ((void* *) 0)
 
33286
  return 0;
 
33287
if (sizeof (void*))
 
33288
  return 0;
 
33289
  ;
 
33290
  return 0;
 
33291
}
 
33292
_ACEOF
 
33293
rm -f conftest.$ac_objext
 
33294
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33295
  (eval $ac_compile) 2>conftest.er1
 
33296
  ac_status=$?
 
33297
  grep -v '^ *+' conftest.er1 >conftest.err
 
33298
  rm -f conftest.er1
 
33299
  cat conftest.err >&5
 
33300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33301
  (exit $ac_status); } &&
 
33302
         { ac_try='test -z "$ac_c_werror_flag"
 
33303
                         || test ! -s conftest.err'
 
33304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33305
  (eval $ac_try) 2>&5
 
33306
  ac_status=$?
 
33307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33308
  (exit $ac_status); }; } &&
 
33309
         { ac_try='test -s conftest.$ac_objext'
 
33310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33311
  (eval $ac_try) 2>&5
 
33312
  ac_status=$?
 
33313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33314
  (exit $ac_status); }; }; then
 
33315
  ac_cv_type_voidp=yes
 
33316
else
 
33317
  echo "$as_me: failed program was:" >&5
 
33318
sed 's/^/| /' conftest.$ac_ext >&5
 
33319
 
 
33320
ac_cv_type_voidp=no
 
33321
fi
 
33322
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33323
fi
 
33324
echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
 
33325
echo "${ECHO_T}$ac_cv_type_voidp" >&6
 
33326
 
 
33327
echo "$as_me:$LINENO: checking size of void*" >&5
 
33328
echo $ECHO_N "checking size of void*... $ECHO_C" >&6
 
33329
if test "${ac_cv_sizeof_voidp+set}" = set; then
 
33330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33331
else
 
33332
  if test "$ac_cv_type_voidp" = yes; then
 
33333
  # The cast to unsigned long works around a bug in the HP C Compiler
 
33334
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
33335
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
33336
  # This bug is HP SR number 8606223364.
 
33337
  if test "$cross_compiling" = yes; then
 
33338
  # Depending upon the size, compute the lo and hi bounds.
 
33339
cat >conftest.$ac_ext <<_ACEOF
 
33340
/* confdefs.h.  */
 
33341
_ACEOF
 
33342
cat confdefs.h >>conftest.$ac_ext
 
33343
cat >>conftest.$ac_ext <<_ACEOF
 
33344
/* end confdefs.h.  */
 
33345
$ac_includes_default
 
33346
int
 
33347
main ()
 
33348
{
 
33349
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
 
33350
test_array [0] = 0
 
33351
 
 
33352
  ;
 
33353
  return 0;
 
33354
}
 
33355
_ACEOF
 
33356
rm -f conftest.$ac_objext
 
33357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33358
  (eval $ac_compile) 2>conftest.er1
 
33359
  ac_status=$?
 
33360
  grep -v '^ *+' conftest.er1 >conftest.err
 
33361
  rm -f conftest.er1
 
33362
  cat conftest.err >&5
 
33363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33364
  (exit $ac_status); } &&
 
33365
         { ac_try='test -z "$ac_c_werror_flag"
 
33366
                         || test ! -s conftest.err'
 
33367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33368
  (eval $ac_try) 2>&5
 
33369
  ac_status=$?
 
33370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33371
  (exit $ac_status); }; } &&
 
33372
         { ac_try='test -s conftest.$ac_objext'
 
33373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33374
  (eval $ac_try) 2>&5
 
33375
  ac_status=$?
 
33376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33377
  (exit $ac_status); }; }; then
 
33378
  ac_lo=0 ac_mid=0
 
33379
  while :; do
 
33380
    cat >conftest.$ac_ext <<_ACEOF
 
33381
/* confdefs.h.  */
 
33382
_ACEOF
 
33383
cat confdefs.h >>conftest.$ac_ext
 
33384
cat >>conftest.$ac_ext <<_ACEOF
 
33385
/* end confdefs.h.  */
 
33386
$ac_includes_default
 
33387
int
 
33388
main ()
 
33389
{
 
33390
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
 
33391
test_array [0] = 0
 
33392
 
 
33393
  ;
 
33394
  return 0;
 
33395
}
 
33396
_ACEOF
 
33397
rm -f conftest.$ac_objext
 
33398
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33399
  (eval $ac_compile) 2>conftest.er1
 
33400
  ac_status=$?
 
33401
  grep -v '^ *+' conftest.er1 >conftest.err
 
33402
  rm -f conftest.er1
 
33403
  cat conftest.err >&5
 
33404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33405
  (exit $ac_status); } &&
 
33406
         { ac_try='test -z "$ac_c_werror_flag"
 
33407
                         || test ! -s conftest.err'
 
33408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33409
  (eval $ac_try) 2>&5
 
33410
  ac_status=$?
 
33411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33412
  (exit $ac_status); }; } &&
 
33413
         { ac_try='test -s conftest.$ac_objext'
 
33414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33415
  (eval $ac_try) 2>&5
 
33416
  ac_status=$?
 
33417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33418
  (exit $ac_status); }; }; then
 
33419
  ac_hi=$ac_mid; break
 
33420
else
 
33421
  echo "$as_me: failed program was:" >&5
 
33422
sed 's/^/| /' conftest.$ac_ext >&5
 
33423
 
 
33424
ac_lo=`expr $ac_mid + 1`
 
33425
                    if test $ac_lo -le $ac_mid; then
 
33426
                      ac_lo= ac_hi=
 
33427
                      break
 
33428
                    fi
 
33429
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
33430
fi
 
33431
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33432
  done
 
33433
else
 
33434
  echo "$as_me: failed program was:" >&5
 
33435
sed 's/^/| /' conftest.$ac_ext >&5
 
33436
 
 
33437
cat >conftest.$ac_ext <<_ACEOF
 
33438
/* confdefs.h.  */
 
33439
_ACEOF
 
33440
cat confdefs.h >>conftest.$ac_ext
 
33441
cat >>conftest.$ac_ext <<_ACEOF
 
33442
/* end confdefs.h.  */
 
33443
$ac_includes_default
 
33444
int
 
33445
main ()
 
33446
{
 
33447
static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
 
33448
test_array [0] = 0
 
33449
 
 
33450
  ;
 
33451
  return 0;
 
33452
}
 
33453
_ACEOF
 
33454
rm -f conftest.$ac_objext
 
33455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33456
  (eval $ac_compile) 2>conftest.er1
 
33457
  ac_status=$?
 
33458
  grep -v '^ *+' conftest.er1 >conftest.err
 
33459
  rm -f conftest.er1
 
33460
  cat conftest.err >&5
 
33461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33462
  (exit $ac_status); } &&
 
33463
         { ac_try='test -z "$ac_c_werror_flag"
 
33464
                         || test ! -s conftest.err'
 
33465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33466
  (eval $ac_try) 2>&5
 
33467
  ac_status=$?
 
33468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33469
  (exit $ac_status); }; } &&
 
33470
         { ac_try='test -s conftest.$ac_objext'
 
33471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33472
  (eval $ac_try) 2>&5
 
33473
  ac_status=$?
 
33474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33475
  (exit $ac_status); }; }; then
 
33476
  ac_hi=-1 ac_mid=-1
 
33477
  while :; do
 
33478
    cat >conftest.$ac_ext <<_ACEOF
 
33479
/* confdefs.h.  */
 
33480
_ACEOF
 
33481
cat confdefs.h >>conftest.$ac_ext
 
33482
cat >>conftest.$ac_ext <<_ACEOF
 
33483
/* end confdefs.h.  */
 
33484
$ac_includes_default
 
33485
int
 
33486
main ()
 
33487
{
 
33488
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
 
33489
test_array [0] = 0
 
33490
 
 
33491
  ;
 
33492
  return 0;
 
33493
}
 
33494
_ACEOF
 
33495
rm -f conftest.$ac_objext
 
33496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33497
  (eval $ac_compile) 2>conftest.er1
 
33498
  ac_status=$?
 
33499
  grep -v '^ *+' conftest.er1 >conftest.err
 
33500
  rm -f conftest.er1
 
33501
  cat conftest.err >&5
 
33502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33503
  (exit $ac_status); } &&
 
33504
         { ac_try='test -z "$ac_c_werror_flag"
 
33505
                         || test ! -s conftest.err'
 
33506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33507
  (eval $ac_try) 2>&5
 
33508
  ac_status=$?
 
33509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33510
  (exit $ac_status); }; } &&
 
33511
         { ac_try='test -s conftest.$ac_objext'
 
33512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33513
  (eval $ac_try) 2>&5
 
33514
  ac_status=$?
 
33515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33516
  (exit $ac_status); }; }; then
 
33517
  ac_lo=$ac_mid; break
 
33518
else
 
33519
  echo "$as_me: failed program was:" >&5
 
33520
sed 's/^/| /' conftest.$ac_ext >&5
 
33521
 
 
33522
ac_hi=`expr '(' $ac_mid ')' - 1`
 
33523
                       if test $ac_mid -le $ac_hi; then
 
33524
                         ac_lo= ac_hi=
 
33525
                         break
 
33526
                       fi
 
33527
                       ac_mid=`expr 2 '*' $ac_mid`
 
33528
fi
 
33529
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33530
  done
 
33531
else
 
33532
  echo "$as_me: failed program was:" >&5
 
33533
sed 's/^/| /' conftest.$ac_ext >&5
 
33534
 
 
33535
ac_lo= ac_hi=
 
33536
fi
 
33537
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33538
fi
 
33539
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33540
# Binary search between lo and hi bounds.
 
33541
while test "x$ac_lo" != "x$ac_hi"; do
 
33542
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
33543
  cat >conftest.$ac_ext <<_ACEOF
 
33544
/* confdefs.h.  */
 
33545
_ACEOF
 
33546
cat confdefs.h >>conftest.$ac_ext
 
33547
cat >>conftest.$ac_ext <<_ACEOF
 
33548
/* end confdefs.h.  */
 
33549
$ac_includes_default
 
33550
int
 
33551
main ()
 
33552
{
 
33553
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
 
33554
test_array [0] = 0
 
33555
 
 
33556
  ;
 
33557
  return 0;
 
33558
}
 
33559
_ACEOF
 
33560
rm -f conftest.$ac_objext
 
33561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33562
  (eval $ac_compile) 2>conftest.er1
 
33563
  ac_status=$?
 
33564
  grep -v '^ *+' conftest.er1 >conftest.err
 
33565
  rm -f conftest.er1
 
33566
  cat conftest.err >&5
 
33567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33568
  (exit $ac_status); } &&
 
33569
         { ac_try='test -z "$ac_c_werror_flag"
 
33570
                         || test ! -s conftest.err'
 
33571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33572
  (eval $ac_try) 2>&5
 
33573
  ac_status=$?
 
33574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33575
  (exit $ac_status); }; } &&
 
33576
         { ac_try='test -s conftest.$ac_objext'
 
33577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33578
  (eval $ac_try) 2>&5
 
33579
  ac_status=$?
 
33580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33581
  (exit $ac_status); }; }; then
 
33582
  ac_hi=$ac_mid
 
33583
else
 
33584
  echo "$as_me: failed program was:" >&5
 
33585
sed 's/^/| /' conftest.$ac_ext >&5
 
33586
 
 
33587
ac_lo=`expr '(' $ac_mid ')' + 1`
 
33588
fi
 
33589
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33590
done
 
33591
case $ac_lo in
 
33592
?*) ac_cv_sizeof_voidp=$ac_lo;;
 
33593
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
 
33594
See \`config.log' for more details." >&5
 
33595
echo "$as_me: error: cannot compute sizeof (void*), 77
 
33596
See \`config.log' for more details." >&2;}
 
33597
   { (exit 1); exit 1; }; } ;;
 
33598
esac
 
33599
else
 
33600
  if test "$cross_compiling" = yes; then
 
33601
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
33602
See \`config.log' for more details." >&5
 
33603
echo "$as_me: error: cannot run test program while cross compiling
 
33604
See \`config.log' for more details." >&2;}
 
33605
   { (exit 1); exit 1; }; }
 
33606
else
 
33607
  cat >conftest.$ac_ext <<_ACEOF
 
33608
/* confdefs.h.  */
 
33609
_ACEOF
 
33610
cat confdefs.h >>conftest.$ac_ext
 
33611
cat >>conftest.$ac_ext <<_ACEOF
 
33612
/* end confdefs.h.  */
 
33613
$ac_includes_default
 
33614
long longval () { return (long) (sizeof (void*)); }
 
33615
unsigned long ulongval () { return (long) (sizeof (void*)); }
 
33616
#include <stdio.h>
 
33617
#include <stdlib.h>
 
33618
int
 
33619
main ()
 
33620
{
 
33621
 
 
33622
  FILE *f = fopen ("conftest.val", "w");
 
33623
  if (! f)
 
33624
    exit (1);
 
33625
  if (((long) (sizeof (void*))) < 0)
 
33626
    {
 
33627
      long i = longval ();
 
33628
      if (i != ((long) (sizeof (void*))))
 
33629
        exit (1);
 
33630
      fprintf (f, "%ld\n", i);
 
33631
    }
 
33632
  else
 
33633
    {
 
33634
      unsigned long i = ulongval ();
 
33635
      if (i != ((long) (sizeof (void*))))
 
33636
        exit (1);
 
33637
      fprintf (f, "%lu\n", i);
 
33638
    }
 
33639
  exit (ferror (f) || fclose (f) != 0);
 
33640
 
 
33641
  ;
 
33642
  return 0;
 
33643
}
 
33644
_ACEOF
 
33645
rm -f conftest$ac_exeext
 
33646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33647
  (eval $ac_link) 2>&5
 
33648
  ac_status=$?
 
33649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33650
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
33651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33652
  (eval $ac_try) 2>&5
 
33653
  ac_status=$?
 
33654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33655
  (exit $ac_status); }; }; then
 
33656
  ac_cv_sizeof_voidp=`cat conftest.val`
 
33657
else
 
33658
  echo "$as_me: program exited with status $ac_status" >&5
 
33659
echo "$as_me: failed program was:" >&5
 
33660
sed 's/^/| /' conftest.$ac_ext >&5
 
33661
 
 
33662
( exit $ac_status )
 
33663
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
 
33664
See \`config.log' for more details." >&5
 
33665
echo "$as_me: error: cannot compute sizeof (void*), 77
 
33666
See \`config.log' for more details." >&2;}
 
33667
   { (exit 1); exit 1; }; }
 
33668
fi
 
33669
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
33670
fi
 
33671
fi
 
33672
rm -f conftest.val
 
33673
else
 
33674
  ac_cv_sizeof_voidp=0
 
33675
fi
 
33676
fi
 
33677
echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
 
33678
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
 
33679
cat >>confdefs.h <<_ACEOF
 
33680
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
 
33681
_ACEOF
 
33682
 
 
33683
 
 
33684
 
 
33685
if test "x$ac_cv_sizeof_voidp" != "x"; then
 
33686
    voidp_size=$ac_cv_sizeof_voidp
 
33687
else
 
33688
    { { echo "$as_me:$LINENO: error: Cannot determine size of void*" >&5
 
33689
echo "$as_me: error: Cannot determine size of void*" >&2;}
 
33690
   { (exit 1); exit 1; }; }
 
33691
fi
 
33692
 
 
33693
echo "$as_me:$LINENO: checking for char" >&5
 
33694
echo $ECHO_N "checking for char... $ECHO_C" >&6
 
33695
if test "${ac_cv_type_char+set}" = set; then
 
33696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33697
else
 
33698
  cat >conftest.$ac_ext <<_ACEOF
 
33699
/* confdefs.h.  */
 
33700
_ACEOF
 
33701
cat confdefs.h >>conftest.$ac_ext
 
33702
cat >>conftest.$ac_ext <<_ACEOF
 
33703
/* end confdefs.h.  */
 
33704
$ac_includes_default
 
33705
int
 
33706
main ()
 
33707
{
 
33708
if ((char *) 0)
 
33709
  return 0;
 
33710
if (sizeof (char))
 
33711
  return 0;
 
33712
  ;
 
33713
  return 0;
 
33714
}
 
33715
_ACEOF
 
33716
rm -f conftest.$ac_objext
 
33717
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33718
  (eval $ac_compile) 2>conftest.er1
 
33719
  ac_status=$?
 
33720
  grep -v '^ *+' conftest.er1 >conftest.err
 
33721
  rm -f conftest.er1
 
33722
  cat conftest.err >&5
 
33723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33724
  (exit $ac_status); } &&
 
33725
         { ac_try='test -z "$ac_c_werror_flag"
 
33726
                         || test ! -s conftest.err'
 
33727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33728
  (eval $ac_try) 2>&5
 
33729
  ac_status=$?
 
33730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33731
  (exit $ac_status); }; } &&
 
33732
         { ac_try='test -s conftest.$ac_objext'
 
33733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33734
  (eval $ac_try) 2>&5
 
33735
  ac_status=$?
 
33736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33737
  (exit $ac_status); }; }; then
 
33738
  ac_cv_type_char=yes
 
33739
else
 
33740
  echo "$as_me: failed program was:" >&5
 
33741
sed 's/^/| /' conftest.$ac_ext >&5
 
33742
 
 
33743
ac_cv_type_char=no
 
33744
fi
 
33745
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33746
fi
 
33747
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
 
33748
echo "${ECHO_T}$ac_cv_type_char" >&6
 
33749
 
 
33750
echo "$as_me:$LINENO: checking size of char" >&5
 
33751
echo $ECHO_N "checking size of char... $ECHO_C" >&6
 
33752
if test "${ac_cv_sizeof_char+set}" = set; then
 
33753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33754
else
 
33755
  if test "$ac_cv_type_char" = yes; then
 
33756
  # The cast to unsigned long works around a bug in the HP C Compiler
 
33757
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
33758
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
33759
  # This bug is HP SR number 8606223364.
 
33760
  if test "$cross_compiling" = yes; then
 
33761
  # Depending upon the size, compute the lo and hi bounds.
 
33762
cat >conftest.$ac_ext <<_ACEOF
 
33763
/* confdefs.h.  */
 
33764
_ACEOF
 
33765
cat confdefs.h >>conftest.$ac_ext
 
33766
cat >>conftest.$ac_ext <<_ACEOF
 
33767
/* end confdefs.h.  */
 
33768
$ac_includes_default
 
33769
int
 
33770
main ()
 
33771
{
 
33772
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
 
33773
test_array [0] = 0
 
33774
 
 
33775
  ;
 
33776
  return 0;
 
33777
}
 
33778
_ACEOF
 
33779
rm -f conftest.$ac_objext
 
33780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33781
  (eval $ac_compile) 2>conftest.er1
 
33782
  ac_status=$?
 
33783
  grep -v '^ *+' conftest.er1 >conftest.err
 
33784
  rm -f conftest.er1
 
33785
  cat conftest.err >&5
 
33786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33787
  (exit $ac_status); } &&
 
33788
         { ac_try='test -z "$ac_c_werror_flag"
 
33789
                         || test ! -s conftest.err'
 
33790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33791
  (eval $ac_try) 2>&5
 
33792
  ac_status=$?
 
33793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33794
  (exit $ac_status); }; } &&
 
33795
         { ac_try='test -s conftest.$ac_objext'
 
33796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33797
  (eval $ac_try) 2>&5
 
33798
  ac_status=$?
 
33799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33800
  (exit $ac_status); }; }; then
 
33801
  ac_lo=0 ac_mid=0
 
33802
  while :; do
 
33803
    cat >conftest.$ac_ext <<_ACEOF
 
33804
/* confdefs.h.  */
 
33805
_ACEOF
 
33806
cat confdefs.h >>conftest.$ac_ext
 
33807
cat >>conftest.$ac_ext <<_ACEOF
 
33808
/* end confdefs.h.  */
 
33809
$ac_includes_default
 
33810
int
 
33811
main ()
 
33812
{
 
33813
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
33814
test_array [0] = 0
 
33815
 
 
33816
  ;
 
33817
  return 0;
 
33818
}
 
33819
_ACEOF
 
33820
rm -f conftest.$ac_objext
 
33821
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33822
  (eval $ac_compile) 2>conftest.er1
 
33823
  ac_status=$?
 
33824
  grep -v '^ *+' conftest.er1 >conftest.err
 
33825
  rm -f conftest.er1
 
33826
  cat conftest.err >&5
 
33827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33828
  (exit $ac_status); } &&
 
33829
         { ac_try='test -z "$ac_c_werror_flag"
 
33830
                         || test ! -s conftest.err'
 
33831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33832
  (eval $ac_try) 2>&5
 
33833
  ac_status=$?
 
33834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33835
  (exit $ac_status); }; } &&
 
33836
         { ac_try='test -s conftest.$ac_objext'
 
33837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33838
  (eval $ac_try) 2>&5
 
33839
  ac_status=$?
 
33840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33841
  (exit $ac_status); }; }; then
 
33842
  ac_hi=$ac_mid; break
 
33843
else
 
33844
  echo "$as_me: failed program was:" >&5
 
33845
sed 's/^/| /' conftest.$ac_ext >&5
 
33846
 
 
33847
ac_lo=`expr $ac_mid + 1`
 
33848
                    if test $ac_lo -le $ac_mid; then
 
33849
                      ac_lo= ac_hi=
 
33850
                      break
 
33851
                    fi
 
33852
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
33853
fi
 
33854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33855
  done
 
33856
else
 
33857
  echo "$as_me: failed program was:" >&5
 
33858
sed 's/^/| /' conftest.$ac_ext >&5
 
33859
 
 
33860
cat >conftest.$ac_ext <<_ACEOF
 
33861
/* confdefs.h.  */
 
33862
_ACEOF
 
33863
cat confdefs.h >>conftest.$ac_ext
 
33864
cat >>conftest.$ac_ext <<_ACEOF
 
33865
/* end confdefs.h.  */
 
33866
$ac_includes_default
 
33867
int
 
33868
main ()
 
33869
{
 
33870
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
 
33871
test_array [0] = 0
 
33872
 
 
33873
  ;
 
33874
  return 0;
 
33875
}
 
33876
_ACEOF
 
33877
rm -f conftest.$ac_objext
 
33878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33879
  (eval $ac_compile) 2>conftest.er1
 
33880
  ac_status=$?
 
33881
  grep -v '^ *+' conftest.er1 >conftest.err
 
33882
  rm -f conftest.er1
 
33883
  cat conftest.err >&5
 
33884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33885
  (exit $ac_status); } &&
 
33886
         { ac_try='test -z "$ac_c_werror_flag"
 
33887
                         || test ! -s conftest.err'
 
33888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33889
  (eval $ac_try) 2>&5
 
33890
  ac_status=$?
 
33891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33892
  (exit $ac_status); }; } &&
 
33893
         { ac_try='test -s conftest.$ac_objext'
 
33894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33895
  (eval $ac_try) 2>&5
 
33896
  ac_status=$?
 
33897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33898
  (exit $ac_status); }; }; then
 
33899
  ac_hi=-1 ac_mid=-1
 
33900
  while :; do
 
33901
    cat >conftest.$ac_ext <<_ACEOF
 
33902
/* confdefs.h.  */
 
33903
_ACEOF
 
33904
cat confdefs.h >>conftest.$ac_ext
 
33905
cat >>conftest.$ac_ext <<_ACEOF
 
33906
/* end confdefs.h.  */
 
33907
$ac_includes_default
 
33908
int
 
33909
main ()
 
33910
{
 
33911
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
 
33912
test_array [0] = 0
 
33913
 
 
33914
  ;
 
33915
  return 0;
 
33916
}
 
33917
_ACEOF
 
33918
rm -f conftest.$ac_objext
 
33919
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33920
  (eval $ac_compile) 2>conftest.er1
 
33921
  ac_status=$?
 
33922
  grep -v '^ *+' conftest.er1 >conftest.err
 
33923
  rm -f conftest.er1
 
33924
  cat conftest.err >&5
 
33925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33926
  (exit $ac_status); } &&
 
33927
         { ac_try='test -z "$ac_c_werror_flag"
 
33928
                         || test ! -s conftest.err'
 
33929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33930
  (eval $ac_try) 2>&5
 
33931
  ac_status=$?
 
33932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33933
  (exit $ac_status); }; } &&
 
33934
         { ac_try='test -s conftest.$ac_objext'
 
33935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33936
  (eval $ac_try) 2>&5
 
33937
  ac_status=$?
 
33938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33939
  (exit $ac_status); }; }; then
 
33940
  ac_lo=$ac_mid; break
 
33941
else
 
33942
  echo "$as_me: failed program was:" >&5
 
33943
sed 's/^/| /' conftest.$ac_ext >&5
 
33944
 
 
33945
ac_hi=`expr '(' $ac_mid ')' - 1`
 
33946
                       if test $ac_mid -le $ac_hi; then
 
33947
                         ac_lo= ac_hi=
 
33948
                         break
 
33949
                       fi
 
33950
                       ac_mid=`expr 2 '*' $ac_mid`
 
33951
fi
 
33952
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33953
  done
 
33954
else
 
33955
  echo "$as_me: failed program was:" >&5
 
33956
sed 's/^/| /' conftest.$ac_ext >&5
 
33957
 
 
33958
ac_lo= ac_hi=
 
33959
fi
 
33960
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33961
fi
 
33962
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33963
# Binary search between lo and hi bounds.
 
33964
while test "x$ac_lo" != "x$ac_hi"; do
 
33965
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
33966
  cat >conftest.$ac_ext <<_ACEOF
 
33967
/* confdefs.h.  */
 
33968
_ACEOF
 
33969
cat confdefs.h >>conftest.$ac_ext
 
33970
cat >>conftest.$ac_ext <<_ACEOF
 
33971
/* end confdefs.h.  */
 
33972
$ac_includes_default
 
33973
int
 
33974
main ()
 
33975
{
 
33976
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
33977
test_array [0] = 0
 
33978
 
 
33979
  ;
 
33980
  return 0;
 
33981
}
 
33982
_ACEOF
 
33983
rm -f conftest.$ac_objext
 
33984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33985
  (eval $ac_compile) 2>conftest.er1
 
33986
  ac_status=$?
 
33987
  grep -v '^ *+' conftest.er1 >conftest.err
 
33988
  rm -f conftest.er1
 
33989
  cat conftest.err >&5
 
33990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33991
  (exit $ac_status); } &&
 
33992
         { ac_try='test -z "$ac_c_werror_flag"
 
33993
                         || test ! -s conftest.err'
 
33994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33995
  (eval $ac_try) 2>&5
 
33996
  ac_status=$?
 
33997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33998
  (exit $ac_status); }; } &&
 
33999
         { ac_try='test -s conftest.$ac_objext'
 
34000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34001
  (eval $ac_try) 2>&5
 
34002
  ac_status=$?
 
34003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34004
  (exit $ac_status); }; }; then
 
34005
  ac_hi=$ac_mid
 
34006
else
 
34007
  echo "$as_me: failed program was:" >&5
 
34008
sed 's/^/| /' conftest.$ac_ext >&5
 
34009
 
 
34010
ac_lo=`expr '(' $ac_mid ')' + 1`
 
34011
fi
 
34012
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34013
done
 
34014
case $ac_lo in
 
34015
?*) ac_cv_sizeof_char=$ac_lo;;
 
34016
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
34017
See \`config.log' for more details." >&5
 
34018
echo "$as_me: error: cannot compute sizeof (char), 77
 
34019
See \`config.log' for more details." >&2;}
 
34020
   { (exit 1); exit 1; }; } ;;
 
34021
esac
 
34022
else
 
34023
  if test "$cross_compiling" = yes; then
 
34024
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
34025
See \`config.log' for more details." >&5
 
34026
echo "$as_me: error: cannot run test program while cross compiling
 
34027
See \`config.log' for more details." >&2;}
 
34028
   { (exit 1); exit 1; }; }
 
34029
else
 
34030
  cat >conftest.$ac_ext <<_ACEOF
 
34031
/* confdefs.h.  */
 
34032
_ACEOF
 
34033
cat confdefs.h >>conftest.$ac_ext
 
34034
cat >>conftest.$ac_ext <<_ACEOF
 
34035
/* end confdefs.h.  */
 
34036
$ac_includes_default
 
34037
long longval () { return (long) (sizeof (char)); }
 
34038
unsigned long ulongval () { return (long) (sizeof (char)); }
 
34039
#include <stdio.h>
 
34040
#include <stdlib.h>
 
34041
int
 
34042
main ()
 
34043
{
 
34044
 
 
34045
  FILE *f = fopen ("conftest.val", "w");
 
34046
  if (! f)
 
34047
    exit (1);
 
34048
  if (((long) (sizeof (char))) < 0)
 
34049
    {
 
34050
      long i = longval ();
 
34051
      if (i != ((long) (sizeof (char))))
 
34052
        exit (1);
 
34053
      fprintf (f, "%ld\n", i);
 
34054
    }
 
34055
  else
 
34056
    {
 
34057
      unsigned long i = ulongval ();
 
34058
      if (i != ((long) (sizeof (char))))
 
34059
        exit (1);
 
34060
      fprintf (f, "%lu\n", i);
 
34061
    }
 
34062
  exit (ferror (f) || fclose (f) != 0);
 
34063
 
 
34064
  ;
 
34065
  return 0;
 
34066
}
 
34067
_ACEOF
 
34068
rm -f conftest$ac_exeext
 
34069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34070
  (eval $ac_link) 2>&5
 
34071
  ac_status=$?
 
34072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34073
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
34074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34075
  (eval $ac_try) 2>&5
 
34076
  ac_status=$?
 
34077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34078
  (exit $ac_status); }; }; then
 
34079
  ac_cv_sizeof_char=`cat conftest.val`
 
34080
else
 
34081
  echo "$as_me: program exited with status $ac_status" >&5
 
34082
echo "$as_me: failed program was:" >&5
 
34083
sed 's/^/| /' conftest.$ac_ext >&5
 
34084
 
 
34085
( exit $ac_status )
 
34086
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
34087
See \`config.log' for more details." >&5
 
34088
echo "$as_me: error: cannot compute sizeof (char), 77
 
34089
See \`config.log' for more details." >&2;}
 
34090
   { (exit 1); exit 1; }; }
 
34091
fi
 
34092
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
34093
fi
 
34094
fi
 
34095
rm -f conftest.val
 
34096
else
 
34097
  ac_cv_sizeof_char=0
 
34098
fi
 
34099
fi
 
34100
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
34101
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
 
34102
cat >>confdefs.h <<_ACEOF
 
34103
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
34104
_ACEOF
 
34105
 
 
34106
 
 
34107
echo "$as_me:$LINENO: checking for int" >&5
 
34108
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
34109
if test "${ac_cv_type_int+set}" = set; then
 
34110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34111
else
 
34112
  cat >conftest.$ac_ext <<_ACEOF
 
34113
/* confdefs.h.  */
 
34114
_ACEOF
 
34115
cat confdefs.h >>conftest.$ac_ext
 
34116
cat >>conftest.$ac_ext <<_ACEOF
 
34117
/* end confdefs.h.  */
 
34118
$ac_includes_default
 
34119
int
 
34120
main ()
 
34121
{
 
34122
if ((int *) 0)
 
34123
  return 0;
 
34124
if (sizeof (int))
 
34125
  return 0;
 
34126
  ;
 
34127
  return 0;
 
34128
}
 
34129
_ACEOF
 
34130
rm -f conftest.$ac_objext
 
34131
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34132
  (eval $ac_compile) 2>conftest.er1
 
34133
  ac_status=$?
 
34134
  grep -v '^ *+' conftest.er1 >conftest.err
 
34135
  rm -f conftest.er1
 
34136
  cat conftest.err >&5
 
34137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34138
  (exit $ac_status); } &&
 
34139
         { ac_try='test -z "$ac_c_werror_flag"
 
34140
                         || test ! -s conftest.err'
 
34141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34142
  (eval $ac_try) 2>&5
 
34143
  ac_status=$?
 
34144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34145
  (exit $ac_status); }; } &&
 
34146
         { ac_try='test -s conftest.$ac_objext'
 
34147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34148
  (eval $ac_try) 2>&5
 
34149
  ac_status=$?
 
34150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34151
  (exit $ac_status); }; }; then
 
34152
  ac_cv_type_int=yes
 
34153
else
 
34154
  echo "$as_me: failed program was:" >&5
 
34155
sed 's/^/| /' conftest.$ac_ext >&5
 
34156
 
 
34157
ac_cv_type_int=no
 
34158
fi
 
34159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34160
fi
 
34161
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
34162
echo "${ECHO_T}$ac_cv_type_int" >&6
 
34163
 
 
34164
echo "$as_me:$LINENO: checking size of int" >&5
 
34165
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
34166
if test "${ac_cv_sizeof_int+set}" = set; then
 
34167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34168
else
 
34169
  if test "$ac_cv_type_int" = yes; then
 
34170
  # The cast to unsigned long works around a bug in the HP C Compiler
 
34171
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
34172
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
34173
  # This bug is HP SR number 8606223364.
 
34174
  if test "$cross_compiling" = yes; then
 
34175
  # Depending upon the size, compute the lo and hi bounds.
 
34176
cat >conftest.$ac_ext <<_ACEOF
 
34177
/* confdefs.h.  */
 
34178
_ACEOF
 
34179
cat confdefs.h >>conftest.$ac_ext
 
34180
cat >>conftest.$ac_ext <<_ACEOF
 
34181
/* end confdefs.h.  */
 
34182
$ac_includes_default
 
34183
int
 
34184
main ()
 
34185
{
 
34186
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
34187
test_array [0] = 0
 
34188
 
 
34189
  ;
 
34190
  return 0;
 
34191
}
 
34192
_ACEOF
 
34193
rm -f conftest.$ac_objext
 
34194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34195
  (eval $ac_compile) 2>conftest.er1
 
34196
  ac_status=$?
 
34197
  grep -v '^ *+' conftest.er1 >conftest.err
 
34198
  rm -f conftest.er1
 
34199
  cat conftest.err >&5
 
34200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34201
  (exit $ac_status); } &&
 
34202
         { ac_try='test -z "$ac_c_werror_flag"
 
34203
                         || test ! -s conftest.err'
 
34204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34205
  (eval $ac_try) 2>&5
 
34206
  ac_status=$?
 
34207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34208
  (exit $ac_status); }; } &&
 
34209
         { ac_try='test -s conftest.$ac_objext'
 
34210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34211
  (eval $ac_try) 2>&5
 
34212
  ac_status=$?
 
34213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34214
  (exit $ac_status); }; }; then
 
34215
  ac_lo=0 ac_mid=0
 
34216
  while :; do
 
34217
    cat >conftest.$ac_ext <<_ACEOF
 
34218
/* confdefs.h.  */
 
34219
_ACEOF
 
34220
cat confdefs.h >>conftest.$ac_ext
 
34221
cat >>conftest.$ac_ext <<_ACEOF
 
34222
/* end confdefs.h.  */
 
34223
$ac_includes_default
 
34224
int
 
34225
main ()
 
34226
{
 
34227
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
34228
test_array [0] = 0
 
34229
 
 
34230
  ;
 
34231
  return 0;
 
34232
}
 
34233
_ACEOF
 
34234
rm -f conftest.$ac_objext
 
34235
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34236
  (eval $ac_compile) 2>conftest.er1
 
34237
  ac_status=$?
 
34238
  grep -v '^ *+' conftest.er1 >conftest.err
 
34239
  rm -f conftest.er1
 
34240
  cat conftest.err >&5
 
34241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34242
  (exit $ac_status); } &&
 
34243
         { ac_try='test -z "$ac_c_werror_flag"
 
34244
                         || test ! -s conftest.err'
 
34245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34246
  (eval $ac_try) 2>&5
 
34247
  ac_status=$?
 
34248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34249
  (exit $ac_status); }; } &&
 
34250
         { ac_try='test -s conftest.$ac_objext'
 
34251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34252
  (eval $ac_try) 2>&5
 
34253
  ac_status=$?
 
34254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34255
  (exit $ac_status); }; }; then
 
34256
  ac_hi=$ac_mid; break
 
34257
else
 
34258
  echo "$as_me: failed program was:" >&5
 
34259
sed 's/^/| /' conftest.$ac_ext >&5
 
34260
 
 
34261
ac_lo=`expr $ac_mid + 1`
 
34262
                    if test $ac_lo -le $ac_mid; then
 
34263
                      ac_lo= ac_hi=
 
34264
                      break
 
34265
                    fi
 
34266
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
34267
fi
 
34268
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34269
  done
 
34270
else
 
34271
  echo "$as_me: failed program was:" >&5
 
34272
sed 's/^/| /' conftest.$ac_ext >&5
 
34273
 
 
34274
cat >conftest.$ac_ext <<_ACEOF
 
34275
/* confdefs.h.  */
 
34276
_ACEOF
 
34277
cat confdefs.h >>conftest.$ac_ext
 
34278
cat >>conftest.$ac_ext <<_ACEOF
 
34279
/* end confdefs.h.  */
 
34280
$ac_includes_default
 
34281
int
 
34282
main ()
 
34283
{
 
34284
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
34285
test_array [0] = 0
 
34286
 
 
34287
  ;
 
34288
  return 0;
 
34289
}
 
34290
_ACEOF
 
34291
rm -f conftest.$ac_objext
 
34292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34293
  (eval $ac_compile) 2>conftest.er1
 
34294
  ac_status=$?
 
34295
  grep -v '^ *+' conftest.er1 >conftest.err
 
34296
  rm -f conftest.er1
 
34297
  cat conftest.err >&5
 
34298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34299
  (exit $ac_status); } &&
 
34300
         { ac_try='test -z "$ac_c_werror_flag"
 
34301
                         || test ! -s conftest.err'
 
34302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34303
  (eval $ac_try) 2>&5
 
34304
  ac_status=$?
 
34305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34306
  (exit $ac_status); }; } &&
 
34307
         { ac_try='test -s conftest.$ac_objext'
 
34308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34309
  (eval $ac_try) 2>&5
 
34310
  ac_status=$?
 
34311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34312
  (exit $ac_status); }; }; then
 
34313
  ac_hi=-1 ac_mid=-1
 
34314
  while :; do
 
34315
    cat >conftest.$ac_ext <<_ACEOF
 
34316
/* confdefs.h.  */
 
34317
_ACEOF
 
34318
cat confdefs.h >>conftest.$ac_ext
 
34319
cat >>conftest.$ac_ext <<_ACEOF
 
34320
/* end confdefs.h.  */
 
34321
$ac_includes_default
 
34322
int
 
34323
main ()
 
34324
{
 
34325
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
34326
test_array [0] = 0
 
34327
 
 
34328
  ;
 
34329
  return 0;
 
34330
}
 
34331
_ACEOF
 
34332
rm -f conftest.$ac_objext
 
34333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34334
  (eval $ac_compile) 2>conftest.er1
 
34335
  ac_status=$?
 
34336
  grep -v '^ *+' conftest.er1 >conftest.err
 
34337
  rm -f conftest.er1
 
34338
  cat conftest.err >&5
 
34339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34340
  (exit $ac_status); } &&
 
34341
         { ac_try='test -z "$ac_c_werror_flag"
 
34342
                         || test ! -s conftest.err'
 
34343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34344
  (eval $ac_try) 2>&5
 
34345
  ac_status=$?
 
34346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34347
  (exit $ac_status); }; } &&
 
34348
         { ac_try='test -s conftest.$ac_objext'
 
34349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34350
  (eval $ac_try) 2>&5
 
34351
  ac_status=$?
 
34352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34353
  (exit $ac_status); }; }; then
 
34354
  ac_lo=$ac_mid; break
 
34355
else
 
34356
  echo "$as_me: failed program was:" >&5
 
34357
sed 's/^/| /' conftest.$ac_ext >&5
 
34358
 
 
34359
ac_hi=`expr '(' $ac_mid ')' - 1`
 
34360
                       if test $ac_mid -le $ac_hi; then
 
34361
                         ac_lo= ac_hi=
 
34362
                         break
 
34363
                       fi
 
34364
                       ac_mid=`expr 2 '*' $ac_mid`
 
34365
fi
 
34366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34367
  done
 
34368
else
 
34369
  echo "$as_me: failed program was:" >&5
 
34370
sed 's/^/| /' conftest.$ac_ext >&5
 
34371
 
 
34372
ac_lo= ac_hi=
 
34373
fi
 
34374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34375
fi
 
34376
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34377
# Binary search between lo and hi bounds.
 
34378
while test "x$ac_lo" != "x$ac_hi"; do
 
34379
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
34380
  cat >conftest.$ac_ext <<_ACEOF
 
34381
/* confdefs.h.  */
 
34382
_ACEOF
 
34383
cat confdefs.h >>conftest.$ac_ext
 
34384
cat >>conftest.$ac_ext <<_ACEOF
 
34385
/* end confdefs.h.  */
 
34386
$ac_includes_default
 
34387
int
 
34388
main ()
 
34389
{
 
34390
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
34391
test_array [0] = 0
 
34392
 
 
34393
  ;
 
34394
  return 0;
 
34395
}
 
34396
_ACEOF
 
34397
rm -f conftest.$ac_objext
 
34398
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34399
  (eval $ac_compile) 2>conftest.er1
 
34400
  ac_status=$?
 
34401
  grep -v '^ *+' conftest.er1 >conftest.err
 
34402
  rm -f conftest.er1
 
34403
  cat conftest.err >&5
 
34404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34405
  (exit $ac_status); } &&
 
34406
         { ac_try='test -z "$ac_c_werror_flag"
 
34407
                         || test ! -s conftest.err'
 
34408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34409
  (eval $ac_try) 2>&5
 
34410
  ac_status=$?
 
34411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34412
  (exit $ac_status); }; } &&
 
34413
         { ac_try='test -s conftest.$ac_objext'
 
34414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34415
  (eval $ac_try) 2>&5
 
34416
  ac_status=$?
 
34417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34418
  (exit $ac_status); }; }; then
 
34419
  ac_hi=$ac_mid
 
34420
else
 
34421
  echo "$as_me: failed program was:" >&5
 
34422
sed 's/^/| /' conftest.$ac_ext >&5
 
34423
 
 
34424
ac_lo=`expr '(' $ac_mid ')' + 1`
 
34425
fi
 
34426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34427
done
 
34428
case $ac_lo in
 
34429
?*) ac_cv_sizeof_int=$ac_lo;;
 
34430
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
34431
See \`config.log' for more details." >&5
 
34432
echo "$as_me: error: cannot compute sizeof (int), 77
 
34433
See \`config.log' for more details." >&2;}
 
34434
   { (exit 1); exit 1; }; } ;;
 
34435
esac
 
34436
else
 
34437
  if test "$cross_compiling" = yes; then
 
34438
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
34439
See \`config.log' for more details." >&5
 
34440
echo "$as_me: error: cannot run test program while cross compiling
 
34441
See \`config.log' for more details." >&2;}
 
34442
   { (exit 1); exit 1; }; }
 
34443
else
 
34444
  cat >conftest.$ac_ext <<_ACEOF
 
34445
/* confdefs.h.  */
 
34446
_ACEOF
 
34447
cat confdefs.h >>conftest.$ac_ext
 
34448
cat >>conftest.$ac_ext <<_ACEOF
 
34449
/* end confdefs.h.  */
 
34450
$ac_includes_default
 
34451
long longval () { return (long) (sizeof (int)); }
 
34452
unsigned long ulongval () { return (long) (sizeof (int)); }
 
34453
#include <stdio.h>
 
34454
#include <stdlib.h>
 
34455
int
 
34456
main ()
 
34457
{
 
34458
 
 
34459
  FILE *f = fopen ("conftest.val", "w");
 
34460
  if (! f)
 
34461
    exit (1);
 
34462
  if (((long) (sizeof (int))) < 0)
 
34463
    {
 
34464
      long i = longval ();
 
34465
      if (i != ((long) (sizeof (int))))
 
34466
        exit (1);
 
34467
      fprintf (f, "%ld\n", i);
 
34468
    }
 
34469
  else
 
34470
    {
 
34471
      unsigned long i = ulongval ();
 
34472
      if (i != ((long) (sizeof (int))))
 
34473
        exit (1);
 
34474
      fprintf (f, "%lu\n", i);
 
34475
    }
 
34476
  exit (ferror (f) || fclose (f) != 0);
 
34477
 
 
34478
  ;
 
34479
  return 0;
 
34480
}
 
34481
_ACEOF
 
34482
rm -f conftest$ac_exeext
 
34483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34484
  (eval $ac_link) 2>&5
 
34485
  ac_status=$?
 
34486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34487
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
34488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34489
  (eval $ac_try) 2>&5
 
34490
  ac_status=$?
 
34491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34492
  (exit $ac_status); }; }; then
 
34493
  ac_cv_sizeof_int=`cat conftest.val`
 
34494
else
 
34495
  echo "$as_me: program exited with status $ac_status" >&5
 
34496
echo "$as_me: failed program was:" >&5
 
34497
sed 's/^/| /' conftest.$ac_ext >&5
 
34498
 
 
34499
( exit $ac_status )
 
34500
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
34501
See \`config.log' for more details." >&5
 
34502
echo "$as_me: error: cannot compute sizeof (int), 77
 
34503
See \`config.log' for more details." >&2;}
 
34504
   { (exit 1); exit 1; }; }
 
34505
fi
 
34506
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
34507
fi
 
34508
fi
 
34509
rm -f conftest.val
 
34510
else
 
34511
  ac_cv_sizeof_int=0
 
34512
fi
 
34513
fi
 
34514
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
34515
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
34516
cat >>confdefs.h <<_ACEOF
 
34517
#define SIZEOF_INT $ac_cv_sizeof_int
 
34518
_ACEOF
 
34519
 
 
34520
 
 
34521
echo "$as_me:$LINENO: checking for long" >&5
 
34522
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
34523
if test "${ac_cv_type_long+set}" = set; then
 
34524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34525
else
 
34526
  cat >conftest.$ac_ext <<_ACEOF
 
34527
/* confdefs.h.  */
 
34528
_ACEOF
 
34529
cat confdefs.h >>conftest.$ac_ext
 
34530
cat >>conftest.$ac_ext <<_ACEOF
 
34531
/* end confdefs.h.  */
 
34532
$ac_includes_default
 
34533
int
 
34534
main ()
 
34535
{
 
34536
if ((long *) 0)
 
34537
  return 0;
 
34538
if (sizeof (long))
 
34539
  return 0;
 
34540
  ;
 
34541
  return 0;
 
34542
}
 
34543
_ACEOF
 
34544
rm -f conftest.$ac_objext
 
34545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34546
  (eval $ac_compile) 2>conftest.er1
 
34547
  ac_status=$?
 
34548
  grep -v '^ *+' conftest.er1 >conftest.err
 
34549
  rm -f conftest.er1
 
34550
  cat conftest.err >&5
 
34551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34552
  (exit $ac_status); } &&
 
34553
         { ac_try='test -z "$ac_c_werror_flag"
 
34554
                         || test ! -s conftest.err'
 
34555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34556
  (eval $ac_try) 2>&5
 
34557
  ac_status=$?
 
34558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34559
  (exit $ac_status); }; } &&
 
34560
         { ac_try='test -s conftest.$ac_objext'
 
34561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34562
  (eval $ac_try) 2>&5
 
34563
  ac_status=$?
 
34564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34565
  (exit $ac_status); }; }; then
 
34566
  ac_cv_type_long=yes
 
34567
else
 
34568
  echo "$as_me: failed program was:" >&5
 
34569
sed 's/^/| /' conftest.$ac_ext >&5
 
34570
 
 
34571
ac_cv_type_long=no
 
34572
fi
 
34573
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34574
fi
 
34575
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
34576
echo "${ECHO_T}$ac_cv_type_long" >&6
 
34577
 
 
34578
echo "$as_me:$LINENO: checking size of long" >&5
 
34579
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
34580
if test "${ac_cv_sizeof_long+set}" = set; then
 
34581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34582
else
 
34583
  if test "$ac_cv_type_long" = yes; then
 
34584
  # The cast to unsigned long works around a bug in the HP C Compiler
 
34585
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
34586
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
34587
  # This bug is HP SR number 8606223364.
 
34588
  if test "$cross_compiling" = yes; then
 
34589
  # Depending upon the size, compute the lo and hi bounds.
 
34590
cat >conftest.$ac_ext <<_ACEOF
 
34591
/* confdefs.h.  */
 
34592
_ACEOF
 
34593
cat confdefs.h >>conftest.$ac_ext
 
34594
cat >>conftest.$ac_ext <<_ACEOF
 
34595
/* end confdefs.h.  */
 
34596
$ac_includes_default
 
34597
int
 
34598
main ()
 
34599
{
 
34600
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
34601
test_array [0] = 0
 
34602
 
 
34603
  ;
 
34604
  return 0;
 
34605
}
 
34606
_ACEOF
 
34607
rm -f conftest.$ac_objext
 
34608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34609
  (eval $ac_compile) 2>conftest.er1
 
34610
  ac_status=$?
 
34611
  grep -v '^ *+' conftest.er1 >conftest.err
 
34612
  rm -f conftest.er1
 
34613
  cat conftest.err >&5
 
34614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34615
  (exit $ac_status); } &&
 
34616
         { ac_try='test -z "$ac_c_werror_flag"
 
34617
                         || test ! -s conftest.err'
 
34618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34619
  (eval $ac_try) 2>&5
 
34620
  ac_status=$?
 
34621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34622
  (exit $ac_status); }; } &&
 
34623
         { ac_try='test -s conftest.$ac_objext'
 
34624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34625
  (eval $ac_try) 2>&5
 
34626
  ac_status=$?
 
34627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34628
  (exit $ac_status); }; }; then
 
34629
  ac_lo=0 ac_mid=0
 
34630
  while :; do
 
34631
    cat >conftest.$ac_ext <<_ACEOF
 
34632
/* confdefs.h.  */
 
34633
_ACEOF
 
34634
cat confdefs.h >>conftest.$ac_ext
 
34635
cat >>conftest.$ac_ext <<_ACEOF
 
34636
/* end confdefs.h.  */
 
34637
$ac_includes_default
 
34638
int
 
34639
main ()
 
34640
{
 
34641
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
34642
test_array [0] = 0
 
34643
 
 
34644
  ;
 
34645
  return 0;
 
34646
}
 
34647
_ACEOF
 
34648
rm -f conftest.$ac_objext
 
34649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34650
  (eval $ac_compile) 2>conftest.er1
 
34651
  ac_status=$?
 
34652
  grep -v '^ *+' conftest.er1 >conftest.err
 
34653
  rm -f conftest.er1
 
34654
  cat conftest.err >&5
 
34655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34656
  (exit $ac_status); } &&
 
34657
         { ac_try='test -z "$ac_c_werror_flag"
 
34658
                         || test ! -s conftest.err'
 
34659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34660
  (eval $ac_try) 2>&5
 
34661
  ac_status=$?
 
34662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34663
  (exit $ac_status); }; } &&
 
34664
         { ac_try='test -s conftest.$ac_objext'
 
34665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34666
  (eval $ac_try) 2>&5
 
34667
  ac_status=$?
 
34668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34669
  (exit $ac_status); }; }; then
 
34670
  ac_hi=$ac_mid; break
 
34671
else
 
34672
  echo "$as_me: failed program was:" >&5
 
34673
sed 's/^/| /' conftest.$ac_ext >&5
 
34674
 
 
34675
ac_lo=`expr $ac_mid + 1`
 
34676
                    if test $ac_lo -le $ac_mid; then
 
34677
                      ac_lo= ac_hi=
 
34678
                      break
 
34679
                    fi
 
34680
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
34681
fi
 
34682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34683
  done
 
34684
else
 
34685
  echo "$as_me: failed program was:" >&5
 
34686
sed 's/^/| /' conftest.$ac_ext >&5
 
34687
 
 
34688
cat >conftest.$ac_ext <<_ACEOF
 
34689
/* confdefs.h.  */
 
34690
_ACEOF
 
34691
cat confdefs.h >>conftest.$ac_ext
 
34692
cat >>conftest.$ac_ext <<_ACEOF
 
34693
/* end confdefs.h.  */
 
34694
$ac_includes_default
 
34695
int
 
34696
main ()
 
34697
{
 
34698
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
34699
test_array [0] = 0
 
34700
 
 
34701
  ;
 
34702
  return 0;
 
34703
}
 
34704
_ACEOF
 
34705
rm -f conftest.$ac_objext
 
34706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34707
  (eval $ac_compile) 2>conftest.er1
 
34708
  ac_status=$?
 
34709
  grep -v '^ *+' conftest.er1 >conftest.err
 
34710
  rm -f conftest.er1
 
34711
  cat conftest.err >&5
 
34712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34713
  (exit $ac_status); } &&
 
34714
         { ac_try='test -z "$ac_c_werror_flag"
 
34715
                         || test ! -s conftest.err'
 
34716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34717
  (eval $ac_try) 2>&5
 
34718
  ac_status=$?
 
34719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34720
  (exit $ac_status); }; } &&
 
34721
         { ac_try='test -s conftest.$ac_objext'
 
34722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34723
  (eval $ac_try) 2>&5
 
34724
  ac_status=$?
 
34725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34726
  (exit $ac_status); }; }; then
 
34727
  ac_hi=-1 ac_mid=-1
 
34728
  while :; do
 
34729
    cat >conftest.$ac_ext <<_ACEOF
 
34730
/* confdefs.h.  */
 
34731
_ACEOF
 
34732
cat confdefs.h >>conftest.$ac_ext
 
34733
cat >>conftest.$ac_ext <<_ACEOF
 
34734
/* end confdefs.h.  */
 
34735
$ac_includes_default
 
34736
int
 
34737
main ()
 
34738
{
 
34739
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
34740
test_array [0] = 0
 
34741
 
 
34742
  ;
 
34743
  return 0;
 
34744
}
 
34745
_ACEOF
 
34746
rm -f conftest.$ac_objext
 
34747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34748
  (eval $ac_compile) 2>conftest.er1
 
34749
  ac_status=$?
 
34750
  grep -v '^ *+' conftest.er1 >conftest.err
 
34751
  rm -f conftest.er1
 
34752
  cat conftest.err >&5
 
34753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34754
  (exit $ac_status); } &&
 
34755
         { ac_try='test -z "$ac_c_werror_flag"
 
34756
                         || test ! -s conftest.err'
 
34757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34758
  (eval $ac_try) 2>&5
 
34759
  ac_status=$?
 
34760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34761
  (exit $ac_status); }; } &&
 
34762
         { ac_try='test -s conftest.$ac_objext'
 
34763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34764
  (eval $ac_try) 2>&5
 
34765
  ac_status=$?
 
34766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34767
  (exit $ac_status); }; }; then
 
34768
  ac_lo=$ac_mid; break
 
34769
else
 
34770
  echo "$as_me: failed program was:" >&5
 
34771
sed 's/^/| /' conftest.$ac_ext >&5
 
34772
 
 
34773
ac_hi=`expr '(' $ac_mid ')' - 1`
 
34774
                       if test $ac_mid -le $ac_hi; then
 
34775
                         ac_lo= ac_hi=
 
34776
                         break
 
34777
                       fi
 
34778
                       ac_mid=`expr 2 '*' $ac_mid`
 
34779
fi
 
34780
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34781
  done
 
34782
else
 
34783
  echo "$as_me: failed program was:" >&5
 
34784
sed 's/^/| /' conftest.$ac_ext >&5
 
34785
 
 
34786
ac_lo= ac_hi=
 
34787
fi
 
34788
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34789
fi
 
34790
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34791
# Binary search between lo and hi bounds.
 
34792
while test "x$ac_lo" != "x$ac_hi"; do
 
34793
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
34794
  cat >conftest.$ac_ext <<_ACEOF
 
34795
/* confdefs.h.  */
 
34796
_ACEOF
 
34797
cat confdefs.h >>conftest.$ac_ext
 
34798
cat >>conftest.$ac_ext <<_ACEOF
 
34799
/* end confdefs.h.  */
 
34800
$ac_includes_default
 
34801
int
 
34802
main ()
 
34803
{
 
34804
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
34805
test_array [0] = 0
 
34806
 
 
34807
  ;
 
34808
  return 0;
 
34809
}
 
34810
_ACEOF
 
34811
rm -f conftest.$ac_objext
 
34812
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34813
  (eval $ac_compile) 2>conftest.er1
 
34814
  ac_status=$?
 
34815
  grep -v '^ *+' conftest.er1 >conftest.err
 
34816
  rm -f conftest.er1
 
34817
  cat conftest.err >&5
 
34818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34819
  (exit $ac_status); } &&
 
34820
         { ac_try='test -z "$ac_c_werror_flag"
 
34821
                         || test ! -s conftest.err'
 
34822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34823
  (eval $ac_try) 2>&5
 
34824
  ac_status=$?
 
34825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34826
  (exit $ac_status); }; } &&
 
34827
         { ac_try='test -s conftest.$ac_objext'
 
34828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34829
  (eval $ac_try) 2>&5
 
34830
  ac_status=$?
 
34831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34832
  (exit $ac_status); }; }; then
 
34833
  ac_hi=$ac_mid
 
34834
else
 
34835
  echo "$as_me: failed program was:" >&5
 
34836
sed 's/^/| /' conftest.$ac_ext >&5
 
34837
 
 
34838
ac_lo=`expr '(' $ac_mid ')' + 1`
 
34839
fi
 
34840
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34841
done
 
34842
case $ac_lo in
 
34843
?*) ac_cv_sizeof_long=$ac_lo;;
 
34844
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
34845
See \`config.log' for more details." >&5
 
34846
echo "$as_me: error: cannot compute sizeof (long), 77
 
34847
See \`config.log' for more details." >&2;}
 
34848
   { (exit 1); exit 1; }; } ;;
 
34849
esac
 
34850
else
 
34851
  if test "$cross_compiling" = yes; then
 
34852
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
34853
See \`config.log' for more details." >&5
 
34854
echo "$as_me: error: cannot run test program while cross compiling
 
34855
See \`config.log' for more details." >&2;}
 
34856
   { (exit 1); exit 1; }; }
 
34857
else
 
34858
  cat >conftest.$ac_ext <<_ACEOF
 
34859
/* confdefs.h.  */
 
34860
_ACEOF
 
34861
cat confdefs.h >>conftest.$ac_ext
 
34862
cat >>conftest.$ac_ext <<_ACEOF
 
34863
/* end confdefs.h.  */
 
34864
$ac_includes_default
 
34865
long longval () { return (long) (sizeof (long)); }
 
34866
unsigned long ulongval () { return (long) (sizeof (long)); }
 
34867
#include <stdio.h>
 
34868
#include <stdlib.h>
 
34869
int
 
34870
main ()
 
34871
{
 
34872
 
 
34873
  FILE *f = fopen ("conftest.val", "w");
 
34874
  if (! f)
 
34875
    exit (1);
 
34876
  if (((long) (sizeof (long))) < 0)
 
34877
    {
 
34878
      long i = longval ();
 
34879
      if (i != ((long) (sizeof (long))))
 
34880
        exit (1);
 
34881
      fprintf (f, "%ld\n", i);
 
34882
    }
 
34883
  else
 
34884
    {
 
34885
      unsigned long i = ulongval ();
 
34886
      if (i != ((long) (sizeof (long))))
 
34887
        exit (1);
 
34888
      fprintf (f, "%lu\n", i);
 
34889
    }
 
34890
  exit (ferror (f) || fclose (f) != 0);
 
34891
 
 
34892
  ;
 
34893
  return 0;
 
34894
}
 
34895
_ACEOF
 
34896
rm -f conftest$ac_exeext
 
34897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34898
  (eval $ac_link) 2>&5
 
34899
  ac_status=$?
 
34900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34901
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
34902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34903
  (eval $ac_try) 2>&5
 
34904
  ac_status=$?
 
34905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34906
  (exit $ac_status); }; }; then
 
34907
  ac_cv_sizeof_long=`cat conftest.val`
 
34908
else
 
34909
  echo "$as_me: program exited with status $ac_status" >&5
 
34910
echo "$as_me: failed program was:" >&5
 
34911
sed 's/^/| /' conftest.$ac_ext >&5
 
34912
 
 
34913
( exit $ac_status )
 
34914
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
34915
See \`config.log' for more details." >&5
 
34916
echo "$as_me: error: cannot compute sizeof (long), 77
 
34917
See \`config.log' for more details." >&2;}
 
34918
   { (exit 1); exit 1; }; }
 
34919
fi
 
34920
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
34921
fi
 
34922
fi
 
34923
rm -f conftest.val
 
34924
else
 
34925
  ac_cv_sizeof_long=0
 
34926
fi
 
34927
fi
 
34928
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
34929
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
34930
cat >>confdefs.h <<_ACEOF
 
34931
#define SIZEOF_LONG $ac_cv_sizeof_long
 
34932
_ACEOF
 
34933
 
 
34934
 
 
34935
echo "$as_me:$LINENO: checking for short" >&5
 
34936
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
34937
if test "${ac_cv_type_short+set}" = set; then
 
34938
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34939
else
 
34940
  cat >conftest.$ac_ext <<_ACEOF
 
34941
/* confdefs.h.  */
 
34942
_ACEOF
 
34943
cat confdefs.h >>conftest.$ac_ext
 
34944
cat >>conftest.$ac_ext <<_ACEOF
 
34945
/* end confdefs.h.  */
 
34946
$ac_includes_default
 
34947
int
 
34948
main ()
 
34949
{
 
34950
if ((short *) 0)
 
34951
  return 0;
 
34952
if (sizeof (short))
 
34953
  return 0;
 
34954
  ;
 
34955
  return 0;
 
34956
}
 
34957
_ACEOF
 
34958
rm -f conftest.$ac_objext
 
34959
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34960
  (eval $ac_compile) 2>conftest.er1
 
34961
  ac_status=$?
 
34962
  grep -v '^ *+' conftest.er1 >conftest.err
 
34963
  rm -f conftest.er1
 
34964
  cat conftest.err >&5
 
34965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34966
  (exit $ac_status); } &&
 
34967
         { ac_try='test -z "$ac_c_werror_flag"
 
34968
                         || test ! -s conftest.err'
 
34969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34970
  (eval $ac_try) 2>&5
 
34971
  ac_status=$?
 
34972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34973
  (exit $ac_status); }; } &&
 
34974
         { ac_try='test -s conftest.$ac_objext'
 
34975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34976
  (eval $ac_try) 2>&5
 
34977
  ac_status=$?
 
34978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34979
  (exit $ac_status); }; }; then
 
34980
  ac_cv_type_short=yes
 
34981
else
 
34982
  echo "$as_me: failed program was:" >&5
 
34983
sed 's/^/| /' conftest.$ac_ext >&5
 
34984
 
 
34985
ac_cv_type_short=no
 
34986
fi
 
34987
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34988
fi
 
34989
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
34990
echo "${ECHO_T}$ac_cv_type_short" >&6
 
34991
 
 
34992
echo "$as_me:$LINENO: checking size of short" >&5
 
34993
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
34994
if test "${ac_cv_sizeof_short+set}" = set; then
 
34995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34996
else
 
34997
  if test "$ac_cv_type_short" = yes; then
 
34998
  # The cast to unsigned long works around a bug in the HP C Compiler
 
34999
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
35000
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
35001
  # This bug is HP SR number 8606223364.
 
35002
  if test "$cross_compiling" = yes; then
 
35003
  # Depending upon the size, compute the lo and hi bounds.
 
35004
cat >conftest.$ac_ext <<_ACEOF
 
35005
/* confdefs.h.  */
 
35006
_ACEOF
 
35007
cat confdefs.h >>conftest.$ac_ext
 
35008
cat >>conftest.$ac_ext <<_ACEOF
 
35009
/* end confdefs.h.  */
 
35010
$ac_includes_default
 
35011
int
 
35012
main ()
 
35013
{
 
35014
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
35015
test_array [0] = 0
 
35016
 
 
35017
  ;
 
35018
  return 0;
 
35019
}
 
35020
_ACEOF
 
35021
rm -f conftest.$ac_objext
 
35022
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35023
  (eval $ac_compile) 2>conftest.er1
 
35024
  ac_status=$?
 
35025
  grep -v '^ *+' conftest.er1 >conftest.err
 
35026
  rm -f conftest.er1
 
35027
  cat conftest.err >&5
 
35028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35029
  (exit $ac_status); } &&
 
35030
         { ac_try='test -z "$ac_c_werror_flag"
 
35031
                         || test ! -s conftest.err'
 
35032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35033
  (eval $ac_try) 2>&5
 
35034
  ac_status=$?
 
35035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35036
  (exit $ac_status); }; } &&
 
35037
         { ac_try='test -s conftest.$ac_objext'
 
35038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35039
  (eval $ac_try) 2>&5
 
35040
  ac_status=$?
 
35041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35042
  (exit $ac_status); }; }; then
 
35043
  ac_lo=0 ac_mid=0
 
35044
  while :; do
 
35045
    cat >conftest.$ac_ext <<_ACEOF
 
35046
/* confdefs.h.  */
 
35047
_ACEOF
 
35048
cat confdefs.h >>conftest.$ac_ext
 
35049
cat >>conftest.$ac_ext <<_ACEOF
 
35050
/* end confdefs.h.  */
 
35051
$ac_includes_default
 
35052
int
 
35053
main ()
 
35054
{
 
35055
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
35056
test_array [0] = 0
 
35057
 
 
35058
  ;
 
35059
  return 0;
 
35060
}
 
35061
_ACEOF
 
35062
rm -f conftest.$ac_objext
 
35063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35064
  (eval $ac_compile) 2>conftest.er1
 
35065
  ac_status=$?
 
35066
  grep -v '^ *+' conftest.er1 >conftest.err
 
35067
  rm -f conftest.er1
 
35068
  cat conftest.err >&5
 
35069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35070
  (exit $ac_status); } &&
 
35071
         { ac_try='test -z "$ac_c_werror_flag"
 
35072
                         || test ! -s conftest.err'
 
35073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35074
  (eval $ac_try) 2>&5
 
35075
  ac_status=$?
 
35076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35077
  (exit $ac_status); }; } &&
 
35078
         { ac_try='test -s conftest.$ac_objext'
 
35079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35080
  (eval $ac_try) 2>&5
 
35081
  ac_status=$?
 
35082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35083
  (exit $ac_status); }; }; then
 
35084
  ac_hi=$ac_mid; break
 
35085
else
 
35086
  echo "$as_me: failed program was:" >&5
 
35087
sed 's/^/| /' conftest.$ac_ext >&5
 
35088
 
 
35089
ac_lo=`expr $ac_mid + 1`
 
35090
                    if test $ac_lo -le $ac_mid; then
 
35091
                      ac_lo= ac_hi=
 
35092
                      break
 
35093
                    fi
 
35094
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
35095
fi
 
35096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35097
  done
 
35098
else
 
35099
  echo "$as_me: failed program was:" >&5
 
35100
sed 's/^/| /' conftest.$ac_ext >&5
 
35101
 
 
35102
cat >conftest.$ac_ext <<_ACEOF
 
35103
/* confdefs.h.  */
 
35104
_ACEOF
 
35105
cat confdefs.h >>conftest.$ac_ext
 
35106
cat >>conftest.$ac_ext <<_ACEOF
 
35107
/* end confdefs.h.  */
 
35108
$ac_includes_default
 
35109
int
 
35110
main ()
 
35111
{
 
35112
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
35113
test_array [0] = 0
 
35114
 
 
35115
  ;
 
35116
  return 0;
 
35117
}
 
35118
_ACEOF
 
35119
rm -f conftest.$ac_objext
 
35120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35121
  (eval $ac_compile) 2>conftest.er1
 
35122
  ac_status=$?
 
35123
  grep -v '^ *+' conftest.er1 >conftest.err
 
35124
  rm -f conftest.er1
 
35125
  cat conftest.err >&5
 
35126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35127
  (exit $ac_status); } &&
 
35128
         { ac_try='test -z "$ac_c_werror_flag"
 
35129
                         || test ! -s conftest.err'
 
35130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35131
  (eval $ac_try) 2>&5
 
35132
  ac_status=$?
 
35133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35134
  (exit $ac_status); }; } &&
 
35135
         { ac_try='test -s conftest.$ac_objext'
 
35136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35137
  (eval $ac_try) 2>&5
 
35138
  ac_status=$?
 
35139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35140
  (exit $ac_status); }; }; then
 
35141
  ac_hi=-1 ac_mid=-1
 
35142
  while :; do
 
35143
    cat >conftest.$ac_ext <<_ACEOF
 
35144
/* confdefs.h.  */
 
35145
_ACEOF
 
35146
cat confdefs.h >>conftest.$ac_ext
 
35147
cat >>conftest.$ac_ext <<_ACEOF
 
35148
/* end confdefs.h.  */
 
35149
$ac_includes_default
 
35150
int
 
35151
main ()
 
35152
{
 
35153
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
35154
test_array [0] = 0
 
35155
 
 
35156
  ;
 
35157
  return 0;
 
35158
}
 
35159
_ACEOF
 
35160
rm -f conftest.$ac_objext
 
35161
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35162
  (eval $ac_compile) 2>conftest.er1
 
35163
  ac_status=$?
 
35164
  grep -v '^ *+' conftest.er1 >conftest.err
 
35165
  rm -f conftest.er1
 
35166
  cat conftest.err >&5
 
35167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35168
  (exit $ac_status); } &&
 
35169
         { ac_try='test -z "$ac_c_werror_flag"
 
35170
                         || test ! -s conftest.err'
 
35171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35172
  (eval $ac_try) 2>&5
 
35173
  ac_status=$?
 
35174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35175
  (exit $ac_status); }; } &&
 
35176
         { ac_try='test -s conftest.$ac_objext'
 
35177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35178
  (eval $ac_try) 2>&5
 
35179
  ac_status=$?
 
35180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35181
  (exit $ac_status); }; }; then
 
35182
  ac_lo=$ac_mid; break
 
35183
else
 
35184
  echo "$as_me: failed program was:" >&5
 
35185
sed 's/^/| /' conftest.$ac_ext >&5
 
35186
 
 
35187
ac_hi=`expr '(' $ac_mid ')' - 1`
 
35188
                       if test $ac_mid -le $ac_hi; then
 
35189
                         ac_lo= ac_hi=
 
35190
                         break
 
35191
                       fi
 
35192
                       ac_mid=`expr 2 '*' $ac_mid`
 
35193
fi
 
35194
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35195
  done
 
35196
else
 
35197
  echo "$as_me: failed program was:" >&5
 
35198
sed 's/^/| /' conftest.$ac_ext >&5
 
35199
 
 
35200
ac_lo= ac_hi=
 
35201
fi
 
35202
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35203
fi
 
35204
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35205
# Binary search between lo and hi bounds.
 
35206
while test "x$ac_lo" != "x$ac_hi"; do
 
35207
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
35208
  cat >conftest.$ac_ext <<_ACEOF
 
35209
/* confdefs.h.  */
 
35210
_ACEOF
 
35211
cat confdefs.h >>conftest.$ac_ext
 
35212
cat >>conftest.$ac_ext <<_ACEOF
 
35213
/* end confdefs.h.  */
 
35214
$ac_includes_default
 
35215
int
 
35216
main ()
 
35217
{
 
35218
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
35219
test_array [0] = 0
 
35220
 
 
35221
  ;
 
35222
  return 0;
 
35223
}
 
35224
_ACEOF
 
35225
rm -f conftest.$ac_objext
 
35226
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35227
  (eval $ac_compile) 2>conftest.er1
 
35228
  ac_status=$?
 
35229
  grep -v '^ *+' conftest.er1 >conftest.err
 
35230
  rm -f conftest.er1
 
35231
  cat conftest.err >&5
 
35232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35233
  (exit $ac_status); } &&
 
35234
         { ac_try='test -z "$ac_c_werror_flag"
 
35235
                         || test ! -s conftest.err'
 
35236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35237
  (eval $ac_try) 2>&5
 
35238
  ac_status=$?
 
35239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35240
  (exit $ac_status); }; } &&
 
35241
         { ac_try='test -s conftest.$ac_objext'
 
35242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35243
  (eval $ac_try) 2>&5
 
35244
  ac_status=$?
 
35245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35246
  (exit $ac_status); }; }; then
 
35247
  ac_hi=$ac_mid
 
35248
else
 
35249
  echo "$as_me: failed program was:" >&5
 
35250
sed 's/^/| /' conftest.$ac_ext >&5
 
35251
 
 
35252
ac_lo=`expr '(' $ac_mid ')' + 1`
 
35253
fi
 
35254
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35255
done
 
35256
case $ac_lo in
 
35257
?*) ac_cv_sizeof_short=$ac_lo;;
 
35258
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
35259
See \`config.log' for more details." >&5
 
35260
echo "$as_me: error: cannot compute sizeof (short), 77
 
35261
See \`config.log' for more details." >&2;}
 
35262
   { (exit 1); exit 1; }; } ;;
 
35263
esac
 
35264
else
 
35265
  if test "$cross_compiling" = yes; then
 
35266
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
35267
See \`config.log' for more details." >&5
 
35268
echo "$as_me: error: cannot run test program while cross compiling
 
35269
See \`config.log' for more details." >&2;}
 
35270
   { (exit 1); exit 1; }; }
 
35271
else
 
35272
  cat >conftest.$ac_ext <<_ACEOF
 
35273
/* confdefs.h.  */
 
35274
_ACEOF
 
35275
cat confdefs.h >>conftest.$ac_ext
 
35276
cat >>conftest.$ac_ext <<_ACEOF
 
35277
/* end confdefs.h.  */
 
35278
$ac_includes_default
 
35279
long longval () { return (long) (sizeof (short)); }
 
35280
unsigned long ulongval () { return (long) (sizeof (short)); }
 
35281
#include <stdio.h>
 
35282
#include <stdlib.h>
 
35283
int
 
35284
main ()
 
35285
{
 
35286
 
 
35287
  FILE *f = fopen ("conftest.val", "w");
 
35288
  if (! f)
 
35289
    exit (1);
 
35290
  if (((long) (sizeof (short))) < 0)
 
35291
    {
 
35292
      long i = longval ();
 
35293
      if (i != ((long) (sizeof (short))))
 
35294
        exit (1);
 
35295
      fprintf (f, "%ld\n", i);
 
35296
    }
 
35297
  else
 
35298
    {
 
35299
      unsigned long i = ulongval ();
 
35300
      if (i != ((long) (sizeof (short))))
 
35301
        exit (1);
 
35302
      fprintf (f, "%lu\n", i);
 
35303
    }
 
35304
  exit (ferror (f) || fclose (f) != 0);
 
35305
 
 
35306
  ;
 
35307
  return 0;
 
35308
}
 
35309
_ACEOF
 
35310
rm -f conftest$ac_exeext
 
35311
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35312
  (eval $ac_link) 2>&5
 
35313
  ac_status=$?
 
35314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35315
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
35316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35317
  (eval $ac_try) 2>&5
 
35318
  ac_status=$?
 
35319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35320
  (exit $ac_status); }; }; then
 
35321
  ac_cv_sizeof_short=`cat conftest.val`
 
35322
else
 
35323
  echo "$as_me: program exited with status $ac_status" >&5
 
35324
echo "$as_me: failed program was:" >&5
 
35325
sed 's/^/| /' conftest.$ac_ext >&5
 
35326
 
 
35327
( exit $ac_status )
 
35328
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
35329
See \`config.log' for more details." >&5
 
35330
echo "$as_me: error: cannot compute sizeof (short), 77
 
35331
See \`config.log' for more details." >&2;}
 
35332
   { (exit 1); exit 1; }; }
 
35333
fi
 
35334
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
35335
fi
 
35336
fi
 
35337
rm -f conftest.val
 
35338
else
 
35339
  ac_cv_sizeof_short=0
 
35340
fi
 
35341
fi
 
35342
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
35343
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
35344
cat >>confdefs.h <<_ACEOF
 
35345
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
35346
_ACEOF
 
35347
 
 
35348
 
 
35349
echo "$as_me:$LINENO: checking for long long" >&5
 
35350
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
35351
if test "${ac_cv_type_long_long+set}" = set; then
 
35352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35353
else
 
35354
  cat >conftest.$ac_ext <<_ACEOF
 
35355
/* confdefs.h.  */
 
35356
_ACEOF
 
35357
cat confdefs.h >>conftest.$ac_ext
 
35358
cat >>conftest.$ac_ext <<_ACEOF
 
35359
/* end confdefs.h.  */
 
35360
$ac_includes_default
 
35361
int
 
35362
main ()
 
35363
{
 
35364
if ((long long *) 0)
 
35365
  return 0;
 
35366
if (sizeof (long long))
 
35367
  return 0;
 
35368
  ;
 
35369
  return 0;
 
35370
}
 
35371
_ACEOF
 
35372
rm -f conftest.$ac_objext
 
35373
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35374
  (eval $ac_compile) 2>conftest.er1
 
35375
  ac_status=$?
 
35376
  grep -v '^ *+' conftest.er1 >conftest.err
 
35377
  rm -f conftest.er1
 
35378
  cat conftest.err >&5
 
35379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35380
  (exit $ac_status); } &&
 
35381
         { ac_try='test -z "$ac_c_werror_flag"
 
35382
                         || test ! -s conftest.err'
 
35383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35384
  (eval $ac_try) 2>&5
 
35385
  ac_status=$?
 
35386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35387
  (exit $ac_status); }; } &&
 
35388
         { ac_try='test -s conftest.$ac_objext'
 
35389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35390
  (eval $ac_try) 2>&5
 
35391
  ac_status=$?
 
35392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35393
  (exit $ac_status); }; }; then
 
35394
  ac_cv_type_long_long=yes
 
35395
else
 
35396
  echo "$as_me: failed program was:" >&5
 
35397
sed 's/^/| /' conftest.$ac_ext >&5
 
35398
 
 
35399
ac_cv_type_long_long=no
 
35400
fi
 
35401
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35402
fi
 
35403
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
35404
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
35405
 
 
35406
echo "$as_me:$LINENO: checking size of long long" >&5
 
35407
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
 
35408
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
35409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35410
else
 
35411
  if test "$ac_cv_type_long_long" = yes; then
 
35412
  # The cast to unsigned long works around a bug in the HP C Compiler
 
35413
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
35414
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
35415
  # This bug is HP SR number 8606223364.
 
35416
  if test "$cross_compiling" = yes; then
 
35417
  # Depending upon the size, compute the lo and hi bounds.
 
35418
cat >conftest.$ac_ext <<_ACEOF
 
35419
/* confdefs.h.  */
 
35420
_ACEOF
 
35421
cat confdefs.h >>conftest.$ac_ext
 
35422
cat >>conftest.$ac_ext <<_ACEOF
 
35423
/* end confdefs.h.  */
 
35424
$ac_includes_default
 
35425
int
 
35426
main ()
 
35427
{
 
35428
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
 
35429
test_array [0] = 0
 
35430
 
 
35431
  ;
 
35432
  return 0;
 
35433
}
 
35434
_ACEOF
 
35435
rm -f conftest.$ac_objext
 
35436
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35437
  (eval $ac_compile) 2>conftest.er1
 
35438
  ac_status=$?
 
35439
  grep -v '^ *+' conftest.er1 >conftest.err
 
35440
  rm -f conftest.er1
 
35441
  cat conftest.err >&5
 
35442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35443
  (exit $ac_status); } &&
 
35444
         { ac_try='test -z "$ac_c_werror_flag"
 
35445
                         || test ! -s conftest.err'
 
35446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35447
  (eval $ac_try) 2>&5
 
35448
  ac_status=$?
 
35449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35450
  (exit $ac_status); }; } &&
 
35451
         { ac_try='test -s conftest.$ac_objext'
 
35452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35453
  (eval $ac_try) 2>&5
 
35454
  ac_status=$?
 
35455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35456
  (exit $ac_status); }; }; then
 
35457
  ac_lo=0 ac_mid=0
 
35458
  while :; do
 
35459
    cat >conftest.$ac_ext <<_ACEOF
 
35460
/* confdefs.h.  */
 
35461
_ACEOF
 
35462
cat confdefs.h >>conftest.$ac_ext
 
35463
cat >>conftest.$ac_ext <<_ACEOF
 
35464
/* end confdefs.h.  */
 
35465
$ac_includes_default
 
35466
int
 
35467
main ()
 
35468
{
 
35469
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
35470
test_array [0] = 0
 
35471
 
 
35472
  ;
 
35473
  return 0;
 
35474
}
 
35475
_ACEOF
 
35476
rm -f conftest.$ac_objext
 
35477
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35478
  (eval $ac_compile) 2>conftest.er1
 
35479
  ac_status=$?
 
35480
  grep -v '^ *+' conftest.er1 >conftest.err
 
35481
  rm -f conftest.er1
 
35482
  cat conftest.err >&5
 
35483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35484
  (exit $ac_status); } &&
 
35485
         { ac_try='test -z "$ac_c_werror_flag"
 
35486
                         || test ! -s conftest.err'
 
35487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35488
  (eval $ac_try) 2>&5
 
35489
  ac_status=$?
 
35490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35491
  (exit $ac_status); }; } &&
 
35492
         { ac_try='test -s conftest.$ac_objext'
 
35493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35494
  (eval $ac_try) 2>&5
 
35495
  ac_status=$?
 
35496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35497
  (exit $ac_status); }; }; then
 
35498
  ac_hi=$ac_mid; break
 
35499
else
 
35500
  echo "$as_me: failed program was:" >&5
 
35501
sed 's/^/| /' conftest.$ac_ext >&5
 
35502
 
 
35503
ac_lo=`expr $ac_mid + 1`
 
35504
                    if test $ac_lo -le $ac_mid; then
 
35505
                      ac_lo= ac_hi=
 
35506
                      break
 
35507
                    fi
 
35508
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
35509
fi
 
35510
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35511
  done
 
35512
else
 
35513
  echo "$as_me: failed program was:" >&5
 
35514
sed 's/^/| /' conftest.$ac_ext >&5
 
35515
 
 
35516
cat >conftest.$ac_ext <<_ACEOF
 
35517
/* confdefs.h.  */
 
35518
_ACEOF
 
35519
cat confdefs.h >>conftest.$ac_ext
 
35520
cat >>conftest.$ac_ext <<_ACEOF
 
35521
/* end confdefs.h.  */
 
35522
$ac_includes_default
 
35523
int
 
35524
main ()
 
35525
{
 
35526
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
 
35527
test_array [0] = 0
 
35528
 
 
35529
  ;
 
35530
  return 0;
 
35531
}
 
35532
_ACEOF
 
35533
rm -f conftest.$ac_objext
 
35534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35535
  (eval $ac_compile) 2>conftest.er1
 
35536
  ac_status=$?
 
35537
  grep -v '^ *+' conftest.er1 >conftest.err
 
35538
  rm -f conftest.er1
 
35539
  cat conftest.err >&5
 
35540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35541
  (exit $ac_status); } &&
 
35542
         { ac_try='test -z "$ac_c_werror_flag"
 
35543
                         || test ! -s conftest.err'
 
35544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35545
  (eval $ac_try) 2>&5
 
35546
  ac_status=$?
 
35547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35548
  (exit $ac_status); }; } &&
 
35549
         { ac_try='test -s conftest.$ac_objext'
 
35550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35551
  (eval $ac_try) 2>&5
 
35552
  ac_status=$?
 
35553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35554
  (exit $ac_status); }; }; then
 
35555
  ac_hi=-1 ac_mid=-1
 
35556
  while :; do
 
35557
    cat >conftest.$ac_ext <<_ACEOF
 
35558
/* confdefs.h.  */
 
35559
_ACEOF
 
35560
cat confdefs.h >>conftest.$ac_ext
 
35561
cat >>conftest.$ac_ext <<_ACEOF
 
35562
/* end confdefs.h.  */
 
35563
$ac_includes_default
 
35564
int
 
35565
main ()
 
35566
{
 
35567
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
 
35568
test_array [0] = 0
 
35569
 
 
35570
  ;
 
35571
  return 0;
 
35572
}
 
35573
_ACEOF
 
35574
rm -f conftest.$ac_objext
 
35575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35576
  (eval $ac_compile) 2>conftest.er1
 
35577
  ac_status=$?
 
35578
  grep -v '^ *+' conftest.er1 >conftest.err
 
35579
  rm -f conftest.er1
 
35580
  cat conftest.err >&5
 
35581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35582
  (exit $ac_status); } &&
 
35583
         { ac_try='test -z "$ac_c_werror_flag"
 
35584
                         || test ! -s conftest.err'
 
35585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35586
  (eval $ac_try) 2>&5
 
35587
  ac_status=$?
 
35588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35589
  (exit $ac_status); }; } &&
 
35590
         { ac_try='test -s conftest.$ac_objext'
 
35591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35592
  (eval $ac_try) 2>&5
 
35593
  ac_status=$?
 
35594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35595
  (exit $ac_status); }; }; then
 
35596
  ac_lo=$ac_mid; break
 
35597
else
 
35598
  echo "$as_me: failed program was:" >&5
 
35599
sed 's/^/| /' conftest.$ac_ext >&5
 
35600
 
 
35601
ac_hi=`expr '(' $ac_mid ')' - 1`
 
35602
                       if test $ac_mid -le $ac_hi; then
 
35603
                         ac_lo= ac_hi=
 
35604
                         break
 
35605
                       fi
 
35606
                       ac_mid=`expr 2 '*' $ac_mid`
 
35607
fi
 
35608
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35609
  done
 
35610
else
 
35611
  echo "$as_me: failed program was:" >&5
 
35612
sed 's/^/| /' conftest.$ac_ext >&5
 
35613
 
 
35614
ac_lo= ac_hi=
 
35615
fi
 
35616
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35617
fi
 
35618
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35619
# Binary search between lo and hi bounds.
 
35620
while test "x$ac_lo" != "x$ac_hi"; do
 
35621
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
35622
  cat >conftest.$ac_ext <<_ACEOF
 
35623
/* confdefs.h.  */
 
35624
_ACEOF
 
35625
cat confdefs.h >>conftest.$ac_ext
 
35626
cat >>conftest.$ac_ext <<_ACEOF
 
35627
/* end confdefs.h.  */
 
35628
$ac_includes_default
 
35629
int
 
35630
main ()
 
35631
{
 
35632
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
35633
test_array [0] = 0
 
35634
 
 
35635
  ;
 
35636
  return 0;
 
35637
}
 
35638
_ACEOF
 
35639
rm -f conftest.$ac_objext
 
35640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35641
  (eval $ac_compile) 2>conftest.er1
 
35642
  ac_status=$?
 
35643
  grep -v '^ *+' conftest.er1 >conftest.err
 
35644
  rm -f conftest.er1
 
35645
  cat conftest.err >&5
 
35646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35647
  (exit $ac_status); } &&
 
35648
         { ac_try='test -z "$ac_c_werror_flag"
 
35649
                         || test ! -s conftest.err'
 
35650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35651
  (eval $ac_try) 2>&5
 
35652
  ac_status=$?
 
35653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35654
  (exit $ac_status); }; } &&
 
35655
         { ac_try='test -s conftest.$ac_objext'
 
35656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35657
  (eval $ac_try) 2>&5
 
35658
  ac_status=$?
 
35659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35660
  (exit $ac_status); }; }; then
 
35661
  ac_hi=$ac_mid
 
35662
else
 
35663
  echo "$as_me: failed program was:" >&5
 
35664
sed 's/^/| /' conftest.$ac_ext >&5
 
35665
 
 
35666
ac_lo=`expr '(' $ac_mid ')' + 1`
 
35667
fi
 
35668
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35669
done
 
35670
case $ac_lo in
 
35671
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
35672
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
35673
See \`config.log' for more details." >&5
 
35674
echo "$as_me: error: cannot compute sizeof (long long), 77
 
35675
See \`config.log' for more details." >&2;}
 
35676
   { (exit 1); exit 1; }; } ;;
 
35677
esac
 
35678
else
 
35679
  if test "$cross_compiling" = yes; then
 
35680
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
35681
See \`config.log' for more details." >&5
 
35682
echo "$as_me: error: cannot run test program while cross compiling
 
35683
See \`config.log' for more details." >&2;}
 
35684
   { (exit 1); exit 1; }; }
 
35685
else
 
35686
  cat >conftest.$ac_ext <<_ACEOF
 
35687
/* confdefs.h.  */
 
35688
_ACEOF
 
35689
cat confdefs.h >>conftest.$ac_ext
 
35690
cat >>conftest.$ac_ext <<_ACEOF
 
35691
/* end confdefs.h.  */
 
35692
$ac_includes_default
 
35693
long longval () { return (long) (sizeof (long long)); }
 
35694
unsigned long ulongval () { return (long) (sizeof (long long)); }
 
35695
#include <stdio.h>
 
35696
#include <stdlib.h>
 
35697
int
 
35698
main ()
 
35699
{
 
35700
 
 
35701
  FILE *f = fopen ("conftest.val", "w");
 
35702
  if (! f)
 
35703
    exit (1);
 
35704
  if (((long) (sizeof (long long))) < 0)
 
35705
    {
 
35706
      long i = longval ();
 
35707
      if (i != ((long) (sizeof (long long))))
 
35708
        exit (1);
 
35709
      fprintf (f, "%ld\n", i);
 
35710
    }
 
35711
  else
 
35712
    {
 
35713
      unsigned long i = ulongval ();
 
35714
      if (i != ((long) (sizeof (long long))))
 
35715
        exit (1);
 
35716
      fprintf (f, "%lu\n", i);
 
35717
    }
 
35718
  exit (ferror (f) || fclose (f) != 0);
 
35719
 
 
35720
  ;
 
35721
  return 0;
 
35722
}
 
35723
_ACEOF
 
35724
rm -f conftest$ac_exeext
 
35725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35726
  (eval $ac_link) 2>&5
 
35727
  ac_status=$?
 
35728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35729
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
35730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35731
  (eval $ac_try) 2>&5
 
35732
  ac_status=$?
 
35733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35734
  (exit $ac_status); }; }; then
 
35735
  ac_cv_sizeof_long_long=`cat conftest.val`
 
35736
else
 
35737
  echo "$as_me: program exited with status $ac_status" >&5
 
35738
echo "$as_me: failed program was:" >&5
 
35739
sed 's/^/| /' conftest.$ac_ext >&5
 
35740
 
 
35741
( exit $ac_status )
 
35742
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
35743
See \`config.log' for more details." >&5
 
35744
echo "$as_me: error: cannot compute sizeof (long long), 77
 
35745
See \`config.log' for more details." >&2;}
 
35746
   { (exit 1); exit 1; }; }
 
35747
fi
 
35748
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
35749
fi
 
35750
fi
 
35751
rm -f conftest.val
 
35752
else
 
35753
  ac_cv_sizeof_long_long=0
 
35754
fi
 
35755
fi
 
35756
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
35757
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
 
35758
cat >>confdefs.h <<_ACEOF
 
35759
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
35760
_ACEOF
 
35761
 
 
35762
 
 
35763
 
 
35764
if test "$ac_cv_sizeof_short" = "2"; then
 
35765
    short_value=short
 
35766
fi
 
35767
if test "$ac_cv_sizeof_int" = "4"; then
 
35768
    int_value=int
 
35769
fi
 
35770
# Now we need to find what apr_int64_t (sizeof == 8) will be.
 
35771
# The first match is our preference.
 
35772
if test "$ac_cv_sizeof_int" = "8"; then
 
35773
    int64_literal='#define APR_INT64_C(val) (val)'
 
35774
    uint64_literal='#define APR_UINT64_C(val) (val##U)'
 
35775
    int64_t_fmt='#define APR_INT64_T_FMT "d"'
 
35776
    uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
 
35777
    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
 
35778
    int64_value="int"
 
35779
    long_value=int
 
35780
    int64_strfn="strtoi"
 
35781
elif test "$ac_cv_sizeof_long" = "8"; then
 
35782
    int64_literal='#define APR_INT64_C(val) (val##L)'
 
35783
    uint64_literal='#define APR_UINT64_C(val) (val##UL)'
 
35784
    int64_t_fmt='#define APR_INT64_T_FMT "ld"'
 
35785
    uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
 
35786
    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
 
35787
    int64_value="long"
 
35788
    long_value=long
 
35789
    int64_strfn="strtol"
 
35790
elif test "$ac_cv_sizeof_long_long" = "8"; then
 
35791
    int64_literal='#define APR_INT64_C(val) (val##LL)'
 
35792
    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
 
35793
    # Linux, Solaris, FreeBSD all support ll with printf.
 
35794
    # BSD 4.4 originated 'q'.  Solaris is more popular and
 
35795
    # doesn't support 'q'.  Solaris wins.  Exceptions can
 
35796
    # go to the OS-dependent section.
 
35797
    int64_t_fmt='#define APR_INT64_T_FMT "lld"'
 
35798
    uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
 
35799
    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
 
35800
    int64_value="long long"
 
35801
    long_value="long long"
 
35802
    int64_strfn="strtoll"
 
35803
elif test "$ac_cv_sizeof_longlong" = "8"; then
 
35804
    int64_literal='#define APR_INT64_C(val) (val##LL)'
 
35805
    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
 
35806
    int64_t_fmt='#define APR_INT64_T_FMT "qd"'
 
35807
    uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
 
35808
    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
 
35809
    int64_value="__int64"
 
35810
    long_value="__int64"
 
35811
    int64_strfn="strtoll"
 
35812
else
 
35813
    # int64_literal may be overriden if your compiler thinks you have
 
35814
    # a 64-bit value but APR does not agree.
 
35815
    { { echo "$as_me:$LINENO: error: could not detect a 64-bit integer type" >&5
 
35816
echo "$as_me: error: could not detect a 64-bit integer type" >&2;}
 
35817
   { (exit 1); exit 1; }; }
 
35818
fi
 
35819
 
 
35820
# If present, allow the C99 macro INT64_C to override our conversion.
 
35821
#
 
35822
# HP-UX's ANSI C compiler provides this without any includes, so we
 
35823
# will first look for INT64_C without adding stdint.h
 
35824
echo "$as_me:$LINENO: checking for INT64_C" >&5
 
35825
echo $ECHO_N "checking for INT64_C... $ECHO_C" >&6
 
35826
if test "${apr_cv_define_INT64_C+set}" = set; then
 
35827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35828
else
 
35829
 
 
35830
cat >conftest.$ac_ext <<_ACEOF
 
35831
/* confdefs.h.  */
 
35832
_ACEOF
 
35833
cat confdefs.h >>conftest.$ac_ext
 
35834
cat >>conftest.$ac_ext <<_ACEOF
 
35835
/* end confdefs.h.  */
 
35836
#ifdef INT64_C
 
35837
YES_IS_DEFINED
 
35838
#endif
 
35839
_ACEOF
 
35840
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
35841
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
35842
  apr_cv_define_INT64_C=yes
 
35843
else
 
35844
 
 
35845
    # Now check for INT64_C in stdint.h
 
35846
    cat >conftest.$ac_ext <<_ACEOF
 
35847
/* confdefs.h.  */
 
35848
_ACEOF
 
35849
cat confdefs.h >>conftest.$ac_ext
 
35850
cat >>conftest.$ac_ext <<_ACEOF
 
35851
/* end confdefs.h.  */
 
35852
#include <stdint.h>
 
35853
#ifdef INT64_C
 
35854
YES_IS_DEFINED
 
35855
#endif
 
35856
_ACEOF
 
35857
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
35858
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
35859
  apr_cv_define_INT64_C=yes
 
35860
else
 
35861
  apr_cv_define_INT64_C=no
 
35862
fi
 
35863
rm -f conftest*
 
35864
 
 
35865
fi
 
35866
rm -f conftest*
 
35867
 
 
35868
fi
 
35869
echo "$as_me:$LINENO: result: $apr_cv_define_INT64_C" >&5
 
35870
echo "${ECHO_T}$apr_cv_define_INT64_C" >&6
 
35871
 
 
35872
if test "$apr_cv_define_INT64_C" = "yes"; then
 
35873
    int64_literal='#define APR_INT64_C(val) INT64_C(val)'
 
35874
    uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
 
35875
    stdint=1
 
35876
else
 
35877
    stdint=0
 
35878
fi
 
35879
 
 
35880
if test "$ac_cv_type_size_t" = "yes"; then
 
35881
    size_t_value="size_t"
 
35882
else
 
35883
    size_t_value="apr_int32_t"
 
35884
fi
 
35885
if test "$ac_cv_type_ssize_t" = "yes"; then
 
35886
    ssize_t_value="ssize_t"
 
35887
else
 
35888
    ssize_t_value="apr_int32_t"
 
35889
fi
 
35890
if test "$ac_cv_socklen_t" = "yes"; then
 
35891
    socklen_t_value="socklen_t"
 
35892
    case $host in
 
35893
        *-hp-hpux*)
 
35894
            if test "$ac_cv_sizeof_long" = "8"; then
 
35895
                # 64-bit HP-UX requires 32-bit socklens in
 
35896
                # kernel, but user-space declarations say
 
35897
                # 64-bit (socklen_t == size_t == long).
 
35898
                # This will result in many compile warnings,
 
35899
                # but we're functionally busted otherwise.
 
35900
                socklen_t_value="int"
 
35901
            fi
 
35902
            ;;
 
35903
    esac
 
35904
else
 
35905
    socklen_t_value="int"
 
35906
fi
 
35907
 
 
35908
echo "$as_me:$LINENO: checking size of ssize_t" >&5
 
35909
echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
 
35910
if test "${ac_cv_sizeof_ssize_t+set}" = set; then
 
35911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35912
else
 
35913
  if test "$cross_compiling" = yes; then
 
35914
  ac_cv_sizeof_ssize_t=8
 
35915
else
 
35916
  cat >conftest.$ac_ext <<_ACEOF
 
35917
/* confdefs.h.  */
 
35918
_ACEOF
 
35919
cat confdefs.h >>conftest.$ac_ext
 
35920
cat >>conftest.$ac_ext <<_ACEOF
 
35921
/* end confdefs.h.  */
 
35922
#include <stdio.h>
 
35923
#include <sys/types.h>
 
35924
main()
 
35925
{
 
35926
  FILE *f=fopen("conftestval","w");
 
35927
  if (!f) exit(1);
 
35928
  fprintf(f, "%d\n", sizeof(ssize_t));
 
35929
  exit(0);
 
35930
}
 
35931
_ACEOF
 
35932
rm -f conftest$ac_exeext
 
35933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35934
  (eval $ac_link) 2>&5
 
35935
  ac_status=$?
 
35936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35937
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
35938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35939
  (eval $ac_try) 2>&5
 
35940
  ac_status=$?
 
35941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35942
  (exit $ac_status); }; }; then
 
35943
  ac_cv_sizeof_ssize_t=`cat conftestval`
 
35944
else
 
35945
  echo "$as_me: program exited with status $ac_status" >&5
 
35946
echo "$as_me: failed program was:" >&5
 
35947
sed 's/^/| /' conftest.$ac_ext >&5
 
35948
 
 
35949
( exit $ac_status )
 
35950
ac_cv_sizeof_ssize_t=0
 
35951
fi
 
35952
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
35953
fi
 
35954
fi
 
35955
echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
 
35956
echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
 
35957
 
 
35958
cat >>confdefs.h <<_ACEOF
 
35959
#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
 
35960
_ACEOF
 
35961
 
 
35962
 
 
35963
 
 
35964
if test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
 
35965
    ssize_t_fmt='#define APR_SSIZE_T_FMT "d"'
 
35966
elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
 
35967
    ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
 
35968
else
 
35969
    ssize_t_fmt='#error Can not determine the proper size for ssize_t'
 
35970
fi
 
35971
 
 
35972
echo "$as_me:$LINENO: checking size of size_t" >&5
 
35973
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
 
35974
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
35975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35976
else
 
35977
  if test "$cross_compiling" = yes; then
 
35978
  ac_cv_sizeof_size_t=8
 
35979
else
 
35980
  cat >conftest.$ac_ext <<_ACEOF
 
35981
/* confdefs.h.  */
 
35982
_ACEOF
 
35983
cat confdefs.h >>conftest.$ac_ext
 
35984
cat >>conftest.$ac_ext <<_ACEOF
 
35985
/* end confdefs.h.  */
 
35986
#include <stdio.h>
 
35987
#include <stddef.h>
 
35988
main()
 
35989
{
 
35990
  FILE *f=fopen("conftestval","w");
 
35991
  if (!f) exit(1);
 
35992
  fprintf(f, "%d\n", sizeof(size_t));
 
35993
  exit(0);
 
35994
}
 
35995
_ACEOF
 
35996
rm -f conftest$ac_exeext
 
35997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35998
  (eval $ac_link) 2>&5
 
35999
  ac_status=$?
 
36000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36001
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
36002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36003
  (eval $ac_try) 2>&5
 
36004
  ac_status=$?
 
36005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36006
  (exit $ac_status); }; }; then
 
36007
  ac_cv_sizeof_size_t=`cat conftestval`
 
36008
else
 
36009
  echo "$as_me: program exited with status $ac_status" >&5
 
36010
echo "$as_me: failed program was:" >&5
 
36011
sed 's/^/| /' conftest.$ac_ext >&5
 
36012
 
 
36013
( exit $ac_status )
 
36014
ac_cv_sizeof_size_t=0
 
36015
fi
 
36016
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
36017
fi
 
36018
fi
 
36019
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
36020
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
 
36021
 
 
36022
cat >>confdefs.h <<_ACEOF
 
36023
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
 
36024
_ACEOF
 
36025
 
 
36026
 
 
36027
 
 
36028
if test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
 
36029
    size_t_fmt='#define APR_SIZE_T_FMT "d"'
 
36030
elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
 
36031
    size_t_fmt='#define APR_SIZE_T_FMT "ld"'
 
36032
else
 
36033
    size_t_fmt='#error Can not determine the proper size for size_t'
 
36034
fi
 
36035
 
 
36036
echo "$as_me:$LINENO: checking size of off_t" >&5
 
36037
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
 
36038
if test "${ac_cv_sizeof_off_t+set}" = set; then
 
36039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36040
else
 
36041
  if test "$cross_compiling" = yes; then
 
36042
  ac_cv_sizeof_off_t=8
 
36043
else
 
36044
  cat >conftest.$ac_ext <<_ACEOF
 
36045
/* confdefs.h.  */
 
36046
_ACEOF
 
36047
cat confdefs.h >>conftest.$ac_ext
 
36048
cat >>conftest.$ac_ext <<_ACEOF
 
36049
/* end confdefs.h.  */
 
36050
#include <stdio.h>
 
36051
#include <sys/types.h>
 
36052
main()
 
36053
{
 
36054
  FILE *f=fopen("conftestval","w");
 
36055
  if (!f) exit(1);
 
36056
  fprintf(f, "%d\n", sizeof(off_t));
 
36057
  exit(0);
 
36058
}
 
36059
_ACEOF
 
36060
rm -f conftest$ac_exeext
 
36061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36062
  (eval $ac_link) 2>&5
 
36063
  ac_status=$?
 
36064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36065
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
36066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36067
  (eval $ac_try) 2>&5
 
36068
  ac_status=$?
 
36069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36070
  (exit $ac_status); }; }; then
 
36071
  ac_cv_sizeof_off_t=`cat conftestval`
 
36072
else
 
36073
  echo "$as_me: program exited with status $ac_status" >&5
 
36074
echo "$as_me: failed program was:" >&5
 
36075
sed 's/^/| /' conftest.$ac_ext >&5
 
36076
 
 
36077
( exit $ac_status )
 
36078
ac_cv_sizeof_off_t=0
 
36079
fi
 
36080
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
36081
fi
 
36082
fi
 
36083
echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
 
36084
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
 
36085
 
 
36086
cat >>confdefs.h <<_ACEOF
 
36087
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
 
36088
_ACEOF
 
36089
 
 
36090
 
 
36091
 
 
36092
if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
 
36093
    # Enable LFS
 
36094
    aprlfs=1
 
36095
 
 
36096
 
 
36097
 
 
36098
 
 
36099
for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64
 
36100
do
 
36101
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
36102
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
36103
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
36104
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
36105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36106
else
 
36107
  cat >conftest.$ac_ext <<_ACEOF
 
36108
/* confdefs.h.  */
 
36109
_ACEOF
 
36110
cat confdefs.h >>conftest.$ac_ext
 
36111
cat >>conftest.$ac_ext <<_ACEOF
 
36112
/* end confdefs.h.  */
 
36113
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
36114
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36115
#define $ac_func innocuous_$ac_func
 
36116
 
 
36117
/* System header to define __stub macros and hopefully few prototypes,
 
36118
    which can conflict with char $ac_func (); below.
 
36119
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36120
    <limits.h> exists even on freestanding compilers.  */
 
36121
 
 
36122
#ifdef __STDC__
 
36123
# include <limits.h>
 
36124
#else
 
36125
# include <assert.h>
 
36126
#endif
 
36127
 
 
36128
#undef $ac_func
 
36129
 
 
36130
/* Override any gcc2 internal prototype to avoid an error.  */
 
36131
#ifdef __cplusplus
 
36132
extern "C"
 
36133
{
 
36134
#endif
 
36135
/* We use char because int might match the return type of a gcc2
 
36136
   builtin and then its argument prototype would still apply.  */
 
36137
char $ac_func ();
 
36138
/* The GNU C library defines this for functions which it implements
 
36139
    to always fail with ENOSYS.  Some functions are actually named
 
36140
    something starting with __ and the normal name is an alias.  */
 
36141
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
36142
choke me
 
36143
#else
 
36144
char (*f) () = $ac_func;
 
36145
#endif
 
36146
#ifdef __cplusplus
 
36147
}
 
36148
#endif
 
36149
 
 
36150
int
 
36151
main ()
 
36152
{
 
36153
return f != $ac_func;
 
36154
  ;
 
36155
  return 0;
 
36156
}
 
36157
_ACEOF
 
36158
rm -f conftest.$ac_objext conftest$ac_exeext
 
36159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36160
  (eval $ac_link) 2>conftest.er1
 
36161
  ac_status=$?
 
36162
  grep -v '^ *+' conftest.er1 >conftest.err
 
36163
  rm -f conftest.er1
 
36164
  cat conftest.err >&5
 
36165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36166
  (exit $ac_status); } &&
 
36167
         { ac_try='test -z "$ac_c_werror_flag"
 
36168
                         || test ! -s conftest.err'
 
36169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36170
  (eval $ac_try) 2>&5
 
36171
  ac_status=$?
 
36172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36173
  (exit $ac_status); }; } &&
 
36174
         { ac_try='test -s conftest$ac_exeext'
 
36175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36176
  (eval $ac_try) 2>&5
 
36177
  ac_status=$?
 
36178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36179
  (exit $ac_status); }; }; then
 
36180
  eval "$as_ac_var=yes"
 
36181
else
 
36182
  echo "$as_me: failed program was:" >&5
 
36183
sed 's/^/| /' conftest.$ac_ext >&5
 
36184
 
 
36185
eval "$as_ac_var=no"
 
36186
fi
 
36187
rm -f conftest.err conftest.$ac_objext \
 
36188
      conftest$ac_exeext conftest.$ac_ext
 
36189
fi
 
36190
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
36191
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
36192
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
36193
  cat >>confdefs.h <<_ACEOF
 
36194
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
36195
_ACEOF
 
36196
 
 
36197
fi
 
36198
done
 
36199
 
 
36200
else
 
36201
    aprlfs=0
 
36202
fi
 
36203
 
 
36204
echo "$as_me:$LINENO: checking which type to use for apr_off_t" >&5
 
36205
echo $ECHO_N "checking which type to use for apr_off_t... $ECHO_C" >&6
 
36206
if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
 
36207
    # LFS is go!
 
36208
    off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
 
36209
    off_t_value='off64_t'
 
36210
    off_t_strfn='apr_strtoi64'
 
36211
elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
 
36212
    # Special case: off_t may change size with _FILE_OFFSET_BITS
 
36213
    # on 32-bit systems with LFS support.  To avoid compatibility
 
36214
    # issues when other packages do define _FILE_OFFSET_BITS,
 
36215
    # hard-code apr_off_t to long.
 
36216
    off_t_value=long
 
36217
    off_t_fmt='#define APR_OFF_T_FMT "ld"'
 
36218
    off_t_strfn='strtol'
 
36219
elif test "$ac_cv_type_off_t" = "yes"; then
 
36220
    off_t_value=off_t
 
36221
    # off_t is more commonly a long than an int; prefer that case
 
36222
    # where int and long are the same size.
 
36223
    if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
 
36224
        off_t_fmt='#define APR_OFF_T_FMT "ld"'
 
36225
        off_t_strfn='strtol'
 
36226
    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
 
36227
        off_t_fmt='#define APR_OFF_T_FMT "d"'
 
36228
        off_t_strfn='strtoi'
 
36229
    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
 
36230
        off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
 
36231
        off_t_strfn='apr_strtoi64'
 
36232
    else
 
36233
        { { echo "$as_me:$LINENO: error: could not determine the size of off_t" >&5
 
36234
echo "$as_me: error: could not determine the size of off_t" >&2;}
 
36235
   { (exit 1); exit 1; }; }
 
36236
    fi
 
36237
else
 
36238
   # Fallback on int
 
36239
   off_t_value=apr_int32_t
 
36240
   off_t_fmt=d
 
36241
   off_t_strfn='strtoi'
 
36242
fi
 
36243
echo "$as_me:$LINENO: result: $off_t_value" >&5
 
36244
echo "${ECHO_T}$off_t_value" >&6
 
36245
 
 
36246
echo "$as_me:$LINENO: checking size of pid_t" >&5
 
36247
echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6
 
36248
if test "${ac_cv_sizeof_pid_t+set}" = set; then
 
36249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36250
else
 
36251
  if test "$cross_compiling" = yes; then
 
36252
  ac_cv_sizeof_pid_t=8
 
36253
else
 
36254
  cat >conftest.$ac_ext <<_ACEOF
 
36255
/* confdefs.h.  */
 
36256
_ACEOF
 
36257
cat confdefs.h >>conftest.$ac_ext
 
36258
cat >>conftest.$ac_ext <<_ACEOF
 
36259
/* end confdefs.h.  */
 
36260
#include <stdio.h>
 
36261
#include <sys/types.h>
 
36262
main()
 
36263
{
 
36264
  FILE *f=fopen("conftestval","w");
 
36265
  if (!f) exit(1);
 
36266
  fprintf(f, "%d\n", sizeof(pid_t));
 
36267
  exit(0);
 
36268
}
 
36269
_ACEOF
 
36270
rm -f conftest$ac_exeext
 
36271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36272
  (eval $ac_link) 2>&5
 
36273
  ac_status=$?
 
36274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36275
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
36276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36277
  (eval $ac_try) 2>&5
 
36278
  ac_status=$?
 
36279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36280
  (exit $ac_status); }; }; then
 
36281
  ac_cv_sizeof_pid_t=`cat conftestval`
 
36282
else
 
36283
  echo "$as_me: program exited with status $ac_status" >&5
 
36284
echo "$as_me: failed program was:" >&5
 
36285
sed 's/^/| /' conftest.$ac_ext >&5
 
36286
 
 
36287
( exit $ac_status )
 
36288
ac_cv_sizeof_pid_t=0
 
36289
fi
 
36290
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
36291
fi
 
36292
fi
 
36293
echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
 
36294
echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6
 
36295
 
 
36296
cat >>confdefs.h <<_ACEOF
 
36297
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
 
36298
_ACEOF
 
36299
 
 
36300
 
 
36301
 
 
36302
if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
 
36303
    pid_t_fmt='#define APR_PID_T_FMT "hd"'
 
36304
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
 
36305
    pid_t_fmt='#define APR_PID_T_FMT "d"'
 
36306
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
 
36307
    pid_t_fmt='#define APR_PID_T_FMT "ld"'
 
36308
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
 
36309
    pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
 
36310
else
 
36311
    pid_t_fmt='#error Can not determine the proper size for pid_t'
 
36312
fi
 
36313
 
 
36314
# Checks for endianness
 
36315
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
36316
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
36317
if test "${ac_cv_c_bigendian+set}" = set; then
 
36318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36319
else
 
36320
  # See if sys/param.h defines the BYTE_ORDER macro.
 
36321
cat >conftest.$ac_ext <<_ACEOF
 
36322
/* confdefs.h.  */
 
36323
_ACEOF
 
36324
cat confdefs.h >>conftest.$ac_ext
 
36325
cat >>conftest.$ac_ext <<_ACEOF
 
36326
/* end confdefs.h.  */
 
36327
#include <sys/types.h>
 
36328
#include <sys/param.h>
 
36329
 
 
36330
int
 
36331
main ()
 
36332
{
 
36333
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
36334
 bogus endian macros
 
36335
#endif
 
36336
 
 
36337
  ;
 
36338
  return 0;
 
36339
}
 
36340
_ACEOF
 
36341
rm -f conftest.$ac_objext
 
36342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
36343
  (eval $ac_compile) 2>conftest.er1
 
36344
  ac_status=$?
 
36345
  grep -v '^ *+' conftest.er1 >conftest.err
 
36346
  rm -f conftest.er1
 
36347
  cat conftest.err >&5
 
36348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36349
  (exit $ac_status); } &&
 
36350
         { ac_try='test -z "$ac_c_werror_flag"
 
36351
                         || test ! -s conftest.err'
 
36352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36353
  (eval $ac_try) 2>&5
 
36354
  ac_status=$?
 
36355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36356
  (exit $ac_status); }; } &&
 
36357
         { ac_try='test -s conftest.$ac_objext'
 
36358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36359
  (eval $ac_try) 2>&5
 
36360
  ac_status=$?
 
36361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36362
  (exit $ac_status); }; }; then
 
36363
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
36364
cat >conftest.$ac_ext <<_ACEOF
 
36365
/* confdefs.h.  */
 
36366
_ACEOF
 
36367
cat confdefs.h >>conftest.$ac_ext
 
36368
cat >>conftest.$ac_ext <<_ACEOF
 
36369
/* end confdefs.h.  */
 
36370
#include <sys/types.h>
 
36371
#include <sys/param.h>
 
36372
 
 
36373
int
 
36374
main ()
 
36375
{
 
36376
#if BYTE_ORDER != BIG_ENDIAN
 
36377
 not big endian
 
36378
#endif
 
36379
 
 
36380
  ;
 
36381
  return 0;
 
36382
}
 
36383
_ACEOF
 
36384
rm -f conftest.$ac_objext
 
36385
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
36386
  (eval $ac_compile) 2>conftest.er1
 
36387
  ac_status=$?
 
36388
  grep -v '^ *+' conftest.er1 >conftest.err
 
36389
  rm -f conftest.er1
 
36390
  cat conftest.err >&5
 
36391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36392
  (exit $ac_status); } &&
 
36393
         { ac_try='test -z "$ac_c_werror_flag"
 
36394
                         || test ! -s conftest.err'
 
36395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36396
  (eval $ac_try) 2>&5
 
36397
  ac_status=$?
 
36398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36399
  (exit $ac_status); }; } &&
 
36400
         { ac_try='test -s conftest.$ac_objext'
 
36401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36402
  (eval $ac_try) 2>&5
 
36403
  ac_status=$?
 
36404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36405
  (exit $ac_status); }; }; then
 
36406
  ac_cv_c_bigendian=yes
 
36407
else
 
36408
  echo "$as_me: failed program was:" >&5
 
36409
sed 's/^/| /' conftest.$ac_ext >&5
 
36410
 
 
36411
ac_cv_c_bigendian=no
 
36412
fi
 
36413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36414
else
 
36415
  echo "$as_me: failed program was:" >&5
 
36416
sed 's/^/| /' conftest.$ac_ext >&5
 
36417
 
 
36418
# It does not; compile a test program.
 
36419
if test "$cross_compiling" = yes; then
 
36420
  # try to guess the endianness by grepping values into an object file
 
36421
  ac_cv_c_bigendian=unknown
 
36422
  cat >conftest.$ac_ext <<_ACEOF
 
36423
/* confdefs.h.  */
 
36424
_ACEOF
 
36425
cat confdefs.h >>conftest.$ac_ext
 
36426
cat >>conftest.$ac_ext <<_ACEOF
 
36427
/* end confdefs.h.  */
 
36428
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
36429
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
36430
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
36431
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
36432
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
36433
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
36434
int
 
36435
main ()
 
36436
{
 
36437
 _ascii (); _ebcdic ();
 
36438
  ;
 
36439
  return 0;
 
36440
}
 
36441
_ACEOF
 
36442
rm -f conftest.$ac_objext
 
36443
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
36444
  (eval $ac_compile) 2>conftest.er1
 
36445
  ac_status=$?
 
36446
  grep -v '^ *+' conftest.er1 >conftest.err
 
36447
  rm -f conftest.er1
 
36448
  cat conftest.err >&5
 
36449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36450
  (exit $ac_status); } &&
 
36451
         { ac_try='test -z "$ac_c_werror_flag"
 
36452
                         || test ! -s conftest.err'
 
36453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36454
  (eval $ac_try) 2>&5
 
36455
  ac_status=$?
 
36456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36457
  (exit $ac_status); }; } &&
 
36458
         { ac_try='test -s conftest.$ac_objext'
 
36459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36460
  (eval $ac_try) 2>&5
 
36461
  ac_status=$?
 
36462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36463
  (exit $ac_status); }; }; then
 
36464
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
36465
  ac_cv_c_bigendian=yes
 
36466
fi
 
36467
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
36468
  if test "$ac_cv_c_bigendian" = unknown; then
 
36469
    ac_cv_c_bigendian=no
 
36470
  else
 
36471
    # finding both strings is unlikely to happen, but who knows?
 
36472
    ac_cv_c_bigendian=unknown
 
36473
  fi
 
36474
fi
 
36475
else
 
36476
  echo "$as_me: failed program was:" >&5
 
36477
sed 's/^/| /' conftest.$ac_ext >&5
 
36478
 
 
36479
fi
 
36480
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36481
else
 
36482
  cat >conftest.$ac_ext <<_ACEOF
 
36483
/* confdefs.h.  */
 
36484
_ACEOF
 
36485
cat confdefs.h >>conftest.$ac_ext
 
36486
cat >>conftest.$ac_ext <<_ACEOF
 
36487
/* end confdefs.h.  */
 
36488
int
 
36489
main ()
 
36490
{
 
36491
  /* Are we little or big endian?  From Harbison&Steele.  */
 
36492
  union
 
36493
  {
 
36494
    long l;
 
36495
    char c[sizeof (long)];
 
36496
  } u;
 
36497
  u.l = 1;
 
36498
  exit (u.c[sizeof (long) - 1] == 1);
 
36499
}
 
36500
_ACEOF
 
36501
rm -f conftest$ac_exeext
 
36502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36503
  (eval $ac_link) 2>&5
 
36504
  ac_status=$?
 
36505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36506
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
36507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36508
  (eval $ac_try) 2>&5
 
36509
  ac_status=$?
 
36510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36511
  (exit $ac_status); }; }; then
 
36512
  ac_cv_c_bigendian=no
 
36513
else
 
36514
  echo "$as_me: program exited with status $ac_status" >&5
 
36515
echo "$as_me: failed program was:" >&5
 
36516
sed 's/^/| /' conftest.$ac_ext >&5
 
36517
 
 
36518
( exit $ac_status )
 
36519
ac_cv_c_bigendian=yes
 
36520
fi
 
36521
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
36522
fi
 
36523
fi
 
36524
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36525
fi
 
36526
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
36527
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
36528
case $ac_cv_c_bigendian in
 
36529
  yes)
 
36530
 
 
36531
cat >>confdefs.h <<\_ACEOF
 
36532
#define WORDS_BIGENDIAN 1
 
36533
_ACEOF
 
36534
 ;;
 
36535
  no)
 
36536
     ;;
 
36537
  *)
 
36538
    { { echo "$as_me:$LINENO: error: unknown endianness
 
36539
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
36540
echo "$as_me: error: unknown endianness
 
36541
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
36542
   { (exit 1); exit 1; }; } ;;
 
36543
esac
 
36544
 
 
36545
if test $ac_cv_c_bigendian = yes; then
 
36546
    bigendian=1
 
36547
else
 
36548
    bigendian=0
 
36549
fi
 
36550
 
 
36551
# Basically, we have tried to figure out the correct format strings
 
36552
# for APR types which vary between platforms, but we don't always get
 
36553
# it right.  If you find that we don't get it right for your platform,
 
36554
# you can override our decision below.
 
36555
case $host in
 
36556
   s390*linux*)
 
36557
       # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
 
36558
       # for size_t rather than "unsigned int":
 
36559
       size_t_fmt='#define APR_SIZE_T_FMT "lu"'
 
36560
       ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
 
36561
       ;;
 
36562
   *-os2*)
 
36563
       size_t_fmt='#define APR_SIZE_T_FMT "lu"'
 
36564
       ;;
 
36565
   *-solaris*)
 
36566
       pid_t_fmt='#define APR_PID_T_FMT "ld"'
 
36567
       ;;
 
36568
   *aix4*|*aix5*)
 
36569
       ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
 
36570
       size_t_fmt='#define APR_SIZE_T_FMT "ld"'
 
36571
       ;;
 
36572
    *beos*)
 
36573
        ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
 
36574
        size_t_fmt='#define APR_SIZE_T_FMT "ld"'
 
36575
        ;;
 
36576
    *apple-darwin*)
 
36577
        ssize_t_fmt='#define APR_SSIZE_T_FMT "d"'
 
36578
        size_t_fmt='#define APR_SIZE_T_FMT "lu"'
 
36579
        ;;
 
36580
esac
 
36581
 
 
36582
 
 
36583
 
 
36584
 
 
36585
 
 
36586
 
 
36587
 
 
36588
 
 
36589
 
 
36590
 
 
36591
 
 
36592
 
 
36593
 
 
36594
 
 
36595
 
 
36596
 
 
36597
 
 
36598
 
 
36599
 
 
36600
 
 
36601
 
 
36602
 
 
36603
 
 
36604
 
 
36605
for ac_func in strnicmp
 
36606
do
 
36607
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
36608
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
36609
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
36610
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
36611
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36612
else
 
36613
  cat >conftest.$ac_ext <<_ACEOF
 
36614
/* confdefs.h.  */
 
36615
_ACEOF
 
36616
cat confdefs.h >>conftest.$ac_ext
 
36617
cat >>conftest.$ac_ext <<_ACEOF
 
36618
/* end confdefs.h.  */
 
36619
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
36620
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36621
#define $ac_func innocuous_$ac_func
 
36622
 
 
36623
/* System header to define __stub macros and hopefully few prototypes,
 
36624
    which can conflict with char $ac_func (); below.
 
36625
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36626
    <limits.h> exists even on freestanding compilers.  */
 
36627
 
 
36628
#ifdef __STDC__
 
36629
# include <limits.h>
 
36630
#else
 
36631
# include <assert.h>
 
36632
#endif
 
36633
 
 
36634
#undef $ac_func
 
36635
 
 
36636
/* Override any gcc2 internal prototype to avoid an error.  */
 
36637
#ifdef __cplusplus
 
36638
extern "C"
 
36639
{
 
36640
#endif
 
36641
/* We use char because int might match the return type of a gcc2
 
36642
   builtin and then its argument prototype would still apply.  */
 
36643
char $ac_func ();
 
36644
/* The GNU C library defines this for functions which it implements
 
36645
    to always fail with ENOSYS.  Some functions are actually named
 
36646
    something starting with __ and the normal name is an alias.  */
 
36647
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
36648
choke me
 
36649
#else
 
36650
char (*f) () = $ac_func;
 
36651
#endif
 
36652
#ifdef __cplusplus
 
36653
}
 
36654
#endif
 
36655
 
 
36656
int
 
36657
main ()
 
36658
{
 
36659
return f != $ac_func;
 
36660
  ;
 
36661
  return 0;
 
36662
}
 
36663
_ACEOF
 
36664
rm -f conftest.$ac_objext conftest$ac_exeext
 
36665
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36666
  (eval $ac_link) 2>conftest.er1
 
36667
  ac_status=$?
 
36668
  grep -v '^ *+' conftest.er1 >conftest.err
 
36669
  rm -f conftest.er1
 
36670
  cat conftest.err >&5
 
36671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36672
  (exit $ac_status); } &&
 
36673
         { ac_try='test -z "$ac_c_werror_flag"
 
36674
                         || test ! -s conftest.err'
 
36675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36676
  (eval $ac_try) 2>&5
 
36677
  ac_status=$?
 
36678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36679
  (exit $ac_status); }; } &&
 
36680
         { ac_try='test -s conftest$ac_exeext'
 
36681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36682
  (eval $ac_try) 2>&5
 
36683
  ac_status=$?
 
36684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36685
  (exit $ac_status); }; }; then
 
36686
  eval "$as_ac_var=yes"
 
36687
else
 
36688
  echo "$as_me: failed program was:" >&5
 
36689
sed 's/^/| /' conftest.$ac_ext >&5
 
36690
 
 
36691
eval "$as_ac_var=no"
 
36692
fi
 
36693
rm -f conftest.err conftest.$ac_objext \
 
36694
      conftest$ac_exeext conftest.$ac_ext
 
36695
fi
 
36696
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
36697
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
36698
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
36699
  cat >>confdefs.h <<_ACEOF
 
36700
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
36701
_ACEOF
 
36702
 have_strnicmp="1"
 
36703
else
 
36704
  have_strnicmp="0"
 
36705
fi
 
36706
done
 
36707
 
 
36708
 
 
36709
for ac_func in strncasecmp
 
36710
do
 
36711
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
36712
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
36713
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
36714
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
36715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36716
else
 
36717
  cat >conftest.$ac_ext <<_ACEOF
 
36718
/* confdefs.h.  */
 
36719
_ACEOF
 
36720
cat confdefs.h >>conftest.$ac_ext
 
36721
cat >>conftest.$ac_ext <<_ACEOF
 
36722
/* end confdefs.h.  */
 
36723
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
36724
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36725
#define $ac_func innocuous_$ac_func
 
36726
 
 
36727
/* System header to define __stub macros and hopefully few prototypes,
 
36728
    which can conflict with char $ac_func (); below.
 
36729
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36730
    <limits.h> exists even on freestanding compilers.  */
 
36731
 
 
36732
#ifdef __STDC__
 
36733
# include <limits.h>
 
36734
#else
 
36735
# include <assert.h>
 
36736
#endif
 
36737
 
 
36738
#undef $ac_func
 
36739
 
 
36740
/* Override any gcc2 internal prototype to avoid an error.  */
 
36741
#ifdef __cplusplus
 
36742
extern "C"
 
36743
{
 
36744
#endif
 
36745
/* We use char because int might match the return type of a gcc2
 
36746
   builtin and then its argument prototype would still apply.  */
 
36747
char $ac_func ();
 
36748
/* The GNU C library defines this for functions which it implements
 
36749
    to always fail with ENOSYS.  Some functions are actually named
 
36750
    something starting with __ and the normal name is an alias.  */
 
36751
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
36752
choke me
 
36753
#else
 
36754
char (*f) () = $ac_func;
 
36755
#endif
 
36756
#ifdef __cplusplus
 
36757
}
 
36758
#endif
 
36759
 
 
36760
int
 
36761
main ()
 
36762
{
 
36763
return f != $ac_func;
 
36764
  ;
 
36765
  return 0;
 
36766
}
 
36767
_ACEOF
 
36768
rm -f conftest.$ac_objext conftest$ac_exeext
 
36769
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36770
  (eval $ac_link) 2>conftest.er1
 
36771
  ac_status=$?
 
36772
  grep -v '^ *+' conftest.er1 >conftest.err
 
36773
  rm -f conftest.er1
 
36774
  cat conftest.err >&5
 
36775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36776
  (exit $ac_status); } &&
 
36777
         { ac_try='test -z "$ac_c_werror_flag"
 
36778
                         || test ! -s conftest.err'
 
36779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36780
  (eval $ac_try) 2>&5
 
36781
  ac_status=$?
 
36782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36783
  (exit $ac_status); }; } &&
 
36784
         { ac_try='test -s conftest$ac_exeext'
 
36785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36786
  (eval $ac_try) 2>&5
 
36787
  ac_status=$?
 
36788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36789
  (exit $ac_status); }; }; then
 
36790
  eval "$as_ac_var=yes"
 
36791
else
 
36792
  echo "$as_me: failed program was:" >&5
 
36793
sed 's/^/| /' conftest.$ac_ext >&5
 
36794
 
 
36795
eval "$as_ac_var=no"
 
36796
fi
 
36797
rm -f conftest.err conftest.$ac_objext \
 
36798
      conftest$ac_exeext conftest.$ac_ext
 
36799
fi
 
36800
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
36801
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
36802
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
36803
  cat >>confdefs.h <<_ACEOF
 
36804
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
36805
_ACEOF
 
36806
 have_strncasecmp="1"
 
36807
else
 
36808
  have_strncasecmp="0"
 
36809
fi
 
36810
done
 
36811
 
 
36812
 
 
36813
for ac_func in stricmp
 
36814
do
 
36815
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
36816
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
36817
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
36818
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
36819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36820
else
 
36821
  cat >conftest.$ac_ext <<_ACEOF
 
36822
/* confdefs.h.  */
 
36823
_ACEOF
 
36824
cat confdefs.h >>conftest.$ac_ext
 
36825
cat >>conftest.$ac_ext <<_ACEOF
 
36826
/* end confdefs.h.  */
 
36827
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
36828
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36829
#define $ac_func innocuous_$ac_func
 
36830
 
 
36831
/* System header to define __stub macros and hopefully few prototypes,
 
36832
    which can conflict with char $ac_func (); below.
 
36833
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36834
    <limits.h> exists even on freestanding compilers.  */
 
36835
 
 
36836
#ifdef __STDC__
 
36837
# include <limits.h>
 
36838
#else
 
36839
# include <assert.h>
 
36840
#endif
 
36841
 
 
36842
#undef $ac_func
 
36843
 
 
36844
/* Override any gcc2 internal prototype to avoid an error.  */
 
36845
#ifdef __cplusplus
 
36846
extern "C"
 
36847
{
 
36848
#endif
 
36849
/* We use char because int might match the return type of a gcc2
 
36850
   builtin and then its argument prototype would still apply.  */
 
36851
char $ac_func ();
 
36852
/* The GNU C library defines this for functions which it implements
 
36853
    to always fail with ENOSYS.  Some functions are actually named
 
36854
    something starting with __ and the normal name is an alias.  */
 
36855
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
36856
choke me
 
36857
#else
 
36858
char (*f) () = $ac_func;
 
36859
#endif
 
36860
#ifdef __cplusplus
 
36861
}
 
36862
#endif
 
36863
 
 
36864
int
 
36865
main ()
 
36866
{
 
36867
return f != $ac_func;
 
36868
  ;
 
36869
  return 0;
 
36870
}
 
36871
_ACEOF
 
36872
rm -f conftest.$ac_objext conftest$ac_exeext
 
36873
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36874
  (eval $ac_link) 2>conftest.er1
 
36875
  ac_status=$?
 
36876
  grep -v '^ *+' conftest.er1 >conftest.err
 
36877
  rm -f conftest.er1
 
36878
  cat conftest.err >&5
 
36879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36880
  (exit $ac_status); } &&
 
36881
         { ac_try='test -z "$ac_c_werror_flag"
 
36882
                         || test ! -s conftest.err'
 
36883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36884
  (eval $ac_try) 2>&5
 
36885
  ac_status=$?
 
36886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36887
  (exit $ac_status); }; } &&
 
36888
         { ac_try='test -s conftest$ac_exeext'
 
36889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36890
  (eval $ac_try) 2>&5
 
36891
  ac_status=$?
 
36892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36893
  (exit $ac_status); }; }; then
 
36894
  eval "$as_ac_var=yes"
 
36895
else
 
36896
  echo "$as_me: failed program was:" >&5
 
36897
sed 's/^/| /' conftest.$ac_ext >&5
 
36898
 
 
36899
eval "$as_ac_var=no"
 
36900
fi
 
36901
rm -f conftest.err conftest.$ac_objext \
 
36902
      conftest$ac_exeext conftest.$ac_ext
 
36903
fi
 
36904
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
36905
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
36906
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
36907
  cat >>confdefs.h <<_ACEOF
 
36908
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
36909
_ACEOF
 
36910
 have_stricmp="1"
 
36911
else
 
36912
  have_stricmp="0"
 
36913
fi
 
36914
done
 
36915
 
 
36916
 
 
36917
for ac_func in strcasecmp
 
36918
do
 
36919
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
36920
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
36921
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
36922
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
36923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36924
else
 
36925
  cat >conftest.$ac_ext <<_ACEOF
 
36926
/* confdefs.h.  */
 
36927
_ACEOF
 
36928
cat confdefs.h >>conftest.$ac_ext
 
36929
cat >>conftest.$ac_ext <<_ACEOF
 
36930
/* end confdefs.h.  */
 
36931
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
36932
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36933
#define $ac_func innocuous_$ac_func
 
36934
 
 
36935
/* System header to define __stub macros and hopefully few prototypes,
 
36936
    which can conflict with char $ac_func (); below.
 
36937
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36938
    <limits.h> exists even on freestanding compilers.  */
 
36939
 
 
36940
#ifdef __STDC__
 
36941
# include <limits.h>
 
36942
#else
 
36943
# include <assert.h>
 
36944
#endif
 
36945
 
 
36946
#undef $ac_func
 
36947
 
 
36948
/* Override any gcc2 internal prototype to avoid an error.  */
 
36949
#ifdef __cplusplus
 
36950
extern "C"
 
36951
{
 
36952
#endif
 
36953
/* We use char because int might match the return type of a gcc2
 
36954
   builtin and then its argument prototype would still apply.  */
 
36955
char $ac_func ();
 
36956
/* The GNU C library defines this for functions which it implements
 
36957
    to always fail with ENOSYS.  Some functions are actually named
 
36958
    something starting with __ and the normal name is an alias.  */
 
36959
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
36960
choke me
 
36961
#else
 
36962
char (*f) () = $ac_func;
 
36963
#endif
 
36964
#ifdef __cplusplus
 
36965
}
 
36966
#endif
 
36967
 
 
36968
int
 
36969
main ()
 
36970
{
 
36971
return f != $ac_func;
 
36972
  ;
 
36973
  return 0;
 
36974
}
 
36975
_ACEOF
 
36976
rm -f conftest.$ac_objext conftest$ac_exeext
 
36977
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36978
  (eval $ac_link) 2>conftest.er1
 
36979
  ac_status=$?
 
36980
  grep -v '^ *+' conftest.er1 >conftest.err
 
36981
  rm -f conftest.er1
 
36982
  cat conftest.err >&5
 
36983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36984
  (exit $ac_status); } &&
 
36985
         { ac_try='test -z "$ac_c_werror_flag"
 
36986
                         || test ! -s conftest.err'
 
36987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36988
  (eval $ac_try) 2>&5
 
36989
  ac_status=$?
 
36990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36991
  (exit $ac_status); }; } &&
 
36992
         { ac_try='test -s conftest$ac_exeext'
 
36993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36994
  (eval $ac_try) 2>&5
 
36995
  ac_status=$?
 
36996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36997
  (exit $ac_status); }; }; then
 
36998
  eval "$as_ac_var=yes"
 
36999
else
 
37000
  echo "$as_me: failed program was:" >&5
 
37001
sed 's/^/| /' conftest.$ac_ext >&5
 
37002
 
 
37003
eval "$as_ac_var=no"
 
37004
fi
 
37005
rm -f conftest.err conftest.$ac_objext \
 
37006
      conftest$ac_exeext conftest.$ac_ext
 
37007
fi
 
37008
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37009
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37010
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37011
  cat >>confdefs.h <<_ACEOF
 
37012
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
37013
_ACEOF
 
37014
 have_strcasecmp="1"
 
37015
else
 
37016
  have_strcasecmp="0"
 
37017
fi
 
37018
done
 
37019
 
 
37020
 
 
37021
for ac_func in strdup
 
37022
do
 
37023
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
37024
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
37025
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
37026
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
37027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37028
else
 
37029
  cat >conftest.$ac_ext <<_ACEOF
 
37030
/* confdefs.h.  */
 
37031
_ACEOF
 
37032
cat confdefs.h >>conftest.$ac_ext
 
37033
cat >>conftest.$ac_ext <<_ACEOF
 
37034
/* end confdefs.h.  */
 
37035
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
37036
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37037
#define $ac_func innocuous_$ac_func
 
37038
 
 
37039
/* System header to define __stub macros and hopefully few prototypes,
 
37040
    which can conflict with char $ac_func (); below.
 
37041
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37042
    <limits.h> exists even on freestanding compilers.  */
 
37043
 
 
37044
#ifdef __STDC__
 
37045
# include <limits.h>
 
37046
#else
 
37047
# include <assert.h>
 
37048
#endif
 
37049
 
 
37050
#undef $ac_func
 
37051
 
 
37052
/* Override any gcc2 internal prototype to avoid an error.  */
 
37053
#ifdef __cplusplus
 
37054
extern "C"
 
37055
{
 
37056
#endif
 
37057
/* We use char because int might match the return type of a gcc2
 
37058
   builtin and then its argument prototype would still apply.  */
 
37059
char $ac_func ();
 
37060
/* The GNU C library defines this for functions which it implements
 
37061
    to always fail with ENOSYS.  Some functions are actually named
 
37062
    something starting with __ and the normal name is an alias.  */
 
37063
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
37064
choke me
 
37065
#else
 
37066
char (*f) () = $ac_func;
 
37067
#endif
 
37068
#ifdef __cplusplus
 
37069
}
 
37070
#endif
 
37071
 
 
37072
int
 
37073
main ()
 
37074
{
 
37075
return f != $ac_func;
 
37076
  ;
 
37077
  return 0;
 
37078
}
 
37079
_ACEOF
 
37080
rm -f conftest.$ac_objext conftest$ac_exeext
 
37081
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37082
  (eval $ac_link) 2>conftest.er1
 
37083
  ac_status=$?
 
37084
  grep -v '^ *+' conftest.er1 >conftest.err
 
37085
  rm -f conftest.er1
 
37086
  cat conftest.err >&5
 
37087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37088
  (exit $ac_status); } &&
 
37089
         { ac_try='test -z "$ac_c_werror_flag"
 
37090
                         || test ! -s conftest.err'
 
37091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37092
  (eval $ac_try) 2>&5
 
37093
  ac_status=$?
 
37094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37095
  (exit $ac_status); }; } &&
 
37096
         { ac_try='test -s conftest$ac_exeext'
 
37097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37098
  (eval $ac_try) 2>&5
 
37099
  ac_status=$?
 
37100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37101
  (exit $ac_status); }; }; then
 
37102
  eval "$as_ac_var=yes"
 
37103
else
 
37104
  echo "$as_me: failed program was:" >&5
 
37105
sed 's/^/| /' conftest.$ac_ext >&5
 
37106
 
 
37107
eval "$as_ac_var=no"
 
37108
fi
 
37109
rm -f conftest.err conftest.$ac_objext \
 
37110
      conftest$ac_exeext conftest.$ac_ext
 
37111
fi
 
37112
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37113
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37114
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37115
  cat >>confdefs.h <<_ACEOF
 
37116
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
37117
_ACEOF
 
37118
 have_strdup="1"
 
37119
else
 
37120
  have_strdup="0"
 
37121
fi
 
37122
done
 
37123
 
 
37124
 
 
37125
for ac_func in strstr
 
37126
do
 
37127
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
37128
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
37129
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
37130
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
37131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37132
else
 
37133
  cat >conftest.$ac_ext <<_ACEOF
 
37134
/* confdefs.h.  */
 
37135
_ACEOF
 
37136
cat confdefs.h >>conftest.$ac_ext
 
37137
cat >>conftest.$ac_ext <<_ACEOF
 
37138
/* end confdefs.h.  */
 
37139
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
37140
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37141
#define $ac_func innocuous_$ac_func
 
37142
 
 
37143
/* System header to define __stub macros and hopefully few prototypes,
 
37144
    which can conflict with char $ac_func (); below.
 
37145
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37146
    <limits.h> exists even on freestanding compilers.  */
 
37147
 
 
37148
#ifdef __STDC__
 
37149
# include <limits.h>
 
37150
#else
 
37151
# include <assert.h>
 
37152
#endif
 
37153
 
 
37154
#undef $ac_func
 
37155
 
 
37156
/* Override any gcc2 internal prototype to avoid an error.  */
 
37157
#ifdef __cplusplus
 
37158
extern "C"
 
37159
{
 
37160
#endif
 
37161
/* We use char because int might match the return type of a gcc2
 
37162
   builtin and then its argument prototype would still apply.  */
 
37163
char $ac_func ();
 
37164
/* The GNU C library defines this for functions which it implements
 
37165
    to always fail with ENOSYS.  Some functions are actually named
 
37166
    something starting with __ and the normal name is an alias.  */
 
37167
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
37168
choke me
 
37169
#else
 
37170
char (*f) () = $ac_func;
 
37171
#endif
 
37172
#ifdef __cplusplus
 
37173
}
 
37174
#endif
 
37175
 
 
37176
int
 
37177
main ()
 
37178
{
 
37179
return f != $ac_func;
 
37180
  ;
 
37181
  return 0;
 
37182
}
 
37183
_ACEOF
 
37184
rm -f conftest.$ac_objext conftest$ac_exeext
 
37185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37186
  (eval $ac_link) 2>conftest.er1
 
37187
  ac_status=$?
 
37188
  grep -v '^ *+' conftest.er1 >conftest.err
 
37189
  rm -f conftest.er1
 
37190
  cat conftest.err >&5
 
37191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37192
  (exit $ac_status); } &&
 
37193
         { ac_try='test -z "$ac_c_werror_flag"
 
37194
                         || test ! -s conftest.err'
 
37195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37196
  (eval $ac_try) 2>&5
 
37197
  ac_status=$?
 
37198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37199
  (exit $ac_status); }; } &&
 
37200
         { ac_try='test -s conftest$ac_exeext'
 
37201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37202
  (eval $ac_try) 2>&5
 
37203
  ac_status=$?
 
37204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37205
  (exit $ac_status); }; }; then
 
37206
  eval "$as_ac_var=yes"
 
37207
else
 
37208
  echo "$as_me: failed program was:" >&5
 
37209
sed 's/^/| /' conftest.$ac_ext >&5
 
37210
 
 
37211
eval "$as_ac_var=no"
 
37212
fi
 
37213
rm -f conftest.err conftest.$ac_objext \
 
37214
      conftest$ac_exeext conftest.$ac_ext
 
37215
fi
 
37216
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37217
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37218
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37219
  cat >>confdefs.h <<_ACEOF
 
37220
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
37221
_ACEOF
 
37222
 have_strstr="1"
 
37223
else
 
37224
  have_strstr="0"
 
37225
fi
 
37226
done
 
37227
 
 
37228
 
 
37229
for ac_func in memchr
 
37230
do
 
37231
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
37232
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
37233
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
37234
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
37235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37236
else
 
37237
  cat >conftest.$ac_ext <<_ACEOF
 
37238
/* confdefs.h.  */
 
37239
_ACEOF
 
37240
cat confdefs.h >>conftest.$ac_ext
 
37241
cat >>conftest.$ac_ext <<_ACEOF
 
37242
/* end confdefs.h.  */
 
37243
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
37244
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37245
#define $ac_func innocuous_$ac_func
 
37246
 
 
37247
/* System header to define __stub macros and hopefully few prototypes,
 
37248
    which can conflict with char $ac_func (); below.
 
37249
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37250
    <limits.h> exists even on freestanding compilers.  */
 
37251
 
 
37252
#ifdef __STDC__
 
37253
# include <limits.h>
 
37254
#else
 
37255
# include <assert.h>
 
37256
#endif
 
37257
 
 
37258
#undef $ac_func
 
37259
 
 
37260
/* Override any gcc2 internal prototype to avoid an error.  */
 
37261
#ifdef __cplusplus
 
37262
extern "C"
 
37263
{
 
37264
#endif
 
37265
/* We use char because int might match the return type of a gcc2
 
37266
   builtin and then its argument prototype would still apply.  */
 
37267
char $ac_func ();
 
37268
/* The GNU C library defines this for functions which it implements
 
37269
    to always fail with ENOSYS.  Some functions are actually named
 
37270
    something starting with __ and the normal name is an alias.  */
 
37271
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
37272
choke me
 
37273
#else
 
37274
char (*f) () = $ac_func;
 
37275
#endif
 
37276
#ifdef __cplusplus
 
37277
}
 
37278
#endif
 
37279
 
 
37280
int
 
37281
main ()
 
37282
{
 
37283
return f != $ac_func;
 
37284
  ;
 
37285
  return 0;
 
37286
}
 
37287
_ACEOF
 
37288
rm -f conftest.$ac_objext conftest$ac_exeext
 
37289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37290
  (eval $ac_link) 2>conftest.er1
 
37291
  ac_status=$?
 
37292
  grep -v '^ *+' conftest.er1 >conftest.err
 
37293
  rm -f conftest.er1
 
37294
  cat conftest.err >&5
 
37295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37296
  (exit $ac_status); } &&
 
37297
         { ac_try='test -z "$ac_c_werror_flag"
 
37298
                         || test ! -s conftest.err'
 
37299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37300
  (eval $ac_try) 2>&5
 
37301
  ac_status=$?
 
37302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37303
  (exit $ac_status); }; } &&
 
37304
         { ac_try='test -s conftest$ac_exeext'
 
37305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37306
  (eval $ac_try) 2>&5
 
37307
  ac_status=$?
 
37308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37309
  (exit $ac_status); }; }; then
 
37310
  eval "$as_ac_var=yes"
 
37311
else
 
37312
  echo "$as_me: failed program was:" >&5
 
37313
sed 's/^/| /' conftest.$ac_ext >&5
 
37314
 
 
37315
eval "$as_ac_var=no"
 
37316
fi
 
37317
rm -f conftest.err conftest.$ac_objext \
 
37318
      conftest$ac_exeext conftest.$ac_ext
 
37319
fi
 
37320
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37321
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37322
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37323
  cat >>confdefs.h <<_ACEOF
 
37324
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
37325
_ACEOF
 
37326
 have_memchr="1"
 
37327
else
 
37328
  have_memchr="0"
 
37329
fi
 
37330
done
 
37331
 
 
37332
as_ac_var=`echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
 
37333
echo "$as_me:$LINENO: checking for $int64_strfn" >&5
 
37334
echo $ECHO_N "checking for $int64_strfn... $ECHO_C" >&6
 
37335
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
37336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37337
else
 
37338
  cat >conftest.$ac_ext <<_ACEOF
 
37339
/* confdefs.h.  */
 
37340
_ACEOF
 
37341
cat confdefs.h >>conftest.$ac_ext
 
37342
cat >>conftest.$ac_ext <<_ACEOF
 
37343
/* end confdefs.h.  */
 
37344
/* Define $int64_strfn to an innocuous variant, in case <limits.h> declares $int64_strfn.
 
37345
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37346
#define $int64_strfn innocuous_$int64_strfn
 
37347
 
 
37348
/* System header to define __stub macros and hopefully few prototypes,
 
37349
    which can conflict with char $int64_strfn (); below.
 
37350
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37351
    <limits.h> exists even on freestanding compilers.  */
 
37352
 
 
37353
#ifdef __STDC__
 
37354
# include <limits.h>
 
37355
#else
 
37356
# include <assert.h>
 
37357
#endif
 
37358
 
 
37359
#undef $int64_strfn
 
37360
 
 
37361
/* Override any gcc2 internal prototype to avoid an error.  */
 
37362
#ifdef __cplusplus
 
37363
extern "C"
 
37364
{
 
37365
#endif
 
37366
/* We use char because int might match the return type of a gcc2
 
37367
   builtin and then its argument prototype would still apply.  */
 
37368
char $int64_strfn ();
 
37369
/* The GNU C library defines this for functions which it implements
 
37370
    to always fail with ENOSYS.  Some functions are actually named
 
37371
    something starting with __ and the normal name is an alias.  */
 
37372
#if defined (__stub_$int64_strfn) || defined (__stub___$int64_strfn)
 
37373
choke me
 
37374
#else
 
37375
char (*f) () = $int64_strfn;
 
37376
#endif
 
37377
#ifdef __cplusplus
 
37378
}
 
37379
#endif
 
37380
 
 
37381
int
 
37382
main ()
 
37383
{
 
37384
return f != $int64_strfn;
 
37385
  ;
 
37386
  return 0;
 
37387
}
 
37388
_ACEOF
 
37389
rm -f conftest.$ac_objext conftest$ac_exeext
 
37390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37391
  (eval $ac_link) 2>conftest.er1
 
37392
  ac_status=$?
 
37393
  grep -v '^ *+' conftest.er1 >conftest.err
 
37394
  rm -f conftest.er1
 
37395
  cat conftest.err >&5
 
37396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37397
  (exit $ac_status); } &&
 
37398
         { ac_try='test -z "$ac_c_werror_flag"
 
37399
                         || test ! -s conftest.err'
 
37400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37401
  (eval $ac_try) 2>&5
 
37402
  ac_status=$?
 
37403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37404
  (exit $ac_status); }; } &&
 
37405
         { ac_try='test -s conftest$ac_exeext'
 
37406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37407
  (eval $ac_try) 2>&5
 
37408
  ac_status=$?
 
37409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37410
  (exit $ac_status); }; }; then
 
37411
  eval "$as_ac_var=yes"
 
37412
else
 
37413
  echo "$as_me: failed program was:" >&5
 
37414
sed 's/^/| /' conftest.$ac_ext >&5
 
37415
 
 
37416
eval "$as_ac_var=no"
 
37417
fi
 
37418
rm -f conftest.err conftest.$ac_objext \
 
37419
      conftest$ac_exeext conftest.$ac_ext
 
37420
fi
 
37421
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37422
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37423
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37424
  have_int64_strfn="1"
 
37425
else
 
37426
  have_int64_strfn="0"
 
37427
fi
 
37428
 
 
37429
 
 
37430
if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
 
37431
    int64_strfn="strtoq"
 
37432
    echo "$as_me:$LINENO: checking for strtoq" >&5
 
37433
echo $ECHO_N "checking for strtoq... $ECHO_C" >&6
 
37434
if test "${ac_cv_func_strtoq+set}" = set; then
 
37435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37436
else
 
37437
  cat >conftest.$ac_ext <<_ACEOF
 
37438
/* confdefs.h.  */
 
37439
_ACEOF
 
37440
cat confdefs.h >>conftest.$ac_ext
 
37441
cat >>conftest.$ac_ext <<_ACEOF
 
37442
/* end confdefs.h.  */
 
37443
/* Define strtoq to an innocuous variant, in case <limits.h> declares strtoq.
 
37444
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37445
#define strtoq innocuous_strtoq
 
37446
 
 
37447
/* System header to define __stub macros and hopefully few prototypes,
 
37448
    which can conflict with char strtoq (); below.
 
37449
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37450
    <limits.h> exists even on freestanding compilers.  */
 
37451
 
 
37452
#ifdef __STDC__
 
37453
# include <limits.h>
 
37454
#else
 
37455
# include <assert.h>
 
37456
#endif
 
37457
 
 
37458
#undef strtoq
 
37459
 
 
37460
/* Override any gcc2 internal prototype to avoid an error.  */
 
37461
#ifdef __cplusplus
 
37462
extern "C"
 
37463
{
 
37464
#endif
 
37465
/* We use char because int might match the return type of a gcc2
 
37466
   builtin and then its argument prototype would still apply.  */
 
37467
char strtoq ();
 
37468
/* The GNU C library defines this for functions which it implements
 
37469
    to always fail with ENOSYS.  Some functions are actually named
 
37470
    something starting with __ and the normal name is an alias.  */
 
37471
#if defined (__stub_strtoq) || defined (__stub___strtoq)
 
37472
choke me
 
37473
#else
 
37474
char (*f) () = strtoq;
 
37475
#endif
 
37476
#ifdef __cplusplus
 
37477
}
 
37478
#endif
 
37479
 
 
37480
int
 
37481
main ()
 
37482
{
 
37483
return f != strtoq;
 
37484
  ;
 
37485
  return 0;
 
37486
}
 
37487
_ACEOF
 
37488
rm -f conftest.$ac_objext conftest$ac_exeext
 
37489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37490
  (eval $ac_link) 2>conftest.er1
 
37491
  ac_status=$?
 
37492
  grep -v '^ *+' conftest.er1 >conftest.err
 
37493
  rm -f conftest.er1
 
37494
  cat conftest.err >&5
 
37495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37496
  (exit $ac_status); } &&
 
37497
         { ac_try='test -z "$ac_c_werror_flag"
 
37498
                         || test ! -s conftest.err'
 
37499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37500
  (eval $ac_try) 2>&5
 
37501
  ac_status=$?
 
37502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37503
  (exit $ac_status); }; } &&
 
37504
         { ac_try='test -s conftest$ac_exeext'
 
37505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37506
  (eval $ac_try) 2>&5
 
37507
  ac_status=$?
 
37508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37509
  (exit $ac_status); }; }; then
 
37510
  ac_cv_func_strtoq=yes
 
37511
else
 
37512
  echo "$as_me: failed program was:" >&5
 
37513
sed 's/^/| /' conftest.$ac_ext >&5
 
37514
 
 
37515
ac_cv_func_strtoq=no
 
37516
fi
 
37517
rm -f conftest.err conftest.$ac_objext \
 
37518
      conftest$ac_exeext conftest.$ac_ext
 
37519
fi
 
37520
echo "$as_me:$LINENO: result: $ac_cv_func_strtoq" >&5
 
37521
echo "${ECHO_T}$ac_cv_func_strtoq" >&6
 
37522
if test $ac_cv_func_strtoq = yes; then
 
37523
  have_int64_strfn=1
 
37524
else
 
37525
  have_int64_strfn=0
 
37526
fi
 
37527
 
 
37528
fi
 
37529
 
 
37530
if test "$have_int64_strfn" = "1"; then
 
37531
 
 
37532
cat >>confdefs.h <<_ACEOF
 
37533
#define APR_INT64_STRFN $int64_strfn
 
37534
_ACEOF
 
37535
 
 
37536
fi
 
37537
 
 
37538
 
 
37539
 
 
37540
 
 
37541
 
 
37542
 
 
37543
 
 
37544
 
 
37545
 
 
37546
if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
 
37547
    off_t_strfn=$int64_strfn
 
37548
fi
 
37549
 
 
37550
cat >>confdefs.h <<_ACEOF
 
37551
#define APR_OFF_T_STRFN $off_t_strfn
 
37552
_ACEOF
 
37553
 
 
37554
 
 
37555
echo "${nl}Checking for DSO..."
 
37556
# Check whether --enable-dso or --disable-dso was given.
 
37557
if test "${enable_dso+set}" = set; then
 
37558
  enableval="$enable_dso"
 
37559
  if test "x$enableval" = "xyes"; then
 
37560
      dsotype=any
 
37561
   else
 
37562
      dsotype=$enableval
 
37563
   fi
 
37564
 
 
37565
else
 
37566
  dsotype=any
 
37567
fi;
 
37568
 
 
37569
if test "$dsotype" = "any"; then
 
37570
    # Darwin:
 
37571
    echo "$as_me:$LINENO: checking for NSLinkModule" >&5
 
37572
echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
 
37573
if test "${ac_cv_func_NSLinkModule+set}" = set; then
 
37574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37575
else
 
37576
  cat >conftest.$ac_ext <<_ACEOF
 
37577
/* confdefs.h.  */
 
37578
_ACEOF
 
37579
cat confdefs.h >>conftest.$ac_ext
 
37580
cat >>conftest.$ac_ext <<_ACEOF
 
37581
/* end confdefs.h.  */
 
37582
/* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
 
37583
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37584
#define NSLinkModule innocuous_NSLinkModule
 
37585
 
 
37586
/* System header to define __stub macros and hopefully few prototypes,
 
37587
    which can conflict with char NSLinkModule (); below.
 
37588
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37589
    <limits.h> exists even on freestanding compilers.  */
 
37590
 
 
37591
#ifdef __STDC__
 
37592
# include <limits.h>
 
37593
#else
 
37594
# include <assert.h>
 
37595
#endif
 
37596
 
 
37597
#undef NSLinkModule
 
37598
 
 
37599
/* Override any gcc2 internal prototype to avoid an error.  */
 
37600
#ifdef __cplusplus
 
37601
extern "C"
 
37602
{
 
37603
#endif
 
37604
/* We use char because int might match the return type of a gcc2
 
37605
   builtin and then its argument prototype would still apply.  */
 
37606
char NSLinkModule ();
 
37607
/* The GNU C library defines this for functions which it implements
 
37608
    to always fail with ENOSYS.  Some functions are actually named
 
37609
    something starting with __ and the normal name is an alias.  */
 
37610
#if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
 
37611
choke me
 
37612
#else
 
37613
char (*f) () = NSLinkModule;
 
37614
#endif
 
37615
#ifdef __cplusplus
 
37616
}
 
37617
#endif
 
37618
 
 
37619
int
 
37620
main ()
 
37621
{
 
37622
return f != NSLinkModule;
 
37623
  ;
 
37624
  return 0;
 
37625
}
 
37626
_ACEOF
 
37627
rm -f conftest.$ac_objext conftest$ac_exeext
 
37628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37629
  (eval $ac_link) 2>conftest.er1
 
37630
  ac_status=$?
 
37631
  grep -v '^ *+' conftest.er1 >conftest.err
 
37632
  rm -f conftest.er1
 
37633
  cat conftest.err >&5
 
37634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37635
  (exit $ac_status); } &&
 
37636
         { ac_try='test -z "$ac_c_werror_flag"
 
37637
                         || test ! -s conftest.err'
 
37638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37639
  (eval $ac_try) 2>&5
 
37640
  ac_status=$?
 
37641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37642
  (exit $ac_status); }; } &&
 
37643
         { ac_try='test -s conftest$ac_exeext'
 
37644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37645
  (eval $ac_try) 2>&5
 
37646
  ac_status=$?
 
37647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37648
  (exit $ac_status); }; }; then
 
37649
  ac_cv_func_NSLinkModule=yes
 
37650
else
 
37651
  echo "$as_me: failed program was:" >&5
 
37652
sed 's/^/| /' conftest.$ac_ext >&5
 
37653
 
 
37654
ac_cv_func_NSLinkModule=no
 
37655
fi
 
37656
rm -f conftest.err conftest.$ac_objext \
 
37657
      conftest$ac_exeext conftest.$ac_ext
 
37658
fi
 
37659
echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
 
37660
echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
 
37661
if test $ac_cv_func_NSLinkModule = yes; then
 
37662
  dsotype=dyld
 
37663
fi
 
37664
 
 
37665
    if test "$dsotype" = "any"; then
 
37666
      # Original HP-UX:
 
37667
      echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
37668
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
37669
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
37670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37671
else
 
37672
  ac_check_lib_save_LIBS=$LIBS
 
37673
LIBS="-ldld  $LIBS"
 
37674
cat >conftest.$ac_ext <<_ACEOF
 
37675
/* confdefs.h.  */
 
37676
_ACEOF
 
37677
cat confdefs.h >>conftest.$ac_ext
 
37678
cat >>conftest.$ac_ext <<_ACEOF
 
37679
/* end confdefs.h.  */
 
37680
 
 
37681
/* Override any gcc2 internal prototype to avoid an error.  */
 
37682
#ifdef __cplusplus
 
37683
extern "C"
 
37684
#endif
 
37685
/* We use char because int might match the return type of a gcc2
 
37686
   builtin and then its argument prototype would still apply.  */
 
37687
char shl_load ();
 
37688
int
 
37689
main ()
 
37690
{
 
37691
shl_load ();
 
37692
  ;
 
37693
  return 0;
 
37694
}
 
37695
_ACEOF
 
37696
rm -f conftest.$ac_objext conftest$ac_exeext
 
37697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37698
  (eval $ac_link) 2>conftest.er1
 
37699
  ac_status=$?
 
37700
  grep -v '^ *+' conftest.er1 >conftest.err
 
37701
  rm -f conftest.er1
 
37702
  cat conftest.err >&5
 
37703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37704
  (exit $ac_status); } &&
 
37705
         { ac_try='test -z "$ac_c_werror_flag"
 
37706
                         || test ! -s conftest.err'
 
37707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37708
  (eval $ac_try) 2>&5
 
37709
  ac_status=$?
 
37710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37711
  (exit $ac_status); }; } &&
 
37712
         { ac_try='test -s conftest$ac_exeext'
 
37713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37714
  (eval $ac_try) 2>&5
 
37715
  ac_status=$?
 
37716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37717
  (exit $ac_status); }; }; then
 
37718
  ac_cv_lib_dld_shl_load=yes
 
37719
else
 
37720
  echo "$as_me: failed program was:" >&5
 
37721
sed 's/^/| /' conftest.$ac_ext >&5
 
37722
 
 
37723
ac_cv_lib_dld_shl_load=no
 
37724
fi
 
37725
rm -f conftest.err conftest.$ac_objext \
 
37726
      conftest$ac_exeext conftest.$ac_ext
 
37727
LIBS=$ac_check_lib_save_LIBS
 
37728
fi
 
37729
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
37730
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
37731
if test $ac_cv_lib_dld_shl_load = yes; then
 
37732
  dsotype=shl;
 
37733
  if test "x$LIBS" = "x"; then
 
37734
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
 
37735
    LIBS="-ldld"
 
37736
  else
 
37737
    apr_addto_bugger="-ldld"
 
37738
    for i in $apr_addto_bugger; do
 
37739
      apr_addto_duplicate="0"
 
37740
      for j in $LIBS; do
 
37741
        if test "x$i" = "x$j"; then
 
37742
          apr_addto_duplicate="1"
 
37743
          break
 
37744
        fi
 
37745
      done
 
37746
      if test $apr_addto_duplicate = "0"; then
 
37747
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
37748
        LIBS="$LIBS $i"
 
37749
      fi
 
37750
    done
 
37751
  fi
 
37752
 
 
37753
fi
 
37754
 
 
37755
    fi
 
37756
    # Normal POSIX:
 
37757
    if test "$dsotype" = "any"; then
 
37758
      echo "$as_me:$LINENO: checking for dlopen" >&5
 
37759
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
37760
if test "${ac_cv_func_dlopen+set}" = set; then
 
37761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37762
else
 
37763
  cat >conftest.$ac_ext <<_ACEOF
 
37764
/* confdefs.h.  */
 
37765
_ACEOF
 
37766
cat confdefs.h >>conftest.$ac_ext
 
37767
cat >>conftest.$ac_ext <<_ACEOF
 
37768
/* end confdefs.h.  */
 
37769
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
37770
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37771
#define dlopen innocuous_dlopen
 
37772
 
 
37773
/* System header to define __stub macros and hopefully few prototypes,
 
37774
    which can conflict with char dlopen (); below.
 
37775
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37776
    <limits.h> exists even on freestanding compilers.  */
 
37777
 
 
37778
#ifdef __STDC__
 
37779
# include <limits.h>
 
37780
#else
 
37781
# include <assert.h>
 
37782
#endif
 
37783
 
 
37784
#undef dlopen
 
37785
 
 
37786
/* Override any gcc2 internal prototype to avoid an error.  */
 
37787
#ifdef __cplusplus
 
37788
extern "C"
 
37789
{
 
37790
#endif
 
37791
/* We use char because int might match the return type of a gcc2
 
37792
   builtin and then its argument prototype would still apply.  */
 
37793
char dlopen ();
 
37794
/* The GNU C library defines this for functions which it implements
 
37795
    to always fail with ENOSYS.  Some functions are actually named
 
37796
    something starting with __ and the normal name is an alias.  */
 
37797
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
37798
choke me
 
37799
#else
 
37800
char (*f) () = dlopen;
 
37801
#endif
 
37802
#ifdef __cplusplus
 
37803
}
 
37804
#endif
 
37805
 
 
37806
int
 
37807
main ()
 
37808
{
 
37809
return f != dlopen;
 
37810
  ;
 
37811
  return 0;
 
37812
}
 
37813
_ACEOF
 
37814
rm -f conftest.$ac_objext conftest$ac_exeext
 
37815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37816
  (eval $ac_link) 2>conftest.er1
 
37817
  ac_status=$?
 
37818
  grep -v '^ *+' conftest.er1 >conftest.err
 
37819
  rm -f conftest.er1
 
37820
  cat conftest.err >&5
 
37821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37822
  (exit $ac_status); } &&
 
37823
         { ac_try='test -z "$ac_c_werror_flag"
 
37824
                         || test ! -s conftest.err'
 
37825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37826
  (eval $ac_try) 2>&5
 
37827
  ac_status=$?
 
37828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37829
  (exit $ac_status); }; } &&
 
37830
         { ac_try='test -s conftest$ac_exeext'
 
37831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37832
  (eval $ac_try) 2>&5
 
37833
  ac_status=$?
 
37834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37835
  (exit $ac_status); }; }; then
 
37836
  ac_cv_func_dlopen=yes
 
37837
else
 
37838
  echo "$as_me: failed program was:" >&5
 
37839
sed 's/^/| /' conftest.$ac_ext >&5
 
37840
 
 
37841
ac_cv_func_dlopen=no
 
37842
fi
 
37843
rm -f conftest.err conftest.$ac_objext \
 
37844
      conftest$ac_exeext conftest.$ac_ext
 
37845
fi
 
37846
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
37847
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
37848
if test $ac_cv_func_dlopen = yes; then
 
37849
  dsotype=dlfcn
 
37850
fi
 
37851
 
 
37852
    fi
 
37853
    if test "$dsotype" = "any"; then
 
37854
      echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
37855
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
37856
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
37857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37858
else
 
37859
  ac_check_lib_save_LIBS=$LIBS
 
37860
LIBS="-ldl  $LIBS"
 
37861
cat >conftest.$ac_ext <<_ACEOF
 
37862
/* confdefs.h.  */
 
37863
_ACEOF
 
37864
cat confdefs.h >>conftest.$ac_ext
 
37865
cat >>conftest.$ac_ext <<_ACEOF
 
37866
/* end confdefs.h.  */
 
37867
 
 
37868
/* Override any gcc2 internal prototype to avoid an error.  */
 
37869
#ifdef __cplusplus
 
37870
extern "C"
 
37871
#endif
 
37872
/* We use char because int might match the return type of a gcc2
 
37873
   builtin and then its argument prototype would still apply.  */
 
37874
char dlopen ();
 
37875
int
 
37876
main ()
 
37877
{
 
37878
dlopen ();
 
37879
  ;
 
37880
  return 0;
 
37881
}
 
37882
_ACEOF
 
37883
rm -f conftest.$ac_objext conftest$ac_exeext
 
37884
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37885
  (eval $ac_link) 2>conftest.er1
 
37886
  ac_status=$?
 
37887
  grep -v '^ *+' conftest.er1 >conftest.err
 
37888
  rm -f conftest.er1
 
37889
  cat conftest.err >&5
 
37890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37891
  (exit $ac_status); } &&
 
37892
         { ac_try='test -z "$ac_c_werror_flag"
 
37893
                         || test ! -s conftest.err'
 
37894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37895
  (eval $ac_try) 2>&5
 
37896
  ac_status=$?
 
37897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37898
  (exit $ac_status); }; } &&
 
37899
         { ac_try='test -s conftest$ac_exeext'
 
37900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37901
  (eval $ac_try) 2>&5
 
37902
  ac_status=$?
 
37903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37904
  (exit $ac_status); }; }; then
 
37905
  ac_cv_lib_dl_dlopen=yes
 
37906
else
 
37907
  echo "$as_me: failed program was:" >&5
 
37908
sed 's/^/| /' conftest.$ac_ext >&5
 
37909
 
 
37910
ac_cv_lib_dl_dlopen=no
 
37911
fi
 
37912
rm -f conftest.err conftest.$ac_objext \
 
37913
      conftest$ac_exeext conftest.$ac_ext
 
37914
LIBS=$ac_check_lib_save_LIBS
 
37915
fi
 
37916
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
37917
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
37918
if test $ac_cv_lib_dl_dlopen = yes; then
 
37919
  dsotype=dlfcn;
 
37920
  if test "x$LIBS" = "x"; then
 
37921
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
 
37922
    LIBS="-ldl"
 
37923
  else
 
37924
    apr_addto_bugger="-ldl"
 
37925
    for i in $apr_addto_bugger; do
 
37926
      apr_addto_duplicate="0"
 
37927
      for j in $LIBS; do
 
37928
        if test "x$i" = "x$j"; then
 
37929
          apr_addto_duplicate="1"
 
37930
          break
 
37931
        fi
 
37932
      done
 
37933
      if test $apr_addto_duplicate = "0"; then
 
37934
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
37935
        LIBS="$LIBS $i"
 
37936
      fi
 
37937
    done
 
37938
  fi
 
37939
 
 
37940
fi
 
37941
 
 
37942
    fi
 
37943
    if test "$dsotype" = "dlfcn"; then
 
37944
        # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
 
37945
        echo "$as_me:$LINENO: checking for dlsym" >&5
 
37946
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
 
37947
if test "${ac_cv_func_dlsym+set}" = set; then
 
37948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37949
else
 
37950
  cat >conftest.$ac_ext <<_ACEOF
 
37951
/* confdefs.h.  */
 
37952
_ACEOF
 
37953
cat confdefs.h >>conftest.$ac_ext
 
37954
cat >>conftest.$ac_ext <<_ACEOF
 
37955
/* end confdefs.h.  */
 
37956
/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
 
37957
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37958
#define dlsym innocuous_dlsym
 
37959
 
 
37960
/* System header to define __stub macros and hopefully few prototypes,
 
37961
    which can conflict with char dlsym (); below.
 
37962
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37963
    <limits.h> exists even on freestanding compilers.  */
 
37964
 
 
37965
#ifdef __STDC__
 
37966
# include <limits.h>
 
37967
#else
 
37968
# include <assert.h>
 
37969
#endif
 
37970
 
 
37971
#undef dlsym
 
37972
 
 
37973
/* Override any gcc2 internal prototype to avoid an error.  */
 
37974
#ifdef __cplusplus
 
37975
extern "C"
 
37976
{
 
37977
#endif
 
37978
/* We use char because int might match the return type of a gcc2
 
37979
   builtin and then its argument prototype would still apply.  */
 
37980
char dlsym ();
 
37981
/* The GNU C library defines this for functions which it implements
 
37982
    to always fail with ENOSYS.  Some functions are actually named
 
37983
    something starting with __ and the normal name is an alias.  */
 
37984
#if defined (__stub_dlsym) || defined (__stub___dlsym)
 
37985
choke me
 
37986
#else
 
37987
char (*f) () = dlsym;
 
37988
#endif
 
37989
#ifdef __cplusplus
 
37990
}
 
37991
#endif
 
37992
 
 
37993
int
 
37994
main ()
 
37995
{
 
37996
return f != dlsym;
 
37997
  ;
 
37998
  return 0;
 
37999
}
 
38000
_ACEOF
 
38001
rm -f conftest.$ac_objext conftest$ac_exeext
 
38002
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38003
  (eval $ac_link) 2>conftest.er1
 
38004
  ac_status=$?
 
38005
  grep -v '^ *+' conftest.er1 >conftest.err
 
38006
  rm -f conftest.er1
 
38007
  cat conftest.err >&5
 
38008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38009
  (exit $ac_status); } &&
 
38010
         { ac_try='test -z "$ac_c_werror_flag"
 
38011
                         || test ! -s conftest.err'
 
38012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38013
  (eval $ac_try) 2>&5
 
38014
  ac_status=$?
 
38015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38016
  (exit $ac_status); }; } &&
 
38017
         { ac_try='test -s conftest$ac_exeext'
 
38018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38019
  (eval $ac_try) 2>&5
 
38020
  ac_status=$?
 
38021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38022
  (exit $ac_status); }; }; then
 
38023
  ac_cv_func_dlsym=yes
 
38024
else
 
38025
  echo "$as_me: failed program was:" >&5
 
38026
sed 's/^/| /' conftest.$ac_ext >&5
 
38027
 
 
38028
ac_cv_func_dlsym=no
 
38029
fi
 
38030
rm -f conftest.err conftest.$ac_objext \
 
38031
      conftest$ac_exeext conftest.$ac_ext
 
38032
fi
 
38033
echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
 
38034
echo "${ECHO_T}$ac_cv_func_dlsym" >&6
 
38035
if test $ac_cv_func_dlsym = yes; then
 
38036
  :
 
38037
else
 
38038
  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
 
38039
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
 
38040
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
 
38041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38042
else
 
38043
  ac_check_lib_save_LIBS=$LIBS
 
38044
LIBS="-ldl  $LIBS"
 
38045
cat >conftest.$ac_ext <<_ACEOF
 
38046
/* confdefs.h.  */
 
38047
_ACEOF
 
38048
cat confdefs.h >>conftest.$ac_ext
 
38049
cat >>conftest.$ac_ext <<_ACEOF
 
38050
/* end confdefs.h.  */
 
38051
 
 
38052
/* Override any gcc2 internal prototype to avoid an error.  */
 
38053
#ifdef __cplusplus
 
38054
extern "C"
 
38055
#endif
 
38056
/* We use char because int might match the return type of a gcc2
 
38057
   builtin and then its argument prototype would still apply.  */
 
38058
char dlsym ();
 
38059
int
 
38060
main ()
 
38061
{
 
38062
dlsym ();
 
38063
  ;
 
38064
  return 0;
 
38065
}
 
38066
_ACEOF
 
38067
rm -f conftest.$ac_objext conftest$ac_exeext
 
38068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38069
  (eval $ac_link) 2>conftest.er1
 
38070
  ac_status=$?
 
38071
  grep -v '^ *+' conftest.er1 >conftest.err
 
38072
  rm -f conftest.er1
 
38073
  cat conftest.err >&5
 
38074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38075
  (exit $ac_status); } &&
 
38076
         { ac_try='test -z "$ac_c_werror_flag"
 
38077
                         || test ! -s conftest.err'
 
38078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38079
  (eval $ac_try) 2>&5
 
38080
  ac_status=$?
 
38081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38082
  (exit $ac_status); }; } &&
 
38083
         { ac_try='test -s conftest$ac_exeext'
 
38084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38085
  (eval $ac_try) 2>&5
 
38086
  ac_status=$?
 
38087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38088
  (exit $ac_status); }; }; then
 
38089
  ac_cv_lib_dl_dlsym=yes
 
38090
else
 
38091
  echo "$as_me: failed program was:" >&5
 
38092
sed 's/^/| /' conftest.$ac_ext >&5
 
38093
 
 
38094
ac_cv_lib_dl_dlsym=no
 
38095
fi
 
38096
rm -f conftest.err conftest.$ac_objext \
 
38097
      conftest$ac_exeext conftest.$ac_ext
 
38098
LIBS=$ac_check_lib_save_LIBS
 
38099
fi
 
38100
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
 
38101
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
 
38102
if test $ac_cv_lib_dl_dlsym = yes; then
 
38103
 
 
38104
  if test "x$LIBS" = "x"; then
 
38105
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
 
38106
    LIBS="-ldl"
 
38107
  else
 
38108
    apr_addto_bugger="-ldl"
 
38109
    for i in $apr_addto_bugger; do
 
38110
      apr_addto_duplicate="0"
 
38111
      for j in $LIBS; do
 
38112
        if test "x$i" = "x$j"; then
 
38113
          apr_addto_duplicate="1"
 
38114
          break
 
38115
        fi
 
38116
      done
 
38117
      if test $apr_addto_duplicate = "0"; then
 
38118
        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
 
38119
        LIBS="$LIBS $i"
 
38120
      fi
 
38121
    done
 
38122
  fi
 
38123
 
 
38124
else
 
38125
  dsotype=any
 
38126
              echo "Weird: dlopen() was found but dlsym() was not found!"
 
38127
fi
 
38128
 
 
38129
fi
 
38130
 
 
38131
    fi
 
38132
    if test "$dsotype" = "any"; then
 
38133
      # BeOS:
 
38134
      echo "$as_me:$LINENO: checking for load_image in -lroot" >&5
 
38135
echo $ECHO_N "checking for load_image in -lroot... $ECHO_C" >&6
 
38136
if test "${ac_cv_lib_root_load_image+set}" = set; then
 
38137
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38138
else
 
38139
  ac_check_lib_save_LIBS=$LIBS
 
38140
LIBS="-lroot  $LIBS"
 
38141
cat >conftest.$ac_ext <<_ACEOF
 
38142
/* confdefs.h.  */
 
38143
_ACEOF
 
38144
cat confdefs.h >>conftest.$ac_ext
 
38145
cat >>conftest.$ac_ext <<_ACEOF
 
38146
/* end confdefs.h.  */
 
38147
 
 
38148
/* Override any gcc2 internal prototype to avoid an error.  */
 
38149
#ifdef __cplusplus
 
38150
extern "C"
 
38151
#endif
 
38152
/* We use char because int might match the return type of a gcc2
 
38153
   builtin and then its argument prototype would still apply.  */
 
38154
char load_image ();
 
38155
int
 
38156
main ()
 
38157
{
 
38158
load_image ();
 
38159
  ;
 
38160
  return 0;
 
38161
}
 
38162
_ACEOF
 
38163
rm -f conftest.$ac_objext conftest$ac_exeext
 
38164
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38165
  (eval $ac_link) 2>conftest.er1
 
38166
  ac_status=$?
 
38167
  grep -v '^ *+' conftest.er1 >conftest.err
 
38168
  rm -f conftest.er1
 
38169
  cat conftest.err >&5
 
38170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38171
  (exit $ac_status); } &&
 
38172
         { ac_try='test -z "$ac_c_werror_flag"
 
38173
                         || test ! -s conftest.err'
 
38174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38175
  (eval $ac_try) 2>&5
 
38176
  ac_status=$?
 
38177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38178
  (exit $ac_status); }; } &&
 
38179
         { ac_try='test -s conftest$ac_exeext'
 
38180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38181
  (eval $ac_try) 2>&5
 
38182
  ac_status=$?
 
38183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38184
  (exit $ac_status); }; }; then
 
38185
  ac_cv_lib_root_load_image=yes
 
38186
else
 
38187
  echo "$as_me: failed program was:" >&5
 
38188
sed 's/^/| /' conftest.$ac_ext >&5
 
38189
 
 
38190
ac_cv_lib_root_load_image=no
 
38191
fi
 
38192
rm -f conftest.err conftest.$ac_objext \
 
38193
      conftest$ac_exeext conftest.$ac_ext
 
38194
LIBS=$ac_check_lib_save_LIBS
 
38195
fi
 
38196
echo "$as_me:$LINENO: result: $ac_cv_lib_root_load_image" >&5
 
38197
echo "${ECHO_T}$ac_cv_lib_root_load_image" >&6
 
38198
if test $ac_cv_lib_root_load_image = yes; then
 
38199
  dsotype=other
 
38200
fi
 
38201
 
 
38202
    fi
 
38203
    # Everything else:
 
38204
    if test "$dsotype" = "any"; then
 
38205
        case $host in
 
38206
        *os390|*-os2*|*os400|*-aix*) dsotype=other ;;
 
38207
        esac
 
38208
    fi
 
38209
fi
 
38210
 
 
38211
if test "$dsotype" = "any"; then
 
38212
    { { echo "$as_me:$LINENO: error: Could not detect suitable DSO implementation" >&5
 
38213
echo "$as_me: error: Could not detect suitable DSO implementation" >&2;}
 
38214
   { (exit 1); exit 1; }; }
 
38215
elif test "$dsotype" = "no"; then
 
38216
    aprdso="0"
 
38217
else
 
38218
    case "$dsotype" in
 
38219
    dlfcn)
 
38220
cat >>confdefs.h <<\_ACEOF
 
38221
#define DSO_USE_DLFCN 1
 
38222
_ACEOF
 
38223
;;
 
38224
    shl)
 
38225
cat >>confdefs.h <<\_ACEOF
 
38226
#define DSO_USE_SHL 1
 
38227
_ACEOF
 
38228
;;
 
38229
    dyld)
 
38230
cat >>confdefs.h <<\_ACEOF
 
38231
#define DSO_USE_DYLD 1
 
38232
_ACEOF
 
38233
;;
 
38234
    other) ;; # Use whatever is in dso/OSDIR
 
38235
    *) { { echo "$as_me:$LINENO: error: Unknown DSO implementation \"$dsotype\"" >&5
 
38236
echo "$as_me: error: Unknown DSO implementation \"$dsotype\"" >&2;}
 
38237
   { (exit 1); exit 1; }; };;
 
38238
    esac
 
38239
    aprdso="1"
 
38240
    apr_modules="$apr_modules dso"
 
38241
fi
 
38242
 
 
38243
 
 
38244
 
 
38245
echo "${nl}Checking for Processes..."
 
38246
 
 
38247
 
 
38248
for ac_func in waitpid
 
38249
do
 
38250
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
38251
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
38252
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
38253
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
38254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38255
else
 
38256
  cat >conftest.$ac_ext <<_ACEOF
 
38257
/* confdefs.h.  */
 
38258
_ACEOF
 
38259
cat confdefs.h >>conftest.$ac_ext
 
38260
cat >>conftest.$ac_ext <<_ACEOF
 
38261
/* end confdefs.h.  */
 
38262
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
38263
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
38264
#define $ac_func innocuous_$ac_func
 
38265
 
 
38266
/* System header to define __stub macros and hopefully few prototypes,
 
38267
    which can conflict with char $ac_func (); below.
 
38268
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
38269
    <limits.h> exists even on freestanding compilers.  */
 
38270
 
 
38271
#ifdef __STDC__
 
38272
# include <limits.h>
 
38273
#else
 
38274
# include <assert.h>
 
38275
#endif
 
38276
 
 
38277
#undef $ac_func
 
38278
 
 
38279
/* Override any gcc2 internal prototype to avoid an error.  */
 
38280
#ifdef __cplusplus
 
38281
extern "C"
 
38282
{
 
38283
#endif
 
38284
/* We use char because int might match the return type of a gcc2
 
38285
   builtin and then its argument prototype would still apply.  */
 
38286
char $ac_func ();
 
38287
/* The GNU C library defines this for functions which it implements
 
38288
    to always fail with ENOSYS.  Some functions are actually named
 
38289
    something starting with __ and the normal name is an alias.  */
 
38290
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
38291
choke me
 
38292
#else
 
38293
char (*f) () = $ac_func;
 
38294
#endif
 
38295
#ifdef __cplusplus
 
38296
}
 
38297
#endif
 
38298
 
 
38299
int
 
38300
main ()
 
38301
{
 
38302
return f != $ac_func;
 
38303
  ;
 
38304
  return 0;
 
38305
}
 
38306
_ACEOF
 
38307
rm -f conftest.$ac_objext conftest$ac_exeext
 
38308
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38309
  (eval $ac_link) 2>conftest.er1
 
38310
  ac_status=$?
 
38311
  grep -v '^ *+' conftest.er1 >conftest.err
 
38312
  rm -f conftest.er1
 
38313
  cat conftest.err >&5
 
38314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38315
  (exit $ac_status); } &&
 
38316
         { ac_try='test -z "$ac_c_werror_flag"
 
38317
                         || test ! -s conftest.err'
 
38318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38319
  (eval $ac_try) 2>&5
 
38320
  ac_status=$?
 
38321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38322
  (exit $ac_status); }; } &&
 
38323
         { ac_try='test -s conftest$ac_exeext'
 
38324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38325
  (eval $ac_try) 2>&5
 
38326
  ac_status=$?
 
38327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38328
  (exit $ac_status); }; }; then
 
38329
  eval "$as_ac_var=yes"
 
38330
else
 
38331
  echo "$as_me: failed program was:" >&5
 
38332
sed 's/^/| /' conftest.$ac_ext >&5
 
38333
 
 
38334
eval "$as_ac_var=no"
 
38335
fi
 
38336
rm -f conftest.err conftest.$ac_objext \
 
38337
      conftest$ac_exeext conftest.$ac_ext
 
38338
fi
 
38339
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
38340
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
38341
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
38342
  cat >>confdefs.h <<_ACEOF
 
38343
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
38344
_ACEOF
 
38345
 
 
38346
fi
 
38347
done
 
38348
 
 
38349
 
 
38350
# Check whether --enable-other-child or --disable-other-child was given.
 
38351
if test "${enable_other_child+set}" = set; then
 
38352
  enableval="$enable_other_child"
 
38353
   if test "$enableval" = "yes"; then
 
38354
        oc="1"
 
38355
    else
 
38356
        oc="0"
 
38357
    fi
 
38358
else
 
38359
   oc=1
 
38360
fi;
 
38361
 
 
38362
 
 
38363
 
 
38364
echo "$as_me:$LINENO: checking for Variable Length Arrays" >&5
 
38365
echo $ECHO_N "checking for Variable Length Arrays... $ECHO_C" >&6
 
38366
apr_save_CFLAGS=$CFLAGS
 
38367
 CFLAGS="$CFLAGS $CFLAGS_WARN"
 
38368
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
 
38369
   CFLAGS="$CFLAGS -Werror"
 
38370
 fi
 
38371
 cat >conftest.$ac_ext <<_ACEOF
 
38372
#include "confdefs.h"
 
38373
 
 
38374
 
 
38375
  int main(int argc, const char *const *argv) {
 
38376
 
 
38377
    int foo[argc];
 
38378
    foo[0] = 0;
 
38379
 
 
38380
     return 0; }
 
38381
_ACEOF
 
38382
rm -f conftest.$ac_objext
 
38383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38384
  (eval $ac_compile) 2>conftest.er1
 
38385
  ac_status=$?
 
38386
  grep -v '^ *+' conftest.er1 >conftest.err
 
38387
  rm -f conftest.er1
 
38388
  cat conftest.err >&5
 
38389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38390
  (exit $ac_status); } &&
 
38391
         { ac_try='test -z "$ac_c_werror_flag"
 
38392
                         || test ! -s conftest.err'
 
38393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38394
  (eval $ac_try) 2>&5
 
38395
  ac_status=$?
 
38396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38397
  (exit $ac_status); }; } &&
 
38398
         { ac_try='test -s conftest.$ac_objext'
 
38399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38400
  (eval $ac_try) 2>&5
 
38401
  ac_status=$?
 
38402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38403
  (exit $ac_status); }; }; then
 
38404
  vla_msg=yes
 
38405
else
 
38406
  echo "$as_me: failed program was:" >&5
 
38407
sed 's/^/| /' conftest.$ac_ext >&5
 
38408
 
 
38409
vla_msg=no
 
38410
fi
 
38411
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38412
 CFLAGS=$apr_save_CFLAGS
 
38413
 
 
38414
echo "$as_me:$LINENO: result: $vla_msg" >&5
 
38415
echo "${ECHO_T}$vla_msg" >&6
 
38416
if test "$vla_msg" = "yes"; then
 
38417
 
 
38418
cat >>confdefs.h <<\_ACEOF
 
38419
#define HAVE_VLA 1
 
38420
_ACEOF
 
38421
 
 
38422
fi
 
38423
 
 
38424
echo "$as_me:$LINENO: checking struct rlimit" >&5
 
38425
echo $ECHO_N "checking struct rlimit... $ECHO_C" >&6
 
38426
if test "${ac_cv_struct_rlimit+set}" = set; then
 
38427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38428
else
 
38429
 
 
38430
if test "$cross_compiling" = yes; then
 
38431
 
 
38432
    ac_cv_struct_rlimit=no
 
38433
else
 
38434
  cat >conftest.$ac_ext <<_ACEOF
 
38435
/* confdefs.h.  */
 
38436
_ACEOF
 
38437
cat confdefs.h >>conftest.$ac_ext
 
38438
cat >>conftest.$ac_ext <<_ACEOF
 
38439
/* end confdefs.h.  */
 
38440
 
 
38441
#include <sys/types.h>
 
38442
#include <sys/time.h>
 
38443
#include <sys/resource.h>
 
38444
main()
 
38445
{
 
38446
    struct rlimit limit;
 
38447
    limit.rlim_cur = 0;
 
38448
    limit.rlim_max = 0;
 
38449
    exit(0);
 
38450
}
 
38451
_ACEOF
 
38452
rm -f conftest$ac_exeext
 
38453
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38454
  (eval $ac_link) 2>&5
 
38455
  ac_status=$?
 
38456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38457
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
38458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38459
  (eval $ac_try) 2>&5
 
38460
  ac_status=$?
 
38461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38462
  (exit $ac_status); }; }; then
 
38463
 
 
38464
    ac_cv_struct_rlimit=yes
 
38465
else
 
38466
  echo "$as_me: program exited with status $ac_status" >&5
 
38467
echo "$as_me: failed program was:" >&5
 
38468
sed 's/^/| /' conftest.$ac_ext >&5
 
38469
 
 
38470
( exit $ac_status )
 
38471
 
 
38472
    ac_cv_struct_rlimit=no
 
38473
fi
 
38474
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
38475
fi
 
38476
fi
 
38477
echo "$as_me:$LINENO: result: $ac_cv_struct_rlimit" >&5
 
38478
echo "${ECHO_T}$ac_cv_struct_rlimit" >&6
 
38479
struct_rlimit=0
 
38480
test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
 
38481
 
 
38482
 
 
38483
echo "${nl}Checking for Locking..."
 
38484
 
 
38485
 
 
38486
 
 
38487
 
 
38488
for ac_func in semget semctl flock
 
38489
do
 
38490
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
38491
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
38492
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
38493
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
38494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38495
else
 
38496
  cat >conftest.$ac_ext <<_ACEOF
 
38497
/* confdefs.h.  */
 
38498
_ACEOF
 
38499
cat confdefs.h >>conftest.$ac_ext
 
38500
cat >>conftest.$ac_ext <<_ACEOF
 
38501
/* end confdefs.h.  */
 
38502
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
38503
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
38504
#define $ac_func innocuous_$ac_func
 
38505
 
 
38506
/* System header to define __stub macros and hopefully few prototypes,
 
38507
    which can conflict with char $ac_func (); below.
 
38508
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
38509
    <limits.h> exists even on freestanding compilers.  */
 
38510
 
 
38511
#ifdef __STDC__
 
38512
# include <limits.h>
 
38513
#else
 
38514
# include <assert.h>
 
38515
#endif
 
38516
 
 
38517
#undef $ac_func
 
38518
 
 
38519
/* Override any gcc2 internal prototype to avoid an error.  */
 
38520
#ifdef __cplusplus
 
38521
extern "C"
 
38522
{
 
38523
#endif
 
38524
/* We use char because int might match the return type of a gcc2
 
38525
   builtin and then its argument prototype would still apply.  */
 
38526
char $ac_func ();
 
38527
/* The GNU C library defines this for functions which it implements
 
38528
    to always fail with ENOSYS.  Some functions are actually named
 
38529
    something starting with __ and the normal name is an alias.  */
 
38530
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
38531
choke me
 
38532
#else
 
38533
char (*f) () = $ac_func;
 
38534
#endif
 
38535
#ifdef __cplusplus
 
38536
}
 
38537
#endif
 
38538
 
 
38539
int
 
38540
main ()
 
38541
{
 
38542
return f != $ac_func;
 
38543
  ;
 
38544
  return 0;
 
38545
}
 
38546
_ACEOF
 
38547
rm -f conftest.$ac_objext conftest$ac_exeext
 
38548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38549
  (eval $ac_link) 2>conftest.er1
 
38550
  ac_status=$?
 
38551
  grep -v '^ *+' conftest.er1 >conftest.err
 
38552
  rm -f conftest.er1
 
38553
  cat conftest.err >&5
 
38554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38555
  (exit $ac_status); } &&
 
38556
         { ac_try='test -z "$ac_c_werror_flag"
 
38557
                         || test ! -s conftest.err'
 
38558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38559
  (eval $ac_try) 2>&5
 
38560
  ac_status=$?
 
38561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38562
  (exit $ac_status); }; } &&
 
38563
         { ac_try='test -s conftest$ac_exeext'
 
38564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38565
  (eval $ac_try) 2>&5
 
38566
  ac_status=$?
 
38567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38568
  (exit $ac_status); }; }; then
 
38569
  eval "$as_ac_var=yes"
 
38570
else
 
38571
  echo "$as_me: failed program was:" >&5
 
38572
sed 's/^/| /' conftest.$ac_ext >&5
 
38573
 
 
38574
eval "$as_ac_var=no"
 
38575
fi
 
38576
rm -f conftest.err conftest.$ac_objext \
 
38577
      conftest$ac_exeext conftest.$ac_ext
 
38578
fi
 
38579
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
38580
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
38581
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
38582
  cat >>confdefs.h <<_ACEOF
 
38583
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
38584
_ACEOF
 
38585
 
 
38586
fi
 
38587
done
 
38588
 
 
38589
 
 
38590
 
 
38591
for ac_header in semaphore.h OS.h
 
38592
do
 
38593
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
38594
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
38595
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
38596
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
38597
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
38598
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38599
fi
 
38600
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
38601
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
38602
else
 
38603
  # Is the header compilable?
 
38604
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
38605
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
38606
cat >conftest.$ac_ext <<_ACEOF
 
38607
/* confdefs.h.  */
 
38608
_ACEOF
 
38609
cat confdefs.h >>conftest.$ac_ext
 
38610
cat >>conftest.$ac_ext <<_ACEOF
 
38611
/* end confdefs.h.  */
 
38612
$ac_includes_default
 
38613
#include <$ac_header>
 
38614
_ACEOF
 
38615
rm -f conftest.$ac_objext
 
38616
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38617
  (eval $ac_compile) 2>conftest.er1
 
38618
  ac_status=$?
 
38619
  grep -v '^ *+' conftest.er1 >conftest.err
 
38620
  rm -f conftest.er1
 
38621
  cat conftest.err >&5
 
38622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38623
  (exit $ac_status); } &&
 
38624
         { ac_try='test -z "$ac_c_werror_flag"
 
38625
                         || test ! -s conftest.err'
 
38626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38627
  (eval $ac_try) 2>&5
 
38628
  ac_status=$?
 
38629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38630
  (exit $ac_status); }; } &&
 
38631
         { ac_try='test -s conftest.$ac_objext'
 
38632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38633
  (eval $ac_try) 2>&5
 
38634
  ac_status=$?
 
38635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38636
  (exit $ac_status); }; }; then
 
38637
  ac_header_compiler=yes
 
38638
else
 
38639
  echo "$as_me: failed program was:" >&5
 
38640
sed 's/^/| /' conftest.$ac_ext >&5
 
38641
 
 
38642
ac_header_compiler=no
 
38643
fi
 
38644
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38645
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
38646
echo "${ECHO_T}$ac_header_compiler" >&6
 
38647
 
 
38648
# Is the header present?
 
38649
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
38650
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
38651
cat >conftest.$ac_ext <<_ACEOF
 
38652
/* confdefs.h.  */
 
38653
_ACEOF
 
38654
cat confdefs.h >>conftest.$ac_ext
 
38655
cat >>conftest.$ac_ext <<_ACEOF
 
38656
/* end confdefs.h.  */
 
38657
#include <$ac_header>
 
38658
_ACEOF
 
38659
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
38660
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
38661
  ac_status=$?
 
38662
  grep -v '^ *+' conftest.er1 >conftest.err
 
38663
  rm -f conftest.er1
 
38664
  cat conftest.err >&5
 
38665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38666
  (exit $ac_status); } >/dev/null; then
 
38667
  if test -s conftest.err; then
 
38668
    ac_cpp_err=$ac_c_preproc_warn_flag
 
38669
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
38670
  else
 
38671
    ac_cpp_err=
 
38672
  fi
 
38673
else
 
38674
  ac_cpp_err=yes
 
38675
fi
 
38676
if test -z "$ac_cpp_err"; then
 
38677
  ac_header_preproc=yes
 
38678
else
 
38679
  echo "$as_me: failed program was:" >&5
 
38680
sed 's/^/| /' conftest.$ac_ext >&5
 
38681
 
 
38682
  ac_header_preproc=no
 
38683
fi
 
38684
rm -f conftest.err conftest.$ac_ext
 
38685
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
38686
echo "${ECHO_T}$ac_header_preproc" >&6
 
38687
 
 
38688
# So?  What about this header?
 
38689
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
38690
  yes:no: )
 
38691
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
38692
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
38693
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
38694
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
38695
    ac_header_preproc=yes
 
38696
    ;;
 
38697
  no:yes:* )
 
38698
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
38699
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
38700
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
38701
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
38702
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
38703
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
38704
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
38705
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
38706
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
38707
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
38708
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
38709
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
38710
    (
 
38711
      cat <<\_ASBOX
 
38712
## ------------------------------------------ ##
 
38713
## Report this to the AC_PACKAGE_NAME lists.  ##
 
38714
## ------------------------------------------ ##
 
38715
_ASBOX
 
38716
    ) |
 
38717
      sed "s/^/$as_me: WARNING:     /" >&2
 
38718
    ;;
 
38719
esac
 
38720
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
38721
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
38722
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
38723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38724
else
 
38725
  eval "$as_ac_Header=\$ac_header_preproc"
 
38726
fi
 
38727
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
38728
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
38729
 
 
38730
fi
 
38731
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
38732
  cat >>confdefs.h <<_ACEOF
 
38733
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
38734
_ACEOF
 
38735
 
 
38736
fi
 
38737
 
 
38738
done
 
38739
 
 
38740
 
 
38741
 
 
38742
 
 
38743
 
 
38744
 
 
38745
for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
 
38746
do
 
38747
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
38748
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
38749
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
38750
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
38751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38752
else
 
38753
  cat >conftest.$ac_ext <<_ACEOF
 
38754
/* confdefs.h.  */
 
38755
_ACEOF
 
38756
cat confdefs.h >>conftest.$ac_ext
 
38757
cat >>conftest.$ac_ext <<_ACEOF
 
38758
/* end confdefs.h.  */
 
38759
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
38760
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
38761
#define $ac_func innocuous_$ac_func
 
38762
 
 
38763
/* System header to define __stub macros and hopefully few prototypes,
 
38764
    which can conflict with char $ac_func (); below.
 
38765
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
38766
    <limits.h> exists even on freestanding compilers.  */
 
38767
 
 
38768
#ifdef __STDC__
 
38769
# include <limits.h>
 
38770
#else
 
38771
# include <assert.h>
 
38772
#endif
 
38773
 
 
38774
#undef $ac_func
 
38775
 
 
38776
/* Override any gcc2 internal prototype to avoid an error.  */
 
38777
#ifdef __cplusplus
 
38778
extern "C"
 
38779
{
 
38780
#endif
 
38781
/* We use char because int might match the return type of a gcc2
 
38782
   builtin and then its argument prototype would still apply.  */
 
38783
char $ac_func ();
 
38784
/* The GNU C library defines this for functions which it implements
 
38785
    to always fail with ENOSYS.  Some functions are actually named
 
38786
    something starting with __ and the normal name is an alias.  */
 
38787
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
38788
choke me
 
38789
#else
 
38790
char (*f) () = $ac_func;
 
38791
#endif
 
38792
#ifdef __cplusplus
 
38793
}
 
38794
#endif
 
38795
 
 
38796
int
 
38797
main ()
 
38798
{
 
38799
return f != $ac_func;
 
38800
  ;
 
38801
  return 0;
 
38802
}
 
38803
_ACEOF
 
38804
rm -f conftest.$ac_objext conftest$ac_exeext
 
38805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38806
  (eval $ac_link) 2>conftest.er1
 
38807
  ac_status=$?
 
38808
  grep -v '^ *+' conftest.er1 >conftest.err
 
38809
  rm -f conftest.er1
 
38810
  cat conftest.err >&5
 
38811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38812
  (exit $ac_status); } &&
 
38813
         { ac_try='test -z "$ac_c_werror_flag"
 
38814
                         || test ! -s conftest.err'
 
38815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38816
  (eval $ac_try) 2>&5
 
38817
  ac_status=$?
 
38818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38819
  (exit $ac_status); }; } &&
 
38820
         { ac_try='test -s conftest$ac_exeext'
 
38821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38822
  (eval $ac_try) 2>&5
 
38823
  ac_status=$?
 
38824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38825
  (exit $ac_status); }; }; then
 
38826
  eval "$as_ac_var=yes"
 
38827
else
 
38828
  echo "$as_me: failed program was:" >&5
 
38829
sed 's/^/| /' conftest.$ac_ext >&5
 
38830
 
 
38831
eval "$as_ac_var=no"
 
38832
fi
 
38833
rm -f conftest.err conftest.$ac_objext \
 
38834
      conftest$ac_exeext conftest.$ac_ext
 
38835
fi
 
38836
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
38837
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
38838
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
38839
  cat >>confdefs.h <<_ACEOF
 
38840
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
38841
_ACEOF
 
38842
 
 
38843
fi
 
38844
done
 
38845
 
 
38846
 
 
38847
# Some systems return ENOSYS from sem_open.
 
38848
echo "$as_me:$LINENO: checking for working sem_open" >&5
 
38849
echo $ECHO_N "checking for working sem_open... $ECHO_C" >&6
 
38850
if test "${ac_cv_func_sem_open+set}" = set; then
 
38851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38852
else
 
38853
 
 
38854
if test "$cross_compiling" = yes; then
 
38855
  ac_cv_func_sem_open=no
 
38856
else
 
38857
  cat >conftest.$ac_ext <<_ACEOF
 
38858
/* confdefs.h.  */
 
38859
_ACEOF
 
38860
cat confdefs.h >>conftest.$ac_ext
 
38861
cat >>conftest.$ac_ext <<_ACEOF
 
38862
/* end confdefs.h.  */
 
38863
 
 
38864
#include <errno.h>
 
38865
#include <stdlib.h>
 
38866
#include <fcntl.h>
 
38867
#include <semaphore.h>
 
38868
main()
 
38869
{
 
38870
    sem_t *psem;
 
38871
    const char *sem_name = "/apr_autoconf";
 
38872
 
 
38873
    psem = sem_open(sem_name, O_CREAT, 0644, 1);
 
38874
    if (psem == (sem_t *)SEM_FAILED) {
 
38875
        exit(1);
 
38876
    }
 
38877
    sem_close(psem);
 
38878
    sem_unlink(sem_name);
 
38879
    exit(0);
 
38880
}
 
38881
_ACEOF
 
38882
rm -f conftest$ac_exeext
 
38883
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38884
  (eval $ac_link) 2>&5
 
38885
  ac_status=$?
 
38886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38887
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
38888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38889
  (eval $ac_try) 2>&5
 
38890
  ac_status=$?
 
38891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38892
  (exit $ac_status); }; }; then
 
38893
  ac_cv_func_sem_open=yes
 
38894
else
 
38895
  echo "$as_me: program exited with status $ac_status" >&5
 
38896
echo "$as_me: failed program was:" >&5
 
38897
sed 's/^/| /' conftest.$ac_ext >&5
 
38898
 
 
38899
( exit $ac_status )
 
38900
ac_cv_func_sem_open=no
 
38901
fi
 
38902
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
38903
fi
 
38904
fi
 
38905
echo "$as_me:$LINENO: result: $ac_cv_func_sem_open" >&5
 
38906
echo "${ECHO_T}$ac_cv_func_sem_open" >&6
 
38907
 
 
38908
# It's stupid, but not all platforms have union semun, even those that need it.
 
38909
echo "$as_me:$LINENO: checking for union semun in sys/sem.h" >&5
 
38910
echo $ECHO_N "checking for union semun in sys/sem.h... $ECHO_C" >&6
 
38911
cat >conftest.$ac_ext <<_ACEOF
 
38912
/* confdefs.h.  */
 
38913
_ACEOF
 
38914
cat confdefs.h >>conftest.$ac_ext
 
38915
cat >>conftest.$ac_ext <<_ACEOF
 
38916
/* end confdefs.h.  */
 
38917
 
 
38918
#include <sys/types.h>
 
38919
#include <sys/ipc.h>
 
38920
#include <sys/sem.h>
 
38921
 
 
38922
int
 
38923
main ()
 
38924
{
 
38925
 
 
38926
union semun arg;
 
38927
semctl(0, 0, 0, arg);
 
38928
 
 
38929
  ;
 
38930
  return 0;
 
38931
}
 
38932
_ACEOF
 
38933
rm -f conftest.$ac_objext
 
38934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38935
  (eval $ac_compile) 2>conftest.er1
 
38936
  ac_status=$?
 
38937
  grep -v '^ *+' conftest.er1 >conftest.err
 
38938
  rm -f conftest.er1
 
38939
  cat conftest.err >&5
 
38940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38941
  (exit $ac_status); } &&
 
38942
         { ac_try='test -z "$ac_c_werror_flag"
 
38943
                         || test ! -s conftest.err'
 
38944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38945
  (eval $ac_try) 2>&5
 
38946
  ac_status=$?
 
38947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38948
  (exit $ac_status); }; } &&
 
38949
         { ac_try='test -s conftest.$ac_objext'
 
38950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38951
  (eval $ac_try) 2>&5
 
38952
  ac_status=$?
 
38953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38954
  (exit $ac_status); }; }; then
 
38955
  have_union_semun="1" union_semun=yes
 
38956
msg=yes
 
38957
else
 
38958
  echo "$as_me: failed program was:" >&5
 
38959
sed 's/^/| /' conftest.$ac_ext >&5
 
38960
 
 
38961
 
 
38962
have_union_semun="0"
 
38963
msg=no
 
38964
fi
 
38965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38966
echo "$as_me:$LINENO: result: $msg" >&5
 
38967
echo "${ECHO_T}$msg" >&6
 
38968
 
 
38969
 
 
38970
 
 
38971
  echo "$as_me:$LINENO: checking for LOCK_EX in sys/file.h" >&5
 
38972
echo $ECHO_N "checking for LOCK_EX in sys/file.h... $ECHO_C" >&6
 
38973
if test "${ac_cv_define_LOCK_EX+set}" = set; then
 
38974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38975
else
 
38976
 
 
38977
    cat >conftest.$ac_ext <<_ACEOF
 
38978
/* confdefs.h.  */
 
38979
_ACEOF
 
38980
cat confdefs.h >>conftest.$ac_ext
 
38981
cat >>conftest.$ac_ext <<_ACEOF
 
38982
/* end confdefs.h.  */
 
38983
 
 
38984
#include <sys/file.h>
 
38985
#ifdef LOCK_EX
 
38986
YES_IS_DEFINED
 
38987
#endif
 
38988
 
 
38989
_ACEOF
 
38990
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
38991
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
38992
  ac_cv_define_LOCK_EX=yes
 
38993
else
 
38994
  ac_cv_define_LOCK_EX=no
 
38995
fi
 
38996
rm -f conftest*
 
38997
 
 
38998
 
 
38999
fi
 
39000
echo "$as_me:$LINENO: result: $ac_cv_define_LOCK_EX" >&5
 
39001
echo "${ECHO_T}$ac_cv_define_LOCK_EX" >&6
 
39002
  if test "$ac_cv_define_LOCK_EX" = "yes"; then
 
39003
 
 
39004
cat >>confdefs.h <<\_ACEOF
 
39005
#define HAVE_LOCK_EX 1
 
39006
_ACEOF
 
39007
 
 
39008
  fi
 
39009
 
 
39010
 
 
39011
  echo "$as_me:$LINENO: checking for F_SETLK in fcntl.h" >&5
 
39012
echo $ECHO_N "checking for F_SETLK in fcntl.h... $ECHO_C" >&6
 
39013
if test "${ac_cv_define_F_SETLK+set}" = set; then
 
39014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39015
else
 
39016
 
 
39017
    cat >conftest.$ac_ext <<_ACEOF
 
39018
/* confdefs.h.  */
 
39019
_ACEOF
 
39020
cat confdefs.h >>conftest.$ac_ext
 
39021
cat >>conftest.$ac_ext <<_ACEOF
 
39022
/* end confdefs.h.  */
 
39023
 
 
39024
#include <fcntl.h>
 
39025
#ifdef F_SETLK
 
39026
YES_IS_DEFINED
 
39027
#endif
 
39028
 
 
39029
_ACEOF
 
39030
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
39031
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
39032
  ac_cv_define_F_SETLK=yes
 
39033
else
 
39034
  ac_cv_define_F_SETLK=no
 
39035
fi
 
39036
rm -f conftest*
 
39037
 
 
39038
 
 
39039
fi
 
39040
echo "$as_me:$LINENO: result: $ac_cv_define_F_SETLK" >&5
 
39041
echo "${ECHO_T}$ac_cv_define_F_SETLK" >&6
 
39042
  if test "$ac_cv_define_F_SETLK" = "yes"; then
 
39043
 
 
39044
cat >>confdefs.h <<\_ACEOF
 
39045
#define HAVE_F_SETLK 1
 
39046
_ACEOF
 
39047
 
 
39048
  fi
 
39049
 
 
39050
 
 
39051
  echo "$as_me:$LINENO: checking for SEM_UNDO in sys/sem.h" >&5
 
39052
echo $ECHO_N "checking for SEM_UNDO in sys/sem.h... $ECHO_C" >&6
 
39053
if test "${ac_cv_define_SEM_UNDO+set}" = set; then
 
39054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39055
else
 
39056
 
 
39057
    cat >conftest.$ac_ext <<_ACEOF
 
39058
/* confdefs.h.  */
 
39059
_ACEOF
 
39060
cat confdefs.h >>conftest.$ac_ext
 
39061
cat >>conftest.$ac_ext <<_ACEOF
 
39062
/* end confdefs.h.  */
 
39063
 
 
39064
#include <sys/sem.h>
 
39065
#ifdef SEM_UNDO
 
39066
YES_IS_DEFINED
 
39067
#endif
 
39068
 
 
39069
_ACEOF
 
39070
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
39071
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
39072
  ac_cv_define_SEM_UNDO=yes
 
39073
else
 
39074
  ac_cv_define_SEM_UNDO=no
 
39075
fi
 
39076
rm -f conftest*
 
39077
 
 
39078
 
 
39079
fi
 
39080
echo "$as_me:$LINENO: result: $ac_cv_define_SEM_UNDO" >&5
 
39081
echo "${ECHO_T}$ac_cv_define_SEM_UNDO" >&6
 
39082
  if test "$ac_cv_define_SEM_UNDO" = "yes"; then
 
39083
 
 
39084
cat >>confdefs.h <<\_ACEOF
 
39085
#define HAVE_SEM_UNDO 1
 
39086
_ACEOF
 
39087
 
 
39088
  fi
 
39089
 
 
39090
 
 
39091
# We are assuming that if the platform doesn't have POLLIN, it doesn't have
 
39092
# any POLL definitions.
 
39093
 
 
39094
  echo "$as_me:$LINENO: checking for POLLIN in poll.h sys/poll.h" >&5
 
39095
echo $ECHO_N "checking for POLLIN in poll.h sys/poll.h... $ECHO_C" >&6
 
39096
if test "${ac_cv_define_POLLIN+set}" = set; then
 
39097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39098
else
 
39099
 
 
39100
    ac_cv_define_POLLIN=no
 
39101
    for curhdr in poll.h sys/poll.h
 
39102
    do
 
39103
      cat >conftest.$ac_ext <<_ACEOF
 
39104
/* confdefs.h.  */
 
39105
_ACEOF
 
39106
cat confdefs.h >>conftest.$ac_ext
 
39107
cat >>conftest.$ac_ext <<_ACEOF
 
39108
/* end confdefs.h.  */
 
39109
 
 
39110
#include <$curhdr>
 
39111
#ifdef POLLIN
 
39112
YES_IS_DEFINED
 
39113
#endif
 
39114
 
 
39115
_ACEOF
 
39116
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
39117
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
39118
  ac_cv_define_POLLIN=yes
 
39119
fi
 
39120
rm -f conftest*
 
39121
 
 
39122
    done
 
39123
 
 
39124
fi
 
39125
echo "$as_me:$LINENO: result: $ac_cv_define_POLLIN" >&5
 
39126
echo "${ECHO_T}$ac_cv_define_POLLIN" >&6
 
39127
  if test "$ac_cv_define_POLLIN" = "yes"; then
 
39128
 
 
39129
cat >>confdefs.h <<\_ACEOF
 
39130
#define HAVE_POLLIN 1
 
39131
_ACEOF
 
39132
 
 
39133
  fi
 
39134
 
 
39135
 
 
39136
if test "$threads" = "1"; then
 
39137
 
 
39138
  echo "$as_me:$LINENO: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
 
39139
echo $ECHO_N "checking for PTHREAD_PROCESS_SHARED in pthread.h... $ECHO_C" >&6
 
39140
if test "${ac_cv_define_PTHREAD_PROCESS_SHARED+set}" = set; then
 
39141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39142
else
 
39143
 
 
39144
    cat >conftest.$ac_ext <<_ACEOF
 
39145
/* confdefs.h.  */
 
39146
_ACEOF
 
39147
cat confdefs.h >>conftest.$ac_ext
 
39148
cat >>conftest.$ac_ext <<_ACEOF
 
39149
/* end confdefs.h.  */
 
39150
 
 
39151
#include <pthread.h>
 
39152
#ifdef PTHREAD_PROCESS_SHARED
 
39153
YES_IS_DEFINED
 
39154
#endif
 
39155
 
 
39156
_ACEOF
 
39157
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
39158
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
39159
  ac_cv_define_PTHREAD_PROCESS_SHARED=yes
 
39160
else
 
39161
  ac_cv_define_PTHREAD_PROCESS_SHARED=no
 
39162
fi
 
39163
rm -f conftest*
 
39164
 
 
39165
 
 
39166
fi
 
39167
echo "$as_me:$LINENO: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
 
39168
echo "${ECHO_T}$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6
 
39169
  if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
 
39170
 
 
39171
cat >>confdefs.h <<\_ACEOF
 
39172
#define HAVE_PTHREAD_PROCESS_SHARED 1
 
39173
_ACEOF
 
39174
 
 
39175
  fi
 
39176
 
 
39177
 
 
39178
for ac_func in pthread_mutexattr_setpshared
 
39179
do
 
39180
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
39181
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
39182
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
39183
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
39184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39185
else
 
39186
  cat >conftest.$ac_ext <<_ACEOF
 
39187
/* confdefs.h.  */
 
39188
_ACEOF
 
39189
cat confdefs.h >>conftest.$ac_ext
 
39190
cat >>conftest.$ac_ext <<_ACEOF
 
39191
/* end confdefs.h.  */
 
39192
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
39193
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
39194
#define $ac_func innocuous_$ac_func
 
39195
 
 
39196
/* System header to define __stub macros and hopefully few prototypes,
 
39197
    which can conflict with char $ac_func (); below.
 
39198
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
39199
    <limits.h> exists even on freestanding compilers.  */
 
39200
 
 
39201
#ifdef __STDC__
 
39202
# include <limits.h>
 
39203
#else
 
39204
# include <assert.h>
 
39205
#endif
 
39206
 
 
39207
#undef $ac_func
 
39208
 
 
39209
/* Override any gcc2 internal prototype to avoid an error.  */
 
39210
#ifdef __cplusplus
 
39211
extern "C"
 
39212
{
 
39213
#endif
 
39214
/* We use char because int might match the return type of a gcc2
 
39215
   builtin and then its argument prototype would still apply.  */
 
39216
char $ac_func ();
 
39217
/* The GNU C library defines this for functions which it implements
 
39218
    to always fail with ENOSYS.  Some functions are actually named
 
39219
    something starting with __ and the normal name is an alias.  */
 
39220
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
39221
choke me
 
39222
#else
 
39223
char (*f) () = $ac_func;
 
39224
#endif
 
39225
#ifdef __cplusplus
 
39226
}
 
39227
#endif
 
39228
 
 
39229
int
 
39230
main ()
 
39231
{
 
39232
return f != $ac_func;
 
39233
  ;
 
39234
  return 0;
 
39235
}
 
39236
_ACEOF
 
39237
rm -f conftest.$ac_objext conftest$ac_exeext
 
39238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
39239
  (eval $ac_link) 2>conftest.er1
 
39240
  ac_status=$?
 
39241
  grep -v '^ *+' conftest.er1 >conftest.err
 
39242
  rm -f conftest.er1
 
39243
  cat conftest.err >&5
 
39244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39245
  (exit $ac_status); } &&
 
39246
         { ac_try='test -z "$ac_c_werror_flag"
 
39247
                         || test ! -s conftest.err'
 
39248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39249
  (eval $ac_try) 2>&5
 
39250
  ac_status=$?
 
39251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39252
  (exit $ac_status); }; } &&
 
39253
         { ac_try='test -s conftest$ac_exeext'
 
39254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39255
  (eval $ac_try) 2>&5
 
39256
  ac_status=$?
 
39257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39258
  (exit $ac_status); }; }; then
 
39259
  eval "$as_ac_var=yes"
 
39260
else
 
39261
  echo "$as_me: failed program was:" >&5
 
39262
sed 's/^/| /' conftest.$ac_ext >&5
 
39263
 
 
39264
eval "$as_ac_var=no"
 
39265
fi
 
39266
rm -f conftest.err conftest.$ac_objext \
 
39267
      conftest$ac_exeext conftest.$ac_ext
 
39268
fi
 
39269
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
39270
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
39271
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
39272
  cat >>confdefs.h <<_ACEOF
 
39273
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
39274
_ACEOF
 
39275
 
 
39276
fi
 
39277
done
 
39278
 
 
39279
    # Some systems have setpshared and define PROCESS_SHARED, but don't
 
39280
    # really support PROCESS_SHARED locks.  So, we must validate that we
 
39281
    # can go through the steps without receiving some sort of system error.
 
39282
    # Linux and older versions of AIX have this problem.
 
39283
    ac_rc=yes
 
39284
for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
 
39285
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39286
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39287
    case $ac_type in
 
39288
        header )
 
39289
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39290
            ac_var="ac_cv_header_$ac_item"
 
39291
            ;;
 
39292
        file )
 
39293
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39294
            ac_var="ac_cv_file_$ac_item"
 
39295
            ;;
 
39296
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39297
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39298
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39299
        custom ) ac_var="$ac_item" ;;
 
39300
    esac
 
39301
    eval "ac_val=\$$ac_var"
 
39302
    if test ".$ac_val" != .yes; then
 
39303
        ac_rc=no
 
39304
        break
 
39305
    fi
 
39306
done
 
39307
if test ".$ac_rc" = .yes; then
 
39308
    :
 
39309
 
 
39310
      echo "$as_me:$LINENO: checking for working PROCESS_SHARED locks" >&5
 
39311
echo $ECHO_N "checking for working PROCESS_SHARED locks... $ECHO_C" >&6
 
39312
if test "${apr_cv_process_shared_works+set}" = set; then
 
39313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39314
else
 
39315
 
 
39316
      if test "$cross_compiling" = yes; then
 
39317
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
39318
See \`config.log' for more details." >&5
 
39319
echo "$as_me: error: cannot run test program while cross compiling
 
39320
See \`config.log' for more details." >&2;}
 
39321
   { (exit 1); exit 1; }; }
 
39322
else
 
39323
  cat >conftest.$ac_ext <<_ACEOF
 
39324
/* confdefs.h.  */
 
39325
_ACEOF
 
39326
cat confdefs.h >>conftest.$ac_ext
 
39327
cat >>conftest.$ac_ext <<_ACEOF
 
39328
/* end confdefs.h.  */
 
39329
 
 
39330
#include <sys/types.h>
 
39331
#include <pthread.h>
 
39332
        int main()
 
39333
        {
 
39334
            pthread_mutex_t mutex;
 
39335
            pthread_mutexattr_t attr;
 
39336
            if (pthread_mutexattr_init(&attr))
 
39337
                exit(1);
 
39338
            if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
 
39339
                exit(2);
 
39340
            if (pthread_mutex_init(&mutex, &attr))
 
39341
                exit(3);
 
39342
            if (pthread_mutexattr_destroy(&attr))
 
39343
                exit(4);
 
39344
            if (pthread_mutex_destroy(&mutex))
 
39345
                exit(5);
 
39346
            exit(0);
 
39347
        }
 
39348
_ACEOF
 
39349
rm -f conftest$ac_exeext
 
39350
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
39351
  (eval $ac_link) 2>&5
 
39352
  ac_status=$?
 
39353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39354
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
39355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39356
  (eval $ac_try) 2>&5
 
39357
  ac_status=$?
 
39358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39359
  (exit $ac_status); }; }; then
 
39360
  apr_cv_process_shared_works=yes
 
39361
else
 
39362
  echo "$as_me: program exited with status $ac_status" >&5
 
39363
echo "$as_me: failed program was:" >&5
 
39364
sed 's/^/| /' conftest.$ac_ext >&5
 
39365
 
 
39366
( exit $ac_status )
 
39367
apr_cv_process_shared_works=no
 
39368
fi
 
39369
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
39370
fi
 
39371
fi
 
39372
echo "$as_me:$LINENO: result: $apr_cv_process_shared_works" >&5
 
39373
echo "${ECHO_T}$apr_cv_process_shared_works" >&6
 
39374
      # Override detection of pthread_mutexattr_setpshared
 
39375
      ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
 
39376
else
 
39377
    :
 
39378
 
 
39379
fi
 
39380
 
 
39381
 
 
39382
    if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
 
39383
 
 
39384
echo "$as_me:$LINENO: checking for robust cross-process mutex support" >&5
 
39385
echo $ECHO_N "checking for robust cross-process mutex support... $ECHO_C" >&6
 
39386
if test "${apr_cv_mutex_robust_shared+set}" = set; then
 
39387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39388
else
 
39389
  if test "$cross_compiling" = yes; then
 
39390
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
39391
See \`config.log' for more details." >&5
 
39392
echo "$as_me: error: cannot run test program while cross compiling
 
39393
See \`config.log' for more details." >&2;}
 
39394
   { (exit 1); exit 1; }; }
 
39395
else
 
39396
  cat >conftest.$ac_ext <<_ACEOF
 
39397
/* confdefs.h.  */
 
39398
_ACEOF
 
39399
cat confdefs.h >>conftest.$ac_ext
 
39400
cat >>conftest.$ac_ext <<_ACEOF
 
39401
/* end confdefs.h.  */
 
39402
 
 
39403
#include <sys/types.h>
 
39404
#include <pthread.h>
 
39405
#include <stdlib.h>
 
39406
 
 
39407
int main(int argc, char **argv)
 
39408
{
 
39409
    pthread_mutex_t mutex;
 
39410
    pthread_mutexattr_t attr;
 
39411
 
 
39412
    if (pthread_mutexattr_init(&attr))
 
39413
        exit(1);
 
39414
    if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
 
39415
        exit(2);
 
39416
    if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
 
39417
        exit(3);
 
39418
    if (pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT))
 
39419
        exit(4);
 
39420
    if (pthread_mutex_init(&mutex, &attr))
 
39421
        exit(5);
 
39422
    if (pthread_mutexattr_destroy(&attr))
 
39423
        exit(6);
 
39424
    if (pthread_mutex_destroy(&mutex))
 
39425
        exit(7);
 
39426
 
 
39427
    exit(0);
 
39428
}
 
39429
_ACEOF
 
39430
rm -f conftest$ac_exeext
 
39431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
39432
  (eval $ac_link) 2>&5
 
39433
  ac_status=$?
 
39434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39435
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
39436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39437
  (eval $ac_try) 2>&5
 
39438
  ac_status=$?
 
39439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39440
  (exit $ac_status); }; }; then
 
39441
  apr_cv_mutex_robust_shared=yes
 
39442
else
 
39443
  echo "$as_me: program exited with status $ac_status" >&5
 
39444
echo "$as_me: failed program was:" >&5
 
39445
sed 's/^/| /' conftest.$ac_ext >&5
 
39446
 
 
39447
( exit $ac_status )
 
39448
apr_cv_mutex_robust_shared=no
 
39449
fi
 
39450
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
39451
fi
 
39452
fi
 
39453
echo "$as_me:$LINENO: result: $apr_cv_mutex_robust_shared" >&5
 
39454
echo "${ECHO_T}$apr_cv_mutex_robust_shared" >&6
 
39455
 
 
39456
if test "$apr_cv_mutex_robust_shared" = "yes"; then
 
39457
 
 
39458
cat >>confdefs.h <<\_ACEOF
 
39459
#define HAVE_PTHREAD_MUTEX_ROBUST 1
 
39460
_ACEOF
 
39461
 
 
39462
fi
 
39463
 
 
39464
    fi
 
39465
fi
 
39466
 
 
39467
# See which lock mechanisms we can support on this system.
 
39468
ac_rc=yes
 
39469
for ac_spec in header:semaphore.h func:sem_open func:sem_close              func:sem_unlink func:sem_post func:sem_wait; do
 
39470
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39471
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39472
    case $ac_type in
 
39473
        header )
 
39474
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39475
            ac_var="ac_cv_header_$ac_item"
 
39476
            ;;
 
39477
        file )
 
39478
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39479
            ac_var="ac_cv_file_$ac_item"
 
39480
            ;;
 
39481
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39482
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39483
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39484
        custom ) ac_var="$ac_item" ;;
 
39485
    esac
 
39486
    eval "ac_val=\$$ac_var"
 
39487
    if test ".$ac_val" != .yes; then
 
39488
        ac_rc=no
 
39489
        break
 
39490
    fi
 
39491
done
 
39492
if test ".$ac_rc" = .yes; then
 
39493
    :
 
39494
    hasposixser="1"
 
39495
else
 
39496
    :
 
39497
    hasposixser="0"
 
39498
fi
 
39499
 
 
39500
ac_rc=yes
 
39501
for ac_spec in func:semget func:semctl define:SEM_UNDO; do
 
39502
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39503
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39504
    case $ac_type in
 
39505
        header )
 
39506
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39507
            ac_var="ac_cv_header_$ac_item"
 
39508
            ;;
 
39509
        file )
 
39510
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39511
            ac_var="ac_cv_file_$ac_item"
 
39512
            ;;
 
39513
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39514
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39515
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39516
        custom ) ac_var="$ac_item" ;;
 
39517
    esac
 
39518
    eval "ac_val=\$$ac_var"
 
39519
    if test ".$ac_val" != .yes; then
 
39520
        ac_rc=no
 
39521
        break
 
39522
    fi
 
39523
done
 
39524
if test ".$ac_rc" = .yes; then
 
39525
    :
 
39526
    hassysvser="1"
 
39527
else
 
39528
    :
 
39529
    hassysvser="0"
 
39530
fi
 
39531
 
 
39532
ac_rc=yes
 
39533
for ac_spec in func:flock define:LOCK_EX; do
 
39534
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39535
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39536
    case $ac_type in
 
39537
        header )
 
39538
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39539
            ac_var="ac_cv_header_$ac_item"
 
39540
            ;;
 
39541
        file )
 
39542
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39543
            ac_var="ac_cv_file_$ac_item"
 
39544
            ;;
 
39545
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39546
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39547
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39548
        custom ) ac_var="$ac_item" ;;
 
39549
    esac
 
39550
    eval "ac_val=\$$ac_var"
 
39551
    if test ".$ac_val" != .yes; then
 
39552
        ac_rc=no
 
39553
        break
 
39554
    fi
 
39555
done
 
39556
if test ".$ac_rc" = .yes; then
 
39557
    :
 
39558
    hasflockser="1"
 
39559
else
 
39560
    :
 
39561
    hasflockser="0"
 
39562
fi
 
39563
 
 
39564
ac_rc=yes
 
39565
for ac_spec in header:fcntl.h define:F_SETLK; do
 
39566
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39567
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39568
    case $ac_type in
 
39569
        header )
 
39570
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39571
            ac_var="ac_cv_header_$ac_item"
 
39572
            ;;
 
39573
        file )
 
39574
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39575
            ac_var="ac_cv_file_$ac_item"
 
39576
            ;;
 
39577
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39578
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39579
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39580
        custom ) ac_var="$ac_item" ;;
 
39581
    esac
 
39582
    eval "ac_val=\$$ac_var"
 
39583
    if test ".$ac_val" != .yes; then
 
39584
        ac_rc=no
 
39585
        break
 
39586
    fi
 
39587
done
 
39588
if test ".$ac_rc" = .yes; then
 
39589
    :
 
39590
    hasfcntlser="1"
 
39591
else
 
39592
    :
 
39593
    hasfcntlser="0"
 
39594
fi
 
39595
 
 
39596
# note: the current APR use of shared mutex requires /dev/zero
 
39597
ac_rc=yes
 
39598
for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED              func:pthread_mutexattr_setpshared              file:/dev/zero; do
 
39599
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39600
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39601
    case $ac_type in
 
39602
        header )
 
39603
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39604
            ac_var="ac_cv_header_$ac_item"
 
39605
            ;;
 
39606
        file )
 
39607
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39608
            ac_var="ac_cv_file_$ac_item"
 
39609
            ;;
 
39610
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39611
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39612
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39613
        custom ) ac_var="$ac_item" ;;
 
39614
    esac
 
39615
    eval "ac_val=\$$ac_var"
 
39616
    if test ".$ac_val" != .yes; then
 
39617
        ac_rc=no
 
39618
        break
 
39619
    fi
 
39620
done
 
39621
if test ".$ac_rc" = .yes; then
 
39622
    :
 
39623
    hasprocpthreadser="1"
 
39624
else
 
39625
    :
 
39626
    hasprocpthreadser="0"
 
39627
fi
 
39628
 
 
39629
ac_rc=yes
 
39630
for ac_spec in header:OS.h func:create_sem; do
 
39631
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39632
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39633
    case $ac_type in
 
39634
        header )
 
39635
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39636
            ac_var="ac_cv_header_$ac_item"
 
39637
            ;;
 
39638
        file )
 
39639
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39640
            ac_var="ac_cv_file_$ac_item"
 
39641
            ;;
 
39642
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39643
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39644
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39645
        custom ) ac_var="$ac_item" ;;
 
39646
    esac
 
39647
    eval "ac_val=\$$ac_var"
 
39648
    if test ".$ac_val" != .yes; then
 
39649
        ac_rc=no
 
39650
        break
 
39651
    fi
 
39652
done
 
39653
if test ".$ac_rc" = .yes; then
 
39654
    :
 
39655
    hasbeossem="1"
 
39656
else
 
39657
    :
 
39658
    hasbeossem="0"
 
39659
fi
 
39660
 
 
39661
 
 
39662
# See which lock mechanism we'll select by default on this system.
 
39663
# The last APR_DECIDE to execute sets the default.
 
39664
# At this stage, we match the ordering in Apache 1.3
 
39665
# which is (highest to lowest): sysvsem -> fcntl -> flock.
 
39666
# POSIX semaphores and cross-process pthread mutexes are not
 
39667
# used by default since they have less desirable behaviour when
 
39668
# e.g. a process holding the mutex segfaults.
 
39669
# The BEOSSEM decision doesn't require any substitutions but is
 
39670
# included here to prevent the fcntl() branch being selected
 
39671
# from the decision making.
 
39672
ac_decision_item='apr_lock implementation method'
 
39673
ac_decision_msg='FAILED'
 
39674
ac_decision=''
 
39675
 
 
39676
ac_rc=yes
 
39677
for ac_spec in func:flock define:LOCK_EX; do
 
39678
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39679
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39680
    case $ac_type in
 
39681
        header )
 
39682
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39683
            ac_var="ac_cv_header_$ac_item"
 
39684
            ;;
 
39685
        file )
 
39686
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39687
            ac_var="ac_cv_file_$ac_item"
 
39688
            ;;
 
39689
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39690
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39691
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39692
        custom ) ac_var="$ac_item" ;;
 
39693
    esac
 
39694
    eval "ac_val=\$$ac_var"
 
39695
    if test ".$ac_val" != .yes; then
 
39696
        ac_rc=no
 
39697
        break
 
39698
    fi
 
39699
done
 
39700
if test ".$ac_rc" = .yes; then
 
39701
    :
 
39702
 
 
39703
 
 
39704
ac_decision='USE_FLOCK_SERIALIZE'
 
39705
ac_decision_msg='4.2BSD-style flock()'
 
39706
ac_decision_USE_FLOCK_SERIALIZE=yes
 
39707
ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
 
39708
 
 
39709
else
 
39710
    :
 
39711
 
 
39712
fi
 
39713
 
 
39714
ac_rc=yes
 
39715
for ac_spec in header:fcntl.h define:F_SETLK; do
 
39716
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39717
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39718
    case $ac_type in
 
39719
        header )
 
39720
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39721
            ac_var="ac_cv_header_$ac_item"
 
39722
            ;;
 
39723
        file )
 
39724
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39725
            ac_var="ac_cv_file_$ac_item"
 
39726
            ;;
 
39727
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39728
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39729
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39730
        custom ) ac_var="$ac_item" ;;
 
39731
    esac
 
39732
    eval "ac_val=\$$ac_var"
 
39733
    if test ".$ac_val" != .yes; then
 
39734
        ac_rc=no
 
39735
        break
 
39736
    fi
 
39737
done
 
39738
if test ".$ac_rc" = .yes; then
 
39739
    :
 
39740
 
 
39741
 
 
39742
ac_decision='USE_FCNTL_SERIALIZE'
 
39743
ac_decision_msg='SVR4-style fcntl()'
 
39744
ac_decision_USE_FCNTL_SERIALIZE=yes
 
39745
ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
 
39746
 
 
39747
else
 
39748
    :
 
39749
 
 
39750
fi
 
39751
 
 
39752
ac_rc=yes
 
39753
for ac_spec in func:semget func:semctl define:SEM_UNDO; do
 
39754
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39755
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39756
    case $ac_type in
 
39757
        header )
 
39758
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39759
            ac_var="ac_cv_header_$ac_item"
 
39760
            ;;
 
39761
        file )
 
39762
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39763
            ac_var="ac_cv_file_$ac_item"
 
39764
            ;;
 
39765
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39766
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39767
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39768
        custom ) ac_var="$ac_item" ;;
 
39769
    esac
 
39770
    eval "ac_val=\$$ac_var"
 
39771
    if test ".$ac_val" != .yes; then
 
39772
        ac_rc=no
 
39773
        break
 
39774
    fi
 
39775
done
 
39776
if test ".$ac_rc" = .yes; then
 
39777
    :
 
39778
 
 
39779
 
 
39780
ac_decision='USE_SYSVSEM_SERIALIZE'
 
39781
ac_decision_msg='SysV IPC semget()'
 
39782
ac_decision_USE_SYSVSEM_SERIALIZE=yes
 
39783
ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
 
39784
 
 
39785
else
 
39786
    :
 
39787
 
 
39788
fi
 
39789
 
 
39790
ac_rc=yes
 
39791
for ac_spec in header:OS.h func:create_sem; do
 
39792
    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
 
39793
    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
 
39794
    case $ac_type in
 
39795
        header )
 
39796
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39797
            ac_var="ac_cv_header_$ac_item"
 
39798
            ;;
 
39799
        file )
 
39800
            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
 
39801
            ac_var="ac_cv_file_$ac_item"
 
39802
            ;;
 
39803
        func )   ac_var="ac_cv_func_$ac_item"   ;;
 
39804
        struct ) ac_var="ac_cv_struct_$ac_item" ;;
 
39805
        define ) ac_var="ac_cv_define_$ac_item" ;;
 
39806
        custom ) ac_var="$ac_item" ;;
 
39807
    esac
 
39808
    eval "ac_val=\$$ac_var"
 
39809
    if test ".$ac_val" != .yes; then
 
39810
        ac_rc=no
 
39811
        break
 
39812
    fi
 
39813
done
 
39814
if test ".$ac_rc" = .yes; then
 
39815
    :
 
39816
 
 
39817
 
 
39818
ac_decision='USE_BEOSSEM'
 
39819
ac_decision_msg='BeOS Semaphores'
 
39820
ac_decision_USE_BEOSSEM=yes
 
39821
ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
 
39822
 
 
39823
else
 
39824
    :
 
39825
 
 
39826
fi
 
39827
 
 
39828
if test "x$apr_lock_method" != "x"; then
 
39829
    ac_decision="$apr_lock_method"
 
39830
eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
 
39831
 
 
39832
fi
 
39833
if test ".$ac_decision" = .; then
 
39834
    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
 
39835
    exit 1
 
39836
else
 
39837
    if test ".$ac_decision_msg" = .; then
 
39838
        ac_decision_msg="$ac_decision"
 
39839
    fi
 
39840
    cat >>confdefs.h <<_ACEOF
 
39841
#define ${ac_decision_item} 1
 
39842
_ACEOF
 
39843
 
 
39844
    echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
 
39845
echo "${ECHO_T}decision on $ac_decision_item... $ac_decision_msg" >&6
 
39846
fi
 
39847
 
 
39848
cat >>confdefs.h <<_ACEOF
 
39849
#define $ac_decision 1
 
39850
_ACEOF
 
39851
 
 
39852
 
 
39853
flockser="0"
 
39854
sysvser="0"
 
39855
posixser="0"
 
39856
procpthreadser="0"
 
39857
fcntlser="0"
 
39858
case $ac_decision in
 
39859
    USE_FLOCK_SERIALIZE )
 
39860
        flockser="1"
 
39861
        ;;
 
39862
    USE_FCNTL_SERIALIZE )
 
39863
        fcntlser="1"
 
39864
        ;;
 
39865
    USE_SYSVSEM_SERIALIZE )
 
39866
        sysvser="1"
 
39867
        ;;
 
39868
    USE_POSIXSEM_SERIALIZE )
 
39869
        posixser="1"
 
39870
        ;;
 
39871
    USE_PROC_PTHREAD_SERIALIZE )
 
39872
        procpthreadser="1"
 
39873
        ;;
 
39874
    USE_BEOSSEM )
 
39875
        beossem="1"
 
39876
        ;;
 
39877
esac
 
39878
 
 
39879
 
 
39880
 
 
39881
 
 
39882
 
 
39883
 
 
39884
 
 
39885
 
 
39886
 
 
39887
 
 
39888
 
 
39889
 
 
39890
 
 
39891
echo "$as_me:$LINENO: checking if all interprocess locks affect threads" >&5
 
39892
echo $ECHO_N "checking if all interprocess locks affect threads... $ECHO_C" >&6
 
39893
if test "x$apr_process_lock_is_global" = "xyes"; then
 
39894
    proclockglobal="1"
 
39895
    echo "$as_me:$LINENO: result: yes" >&5
 
39896
echo "${ECHO_T}yes" >&6
 
39897
else
 
39898
    proclockglobal="0"
 
39899
    echo "$as_me:$LINENO: result: no" >&5
 
39900
echo "${ECHO_T}no" >&6
 
39901
fi
 
39902
 
 
39903
 
 
39904
 
 
39905
echo "$as_me:$LINENO: checking if POSIX sems affect threads in the same process" >&5
 
39906
echo $ECHO_N "checking if POSIX sems affect threads in the same process... $ECHO_C" >&6
 
39907
if test "x$apr_posixsem_is_global" = "xyes"; then
 
39908
 
 
39909
cat >>confdefs.h <<\_ACEOF
 
39910
#define POSIXSEM_IS_GLOBAL 1
 
39911
_ACEOF
 
39912
 
 
39913
  echo "$as_me:$LINENO: result: yes" >&5
 
39914
echo "${ECHO_T}yes" >&6
 
39915
else
 
39916
  echo "$as_me:$LINENO: result: no" >&5
 
39917
echo "${ECHO_T}no" >&6
 
39918
fi
 
39919
 
 
39920
echo "$as_me:$LINENO: checking if SysV sems affect threads in the same process" >&5
 
39921
echo $ECHO_N "checking if SysV sems affect threads in the same process... $ECHO_C" >&6
 
39922
if test "x$apr_sysvsem_is_global" = "xyes"; then
 
39923
 
 
39924
cat >>confdefs.h <<\_ACEOF
 
39925
#define SYSVSEM_IS_GLOBAL 1
 
39926
_ACEOF
 
39927
 
 
39928
  echo "$as_me:$LINENO: result: yes" >&5
 
39929
echo "${ECHO_T}yes" >&6
 
39930
else
 
39931
  echo "$as_me:$LINENO: result: no" >&5
 
39932
echo "${ECHO_T}no" >&6
 
39933
fi
 
39934
 
 
39935
echo "$as_me:$LINENO: checking if fcntl locks affect threads in the same process" >&5
 
39936
echo $ECHO_N "checking if fcntl locks affect threads in the same process... $ECHO_C" >&6
 
39937
if test "x$apr_fcntl_is_global" = "xyes"; then
 
39938
 
 
39939
cat >>confdefs.h <<\_ACEOF
 
39940
#define FCNTL_IS_GLOBAL 1
 
39941
_ACEOF
 
39942
 
 
39943
  echo "$as_me:$LINENO: result: yes" >&5
 
39944
echo "${ECHO_T}yes" >&6
 
39945
else
 
39946
  echo "$as_me:$LINENO: result: no" >&5
 
39947
echo "${ECHO_T}no" >&6
 
39948
fi
 
39949
 
 
39950
echo "$as_me:$LINENO: checking if flock locks affect threads in the same process" >&5
 
39951
echo $ECHO_N "checking if flock locks affect threads in the same process... $ECHO_C" >&6
 
39952
if test "x$apr_flock_is_global" = "xyes"; then
 
39953
 
 
39954
cat >>confdefs.h <<\_ACEOF
 
39955
#define FLOCK_IS_GLOBAL 1
 
39956
_ACEOF
 
39957
 
 
39958
  echo "$as_me:$LINENO: result: yes" >&5
 
39959
echo "${ECHO_T}yes" >&6
 
39960
else
 
39961
  echo "$as_me:$LINENO: result: no" >&5
 
39962
echo "${ECHO_T}no" >&6
 
39963
fi
 
39964
 
 
39965
echo "$as_me:$LINENO: checking for entropy source" >&5
 
39966
echo $ECHO_N "checking for entropy source... $ECHO_C" >&6
 
39967
 
 
39968
 
 
39969
# Check whether --with-egd or --without-egd was given.
 
39970
if test "${with_egd+set}" = set; then
 
39971
  withval="$with_egd"
 
39972
 
 
39973
cat >>confdefs.h <<\_ACEOF
 
39974
#define HAVE_EGD 1
 
39975
_ACEOF
 
39976
 
 
39977
    if test "$withval" = "yes"; then
 
39978
 
 
39979
cat >>confdefs.h <<_ACEOF
 
39980
#define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
 
39981
_ACEOF
 
39982
 
 
39983
    else
 
39984
        cat >>confdefs.h <<_ACEOF
 
39985
#define EGD_DEFAULT_SOCKET "$withval"
 
39986
_ACEOF
 
39987
 
 
39988
    fi
 
39989
    echo "$as_me:$LINENO: result: EGD-compatible daemon" >&5
 
39990
echo "${ECHO_T}EGD-compatible daemon" >&6
 
39991
    rand="1"
 
39992
 
 
39993
fi;
 
39994
 
 
39995
if test "$rand" != "1"; then
 
39996
 
 
39997
# Check whether --with-devrandom or --without-devrandom was given.
 
39998
if test "${with_devrandom+set}" = set; then
 
39999
  withval="$with_devrandom"
 
40000
   apr_devrandom="$withval"
 
40001
else
 
40002
   apr_devrandom="yes"
 
40003
fi;
 
40004
 
 
40005
  if test "$apr_devrandom" = "yes"; then
 
40006
    # /dev/random on OpenBSD doesn't provide random data, so
 
40007
    # prefer /dev/arandom, which does; see random(4).
 
40008
    for f in /dev/arandom /dev/random /dev/urandom; do
 
40009
      if test -r $f; then
 
40010
        apr_devrandom=$f
 
40011
        rand=1
 
40012
        break
 
40013
      fi
 
40014
    done
 
40015
  elif test "$apr_devrandom" != "no"; then
 
40016
    if test -r "$apr_devrandom"; then
 
40017
      rand="1"
 
40018
    else
 
40019
      { { echo "$as_me:$LINENO: error: $apr_devrandom not found or unreadable." >&5
 
40020
echo "$as_me: error: $apr_devrandom not found or unreadable." >&2;}
 
40021
   { (exit 1); exit 1; }; }
 
40022
    fi
 
40023
  fi
 
40024
 
 
40025
  if test "$rand" = "1"; then
 
40026
 
 
40027
cat >>confdefs.h <<_ACEOF
 
40028
#define DEV_RANDOM "$apr_devrandom"
 
40029
_ACEOF
 
40030
 
 
40031
    echo "$as_me:$LINENO: result: $apr_devrandom" >&5
 
40032
echo "${ECHO_T}$apr_devrandom" >&6
 
40033
  fi
 
40034
fi
 
40035
 
 
40036
if test "$rand" != "1"; then
 
40037
    case $host in
 
40038
        # we have built in support for OS/2
 
40039
        *-os2*)
 
40040
            echo "$as_me:$LINENO: result: Using OS/2 builtin random" >&5
 
40041
echo "${ECHO_T}Using OS/2 builtin random" >&6
 
40042
            rand="1"
 
40043
            ;;
 
40044
        *)
 
40045
            if test "$rand" != "1"; then
 
40046
              if test "$ac_cv_lib_truerand_main" = "yes"; then
 
40047
 
 
40048
cat >>confdefs.h <<\_ACEOF
 
40049
#define HAVE_TRUERAND 1
 
40050
_ACEOF
 
40051
 
 
40052
                echo "$as_me:$LINENO: result: truerand" >&5
 
40053
echo "${ECHO_T}truerand" >&6
 
40054
                rand="1"
 
40055
              else
 
40056
                echo "$as_me:$LINENO: result: not found" >&5
 
40057
echo "${ECHO_T}not found" >&6
 
40058
                rand="0"
 
40059
              fi
 
40060
            fi
 
40061
            ;;
 
40062
    esac
 
40063
fi
 
40064
 
 
40065
 
 
40066
 
 
40067
echo "${nl}Checking for OS UUID Support..."
 
40068
 
 
40069
 
 
40070
 
 
40071
 
 
40072
for ac_header in uuid.h uuid/uuid.h sys/uuid.h
 
40073
do
 
40074
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
40075
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
40076
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
40077
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
40078
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
40079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40080
fi
 
40081
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
40082
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
40083
else
 
40084
  # Is the header compilable?
 
40085
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
40086
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
40087
cat >conftest.$ac_ext <<_ACEOF
 
40088
/* confdefs.h.  */
 
40089
_ACEOF
 
40090
cat confdefs.h >>conftest.$ac_ext
 
40091
cat >>conftest.$ac_ext <<_ACEOF
 
40092
/* end confdefs.h.  */
 
40093
$ac_includes_default
 
40094
#include <$ac_header>
 
40095
_ACEOF
 
40096
rm -f conftest.$ac_objext
 
40097
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40098
  (eval $ac_compile) 2>conftest.er1
 
40099
  ac_status=$?
 
40100
  grep -v '^ *+' conftest.er1 >conftest.err
 
40101
  rm -f conftest.er1
 
40102
  cat conftest.err >&5
 
40103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40104
  (exit $ac_status); } &&
 
40105
         { ac_try='test -z "$ac_c_werror_flag"
 
40106
                         || test ! -s conftest.err'
 
40107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40108
  (eval $ac_try) 2>&5
 
40109
  ac_status=$?
 
40110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40111
  (exit $ac_status); }; } &&
 
40112
         { ac_try='test -s conftest.$ac_objext'
 
40113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40114
  (eval $ac_try) 2>&5
 
40115
  ac_status=$?
 
40116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40117
  (exit $ac_status); }; }; then
 
40118
  ac_header_compiler=yes
 
40119
else
 
40120
  echo "$as_me: failed program was:" >&5
 
40121
sed 's/^/| /' conftest.$ac_ext >&5
 
40122
 
 
40123
ac_header_compiler=no
 
40124
fi
 
40125
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40126
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
40127
echo "${ECHO_T}$ac_header_compiler" >&6
 
40128
 
 
40129
# Is the header present?
 
40130
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
40131
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
40132
cat >conftest.$ac_ext <<_ACEOF
 
40133
/* confdefs.h.  */
 
40134
_ACEOF
 
40135
cat confdefs.h >>conftest.$ac_ext
 
40136
cat >>conftest.$ac_ext <<_ACEOF
 
40137
/* end confdefs.h.  */
 
40138
#include <$ac_header>
 
40139
_ACEOF
 
40140
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
40141
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
40142
  ac_status=$?
 
40143
  grep -v '^ *+' conftest.er1 >conftest.err
 
40144
  rm -f conftest.er1
 
40145
  cat conftest.err >&5
 
40146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40147
  (exit $ac_status); } >/dev/null; then
 
40148
  if test -s conftest.err; then
 
40149
    ac_cpp_err=$ac_c_preproc_warn_flag
 
40150
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
40151
  else
 
40152
    ac_cpp_err=
 
40153
  fi
 
40154
else
 
40155
  ac_cpp_err=yes
 
40156
fi
 
40157
if test -z "$ac_cpp_err"; then
 
40158
  ac_header_preproc=yes
 
40159
else
 
40160
  echo "$as_me: failed program was:" >&5
 
40161
sed 's/^/| /' conftest.$ac_ext >&5
 
40162
 
 
40163
  ac_header_preproc=no
 
40164
fi
 
40165
rm -f conftest.err conftest.$ac_ext
 
40166
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
40167
echo "${ECHO_T}$ac_header_preproc" >&6
 
40168
 
 
40169
# So?  What about this header?
 
40170
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
40171
  yes:no: )
 
40172
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
40173
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
40174
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
40175
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
40176
    ac_header_preproc=yes
 
40177
    ;;
 
40178
  no:yes:* )
 
40179
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
40180
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
40181
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
40182
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
40183
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
40184
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
40185
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
40186
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
40187
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
40188
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
40189
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
40190
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
40191
    (
 
40192
      cat <<\_ASBOX
 
40193
## ------------------------------------------ ##
 
40194
## Report this to the AC_PACKAGE_NAME lists.  ##
 
40195
## ------------------------------------------ ##
 
40196
_ASBOX
 
40197
    ) |
 
40198
      sed "s/^/$as_me: WARNING:     /" >&2
 
40199
    ;;
 
40200
esac
 
40201
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
40202
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
40203
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
40204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40205
else
 
40206
  eval "$as_ac_Header=\$ac_header_preproc"
 
40207
fi
 
40208
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
40209
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
40210
 
 
40211
fi
 
40212
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
40213
  cat >>confdefs.h <<_ACEOF
 
40214
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
40215
_ACEOF
 
40216
 break
 
40217
fi
 
40218
 
 
40219
done
 
40220
 
 
40221
 
 
40222
apr_revert_save_LIBS=$LIBS
 
40223
 
 
40224
# Prefer the flavor(s) that live in libc;
 
40225
echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
 
40226
echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6
 
40227
if test "${ac_cv_search_uuid_create+set}" = set; then
 
40228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40229
else
 
40230
  ac_func_search_save_LIBS=$LIBS
 
40231
ac_cv_search_uuid_create=no
 
40232
cat >conftest.$ac_ext <<_ACEOF
 
40233
/* confdefs.h.  */
 
40234
_ACEOF
 
40235
cat confdefs.h >>conftest.$ac_ext
 
40236
cat >>conftest.$ac_ext <<_ACEOF
 
40237
/* end confdefs.h.  */
 
40238
 
 
40239
/* Override any gcc2 internal prototype to avoid an error.  */
 
40240
#ifdef __cplusplus
 
40241
extern "C"
 
40242
#endif
 
40243
/* We use char because int might match the return type of a gcc2
 
40244
   builtin and then its argument prototype would still apply.  */
 
40245
char uuid_create ();
 
40246
int
 
40247
main ()
 
40248
{
 
40249
uuid_create ();
 
40250
  ;
 
40251
  return 0;
 
40252
}
 
40253
_ACEOF
 
40254
rm -f conftest.$ac_objext conftest$ac_exeext
 
40255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40256
  (eval $ac_link) 2>conftest.er1
 
40257
  ac_status=$?
 
40258
  grep -v '^ *+' conftest.er1 >conftest.err
 
40259
  rm -f conftest.er1
 
40260
  cat conftest.err >&5
 
40261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40262
  (exit $ac_status); } &&
 
40263
         { ac_try='test -z "$ac_c_werror_flag"
 
40264
                         || test ! -s conftest.err'
 
40265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40266
  (eval $ac_try) 2>&5
 
40267
  ac_status=$?
 
40268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40269
  (exit $ac_status); }; } &&
 
40270
         { ac_try='test -s conftest$ac_exeext'
 
40271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40272
  (eval $ac_try) 2>&5
 
40273
  ac_status=$?
 
40274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40275
  (exit $ac_status); }; }; then
 
40276
  ac_cv_search_uuid_create="none required"
 
40277
else
 
40278
  echo "$as_me: failed program was:" >&5
 
40279
sed 's/^/| /' conftest.$ac_ext >&5
 
40280
 
 
40281
fi
 
40282
rm -f conftest.err conftest.$ac_objext \
 
40283
      conftest$ac_exeext conftest.$ac_ext
 
40284
if test "$ac_cv_search_uuid_create" = no; then
 
40285
  for ac_lib in uuid; do
 
40286
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
40287
    cat >conftest.$ac_ext <<_ACEOF
 
40288
/* confdefs.h.  */
 
40289
_ACEOF
 
40290
cat confdefs.h >>conftest.$ac_ext
 
40291
cat >>conftest.$ac_ext <<_ACEOF
 
40292
/* end confdefs.h.  */
 
40293
 
 
40294
/* Override any gcc2 internal prototype to avoid an error.  */
 
40295
#ifdef __cplusplus
 
40296
extern "C"
 
40297
#endif
 
40298
/* We use char because int might match the return type of a gcc2
 
40299
   builtin and then its argument prototype would still apply.  */
 
40300
char uuid_create ();
 
40301
int
 
40302
main ()
 
40303
{
 
40304
uuid_create ();
 
40305
  ;
 
40306
  return 0;
 
40307
}
 
40308
_ACEOF
 
40309
rm -f conftest.$ac_objext conftest$ac_exeext
 
40310
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40311
  (eval $ac_link) 2>conftest.er1
 
40312
  ac_status=$?
 
40313
  grep -v '^ *+' conftest.er1 >conftest.err
 
40314
  rm -f conftest.er1
 
40315
  cat conftest.err >&5
 
40316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40317
  (exit $ac_status); } &&
 
40318
         { ac_try='test -z "$ac_c_werror_flag"
 
40319
                         || test ! -s conftest.err'
 
40320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40321
  (eval $ac_try) 2>&5
 
40322
  ac_status=$?
 
40323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40324
  (exit $ac_status); }; } &&
 
40325
         { ac_try='test -s conftest$ac_exeext'
 
40326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40327
  (eval $ac_try) 2>&5
 
40328
  ac_status=$?
 
40329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40330
  (exit $ac_status); }; }; then
 
40331
  ac_cv_search_uuid_create="-l$ac_lib"
 
40332
break
 
40333
else
 
40334
  echo "$as_me: failed program was:" >&5
 
40335
sed 's/^/| /' conftest.$ac_ext >&5
 
40336
 
 
40337
fi
 
40338
rm -f conftest.err conftest.$ac_objext \
 
40339
      conftest$ac_exeext conftest.$ac_ext
 
40340
  done
 
40341
fi
 
40342
LIBS=$ac_func_search_save_LIBS
 
40343
fi
 
40344
echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
 
40345
echo "${ECHO_T}$ac_cv_search_uuid_create" >&6
 
40346
if test "$ac_cv_search_uuid_create" != no; then
 
40347
  test "$ac_cv_search_uuid_create" = "none required" || LIBS="$ac_cv_search_uuid_create $LIBS"
 
40348
 
 
40349
fi
 
40350
 
 
40351
echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
 
40352
echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
 
40353
if test "${ac_cv_search_uuid_generate+set}" = set; then
 
40354
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40355
else
 
40356
  ac_func_search_save_LIBS=$LIBS
 
40357
ac_cv_search_uuid_generate=no
 
40358
cat >conftest.$ac_ext <<_ACEOF
 
40359
/* confdefs.h.  */
 
40360
_ACEOF
 
40361
cat confdefs.h >>conftest.$ac_ext
 
40362
cat >>conftest.$ac_ext <<_ACEOF
 
40363
/* end confdefs.h.  */
 
40364
 
 
40365
/* Override any gcc2 internal prototype to avoid an error.  */
 
40366
#ifdef __cplusplus
 
40367
extern "C"
 
40368
#endif
 
40369
/* We use char because int might match the return type of a gcc2
 
40370
   builtin and then its argument prototype would still apply.  */
 
40371
char uuid_generate ();
 
40372
int
 
40373
main ()
 
40374
{
 
40375
uuid_generate ();
 
40376
  ;
 
40377
  return 0;
 
40378
}
 
40379
_ACEOF
 
40380
rm -f conftest.$ac_objext conftest$ac_exeext
 
40381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40382
  (eval $ac_link) 2>conftest.er1
 
40383
  ac_status=$?
 
40384
  grep -v '^ *+' conftest.er1 >conftest.err
 
40385
  rm -f conftest.er1
 
40386
  cat conftest.err >&5
 
40387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40388
  (exit $ac_status); } &&
 
40389
         { ac_try='test -z "$ac_c_werror_flag"
 
40390
                         || test ! -s conftest.err'
 
40391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40392
  (eval $ac_try) 2>&5
 
40393
  ac_status=$?
 
40394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40395
  (exit $ac_status); }; } &&
 
40396
         { ac_try='test -s conftest$ac_exeext'
 
40397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40398
  (eval $ac_try) 2>&5
 
40399
  ac_status=$?
 
40400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40401
  (exit $ac_status); }; }; then
 
40402
  ac_cv_search_uuid_generate="none required"
 
40403
else
 
40404
  echo "$as_me: failed program was:" >&5
 
40405
sed 's/^/| /' conftest.$ac_ext >&5
 
40406
 
 
40407
fi
 
40408
rm -f conftest.err conftest.$ac_objext \
 
40409
      conftest$ac_exeext conftest.$ac_ext
 
40410
if test "$ac_cv_search_uuid_generate" = no; then
 
40411
  for ac_lib in uuid; do
 
40412
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
40413
    cat >conftest.$ac_ext <<_ACEOF
 
40414
/* confdefs.h.  */
 
40415
_ACEOF
 
40416
cat confdefs.h >>conftest.$ac_ext
 
40417
cat >>conftest.$ac_ext <<_ACEOF
 
40418
/* end confdefs.h.  */
 
40419
 
 
40420
/* Override any gcc2 internal prototype to avoid an error.  */
 
40421
#ifdef __cplusplus
 
40422
extern "C"
 
40423
#endif
 
40424
/* We use char because int might match the return type of a gcc2
 
40425
   builtin and then its argument prototype would still apply.  */
 
40426
char uuid_generate ();
 
40427
int
 
40428
main ()
 
40429
{
 
40430
uuid_generate ();
 
40431
  ;
 
40432
  return 0;
 
40433
}
 
40434
_ACEOF
 
40435
rm -f conftest.$ac_objext conftest$ac_exeext
 
40436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40437
  (eval $ac_link) 2>conftest.er1
 
40438
  ac_status=$?
 
40439
  grep -v '^ *+' conftest.er1 >conftest.err
 
40440
  rm -f conftest.er1
 
40441
  cat conftest.err >&5
 
40442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40443
  (exit $ac_status); } &&
 
40444
         { ac_try='test -z "$ac_c_werror_flag"
 
40445
                         || test ! -s conftest.err'
 
40446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40447
  (eval $ac_try) 2>&5
 
40448
  ac_status=$?
 
40449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40450
  (exit $ac_status); }; } &&
 
40451
         { ac_try='test -s conftest$ac_exeext'
 
40452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40453
  (eval $ac_try) 2>&5
 
40454
  ac_status=$?
 
40455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40456
  (exit $ac_status); }; }; then
 
40457
  ac_cv_search_uuid_generate="-l$ac_lib"
 
40458
break
 
40459
else
 
40460
  echo "$as_me: failed program was:" >&5
 
40461
sed 's/^/| /' conftest.$ac_ext >&5
 
40462
 
 
40463
fi
 
40464
rm -f conftest.err conftest.$ac_objext \
 
40465
      conftest$ac_exeext conftest.$ac_ext
 
40466
  done
 
40467
fi
 
40468
LIBS=$ac_func_search_save_LIBS
 
40469
fi
 
40470
echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
 
40471
echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
 
40472
if test "$ac_cv_search_uuid_generate" != no; then
 
40473
  test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
 
40474
 
 
40475
fi
 
40476
 
 
40477
if test "$ac_cv_search_uuid_create" = "none required" -o \
 
40478
        "$ac_cv_search_uuid_generate" = "none required"; then
 
40479
 LIBS=$apr_revert_save_LIBS
 
40480
fi
 
40481
 
 
40482
 
 
40483
 
 
40484
for ac_func in uuid_create uuid_generate
 
40485
do
 
40486
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
40487
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
40488
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
40489
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
40490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40491
else
 
40492
  cat >conftest.$ac_ext <<_ACEOF
 
40493
/* confdefs.h.  */
 
40494
_ACEOF
 
40495
cat confdefs.h >>conftest.$ac_ext
 
40496
cat >>conftest.$ac_ext <<_ACEOF
 
40497
/* end confdefs.h.  */
 
40498
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
40499
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
40500
#define $ac_func innocuous_$ac_func
 
40501
 
 
40502
/* System header to define __stub macros and hopefully few prototypes,
 
40503
    which can conflict with char $ac_func (); below.
 
40504
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
40505
    <limits.h> exists even on freestanding compilers.  */
 
40506
 
 
40507
#ifdef __STDC__
 
40508
# include <limits.h>
 
40509
#else
 
40510
# include <assert.h>
 
40511
#endif
 
40512
 
 
40513
#undef $ac_func
 
40514
 
 
40515
/* Override any gcc2 internal prototype to avoid an error.  */
 
40516
#ifdef __cplusplus
 
40517
extern "C"
 
40518
{
 
40519
#endif
 
40520
/* We use char because int might match the return type of a gcc2
 
40521
   builtin and then its argument prototype would still apply.  */
 
40522
char $ac_func ();
 
40523
/* The GNU C library defines this for functions which it implements
 
40524
    to always fail with ENOSYS.  Some functions are actually named
 
40525
    something starting with __ and the normal name is an alias.  */
 
40526
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
40527
choke me
 
40528
#else
 
40529
char (*f) () = $ac_func;
 
40530
#endif
 
40531
#ifdef __cplusplus
 
40532
}
 
40533
#endif
 
40534
 
 
40535
int
 
40536
main ()
 
40537
{
 
40538
return f != $ac_func;
 
40539
  ;
 
40540
  return 0;
 
40541
}
 
40542
_ACEOF
 
40543
rm -f conftest.$ac_objext conftest$ac_exeext
 
40544
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40545
  (eval $ac_link) 2>conftest.er1
 
40546
  ac_status=$?
 
40547
  grep -v '^ *+' conftest.er1 >conftest.err
 
40548
  rm -f conftest.er1
 
40549
  cat conftest.err >&5
 
40550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40551
  (exit $ac_status); } &&
 
40552
         { ac_try='test -z "$ac_c_werror_flag"
 
40553
                         || test ! -s conftest.err'
 
40554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40555
  (eval $ac_try) 2>&5
 
40556
  ac_status=$?
 
40557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40558
  (exit $ac_status); }; } &&
 
40559
         { ac_try='test -s conftest$ac_exeext'
 
40560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40561
  (eval $ac_try) 2>&5
 
40562
  ac_status=$?
 
40563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40564
  (exit $ac_status); }; }; then
 
40565
  eval "$as_ac_var=yes"
 
40566
else
 
40567
  echo "$as_me: failed program was:" >&5
 
40568
sed 's/^/| /' conftest.$ac_ext >&5
 
40569
 
 
40570
eval "$as_ac_var=no"
 
40571
fi
 
40572
rm -f conftest.err conftest.$ac_objext \
 
40573
      conftest$ac_exeext conftest.$ac_ext
 
40574
fi
 
40575
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
40576
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
40577
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
40578
  cat >>confdefs.h <<_ACEOF
 
40579
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
40580
_ACEOF
 
40581
 
 
40582
fi
 
40583
done
 
40584
 
 
40585
 
 
40586
echo "$as_me:$LINENO: checking for os uuid usability" >&5
 
40587
echo $ECHO_N "checking for os uuid usability... $ECHO_C" >&6
 
40588
if test "${apr_cv_osuuid+set}" = set; then
 
40589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40590
else
 
40591
 
 
40592
# Ensure this test closely mirrors misc/unix/rand.c!
 
40593
uuid_includes="
 
40594
#if defined(HAVE_SYS_TYPES_H)
 
40595
#include <sys/types.h>
 
40596
#endif
 
40597
#if defined(HAVE_UNISTD_H)
 
40598
#include <unistd.h>
 
40599
#endif
 
40600
#if defined(HAVE_UUID_H)
 
40601
#include <uuid.h>
 
40602
#elif defined(HAVE_UUID_UUID_H)
 
40603
#include <uuid/uuid.h>
 
40604
#elif defined(HAVE_SYS_UUID_H)
 
40605
#include <sys/uuid.h>
 
40606
#endif
 
40607
"
 
40608
 apr_cv_osuuid=no
 
40609
 if test $ac_cv_func_uuid_create = yes; then
 
40610
  cat >conftest.$ac_ext <<_ACEOF
 
40611
/* confdefs.h.  */
 
40612
_ACEOF
 
40613
cat confdefs.h >>conftest.$ac_ext
 
40614
cat >>conftest.$ac_ext <<_ACEOF
 
40615
/* end confdefs.h.  */
 
40616
$uuid_includes
 
40617
int
 
40618
main ()
 
40619
{
 
40620
 
 
40621
    uuid_t g;
 
40622
    uint32_t s;
 
40623
    uuid_create(&g, &s);
 
40624
    if (s == uuid_s_ok) s = 0;
 
40625
 
 
40626
  ;
 
40627
  return 0;
 
40628
}
 
40629
_ACEOF
 
40630
rm -f conftest.$ac_objext conftest$ac_exeext
 
40631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40632
  (eval $ac_link) 2>conftest.er1
 
40633
  ac_status=$?
 
40634
  grep -v '^ *+' conftest.er1 >conftest.err
 
40635
  rm -f conftest.er1
 
40636
  cat conftest.err >&5
 
40637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40638
  (exit $ac_status); } &&
 
40639
         { ac_try='test -z "$ac_c_werror_flag"
 
40640
                         || test ! -s conftest.err'
 
40641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40642
  (eval $ac_try) 2>&5
 
40643
  ac_status=$?
 
40644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40645
  (exit $ac_status); }; } &&
 
40646
         { ac_try='test -s conftest$ac_exeext'
 
40647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40648
  (eval $ac_try) 2>&5
 
40649
  ac_status=$?
 
40650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40651
  (exit $ac_status); }; }; then
 
40652
  apr_cv_osuuid=yes
 
40653
else
 
40654
  echo "$as_me: failed program was:" >&5
 
40655
sed 's/^/| /' conftest.$ac_ext >&5
 
40656
 
 
40657
apr_cv_func_uuid_create=no
 
40658
fi
 
40659
rm -f conftest.err conftest.$ac_objext \
 
40660
      conftest$ac_exeext conftest.$ac_ext
 
40661
 fi
 
40662
 if test $ac_cv_func_uuid_generate = yes; then
 
40663
  cat >conftest.$ac_ext <<_ACEOF
 
40664
/* confdefs.h.  */
 
40665
_ACEOF
 
40666
cat confdefs.h >>conftest.$ac_ext
 
40667
cat >>conftest.$ac_ext <<_ACEOF
 
40668
/* end confdefs.h.  */
 
40669
$uuid_includes
 
40670
int
 
40671
main ()
 
40672
{
 
40673
 
 
40674
    uuid_t g;
 
40675
    uuid_generate(g);
 
40676
 
 
40677
  ;
 
40678
  return 0;
 
40679
}
 
40680
_ACEOF
 
40681
rm -f conftest.$ac_objext conftest$ac_exeext
 
40682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40683
  (eval $ac_link) 2>conftest.er1
 
40684
  ac_status=$?
 
40685
  grep -v '^ *+' conftest.er1 >conftest.err
 
40686
  rm -f conftest.er1
 
40687
  cat conftest.err >&5
 
40688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40689
  (exit $ac_status); } &&
 
40690
         { ac_try='test -z "$ac_c_werror_flag"
 
40691
                         || test ! -s conftest.err'
 
40692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40693
  (eval $ac_try) 2>&5
 
40694
  ac_status=$?
 
40695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40696
  (exit $ac_status); }; } &&
 
40697
         { ac_try='test -s conftest$ac_exeext'
 
40698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40699
  (eval $ac_try) 2>&5
 
40700
  ac_status=$?
 
40701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40702
  (exit $ac_status); }; }; then
 
40703
  apr_cv_osuuid=yes
 
40704
else
 
40705
  echo "$as_me: failed program was:" >&5
 
40706
sed 's/^/| /' conftest.$ac_ext >&5
 
40707
 
 
40708
apr_cv_func_uuid_generate=no
 
40709
fi
 
40710
rm -f conftest.err conftest.$ac_objext \
 
40711
      conftest$ac_exeext conftest.$ac_ext
 
40712
 fi
 
40713
 
 
40714
fi
 
40715
echo "$as_me:$LINENO: result: $apr_cv_osuuid" >&5
 
40716
echo "${ECHO_T}$apr_cv_osuuid" >&6
 
40717
 
 
40718
if test $apr_cv_osuuid = yes; then
 
40719
  osuuid="1"
 
40720
else
 
40721
  osuuid="0"
 
40722
  LIBS=$apr_revert_save_LIBS
 
40723
fi
 
40724
 
 
40725
 
 
40726
 
 
40727
echo "${nl}Checking for Time Support..."
 
40728
 
 
40729
echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
 
40730
echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
 
40731
if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
 
40732
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40733
else
 
40734
  cat >conftest.$ac_ext <<_ACEOF
 
40735
/* confdefs.h.  */
 
40736
_ACEOF
 
40737
cat confdefs.h >>conftest.$ac_ext
 
40738
cat >>conftest.$ac_ext <<_ACEOF
 
40739
/* end confdefs.h.  */
 
40740
 
 
40741
#include <sys/types.h>
 
40742
#include <time.h>
 
40743
 
 
40744
int
 
40745
main ()
 
40746
{
 
40747
static struct tm ac_aggr;
 
40748
if (ac_aggr.tm_gmtoff)
 
40749
return 0;
 
40750
  ;
 
40751
  return 0;
 
40752
}
 
40753
_ACEOF
 
40754
rm -f conftest.$ac_objext
 
40755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40756
  (eval $ac_compile) 2>conftest.er1
 
40757
  ac_status=$?
 
40758
  grep -v '^ *+' conftest.er1 >conftest.err
 
40759
  rm -f conftest.er1
 
40760
  cat conftest.err >&5
 
40761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40762
  (exit $ac_status); } &&
 
40763
         { ac_try='test -z "$ac_c_werror_flag"
 
40764
                         || test ! -s conftest.err'
 
40765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40766
  (eval $ac_try) 2>&5
 
40767
  ac_status=$?
 
40768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40769
  (exit $ac_status); }; } &&
 
40770
         { ac_try='test -s conftest.$ac_objext'
 
40771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40772
  (eval $ac_try) 2>&5
 
40773
  ac_status=$?
 
40774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40775
  (exit $ac_status); }; }; then
 
40776
  ac_cv_member_struct_tm_tm_gmtoff=yes
 
40777
else
 
40778
  echo "$as_me: failed program was:" >&5
 
40779
sed 's/^/| /' conftest.$ac_ext >&5
 
40780
 
 
40781
cat >conftest.$ac_ext <<_ACEOF
 
40782
/* confdefs.h.  */
 
40783
_ACEOF
 
40784
cat confdefs.h >>conftest.$ac_ext
 
40785
cat >>conftest.$ac_ext <<_ACEOF
 
40786
/* end confdefs.h.  */
 
40787
 
 
40788
#include <sys/types.h>
 
40789
#include <time.h>
 
40790
 
 
40791
int
 
40792
main ()
 
40793
{
 
40794
static struct tm ac_aggr;
 
40795
if (sizeof ac_aggr.tm_gmtoff)
 
40796
return 0;
 
40797
  ;
 
40798
  return 0;
 
40799
}
 
40800
_ACEOF
 
40801
rm -f conftest.$ac_objext
 
40802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40803
  (eval $ac_compile) 2>conftest.er1
 
40804
  ac_status=$?
 
40805
  grep -v '^ *+' conftest.er1 >conftest.err
 
40806
  rm -f conftest.er1
 
40807
  cat conftest.err >&5
 
40808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40809
  (exit $ac_status); } &&
 
40810
         { ac_try='test -z "$ac_c_werror_flag"
 
40811
                         || test ! -s conftest.err'
 
40812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40813
  (eval $ac_try) 2>&5
 
40814
  ac_status=$?
 
40815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40816
  (exit $ac_status); }; } &&
 
40817
         { ac_try='test -s conftest.$ac_objext'
 
40818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40819
  (eval $ac_try) 2>&5
 
40820
  ac_status=$?
 
40821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40822
  (exit $ac_status); }; }; then
 
40823
  ac_cv_member_struct_tm_tm_gmtoff=yes
 
40824
else
 
40825
  echo "$as_me: failed program was:" >&5
 
40826
sed 's/^/| /' conftest.$ac_ext >&5
 
40827
 
 
40828
ac_cv_member_struct_tm_tm_gmtoff=no
 
40829
fi
 
40830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40831
fi
 
40832
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40833
fi
 
40834
echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
 
40835
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
 
40836
if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
 
40837
 
 
40838
cat >>confdefs.h <<_ACEOF
 
40839
#define HAVE_STRUCT_TM_TM_GMTOFF 1
 
40840
_ACEOF
 
40841
 
 
40842
 
 
40843
fi
 
40844
echo "$as_me:$LINENO: checking for struct tm.__tm_gmtoff" >&5
 
40845
echo $ECHO_N "checking for struct tm.__tm_gmtoff... $ECHO_C" >&6
 
40846
if test "${ac_cv_member_struct_tm___tm_gmtoff+set}" = set; then
 
40847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40848
else
 
40849
  cat >conftest.$ac_ext <<_ACEOF
 
40850
/* confdefs.h.  */
 
40851
_ACEOF
 
40852
cat confdefs.h >>conftest.$ac_ext
 
40853
cat >>conftest.$ac_ext <<_ACEOF
 
40854
/* end confdefs.h.  */
 
40855
 
 
40856
#include <sys/types.h>
 
40857
#include <time.h>
 
40858
 
 
40859
int
 
40860
main ()
 
40861
{
 
40862
static struct tm ac_aggr;
 
40863
if (ac_aggr.__tm_gmtoff)
 
40864
return 0;
 
40865
  ;
 
40866
  return 0;
 
40867
}
 
40868
_ACEOF
 
40869
rm -f conftest.$ac_objext
 
40870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40871
  (eval $ac_compile) 2>conftest.er1
 
40872
  ac_status=$?
 
40873
  grep -v '^ *+' conftest.er1 >conftest.err
 
40874
  rm -f conftest.er1
 
40875
  cat conftest.err >&5
 
40876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40877
  (exit $ac_status); } &&
 
40878
         { ac_try='test -z "$ac_c_werror_flag"
 
40879
                         || test ! -s conftest.err'
 
40880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40881
  (eval $ac_try) 2>&5
 
40882
  ac_status=$?
 
40883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40884
  (exit $ac_status); }; } &&
 
40885
         { ac_try='test -s conftest.$ac_objext'
 
40886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40887
  (eval $ac_try) 2>&5
 
40888
  ac_status=$?
 
40889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40890
  (exit $ac_status); }; }; then
 
40891
  ac_cv_member_struct_tm___tm_gmtoff=yes
 
40892
else
 
40893
  echo "$as_me: failed program was:" >&5
 
40894
sed 's/^/| /' conftest.$ac_ext >&5
 
40895
 
 
40896
cat >conftest.$ac_ext <<_ACEOF
 
40897
/* confdefs.h.  */
 
40898
_ACEOF
 
40899
cat confdefs.h >>conftest.$ac_ext
 
40900
cat >>conftest.$ac_ext <<_ACEOF
 
40901
/* end confdefs.h.  */
 
40902
 
 
40903
#include <sys/types.h>
 
40904
#include <time.h>
 
40905
 
 
40906
int
 
40907
main ()
 
40908
{
 
40909
static struct tm ac_aggr;
 
40910
if (sizeof ac_aggr.__tm_gmtoff)
 
40911
return 0;
 
40912
  ;
 
40913
  return 0;
 
40914
}
 
40915
_ACEOF
 
40916
rm -f conftest.$ac_objext
 
40917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40918
  (eval $ac_compile) 2>conftest.er1
 
40919
  ac_status=$?
 
40920
  grep -v '^ *+' conftest.er1 >conftest.err
 
40921
  rm -f conftest.er1
 
40922
  cat conftest.err >&5
 
40923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40924
  (exit $ac_status); } &&
 
40925
         { ac_try='test -z "$ac_c_werror_flag"
 
40926
                         || test ! -s conftest.err'
 
40927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40928
  (eval $ac_try) 2>&5
 
40929
  ac_status=$?
 
40930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40931
  (exit $ac_status); }; } &&
 
40932
         { ac_try='test -s conftest.$ac_objext'
 
40933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40934
  (eval $ac_try) 2>&5
 
40935
  ac_status=$?
 
40936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40937
  (exit $ac_status); }; }; then
 
40938
  ac_cv_member_struct_tm___tm_gmtoff=yes
 
40939
else
 
40940
  echo "$as_me: failed program was:" >&5
 
40941
sed 's/^/| /' conftest.$ac_ext >&5
 
40942
 
 
40943
ac_cv_member_struct_tm___tm_gmtoff=no
 
40944
fi
 
40945
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40946
fi
 
40947
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
40948
fi
 
40949
echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm___tm_gmtoff" >&5
 
40950
echo "${ECHO_T}$ac_cv_member_struct_tm___tm_gmtoff" >&6
 
40951
if test $ac_cv_member_struct_tm___tm_gmtoff = yes; then
 
40952
 
 
40953
cat >>confdefs.h <<_ACEOF
 
40954
#define HAVE_STRUCT_TM___TM_GMTOFF 1
 
40955
_ACEOF
 
40956
 
 
40957
 
 
40958
fi
 
40959
 
 
40960
 
 
40961
echo "${nl}Checking for Networking support..."
 
40962
echo "$as_me:$LINENO: checking for in_addr in netinet/in.h" >&5
 
40963
echo $ECHO_N "checking for in_addr in netinet/in.h... $ECHO_C" >&6
 
40964
cat >conftest.$ac_ext <<_ACEOF
 
40965
/* confdefs.h.  */
 
40966
_ACEOF
 
40967
cat confdefs.h >>conftest.$ac_ext
 
40968
cat >>conftest.$ac_ext <<_ACEOF
 
40969
/* end confdefs.h.  */
 
40970
 
 
40971
#include <sys/types.h>
 
40972
#include <netinet/in.h>
 
40973
 
 
40974
int
 
40975
main ()
 
40976
{
 
40977
 
 
40978
struct in_addr arg;
 
40979
arg.s_addr = htonl(INADDR_ANY);
 
40980
 
 
40981
  ;
 
40982
  return 0;
 
40983
}
 
40984
_ACEOF
 
40985
rm -f conftest.$ac_objext
 
40986
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
40987
  (eval $ac_compile) 2>conftest.er1
 
40988
  ac_status=$?
 
40989
  grep -v '^ *+' conftest.er1 >conftest.err
 
40990
  rm -f conftest.er1
 
40991
  cat conftest.err >&5
 
40992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40993
  (exit $ac_status); } &&
 
40994
         { ac_try='test -z "$ac_c_werror_flag"
 
40995
                         || test ! -s conftest.err'
 
40996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40997
  (eval $ac_try) 2>&5
 
40998
  ac_status=$?
 
40999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41000
  (exit $ac_status); }; } &&
 
41001
         { ac_try='test -s conftest.$ac_objext'
 
41002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41003
  (eval $ac_try) 2>&5
 
41004
  ac_status=$?
 
41005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41006
  (exit $ac_status); }; }; then
 
41007
   have_in_addr="1"
 
41008
msg=yes
 
41009
else
 
41010
  echo "$as_me: failed program was:" >&5
 
41011
sed 's/^/| /' conftest.$ac_ext >&5
 
41012
 
 
41013
 have_in_addr="0"
 
41014
msg=no
 
41015
fi
 
41016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
41017
echo "$as_me:$LINENO: result: $msg" >&5
 
41018
echo "${ECHO_T}$msg" >&6
 
41019
 
 
41020
echo "$as_me:$LINENO: checking if fd == socket on this platform" >&5
 
41021
echo $ECHO_N "checking if fd == socket on this platform... $ECHO_C" >&6
 
41022
if test "x$file_as_socket" != "x0" ; then
 
41023
    file_as_socket="1";
 
41024
    echo "yes"
 
41025
else
 
41026
    echo "no"
 
41027
fi
 
41028
 
 
41029
 
 
41030
 
 
41031
 
 
41032
if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
 
41033
 
 
41034
cat >>confdefs.h <<\_ACEOF
 
41035
#define WAITIO_USES_POLL 1
 
41036
_ACEOF
 
41037
 
 
41038
fi
 
41039
 
 
41040
# Check the types only if we have gethostbyname_r
 
41041
if test "$ac_cv_func_gethostbyname_r" = "yes"; then
 
41042
 
 
41043
 
 
41044
echo "$as_me:$LINENO: checking style of gethostbyname_r routine" >&5
 
41045
echo $ECHO_N "checking style of gethostbyname_r routine... $ECHO_C" >&6
 
41046
if test "${ac_cv_gethostbyname_r_style+set}" = set; then
 
41047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41048
else
 
41049
  apr_save_CFLAGS=$CFLAGS
 
41050
 CFLAGS="$CFLAGS $CFLAGS_WARN"
 
41051
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
 
41052
   CFLAGS="$CFLAGS -Werror"
 
41053
 fi
 
41054
 cat >conftest.$ac_ext <<_ACEOF
 
41055
#include "confdefs.h"
 
41056
 
 
41057
 
 
41058
#ifdef HAVE_SYS_TYPES_H
 
41059
#include <sys/types.h>
 
41060
#endif
 
41061
#ifdef HAVE_NETINET_IN_H
 
41062
#include <netinet/in.h>
 
41063
#endif
 
41064
#ifdef HAVE_ARPA_INET_H
 
41065
#include <arpa/inet.h>
 
41066
#endif
 
41067
#ifdef HAVE_NETDB_H
 
41068
#include <netdb.h>
 
41069
#endif
 
41070
#ifdef HAVE_STDLIB_H
 
41071
#include <stdlib.h>
 
41072
#endif
 
41073
 
 
41074
  int main(int argc, const char *const *argv) {
 
41075
 
 
41076
int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
 
41077
                          (char *) 0, 0, (struct hostent **) 0, &tmp);
 
41078
 
 
41079
     return 0; }
 
41080
_ACEOF
 
41081
rm -f conftest.$ac_objext
 
41082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
41083
  (eval $ac_compile) 2>conftest.er1
 
41084
  ac_status=$?
 
41085
  grep -v '^ *+' conftest.er1 >conftest.err
 
41086
  rm -f conftest.er1
 
41087
  cat conftest.err >&5
 
41088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41089
  (exit $ac_status); } &&
 
41090
         { ac_try='test -z "$ac_c_werror_flag"
 
41091
                         || test ! -s conftest.err'
 
41092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41093
  (eval $ac_try) 2>&5
 
41094
  ac_status=$?
 
41095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41096
  (exit $ac_status); }; } &&
 
41097
         { ac_try='test -s conftest.$ac_objext'
 
41098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41099
  (eval $ac_try) 2>&5
 
41100
  ac_status=$?
 
41101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41102
  (exit $ac_status); }; }; then
 
41103
  ac_cv_gethostbyname_r_style=glibc2
 
41104
else
 
41105
  echo "$as_me: failed program was:" >&5
 
41106
sed 's/^/| /' conftest.$ac_ext >&5
 
41107
 
 
41108
ac_cv_gethostbyname_r_style=none
 
41109
fi
 
41110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
41111
 CFLAGS=$apr_save_CFLAGS
 
41112
 
 
41113
fi
 
41114
echo "$as_me:$LINENO: result: $ac_cv_gethostbyname_r_style" >&5
 
41115
echo "${ECHO_T}$ac_cv_gethostbyname_r_style" >&6
 
41116
 
 
41117
if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
 
41118
 
 
41119
cat >>confdefs.h <<\_ACEOF
 
41120
#define GETHOSTBYNAME_R_GLIBC2 1
 
41121
_ACEOF
 
41122
 
 
41123
fi
 
41124
 
 
41125
echo "$as_me:$LINENO: checking 3rd argument to the gethostbyname_r routines" >&5
 
41126
echo $ECHO_N "checking 3rd argument to the gethostbyname_r routines... $ECHO_C" >&6
 
41127
if test "${ac_cv_gethostbyname_r_arg+set}" = set; then
 
41128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41129
else
 
41130
  apr_save_CFLAGS=$CFLAGS
 
41131
 CFLAGS="$CFLAGS $CFLAGS_WARN"
 
41132
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
 
41133
   CFLAGS="$CFLAGS -Werror"
 
41134
 fi
 
41135
 cat >conftest.$ac_ext <<_ACEOF
 
41136
#include "confdefs.h"
 
41137
 
 
41138
 
 
41139
#ifdef HAVE_SYS_TYPES_H
 
41140
#include <sys/types.h>
 
41141
#endif
 
41142
#ifdef HAVE_NETINET_IN_H
 
41143
#include <netinet/in.h>
 
41144
#endif
 
41145
#ifdef HAVE_ARPA_INET_H
 
41146
#include <arpa/inet.h>
 
41147
#endif
 
41148
#ifdef HAVE_NETDB_H
 
41149
#include <netdb.h>
 
41150
#endif
 
41151
#ifdef HAVE_STDLIB_H
 
41152
#include <stdlib.h>
 
41153
#endif
 
41154
 
 
41155
  int main(int argc, const char *const *argv) {
 
41156
 
 
41157
int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
 
41158
                          (struct hostent_data *) 0);
 
41159
     return 0; }
 
41160
_ACEOF
 
41161
rm -f conftest.$ac_objext
 
41162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
41163
  (eval $ac_compile) 2>conftest.er1
 
41164
  ac_status=$?
 
41165
  grep -v '^ *+' conftest.er1 >conftest.err
 
41166
  rm -f conftest.er1
 
41167
  cat conftest.err >&5
 
41168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41169
  (exit $ac_status); } &&
 
41170
         { ac_try='test -z "$ac_c_werror_flag"
 
41171
                         || test ! -s conftest.err'
 
41172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41173
  (eval $ac_try) 2>&5
 
41174
  ac_status=$?
 
41175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41176
  (exit $ac_status); }; } &&
 
41177
         { ac_try='test -s conftest.$ac_objext'
 
41178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41179
  (eval $ac_try) 2>&5
 
41180
  ac_status=$?
 
41181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41182
  (exit $ac_status); }; }; then
 
41183
  ac_cv_gethostbyname_r_arg=hostent_data
 
41184
else
 
41185
  echo "$as_me: failed program was:" >&5
 
41186
sed 's/^/| /' conftest.$ac_ext >&5
 
41187
 
 
41188
ac_cv_gethostbyname_r_arg=char
 
41189
fi
 
41190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
41191
 CFLAGS=$apr_save_CFLAGS
 
41192
 
 
41193
fi
 
41194
echo "$as_me:$LINENO: result: $ac_cv_gethostbyname_r_arg" >&5
 
41195
echo "${ECHO_T}$ac_cv_gethostbyname_r_arg" >&6
 
41196
 
 
41197
if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
 
41198
 
 
41199
cat >>confdefs.h <<\_ACEOF
 
41200
#define GETHOSTBYNAME_R_HOSTENT_DATA 1
 
41201
_ACEOF
 
41202
 
 
41203
fi
 
41204
 
 
41205
fi
 
41206
 
 
41207
 
 
41208
  echo "$as_me:$LINENO: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
 
41209
echo $ECHO_N "checking if TCP_NODELAY setting is inherited from listening sockets... $ECHO_C" >&6
 
41210
if test "${ac_cv_tcp_nodelay_inherited+set}" = set; then
 
41211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41212
else
 
41213
 
 
41214
  if test "$cross_compiling" = yes; then
 
41215
 
 
41216
    ac_cv_tcp_nodelay_inherited="yes"
 
41217
 
 
41218
else
 
41219
  cat >conftest.$ac_ext <<_ACEOF
 
41220
/* confdefs.h.  */
 
41221
_ACEOF
 
41222
cat confdefs.h >>conftest.$ac_ext
 
41223
cat >>conftest.$ac_ext <<_ACEOF
 
41224
/* end confdefs.h.  */
 
41225
 
 
41226
#include <stdio.h>
 
41227
#ifdef HAVE_SYS_TYPES_H
 
41228
#include <sys/types.h>
 
41229
#endif
 
41230
#ifdef HAVE_SYS_SOCKET_H
 
41231
#include <sys/socket.h>
 
41232
#endif
 
41233
#ifdef HAVE_NETINET_IN_H
 
41234
#include <netinet/in.h>
 
41235
#endif
 
41236
#ifdef HAVE_NETINET_TCP_H
 
41237
#include <netinet/tcp.h>
 
41238
#endif
 
41239
#ifndef HAVE_SOCKLEN_T
 
41240
typedef int socklen_t;
 
41241
#endif
 
41242
int main(void) {
 
41243
    int listen_s, connected_s, client_s;
 
41244
    int listen_port, rc;
 
41245
    struct sockaddr_in sa;
 
41246
    socklen_t sa_len;
 
41247
    socklen_t option_len;
 
41248
    int option;
 
41249
 
 
41250
    listen_s = socket(AF_INET, SOCK_STREAM, 0);
 
41251
    if (listen_s < 0) {
 
41252
        perror("socket");
 
41253
        exit(1);
 
41254
    }
 
41255
    option = 1;
 
41256
    rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
 
41257
    if (rc < 0) {
 
41258
        perror("setsockopt TCP_NODELAY");
 
41259
        exit(1);
 
41260
    }
 
41261
    memset(&sa, 0, sizeof sa);
 
41262
    sa.sin_family = AF_INET;
 
41263
#ifdef BEOS
 
41264
    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
 
41265
#endif
 
41266
    /* leave port 0 to get ephemeral */
 
41267
    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
 
41268
    if (rc < 0) {
 
41269
        perror("bind for ephemeral port");
 
41270
        exit(1);
 
41271
    }
 
41272
    /* find ephemeral port */
 
41273
    sa_len = sizeof(sa);
 
41274
    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
 
41275
    if (rc < 0) {
 
41276
        perror("getsockname");
 
41277
        exit(1);
 
41278
    }
 
41279
    listen_port = sa.sin_port;
 
41280
    rc = listen(listen_s, 5);
 
41281
    if (rc < 0) {
 
41282
        perror("listen");
 
41283
        exit(1);
 
41284
    }
 
41285
    client_s = socket(AF_INET, SOCK_STREAM, 0);
 
41286
    if (client_s < 0) {
 
41287
        perror("socket");
 
41288
        exit(1);
 
41289
    }
 
41290
    memset(&sa, 0, sizeof sa);
 
41291
    sa.sin_family = AF_INET;
 
41292
    sa.sin_port   = listen_port;
 
41293
#ifdef BEOS
 
41294
    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
 
41295
#endif
 
41296
    /* leave sin_addr all zeros to use loopback */
 
41297
    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
 
41298
    if (rc < 0) {
 
41299
        perror("connect");
 
41300
        exit(1);
 
41301
    }
 
41302
    sa_len = sizeof sa;
 
41303
    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
 
41304
    if (connected_s < 0) {
 
41305
        perror("accept");
 
41306
        exit(1);
 
41307
    }
 
41308
    option_len = sizeof option;
 
41309
    rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
 
41310
    if (rc < 0) {
 
41311
        perror("getsockopt");
 
41312
        exit(1);
 
41313
    }
 
41314
    if (!option) {
 
41315
        fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
 
41316
        exit(1);
 
41317
    }
 
41318
    return 0;
 
41319
}
 
41320
 
 
41321
_ACEOF
 
41322
rm -f conftest$ac_exeext
 
41323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
41324
  (eval $ac_link) 2>&5
 
41325
  ac_status=$?
 
41326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41327
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
41328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41329
  (eval $ac_try) 2>&5
 
41330
  ac_status=$?
 
41331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41332
  (exit $ac_status); }; }; then
 
41333
 
 
41334
    ac_cv_tcp_nodelay_inherited="yes"
 
41335
 
 
41336
else
 
41337
  echo "$as_me: program exited with status $ac_status" >&5
 
41338
echo "$as_me: failed program was:" >&5
 
41339
sed 's/^/| /' conftest.$ac_ext >&5
 
41340
 
 
41341
( exit $ac_status )
 
41342
 
 
41343
    ac_cv_tcp_nodelay_inherited="no"
 
41344
 
 
41345
fi
 
41346
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
41347
fi
 
41348
fi
 
41349
echo "$as_me:$LINENO: result: $ac_cv_tcp_nodelay_inherited" >&5
 
41350
echo "${ECHO_T}$ac_cv_tcp_nodelay_inherited" >&6
 
41351
if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
 
41352
    tcp_nodelay_inherited=1
 
41353
else
 
41354
    tcp_nodelay_inherited=0
 
41355
fi
 
41356
 
 
41357
 
 
41358
  echo "$as_me:$LINENO: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
 
41359
echo $ECHO_N "checking if O_NONBLOCK setting is inherited from listening sockets... $ECHO_C" >&6
 
41360
if test "${ac_cv_o_nonblock_inherited+set}" = set; then
 
41361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41362
else
 
41363
 
 
41364
  if test "$cross_compiling" = yes; then
 
41365
 
 
41366
    ac_cv_o_nonblock_inherited="yes"
 
41367
 
 
41368
else
 
41369
  cat >conftest.$ac_ext <<_ACEOF
 
41370
/* confdefs.h.  */
 
41371
_ACEOF
 
41372
cat confdefs.h >>conftest.$ac_ext
 
41373
cat >>conftest.$ac_ext <<_ACEOF
 
41374
/* end confdefs.h.  */
 
41375
 
 
41376
#include <stdio.h>
 
41377
#ifdef HAVE_SYS_TYPES_H
 
41378
#include <sys/types.h>
 
41379
#endif
 
41380
#ifdef HAVE_SYS_SOCKET_H
 
41381
#include <sys/socket.h>
 
41382
#endif
 
41383
#ifdef HAVE_NETINET_IN_H
 
41384
#include <netinet/in.h>
 
41385
#endif
 
41386
#ifdef HAVE_NETINET_TCP_H
 
41387
#include <netinet/tcp.h>
 
41388
#endif
 
41389
#ifndef HAVE_SOCKLEN_T
 
41390
typedef int socklen_t;
 
41391
#endif
 
41392
#ifdef HAVE_FCNTL_H
 
41393
#include <fcntl.h>
 
41394
#endif
 
41395
int main(void) {
 
41396
    int listen_s, connected_s, client_s;
 
41397
    int listen_port, rc;
 
41398
    struct sockaddr_in sa;
 
41399
    socklen_t sa_len;
 
41400
 
 
41401
    listen_s = socket(AF_INET, SOCK_STREAM, 0);
 
41402
    if (listen_s < 0) {
 
41403
        perror("socket");
 
41404
        exit(1);
 
41405
    }
 
41406
    memset(&sa, 0, sizeof sa);
 
41407
    sa.sin_family = AF_INET;
 
41408
#ifdef BEOS
 
41409
    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
 
41410
#endif
 
41411
    /* leave port 0 to get ephemeral */
 
41412
    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
 
41413
    if (rc < 0) {
 
41414
        perror("bind for ephemeral port");
 
41415
        exit(1);
 
41416
    }
 
41417
    /* find ephemeral port */
 
41418
    sa_len = sizeof(sa);
 
41419
    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
 
41420
    if (rc < 0) {
 
41421
        perror("getsockname");
 
41422
        exit(1);
 
41423
    }
 
41424
    listen_port = sa.sin_port;
 
41425
    rc = listen(listen_s, 5);
 
41426
    if (rc < 0) {
 
41427
        perror("listen");
 
41428
        exit(1);
 
41429
    }
 
41430
    rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
 
41431
    if (rc < 0) {
 
41432
        perror("fcntl(F_SETFL)");
 
41433
        exit(1);
 
41434
    }
 
41435
    client_s = socket(AF_INET, SOCK_STREAM, 0);
 
41436
    if (client_s < 0) {
 
41437
        perror("socket");
 
41438
        exit(1);
 
41439
    }
 
41440
    memset(&sa, 0, sizeof sa);
 
41441
    sa.sin_family = AF_INET;
 
41442
    sa.sin_port   = listen_port;
 
41443
#ifdef BEOS
 
41444
    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
 
41445
#endif
 
41446
    /* leave sin_addr all zeros to use loopback */
 
41447
    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
 
41448
    if (rc < 0) {
 
41449
        perror("connect");
 
41450
        exit(1);
 
41451
    }
 
41452
    sa_len = sizeof sa;
 
41453
    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
 
41454
    if (connected_s < 0) {
 
41455
        perror("accept");
 
41456
        exit(1);
 
41457
    }
 
41458
    rc = fcntl(connected_s, F_GETFL, 0);
 
41459
    if (rc < 0) {
 
41460
        perror("fcntl(F_GETFL)");
 
41461
        exit(1);
 
41462
    }
 
41463
    if (!(rc & O_NONBLOCK)) {
 
41464
        fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
 
41465
        exit(1);
 
41466
    }
 
41467
    return 0;
 
41468
}
 
41469
 
 
41470
_ACEOF
 
41471
rm -f conftest$ac_exeext
 
41472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
41473
  (eval $ac_link) 2>&5
 
41474
  ac_status=$?
 
41475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41476
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
41477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41478
  (eval $ac_try) 2>&5
 
41479
  ac_status=$?
 
41480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41481
  (exit $ac_status); }; }; then
 
41482
 
 
41483
    ac_cv_o_nonblock_inherited="yes"
 
41484
 
 
41485
else
 
41486
  echo "$as_me: program exited with status $ac_status" >&5
 
41487
echo "$as_me: failed program was:" >&5
 
41488
sed 's/^/| /' conftest.$ac_ext >&5
 
41489
 
 
41490
( exit $ac_status )
 
41491
 
 
41492
    ac_cv_o_nonblock_inherited="no"
 
41493
 
 
41494
fi
 
41495
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
41496
fi
 
41497
fi
 
41498
echo "$as_me:$LINENO: result: $ac_cv_o_nonblock_inherited" >&5
 
41499
echo "${ECHO_T}$ac_cv_o_nonblock_inherited" >&6
 
41500
if test "$ac_cv_o_nonblock_inherited" = "yes"; then
 
41501
    o_nonblock_inherited=1
 
41502
else
 
41503
    o_nonblock_inherited=0
 
41504
fi
 
41505
 
 
41506
 
 
41507
echo "$as_me:$LINENO: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
 
41508
echo $ECHO_N "checking whether TCP_NODELAY and TCP_CORK can both be enabled... $ECHO_C" >&6
 
41509
if test "${apr_cv_tcp_nodelay_with_cork+set}" = set; then
 
41510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41511
else
 
41512
  if test "$cross_compiling" = yes; then
 
41513
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
41514
See \`config.log' for more details." >&5
 
41515
echo "$as_me: error: cannot run test program while cross compiling
 
41516
See \`config.log' for more details." >&2;}
 
41517
   { (exit 1); exit 1; }; }
 
41518
else
 
41519
  cat >conftest.$ac_ext <<_ACEOF
 
41520
/* confdefs.h.  */
 
41521
_ACEOF
 
41522
cat confdefs.h >>conftest.$ac_ext
 
41523
cat >>conftest.$ac_ext <<_ACEOF
 
41524
/* end confdefs.h.  */
 
41525
 
 
41526
#ifdef HAVE_SYS_TYPES_H
 
41527
#include <sys/types.h>
 
41528
#endif
 
41529
#ifdef HAVE_SYS_SOCKET_H
 
41530
#include <sys/socket.h>
 
41531
#endif
 
41532
#ifdef HAVE_NETINET_IN_H
 
41533
#include <netinet/in.h>
 
41534
#endif
 
41535
#ifdef HAVE_NETINET_TCP_H
 
41536
#include <netinet/tcp.h>
 
41537
#endif
 
41538
#include <stdio.h>
 
41539
#include <stdlib.h>
 
41540
 
 
41541
int
 
41542
main ()
 
41543
{
 
41544
 
 
41545
    int fd, flag, rc;
 
41546
 
 
41547
    fd = socket(AF_INET, SOCK_STREAM, 0);
 
41548
    if (fd < 0) {
 
41549
       exit(1);
 
41550
    }
 
41551
 
 
41552
    flag = 1;
 
41553
    rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
 
41554
    if (rc < 0) {
 
41555
        perror("setsockopt TCP_NODELAY");
 
41556
        exit(2);
 
41557
    }
 
41558
 
 
41559
    flag = 1;
 
41560
    rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
 
41561
    if (rc < 0) {
 
41562
        perror("setsockopt TCP_CORK");
 
41563
        exit(3);
 
41564
    }
 
41565
 
 
41566
    exit(0);
 
41567
 
 
41568
  ;
 
41569
  return 0;
 
41570
}
 
41571
_ACEOF
 
41572
rm -f conftest$ac_exeext
 
41573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
41574
  (eval $ac_link) 2>&5
 
41575
  ac_status=$?
 
41576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41577
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
41578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41579
  (eval $ac_try) 2>&5
 
41580
  ac_status=$?
 
41581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41582
  (exit $ac_status); }; }; then
 
41583
  apr_cv_tcp_nodelay_with_cork=yes
 
41584
else
 
41585
  echo "$as_me: program exited with status $ac_status" >&5
 
41586
echo "$as_me: failed program was:" >&5
 
41587
sed 's/^/| /' conftest.$ac_ext >&5
 
41588
 
 
41589
( exit $ac_status )
 
41590
apr_cv_tcp_nodelay_with_cork=no
 
41591
fi
 
41592
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
41593
fi
 
41594
fi
 
41595
echo "$as_me:$LINENO: result: $apr_cv_tcp_nodelay_with_cork" >&5
 
41596
echo "${ECHO_T}$apr_cv_tcp_nodelay_with_cork" >&6
 
41597
 
 
41598
if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
 
41599
 
 
41600
cat >>confdefs.h <<\_ACEOF
 
41601
#define HAVE_TCP_NODELAY_WITH_CORK 1
 
41602
_ACEOF
 
41603
 
 
41604
fi
 
41605
 
 
41606
 
 
41607
# Look for a way of corking TCP...
 
41608
 
 
41609
  echo "$as_me:$LINENO: checking for TCP_CORK in netinet/tcp.h" >&5
 
41610
echo $ECHO_N "checking for TCP_CORK in netinet/tcp.h... $ECHO_C" >&6
 
41611
if test "${ac_cv_define_TCP_CORK+set}" = set; then
 
41612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41613
else
 
41614
 
 
41615
    cat >conftest.$ac_ext <<_ACEOF
 
41616
/* confdefs.h.  */
 
41617
_ACEOF
 
41618
cat confdefs.h >>conftest.$ac_ext
 
41619
cat >>conftest.$ac_ext <<_ACEOF
 
41620
/* end confdefs.h.  */
 
41621
 
 
41622
#include <netinet/tcp.h>
 
41623
#ifdef TCP_CORK
 
41624
YES_IS_DEFINED
 
41625
#endif
 
41626
 
 
41627
_ACEOF
 
41628
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41629
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
41630
  ac_cv_define_TCP_CORK=yes
 
41631
else
 
41632
  ac_cv_define_TCP_CORK=no
 
41633
fi
 
41634
rm -f conftest*
 
41635
 
 
41636
 
 
41637
fi
 
41638
echo "$as_me:$LINENO: result: $ac_cv_define_TCP_CORK" >&5
 
41639
echo "${ECHO_T}$ac_cv_define_TCP_CORK" >&6
 
41640
  if test "$ac_cv_define_TCP_CORK" = "yes"; then
 
41641
 
 
41642
cat >>confdefs.h <<\_ACEOF
 
41643
#define HAVE_TCP_CORK 1
 
41644
_ACEOF
 
41645
 
 
41646
  fi
 
41647
 
 
41648
 
 
41649
  echo "$as_me:$LINENO: checking for TCP_NOPUSH in netinet/tcp.h" >&5
 
41650
echo $ECHO_N "checking for TCP_NOPUSH in netinet/tcp.h... $ECHO_C" >&6
 
41651
if test "${ac_cv_define_TCP_NOPUSH+set}" = set; then
 
41652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41653
else
 
41654
 
 
41655
    cat >conftest.$ac_ext <<_ACEOF
 
41656
/* confdefs.h.  */
 
41657
_ACEOF
 
41658
cat confdefs.h >>conftest.$ac_ext
 
41659
cat >>conftest.$ac_ext <<_ACEOF
 
41660
/* end confdefs.h.  */
 
41661
 
 
41662
#include <netinet/tcp.h>
 
41663
#ifdef TCP_NOPUSH
 
41664
YES_IS_DEFINED
 
41665
#endif
 
41666
 
 
41667
_ACEOF
 
41668
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41669
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
41670
  ac_cv_define_TCP_NOPUSH=yes
 
41671
else
 
41672
  ac_cv_define_TCP_NOPUSH=no
 
41673
fi
 
41674
rm -f conftest*
 
41675
 
 
41676
 
 
41677
fi
 
41678
echo "$as_me:$LINENO: result: $ac_cv_define_TCP_NOPUSH" >&5
 
41679
echo "${ECHO_T}$ac_cv_define_TCP_NOPUSH" >&6
 
41680
  if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
 
41681
 
 
41682
cat >>confdefs.h <<\_ACEOF
 
41683
#define HAVE_TCP_NOPUSH 1
 
41684
_ACEOF
 
41685
 
 
41686
  fi
 
41687
 
 
41688
apr_tcp_nopush_flag="0"
 
41689
have_corkable_tcp="0"
 
41690
if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
 
41691
    apr_tcp_nopush_flag="TCP_CORK"
 
41692
    have_corkable_tcp="1"
 
41693
else
 
41694
    case $host in
 
41695
        *linux*)
 
41696
            cat >conftest.$ac_ext <<_ACEOF
 
41697
/* confdefs.h.  */
 
41698
_ACEOF
 
41699
cat confdefs.h >>conftest.$ac_ext
 
41700
cat >>conftest.$ac_ext <<_ACEOF
 
41701
/* end confdefs.h.  */
 
41702
 
 
41703
#include <linux/socket.h>
 
41704
#ifdef TCP_CORK
 
41705
yes
 
41706
#endif
 
41707
 
 
41708
_ACEOF
 
41709
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41710
  $EGREP "yes" >/dev/null 2>&1; then
 
41711
 
 
41712
                apr_tcp_nopush_flag="3"
 
41713
                have_corkable_tcp="1"
 
41714
 
 
41715
fi
 
41716
rm -f conftest*
 
41717
 
 
41718
            ;;
 
41719
        *)
 
41720
            ;;
 
41721
    esac
 
41722
fi
 
41723
if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
 
41724
    apr_tcp_nopush_flag="TCP_NOPUSH"
 
41725
    have_corkable_tcp="1"
 
41726
fi
 
41727
 
 
41728
 
 
41729
  echo "$as_me:$LINENO: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
 
41730
echo $ECHO_N "checking for SO_ACCEPTFILTER in sys/socket.h... $ECHO_C" >&6
 
41731
if test "${ac_cv_define_SO_ACCEPTFILTER+set}" = set; then
 
41732
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41733
else
 
41734
 
 
41735
    cat >conftest.$ac_ext <<_ACEOF
 
41736
/* confdefs.h.  */
 
41737
_ACEOF
 
41738
cat confdefs.h >>conftest.$ac_ext
 
41739
cat >>conftest.$ac_ext <<_ACEOF
 
41740
/* end confdefs.h.  */
 
41741
 
 
41742
#include <sys/socket.h>
 
41743
#ifdef SO_ACCEPTFILTER
 
41744
YES_IS_DEFINED
 
41745
#endif
 
41746
 
 
41747
_ACEOF
 
41748
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41749
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
41750
  ac_cv_define_SO_ACCEPTFILTER=yes
 
41751
else
 
41752
  ac_cv_define_SO_ACCEPTFILTER=no
 
41753
fi
 
41754
rm -f conftest*
 
41755
 
 
41756
 
 
41757
fi
 
41758
echo "$as_me:$LINENO: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
 
41759
echo "${ECHO_T}$ac_cv_define_SO_ACCEPTFILTER" >&6
 
41760
  if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
 
41761
 
 
41762
cat >>confdefs.h <<\_ACEOF
 
41763
#define HAVE_SO_ACCEPTFILTER 1
 
41764
_ACEOF
 
41765
 
 
41766
  fi
 
41767
 
 
41768
if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
 
41769
    acceptfilter="1"
 
41770
else
 
41771
    acceptfilter="0"
 
41772
fi
 
41773
 
 
41774
 
 
41775
  echo "$as_me:$LINENO: checking whether SCTP is supported" >&5
 
41776
echo $ECHO_N "checking whether SCTP is supported... $ECHO_C" >&6
 
41777
if test "${apr_cv_sctp+set}" = set; then
 
41778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41779
else
 
41780
 
 
41781
  if test "$cross_compiling" = yes; then
 
41782
  apr_cv_sctp=no
 
41783
else
 
41784
  cat >conftest.$ac_ext <<_ACEOF
 
41785
/* confdefs.h.  */
 
41786
_ACEOF
 
41787
cat confdefs.h >>conftest.$ac_ext
 
41788
cat >>conftest.$ac_ext <<_ACEOF
 
41789
/* end confdefs.h.  */
 
41790
 
 
41791
#ifdef HAVE_SYS_TYPES_H
 
41792
#include <sys/types.h>
 
41793
#endif
 
41794
#ifdef HAVE_SYS_SOCKET_H
 
41795
#include <sys/socket.h>
 
41796
#endif
 
41797
#ifdef HAVE_NETINET_IN_H
 
41798
#include <netinet/in.h>
 
41799
#endif
 
41800
#ifdef HAVE_NETINET_SCTP_H
 
41801
#include <netinet/sctp.h>
 
41802
#endif
 
41803
#ifdef HAVE_NETINET_SCTP_UIO_H
 
41804
#include <netinet/sctp_uio.h>
 
41805
#endif
 
41806
#include <stdlib.h>
 
41807
int main(void) {
 
41808
    int s, opt = 1;
 
41809
    if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
 
41810
       exit(1);
 
41811
    if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
 
41812
       exit(2);
 
41813
    exit(0);
 
41814
}
 
41815
_ACEOF
 
41816
rm -f conftest$ac_exeext
 
41817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
41818
  (eval $ac_link) 2>&5
 
41819
  ac_status=$?
 
41820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41821
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
41822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41823
  (eval $ac_try) 2>&5
 
41824
  ac_status=$?
 
41825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41826
  (exit $ac_status); }; }; then
 
41827
  apr_cv_sctp=yes
 
41828
else
 
41829
  echo "$as_me: program exited with status $ac_status" >&5
 
41830
echo "$as_me: failed program was:" >&5
 
41831
sed 's/^/| /' conftest.$ac_ext >&5
 
41832
 
 
41833
( exit $ac_status )
 
41834
apr_cv_sctp=no
 
41835
fi
 
41836
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
41837
fi
 
41838
fi
 
41839
echo "$as_me:$LINENO: result: $apr_cv_sctp" >&5
 
41840
echo "${ECHO_T}$apr_cv_sctp" >&6
 
41841
 
 
41842
if test "$apr_cv_sctp" = "yes"; then
 
41843
    have_sctp=1
 
41844
else
 
41845
    have_sctp=0
 
41846
fi
 
41847
 
 
41848
 
 
41849
echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
 
41850
echo $ECHO_N "checking for struct ip_mreq... $ECHO_C" >&6
 
41851
if test "${apr_cv_struct_ipmreq+set}" = set; then
 
41852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41853
else
 
41854
 
 
41855
cat >conftest.$ac_ext <<_ACEOF
 
41856
/* confdefs.h.  */
 
41857
_ACEOF
 
41858
cat confdefs.h >>conftest.$ac_ext
 
41859
cat >>conftest.$ac_ext <<_ACEOF
 
41860
/* end confdefs.h.  */
 
41861
 
 
41862
#include <sys/types.h>
 
41863
#include <netinet/in.h>
 
41864
 
 
41865
int
 
41866
main ()
 
41867
{
 
41868
 
 
41869
    struct ip_mreq mip;
 
41870
    mip.imr_interface.s_addr = INADDR_ANY;
 
41871
 
 
41872
  ;
 
41873
  return 0;
 
41874
}
 
41875
_ACEOF
 
41876
rm -f conftest.$ac_objext
 
41877
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
41878
  (eval $ac_compile) 2>conftest.er1
 
41879
  ac_status=$?
 
41880
  grep -v '^ *+' conftest.er1 >conftest.err
 
41881
  rm -f conftest.er1
 
41882
  cat conftest.err >&5
 
41883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41884
  (exit $ac_status); } &&
 
41885
         { ac_try='test -z "$ac_c_werror_flag"
 
41886
                         || test ! -s conftest.err'
 
41887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41888
  (eval $ac_try) 2>&5
 
41889
  ac_status=$?
 
41890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41891
  (exit $ac_status); }; } &&
 
41892
         { ac_try='test -s conftest.$ac_objext'
 
41893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41894
  (eval $ac_try) 2>&5
 
41895
  ac_status=$?
 
41896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41897
  (exit $ac_status); }; }; then
 
41898
  apr_cv_struct_ipmreq=yes
 
41899
else
 
41900
  echo "$as_me: failed program was:" >&5
 
41901
sed 's/^/| /' conftest.$ac_ext >&5
 
41902
 
 
41903
apr_cv_struct_ipmreq=no
 
41904
fi
 
41905
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
41906
fi
 
41907
echo "$as_me:$LINENO: result: $apr_cv_struct_ipmreq" >&5
 
41908
echo "${ECHO_T}$apr_cv_struct_ipmreq" >&6
 
41909
 
 
41910
if test $apr_cv_struct_ipmreq = yes; then
 
41911
 
 
41912
cat >>confdefs.h <<\_ACEOF
 
41913
#define HAVE_STRUCT_IPMREQ 1
 
41914
_ACEOF
 
41915
 
 
41916
fi
 
41917
 
 
41918
 
 
41919
 
 
41920
 
 
41921
 
 
41922
 
 
41923
 
 
41924
 
 
41925
for ac_func in set_h_errno
 
41926
do
 
41927
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
41928
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
41929
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
41930
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
41931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41932
else
 
41933
  cat >conftest.$ac_ext <<_ACEOF
 
41934
/* confdefs.h.  */
 
41935
_ACEOF
 
41936
cat confdefs.h >>conftest.$ac_ext
 
41937
cat >>conftest.$ac_ext <<_ACEOF
 
41938
/* end confdefs.h.  */
 
41939
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
41940
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
41941
#define $ac_func innocuous_$ac_func
 
41942
 
 
41943
/* System header to define __stub macros and hopefully few prototypes,
 
41944
    which can conflict with char $ac_func (); below.
 
41945
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
41946
    <limits.h> exists even on freestanding compilers.  */
 
41947
 
 
41948
#ifdef __STDC__
 
41949
# include <limits.h>
 
41950
#else
 
41951
# include <assert.h>
 
41952
#endif
 
41953
 
 
41954
#undef $ac_func
 
41955
 
 
41956
/* Override any gcc2 internal prototype to avoid an error.  */
 
41957
#ifdef __cplusplus
 
41958
extern "C"
 
41959
{
 
41960
#endif
 
41961
/* We use char because int might match the return type of a gcc2
 
41962
   builtin and then its argument prototype would still apply.  */
 
41963
char $ac_func ();
 
41964
/* The GNU C library defines this for functions which it implements
 
41965
    to always fail with ENOSYS.  Some functions are actually named
 
41966
    something starting with __ and the normal name is an alias.  */
 
41967
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
41968
choke me
 
41969
#else
 
41970
char (*f) () = $ac_func;
 
41971
#endif
 
41972
#ifdef __cplusplus
 
41973
}
 
41974
#endif
 
41975
 
 
41976
int
 
41977
main ()
 
41978
{
 
41979
return f != $ac_func;
 
41980
  ;
 
41981
  return 0;
 
41982
}
 
41983
_ACEOF
 
41984
rm -f conftest.$ac_objext conftest$ac_exeext
 
41985
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
41986
  (eval $ac_link) 2>conftest.er1
 
41987
  ac_status=$?
 
41988
  grep -v '^ *+' conftest.er1 >conftest.err
 
41989
  rm -f conftest.er1
 
41990
  cat conftest.err >&5
 
41991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41992
  (exit $ac_status); } &&
 
41993
         { ac_try='test -z "$ac_c_werror_flag"
 
41994
                         || test ! -s conftest.err'
 
41995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
41996
  (eval $ac_try) 2>&5
 
41997
  ac_status=$?
 
41998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41999
  (exit $ac_status); }; } &&
 
42000
         { ac_try='test -s conftest$ac_exeext'
 
42001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42002
  (eval $ac_try) 2>&5
 
42003
  ac_status=$?
 
42004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42005
  (exit $ac_status); }; }; then
 
42006
  eval "$as_ac_var=yes"
 
42007
else
 
42008
  echo "$as_me: failed program was:" >&5
 
42009
sed 's/^/| /' conftest.$ac_ext >&5
 
42010
 
 
42011
eval "$as_ac_var=no"
 
42012
fi
 
42013
rm -f conftest.err conftest.$ac_objext \
 
42014
      conftest$ac_exeext conftest.$ac_ext
 
42015
fi
 
42016
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
42017
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
42018
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
42019
  cat >>confdefs.h <<_ACEOF
 
42020
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
42021
_ACEOF
 
42022
 
 
42023
fi
 
42024
done
 
42025
 
 
42026
 
 
42027
echo "${nl}Checking for IPv6 Networking support..."
 
42028
 
 
42029
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
42030
if test "${enable_ipv6+set}" = set; then
 
42031
  enableval="$enable_ipv6"
 
42032
   if test "$enableval" = "no"; then
 
42033
        user_disabled_ipv6=1
 
42034
    fi
 
42035
else
 
42036
   user_disabled_ipv6=0
 
42037
fi;
 
42038
 
 
42039
case $host in
 
42040
  *)
 
42041
    broken_ipv6=0
 
42042
esac
 
42043
 
 
42044
echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
 
42045
echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
 
42046
if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
42047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42048
else
 
42049
  ac_func_search_save_LIBS=$LIBS
 
42050
ac_cv_search_getaddrinfo=no
 
42051
cat >conftest.$ac_ext <<_ACEOF
 
42052
/* confdefs.h.  */
 
42053
_ACEOF
 
42054
cat confdefs.h >>conftest.$ac_ext
 
42055
cat >>conftest.$ac_ext <<_ACEOF
 
42056
/* end confdefs.h.  */
 
42057
 
 
42058
/* Override any gcc2 internal prototype to avoid an error.  */
 
42059
#ifdef __cplusplus
 
42060
extern "C"
 
42061
#endif
 
42062
/* We use char because int might match the return type of a gcc2
 
42063
   builtin and then its argument prototype would still apply.  */
 
42064
char getaddrinfo ();
 
42065
int
 
42066
main ()
 
42067
{
 
42068
getaddrinfo ();
 
42069
  ;
 
42070
  return 0;
 
42071
}
 
42072
_ACEOF
 
42073
rm -f conftest.$ac_objext conftest$ac_exeext
 
42074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42075
  (eval $ac_link) 2>conftest.er1
 
42076
  ac_status=$?
 
42077
  grep -v '^ *+' conftest.er1 >conftest.err
 
42078
  rm -f conftest.er1
 
42079
  cat conftest.err >&5
 
42080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42081
  (exit $ac_status); } &&
 
42082
         { ac_try='test -z "$ac_c_werror_flag"
 
42083
                         || test ! -s conftest.err'
 
42084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42085
  (eval $ac_try) 2>&5
 
42086
  ac_status=$?
 
42087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42088
  (exit $ac_status); }; } &&
 
42089
         { ac_try='test -s conftest$ac_exeext'
 
42090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42091
  (eval $ac_try) 2>&5
 
42092
  ac_status=$?
 
42093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42094
  (exit $ac_status); }; }; then
 
42095
  ac_cv_search_getaddrinfo="none required"
 
42096
else
 
42097
  echo "$as_me: failed program was:" >&5
 
42098
sed 's/^/| /' conftest.$ac_ext >&5
 
42099
 
 
42100
fi
 
42101
rm -f conftest.err conftest.$ac_objext \
 
42102
      conftest$ac_exeext conftest.$ac_ext
 
42103
if test "$ac_cv_search_getaddrinfo" = no; then
 
42104
  for ac_lib in socket inet6; do
 
42105
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
42106
    cat >conftest.$ac_ext <<_ACEOF
 
42107
/* confdefs.h.  */
 
42108
_ACEOF
 
42109
cat confdefs.h >>conftest.$ac_ext
 
42110
cat >>conftest.$ac_ext <<_ACEOF
 
42111
/* end confdefs.h.  */
 
42112
 
 
42113
/* Override any gcc2 internal prototype to avoid an error.  */
 
42114
#ifdef __cplusplus
 
42115
extern "C"
 
42116
#endif
 
42117
/* We use char because int might match the return type of a gcc2
 
42118
   builtin and then its argument prototype would still apply.  */
 
42119
char getaddrinfo ();
 
42120
int
 
42121
main ()
 
42122
{
 
42123
getaddrinfo ();
 
42124
  ;
 
42125
  return 0;
 
42126
}
 
42127
_ACEOF
 
42128
rm -f conftest.$ac_objext conftest$ac_exeext
 
42129
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42130
  (eval $ac_link) 2>conftest.er1
 
42131
  ac_status=$?
 
42132
  grep -v '^ *+' conftest.er1 >conftest.err
 
42133
  rm -f conftest.er1
 
42134
  cat conftest.err >&5
 
42135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42136
  (exit $ac_status); } &&
 
42137
         { ac_try='test -z "$ac_c_werror_flag"
 
42138
                         || test ! -s conftest.err'
 
42139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42140
  (eval $ac_try) 2>&5
 
42141
  ac_status=$?
 
42142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42143
  (exit $ac_status); }; } &&
 
42144
         { ac_try='test -s conftest$ac_exeext'
 
42145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42146
  (eval $ac_try) 2>&5
 
42147
  ac_status=$?
 
42148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42149
  (exit $ac_status); }; }; then
 
42150
  ac_cv_search_getaddrinfo="-l$ac_lib"
 
42151
break
 
42152
else
 
42153
  echo "$as_me: failed program was:" >&5
 
42154
sed 's/^/| /' conftest.$ac_ext >&5
 
42155
 
 
42156
fi
 
42157
rm -f conftest.err conftest.$ac_objext \
 
42158
      conftest$ac_exeext conftest.$ac_ext
 
42159
  done
 
42160
fi
 
42161
LIBS=$ac_func_search_save_LIBS
 
42162
fi
 
42163
echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
 
42164
echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
 
42165
if test "$ac_cv_search_getaddrinfo" != no; then
 
42166
  test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
 
42167
 
 
42168
fi
 
42169
 
 
42170
echo "$as_me:$LINENO: checking for library containing gai_strerror" >&5
 
42171
echo $ECHO_N "checking for library containing gai_strerror... $ECHO_C" >&6
 
42172
if test "${ac_cv_search_gai_strerror+set}" = set; then
 
42173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42174
else
 
42175
  ac_func_search_save_LIBS=$LIBS
 
42176
ac_cv_search_gai_strerror=no
 
42177
cat >conftest.$ac_ext <<_ACEOF
 
42178
/* confdefs.h.  */
 
42179
_ACEOF
 
42180
cat confdefs.h >>conftest.$ac_ext
 
42181
cat >>conftest.$ac_ext <<_ACEOF
 
42182
/* end confdefs.h.  */
 
42183
 
 
42184
/* Override any gcc2 internal prototype to avoid an error.  */
 
42185
#ifdef __cplusplus
 
42186
extern "C"
 
42187
#endif
 
42188
/* We use char because int might match the return type of a gcc2
 
42189
   builtin and then its argument prototype would still apply.  */
 
42190
char gai_strerror ();
 
42191
int
 
42192
main ()
 
42193
{
 
42194
gai_strerror ();
 
42195
  ;
 
42196
  return 0;
 
42197
}
 
42198
_ACEOF
 
42199
rm -f conftest.$ac_objext conftest$ac_exeext
 
42200
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42201
  (eval $ac_link) 2>conftest.er1
 
42202
  ac_status=$?
 
42203
  grep -v '^ *+' conftest.er1 >conftest.err
 
42204
  rm -f conftest.er1
 
42205
  cat conftest.err >&5
 
42206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42207
  (exit $ac_status); } &&
 
42208
         { ac_try='test -z "$ac_c_werror_flag"
 
42209
                         || test ! -s conftest.err'
 
42210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42211
  (eval $ac_try) 2>&5
 
42212
  ac_status=$?
 
42213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42214
  (exit $ac_status); }; } &&
 
42215
         { ac_try='test -s conftest$ac_exeext'
 
42216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42217
  (eval $ac_try) 2>&5
 
42218
  ac_status=$?
 
42219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42220
  (exit $ac_status); }; }; then
 
42221
  ac_cv_search_gai_strerror="none required"
 
42222
else
 
42223
  echo "$as_me: failed program was:" >&5
 
42224
sed 's/^/| /' conftest.$ac_ext >&5
 
42225
 
 
42226
fi
 
42227
rm -f conftest.err conftest.$ac_objext \
 
42228
      conftest$ac_exeext conftest.$ac_ext
 
42229
if test "$ac_cv_search_gai_strerror" = no; then
 
42230
  for ac_lib in socket inet6; do
 
42231
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
42232
    cat >conftest.$ac_ext <<_ACEOF
 
42233
/* confdefs.h.  */
 
42234
_ACEOF
 
42235
cat confdefs.h >>conftest.$ac_ext
 
42236
cat >>conftest.$ac_ext <<_ACEOF
 
42237
/* end confdefs.h.  */
 
42238
 
 
42239
/* Override any gcc2 internal prototype to avoid an error.  */
 
42240
#ifdef __cplusplus
 
42241
extern "C"
 
42242
#endif
 
42243
/* We use char because int might match the return type of a gcc2
 
42244
   builtin and then its argument prototype would still apply.  */
 
42245
char gai_strerror ();
 
42246
int
 
42247
main ()
 
42248
{
 
42249
gai_strerror ();
 
42250
  ;
 
42251
  return 0;
 
42252
}
 
42253
_ACEOF
 
42254
rm -f conftest.$ac_objext conftest$ac_exeext
 
42255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42256
  (eval $ac_link) 2>conftest.er1
 
42257
  ac_status=$?
 
42258
  grep -v '^ *+' conftest.er1 >conftest.err
 
42259
  rm -f conftest.er1
 
42260
  cat conftest.err >&5
 
42261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42262
  (exit $ac_status); } &&
 
42263
         { ac_try='test -z "$ac_c_werror_flag"
 
42264
                         || test ! -s conftest.err'
 
42265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42266
  (eval $ac_try) 2>&5
 
42267
  ac_status=$?
 
42268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42269
  (exit $ac_status); }; } &&
 
42270
         { ac_try='test -s conftest$ac_exeext'
 
42271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42272
  (eval $ac_try) 2>&5
 
42273
  ac_status=$?
 
42274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42275
  (exit $ac_status); }; }; then
 
42276
  ac_cv_search_gai_strerror="-l$ac_lib"
 
42277
break
 
42278
else
 
42279
  echo "$as_me: failed program was:" >&5
 
42280
sed 's/^/| /' conftest.$ac_ext >&5
 
42281
 
 
42282
fi
 
42283
rm -f conftest.err conftest.$ac_objext \
 
42284
      conftest$ac_exeext conftest.$ac_ext
 
42285
  done
 
42286
fi
 
42287
LIBS=$ac_func_search_save_LIBS
 
42288
fi
 
42289
echo "$as_me:$LINENO: result: $ac_cv_search_gai_strerror" >&5
 
42290
echo "${ECHO_T}$ac_cv_search_gai_strerror" >&6
 
42291
if test "$ac_cv_search_gai_strerror" != no; then
 
42292
  test "$ac_cv_search_gai_strerror" = "none required" || LIBS="$ac_cv_search_gai_strerror $LIBS"
 
42293
 
 
42294
fi
 
42295
 
 
42296
echo "$as_me:$LINENO: checking for library containing getnameinfo" >&5
 
42297
echo $ECHO_N "checking for library containing getnameinfo... $ECHO_C" >&6
 
42298
if test "${ac_cv_search_getnameinfo+set}" = set; then
 
42299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42300
else
 
42301
  ac_func_search_save_LIBS=$LIBS
 
42302
ac_cv_search_getnameinfo=no
 
42303
cat >conftest.$ac_ext <<_ACEOF
 
42304
/* confdefs.h.  */
 
42305
_ACEOF
 
42306
cat confdefs.h >>conftest.$ac_ext
 
42307
cat >>conftest.$ac_ext <<_ACEOF
 
42308
/* end confdefs.h.  */
 
42309
 
 
42310
/* Override any gcc2 internal prototype to avoid an error.  */
 
42311
#ifdef __cplusplus
 
42312
extern "C"
 
42313
#endif
 
42314
/* We use char because int might match the return type of a gcc2
 
42315
   builtin and then its argument prototype would still apply.  */
 
42316
char getnameinfo ();
 
42317
int
 
42318
main ()
 
42319
{
 
42320
getnameinfo ();
 
42321
  ;
 
42322
  return 0;
 
42323
}
 
42324
_ACEOF
 
42325
rm -f conftest.$ac_objext conftest$ac_exeext
 
42326
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42327
  (eval $ac_link) 2>conftest.er1
 
42328
  ac_status=$?
 
42329
  grep -v '^ *+' conftest.er1 >conftest.err
 
42330
  rm -f conftest.er1
 
42331
  cat conftest.err >&5
 
42332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42333
  (exit $ac_status); } &&
 
42334
         { ac_try='test -z "$ac_c_werror_flag"
 
42335
                         || test ! -s conftest.err'
 
42336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42337
  (eval $ac_try) 2>&5
 
42338
  ac_status=$?
 
42339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42340
  (exit $ac_status); }; } &&
 
42341
         { ac_try='test -s conftest$ac_exeext'
 
42342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42343
  (eval $ac_try) 2>&5
 
42344
  ac_status=$?
 
42345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42346
  (exit $ac_status); }; }; then
 
42347
  ac_cv_search_getnameinfo="none required"
 
42348
else
 
42349
  echo "$as_me: failed program was:" >&5
 
42350
sed 's/^/| /' conftest.$ac_ext >&5
 
42351
 
 
42352
fi
 
42353
rm -f conftest.err conftest.$ac_objext \
 
42354
      conftest$ac_exeext conftest.$ac_ext
 
42355
if test "$ac_cv_search_getnameinfo" = no; then
 
42356
  for ac_lib in socket inet6; do
 
42357
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
42358
    cat >conftest.$ac_ext <<_ACEOF
 
42359
/* confdefs.h.  */
 
42360
_ACEOF
 
42361
cat confdefs.h >>conftest.$ac_ext
 
42362
cat >>conftest.$ac_ext <<_ACEOF
 
42363
/* end confdefs.h.  */
 
42364
 
 
42365
/* Override any gcc2 internal prototype to avoid an error.  */
 
42366
#ifdef __cplusplus
 
42367
extern "C"
 
42368
#endif
 
42369
/* We use char because int might match the return type of a gcc2
 
42370
   builtin and then its argument prototype would still apply.  */
 
42371
char getnameinfo ();
 
42372
int
 
42373
main ()
 
42374
{
 
42375
getnameinfo ();
 
42376
  ;
 
42377
  return 0;
 
42378
}
 
42379
_ACEOF
 
42380
rm -f conftest.$ac_objext conftest$ac_exeext
 
42381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42382
  (eval $ac_link) 2>conftest.er1
 
42383
  ac_status=$?
 
42384
  grep -v '^ *+' conftest.er1 >conftest.err
 
42385
  rm -f conftest.er1
 
42386
  cat conftest.err >&5
 
42387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42388
  (exit $ac_status); } &&
 
42389
         { ac_try='test -z "$ac_c_werror_flag"
 
42390
                         || test ! -s conftest.err'
 
42391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42392
  (eval $ac_try) 2>&5
 
42393
  ac_status=$?
 
42394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42395
  (exit $ac_status); }; } &&
 
42396
         { ac_try='test -s conftest$ac_exeext'
 
42397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42398
  (eval $ac_try) 2>&5
 
42399
  ac_status=$?
 
42400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42401
  (exit $ac_status); }; }; then
 
42402
  ac_cv_search_getnameinfo="-l$ac_lib"
 
42403
break
 
42404
else
 
42405
  echo "$as_me: failed program was:" >&5
 
42406
sed 's/^/| /' conftest.$ac_ext >&5
 
42407
 
 
42408
fi
 
42409
rm -f conftest.err conftest.$ac_objext \
 
42410
      conftest$ac_exeext conftest.$ac_ext
 
42411
  done
 
42412
fi
 
42413
LIBS=$ac_func_search_save_LIBS
 
42414
fi
 
42415
echo "$as_me:$LINENO: result: $ac_cv_search_getnameinfo" >&5
 
42416
echo "${ECHO_T}$ac_cv_search_getnameinfo" >&6
 
42417
if test "$ac_cv_search_getnameinfo" != no; then
 
42418
  test "$ac_cv_search_getnameinfo" = "none required" || LIBS="$ac_cv_search_getnameinfo $LIBS"
 
42419
 
 
42420
fi
 
42421
 
 
42422
 
 
42423
for ac_func in gai_strerror
 
42424
do
 
42425
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
42426
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
42427
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
42428
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
42429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42430
else
 
42431
  cat >conftest.$ac_ext <<_ACEOF
 
42432
/* confdefs.h.  */
 
42433
_ACEOF
 
42434
cat confdefs.h >>conftest.$ac_ext
 
42435
cat >>conftest.$ac_ext <<_ACEOF
 
42436
/* end confdefs.h.  */
 
42437
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
42438
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
42439
#define $ac_func innocuous_$ac_func
 
42440
 
 
42441
/* System header to define __stub macros and hopefully few prototypes,
 
42442
    which can conflict with char $ac_func (); below.
 
42443
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
42444
    <limits.h> exists even on freestanding compilers.  */
 
42445
 
 
42446
#ifdef __STDC__
 
42447
# include <limits.h>
 
42448
#else
 
42449
# include <assert.h>
 
42450
#endif
 
42451
 
 
42452
#undef $ac_func
 
42453
 
 
42454
/* Override any gcc2 internal prototype to avoid an error.  */
 
42455
#ifdef __cplusplus
 
42456
extern "C"
 
42457
{
 
42458
#endif
 
42459
/* We use char because int might match the return type of a gcc2
 
42460
   builtin and then its argument prototype would still apply.  */
 
42461
char $ac_func ();
 
42462
/* The GNU C library defines this for functions which it implements
 
42463
    to always fail with ENOSYS.  Some functions are actually named
 
42464
    something starting with __ and the normal name is an alias.  */
 
42465
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
42466
choke me
 
42467
#else
 
42468
char (*f) () = $ac_func;
 
42469
#endif
 
42470
#ifdef __cplusplus
 
42471
}
 
42472
#endif
 
42473
 
 
42474
int
 
42475
main ()
 
42476
{
 
42477
return f != $ac_func;
 
42478
  ;
 
42479
  return 0;
 
42480
}
 
42481
_ACEOF
 
42482
rm -f conftest.$ac_objext conftest$ac_exeext
 
42483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42484
  (eval $ac_link) 2>conftest.er1
 
42485
  ac_status=$?
 
42486
  grep -v '^ *+' conftest.er1 >conftest.err
 
42487
  rm -f conftest.er1
 
42488
  cat conftest.err >&5
 
42489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42490
  (exit $ac_status); } &&
 
42491
         { ac_try='test -z "$ac_c_werror_flag"
 
42492
                         || test ! -s conftest.err'
 
42493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42494
  (eval $ac_try) 2>&5
 
42495
  ac_status=$?
 
42496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42497
  (exit $ac_status); }; } &&
 
42498
         { ac_try='test -s conftest$ac_exeext'
 
42499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42500
  (eval $ac_try) 2>&5
 
42501
  ac_status=$?
 
42502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42503
  (exit $ac_status); }; }; then
 
42504
  eval "$as_ac_var=yes"
 
42505
else
 
42506
  echo "$as_me: failed program was:" >&5
 
42507
sed 's/^/| /' conftest.$ac_ext >&5
 
42508
 
 
42509
eval "$as_ac_var=no"
 
42510
fi
 
42511
rm -f conftest.err conftest.$ac_objext \
 
42512
      conftest$ac_exeext conftest.$ac_ext
 
42513
fi
 
42514
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
42515
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
42516
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
42517
  cat >>confdefs.h <<_ACEOF
 
42518
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
42519
_ACEOF
 
42520
 
 
42521
fi
 
42522
done
 
42523
 
 
42524
 
 
42525
  echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
 
42526
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
 
42527
if test "${ac_cv_working_getaddrinfo+set}" = set; then
 
42528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42529
else
 
42530
 
 
42531
  if test "$cross_compiling" = yes; then
 
42532
 
 
42533
  ac_cv_working_getaddrinfo="yes"
 
42534
 
 
42535
else
 
42536
  cat >conftest.$ac_ext <<_ACEOF
 
42537
/* confdefs.h.  */
 
42538
_ACEOF
 
42539
cat confdefs.h >>conftest.$ac_ext
 
42540
cat >>conftest.$ac_ext <<_ACEOF
 
42541
/* end confdefs.h.  */
 
42542
 
 
42543
#ifdef HAVE_NETDB_H
 
42544
#include <netdb.h>
 
42545
#endif
 
42546
#ifdef HAVE_STRING_H
 
42547
#include <string.h>
 
42548
#endif
 
42549
#ifdef HAVE_SYS_TYPES_H
 
42550
#include <sys/types.h>
 
42551
#endif
 
42552
#ifdef HAVE_SYS_SOCKET_H
 
42553
#include <sys/socket.h>
 
42554
#endif
 
42555
 
 
42556
void main(void) {
 
42557
    struct addrinfo hints, *ai;
 
42558
    int error;
 
42559
 
 
42560
    memset(&hints, 0, sizeof(hints));
 
42561
    hints.ai_family = AF_UNSPEC;
 
42562
    hints.ai_socktype = SOCK_STREAM;
 
42563
    error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
 
42564
    if (error) {
 
42565
        exit(1);
 
42566
    }
 
42567
    if (ai->ai_addr->sa_family != AF_INET) {
 
42568
        exit(1);
 
42569
    }
 
42570
    exit(0);
 
42571
}
 
42572
 
 
42573
_ACEOF
 
42574
rm -f conftest$ac_exeext
 
42575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42576
  (eval $ac_link) 2>&5
 
42577
  ac_status=$?
 
42578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42579
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
42580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42581
  (eval $ac_try) 2>&5
 
42582
  ac_status=$?
 
42583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42584
  (exit $ac_status); }; }; then
 
42585
 
 
42586
  ac_cv_working_getaddrinfo="yes"
 
42587
 
 
42588
else
 
42589
  echo "$as_me: program exited with status $ac_status" >&5
 
42590
echo "$as_me: failed program was:" >&5
 
42591
sed 's/^/| /' conftest.$ac_ext >&5
 
42592
 
 
42593
( exit $ac_status )
 
42594
 
 
42595
  ac_cv_working_getaddrinfo="no"
 
42596
 
 
42597
fi
 
42598
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
42599
fi
 
42600
fi
 
42601
echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
 
42602
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
 
42603
if test "$ac_cv_working_getaddrinfo" = "yes"; then
 
42604
  if test "$ac_cv_func_gai_strerror" != "yes"; then
 
42605
    ac_cv_working_getaddrinfo="no"
 
42606
  else
 
42607
 
 
42608
cat >>confdefs.h <<\_ACEOF
 
42609
#define HAVE_GETADDRINFO 1
 
42610
_ACEOF
 
42611
 
 
42612
  fi
 
42613
fi
 
42614
 
 
42615
 
 
42616
  echo "$as_me:$LINENO: checking for negative error codes for getaddrinfo" >&5
 
42617
echo $ECHO_N "checking for negative error codes for getaddrinfo... $ECHO_C" >&6
 
42618
if test "${ac_cv_negative_eai+set}" = set; then
 
42619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42620
else
 
42621
 
 
42622
  if test "$cross_compiling" = yes; then
 
42623
 
 
42624
  ac_cv_negative_eai="no"
 
42625
 
 
42626
else
 
42627
  cat >conftest.$ac_ext <<_ACEOF
 
42628
/* confdefs.h.  */
 
42629
_ACEOF
 
42630
cat confdefs.h >>conftest.$ac_ext
 
42631
cat >>conftest.$ac_ext <<_ACEOF
 
42632
/* end confdefs.h.  */
 
42633
 
 
42634
#ifdef HAVE_NETDB_H
 
42635
#include <netdb.h>
 
42636
#endif
 
42637
 
 
42638
void main(void) {
 
42639
    if (EAI_ADDRFAMILY < 0) {
 
42640
        exit(0);
 
42641
    }
 
42642
    exit(1);
 
42643
}
 
42644
 
 
42645
_ACEOF
 
42646
rm -f conftest$ac_exeext
 
42647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42648
  (eval $ac_link) 2>&5
 
42649
  ac_status=$?
 
42650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42651
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
42652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42653
  (eval $ac_try) 2>&5
 
42654
  ac_status=$?
 
42655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42656
  (exit $ac_status); }; }; then
 
42657
 
 
42658
  ac_cv_negative_eai="yes"
 
42659
 
 
42660
else
 
42661
  echo "$as_me: program exited with status $ac_status" >&5
 
42662
echo "$as_me: failed program was:" >&5
 
42663
sed 's/^/| /' conftest.$ac_ext >&5
 
42664
 
 
42665
( exit $ac_status )
 
42666
 
 
42667
  ac_cv_negative_eai="no"
 
42668
 
 
42669
fi
 
42670
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
42671
fi
 
42672
fi
 
42673
echo "$as_me:$LINENO: result: $ac_cv_negative_eai" >&5
 
42674
echo "${ECHO_T}$ac_cv_negative_eai" >&6
 
42675
if test "$ac_cv_negative_eai" = "yes"; then
 
42676
 
 
42677
cat >>confdefs.h <<\_ACEOF
 
42678
#define NEGATIVE_EAI 1
 
42679
_ACEOF
 
42680
 
 
42681
fi
 
42682
 
 
42683
 
 
42684
  echo "$as_me:$LINENO: checking for working getnameinfo" >&5
 
42685
echo $ECHO_N "checking for working getnameinfo... $ECHO_C" >&6
 
42686
if test "${ac_cv_working_getnameinfo+set}" = set; then
 
42687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42688
else
 
42689
 
 
42690
  if test "$cross_compiling" = yes; then
 
42691
 
 
42692
  ac_cv_working_getnameinfo="yes"
 
42693
 
 
42694
else
 
42695
  cat >conftest.$ac_ext <<_ACEOF
 
42696
/* confdefs.h.  */
 
42697
_ACEOF
 
42698
cat confdefs.h >>conftest.$ac_ext
 
42699
cat >>conftest.$ac_ext <<_ACEOF
 
42700
/* end confdefs.h.  */
 
42701
 
 
42702
#ifdef HAVE_NETDB_H
 
42703
#include <netdb.h>
 
42704
#endif
 
42705
#ifdef HAVE_STRING_H
 
42706
#include <string.h>
 
42707
#endif
 
42708
#ifdef HAVE_SYS_TYPES_H
 
42709
#include <sys/types.h>
 
42710
#endif
 
42711
#ifdef HAVE_SYS_SOCKET_H
 
42712
#include <sys/socket.h>
 
42713
#endif
 
42714
#ifdef HAVE_NETINET_IN_H
 
42715
#include <netinet/in.h>
 
42716
#endif
 
42717
 
 
42718
void main(void) {
 
42719
    struct sockaddr_in sa;
 
42720
    char hbuf[256];
 
42721
    int error;
 
42722
 
 
42723
    sa.sin_family = AF_INET;
 
42724
    sa.sin_port = 0;
 
42725
    sa.sin_addr.s_addr = inet_addr("127.0.0.1");
 
42726
#ifdef SIN6_LEN
 
42727
    sa.sin_len = sizeof(sa);
 
42728
#endif
 
42729
 
 
42730
    error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
 
42731
                        hbuf, 256, NULL, 0,
 
42732
                        NI_NUMERICHOST);
 
42733
    if (error) {
 
42734
        exit(1);
 
42735
    } else {
 
42736
        exit(0);
 
42737
    }
 
42738
}
 
42739
 
 
42740
_ACEOF
 
42741
rm -f conftest$ac_exeext
 
42742
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42743
  (eval $ac_link) 2>&5
 
42744
  ac_status=$?
 
42745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42746
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
42747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42748
  (eval $ac_try) 2>&5
 
42749
  ac_status=$?
 
42750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42751
  (exit $ac_status); }; }; then
 
42752
 
 
42753
  ac_cv_working_getnameinfo="yes"
 
42754
 
 
42755
else
 
42756
  echo "$as_me: program exited with status $ac_status" >&5
 
42757
echo "$as_me: failed program was:" >&5
 
42758
sed 's/^/| /' conftest.$ac_ext >&5
 
42759
 
 
42760
( exit $ac_status )
 
42761
 
 
42762
  ac_cv_working_getnameinfo="no"
 
42763
 
 
42764
fi
 
42765
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
42766
fi
 
42767
fi
 
42768
echo "$as_me:$LINENO: result: $ac_cv_working_getnameinfo" >&5
 
42769
echo "${ECHO_T}$ac_cv_working_getnameinfo" >&6
 
42770
if test "$ac_cv_working_getnameinfo" = "yes"; then
 
42771
 
 
42772
cat >>confdefs.h <<\_ACEOF
 
42773
#define HAVE_GETNAMEINFO 1
 
42774
_ACEOF
 
42775
 
 
42776
fi
 
42777
 
 
42778
 
 
42779
echo "$as_me:$LINENO: checking for sockaddr_in6" >&5
 
42780
echo $ECHO_N "checking for sockaddr_in6... $ECHO_C" >&6
 
42781
if test "${ac_cv_define_sockaddr_in6+set}" = set; then
 
42782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42783
else
 
42784
 
 
42785
cat >conftest.$ac_ext <<_ACEOF
 
42786
/* confdefs.h.  */
 
42787
_ACEOF
 
42788
cat confdefs.h >>conftest.$ac_ext
 
42789
cat >>conftest.$ac_ext <<_ACEOF
 
42790
/* end confdefs.h.  */
 
42791
 
 
42792
#ifdef HAVE_SYS_TYPES_H
 
42793
#include <sys/types.h>
 
42794
#endif
 
42795
#ifdef HAVE_NETINET_IN_H
 
42796
#include <netinet/in.h>
 
42797
#endif
 
42798
 
 
42799
int
 
42800
main ()
 
42801
{
 
42802
 
 
42803
struct sockaddr_in6 sa;
 
42804
 
 
42805
  ;
 
42806
  return 0;
 
42807
}
 
42808
_ACEOF
 
42809
rm -f conftest.$ac_objext
 
42810
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
42811
  (eval $ac_compile) 2>conftest.er1
 
42812
  ac_status=$?
 
42813
  grep -v '^ *+' conftest.er1 >conftest.err
 
42814
  rm -f conftest.er1
 
42815
  cat conftest.err >&5
 
42816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42817
  (exit $ac_status); } &&
 
42818
         { ac_try='test -z "$ac_c_werror_flag"
 
42819
                         || test ! -s conftest.err'
 
42820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42821
  (eval $ac_try) 2>&5
 
42822
  ac_status=$?
 
42823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42824
  (exit $ac_status); }; } &&
 
42825
         { ac_try='test -s conftest.$ac_objext'
 
42826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42827
  (eval $ac_try) 2>&5
 
42828
  ac_status=$?
 
42829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42830
  (exit $ac_status); }; }; then
 
42831
 
 
42832
    ac_cv_define_sockaddr_in6=yes
 
42833
 
 
42834
else
 
42835
  echo "$as_me: failed program was:" >&5
 
42836
sed 's/^/| /' conftest.$ac_ext >&5
 
42837
 
 
42838
 
 
42839
    ac_cv_define_sockaddr_in6=no
 
42840
 
 
42841
fi
 
42842
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
42843
 
 
42844
fi
 
42845
echo "$as_me:$LINENO: result: $ac_cv_define_sockaddr_in6" >&5
 
42846
echo "${ECHO_T}$ac_cv_define_sockaddr_in6" >&6
 
42847
 
 
42848
if test "$ac_cv_define_sockaddr_in6" = "yes"; then
 
42849
  have_sockaddr_in6=1
 
42850
else
 
42851
  have_sockaddr_in6=0
 
42852
fi
 
42853
 
 
42854
 
 
42855
echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
 
42856
echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
 
42857
if test "${apr_cv_define_sockaddr_storage+set}" = set; then
 
42858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42859
else
 
42860
 
 
42861
cat >conftest.$ac_ext <<_ACEOF
 
42862
/* confdefs.h.  */
 
42863
_ACEOF
 
42864
cat confdefs.h >>conftest.$ac_ext
 
42865
cat >>conftest.$ac_ext <<_ACEOF
 
42866
/* end confdefs.h.  */
 
42867
 
 
42868
#ifdef HAVE_SYS_TYPES_H
 
42869
#include <sys/types.h>
 
42870
#endif
 
42871
#ifdef HAVE_NETINET_IN_H
 
42872
#include <netinet/in.h>
 
42873
#endif
 
42874
 
 
42875
int
 
42876
main ()
 
42877
{
 
42878
struct sockaddr_storage sa;
 
42879
  ;
 
42880
  return 0;
 
42881
}
 
42882
_ACEOF
 
42883
rm -f conftest.$ac_objext
 
42884
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
42885
  (eval $ac_compile) 2>conftest.er1
 
42886
  ac_status=$?
 
42887
  grep -v '^ *+' conftest.er1 >conftest.err
 
42888
  rm -f conftest.er1
 
42889
  cat conftest.err >&5
 
42890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42891
  (exit $ac_status); } &&
 
42892
         { ac_try='test -z "$ac_c_werror_flag"
 
42893
                         || test ! -s conftest.err'
 
42894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42895
  (eval $ac_try) 2>&5
 
42896
  ac_status=$?
 
42897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42898
  (exit $ac_status); }; } &&
 
42899
         { ac_try='test -s conftest.$ac_objext'
 
42900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42901
  (eval $ac_try) 2>&5
 
42902
  ac_status=$?
 
42903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42904
  (exit $ac_status); }; }; then
 
42905
  apr_cv_define_sockaddr_storage=yes
 
42906
else
 
42907
  echo "$as_me: failed program was:" >&5
 
42908
sed 's/^/| /' conftest.$ac_ext >&5
 
42909
 
 
42910
apr_cv_define_sockaddr_storage=no
 
42911
fi
 
42912
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
42913
fi
 
42914
echo "$as_me:$LINENO: result: $apr_cv_define_sockaddr_storage" >&5
 
42915
echo "${ECHO_T}$apr_cv_define_sockaddr_storage" >&6
 
42916
 
 
42917
if test "$apr_cv_define_sockaddr_storage" = "yes"; then
 
42918
  have_sa_storage=1
 
42919
else
 
42920
  have_sa_storage=0
 
42921
fi
 
42922
 
 
42923
 
 
42924
 
 
42925
have_ipv6="0"
 
42926
if test "$user_disabled_ipv6" = 1; then
 
42927
    ipv6_result="no -- disabled by user"
 
42928
else
 
42929
    if test "x$broken_ipv6" = "x0"; then
 
42930
        if test "x$have_sockaddr_in6" = "x1"; then
 
42931
            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
 
42932
                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
 
42933
 
 
42934
  echo "$as_me:$LINENO: checking for working AI_ADDRCONFIG" >&5
 
42935
echo $ECHO_N "checking for working AI_ADDRCONFIG... $ECHO_C" >&6
 
42936
if test "${apr_cv_gai_addrconfig+set}" = set; then
 
42937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
42938
else
 
42939
 
 
42940
  if test "$cross_compiling" = yes; then
 
42941
  apr_cv_gai_addrconfig=no
 
42942
else
 
42943
  cat >conftest.$ac_ext <<_ACEOF
 
42944
/* confdefs.h.  */
 
42945
_ACEOF
 
42946
cat confdefs.h >>conftest.$ac_ext
 
42947
cat >>conftest.$ac_ext <<_ACEOF
 
42948
/* end confdefs.h.  */
 
42949
 
 
42950
#ifdef HAVE_NETDB_H
 
42951
#include <netdb.h>
 
42952
#endif
 
42953
#ifdef HAVE_STRING_H
 
42954
#include <string.h>
 
42955
#endif
 
42956
#ifdef HAVE_SYS_TYPES_H
 
42957
#include <sys/types.h>
 
42958
#endif
 
42959
#ifdef HAVE_SYS_SOCKET_H
 
42960
#include <sys/socket.h>
 
42961
#endif
 
42962
 
 
42963
int main(int argc, char **argv) {
 
42964
    struct addrinfo hints, *ai;
 
42965
 
 
42966
    memset(&hints, 0, sizeof(hints));
 
42967
    hints.ai_family = AF_UNSPEC;
 
42968
    hints.ai_socktype = SOCK_STREAM;
 
42969
    hints.ai_flags = AI_ADDRCONFIG;
 
42970
    return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
 
42971
}
 
42972
_ACEOF
 
42973
rm -f conftest$ac_exeext
 
42974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
42975
  (eval $ac_link) 2>&5
 
42976
  ac_status=$?
 
42977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42978
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
42979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
42980
  (eval $ac_try) 2>&5
 
42981
  ac_status=$?
 
42982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42983
  (exit $ac_status); }; }; then
 
42984
  apr_cv_gai_addrconfig=yes
 
42985
else
 
42986
  echo "$as_me: program exited with status $ac_status" >&5
 
42987
echo "$as_me: failed program was:" >&5
 
42988
sed 's/^/| /' conftest.$ac_ext >&5
 
42989
 
 
42990
( exit $ac_status )
 
42991
apr_cv_gai_addrconfig=no
 
42992
fi
 
42993
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
42994
fi
 
42995
fi
 
42996
echo "$as_me:$LINENO: result: $apr_cv_gai_addrconfig" >&5
 
42997
echo "${ECHO_T}$apr_cv_gai_addrconfig" >&6
 
42998
 
 
42999
if test $apr_cv_gai_addrconfig = yes; then
 
43000
 
 
43001
cat >>confdefs.h <<\_ACEOF
 
43002
#define HAVE_GAI_ADDRCONFIG 1
 
43003
_ACEOF
 
43004
 
 
43005
fi
 
43006
 
 
43007
                    have_ipv6="1"
 
43008
                    ipv6_result="yes"
 
43009
                else
 
43010
                    ipv6_result="no -- no getnameinfo"
 
43011
                fi
 
43012
            else
 
43013
                ipv6_result="no -- no working getaddrinfo"
 
43014
            fi
 
43015
        else
 
43016
            ipv6_result="no -- no sockaddr_in6"
 
43017
        fi
 
43018
    else
 
43019
        ipv6_result="no -- the platform has known problems supporting IPv6"
 
43020
    fi
 
43021
fi
 
43022
 
 
43023
echo "$as_me:$LINENO: checking if APR supports IPv6" >&5
 
43024
echo $ECHO_N "checking if APR supports IPv6... $ECHO_C" >&6
 
43025
echo "$as_me:$LINENO: result: $ipv6_result" >&5
 
43026
echo "${ECHO_T}$ipv6_result" >&6
 
43027
 
 
43028
 
 
43029
 
 
43030
# hstrerror is only needed if IPv6 is not enabled,
 
43031
# so getaddrinfo/gai_strerror are not used.
 
43032
if test $have_ipv6 = 0; then
 
43033
  echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
 
43034
echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6
 
43035
if test "${ac_cv_search_hstrerror+set}" = set; then
 
43036
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
43037
else
 
43038
  ac_func_search_save_LIBS=$LIBS
 
43039
ac_cv_search_hstrerror=no
 
43040
cat >conftest.$ac_ext <<_ACEOF
 
43041
/* confdefs.h.  */
 
43042
_ACEOF
 
43043
cat confdefs.h >>conftest.$ac_ext
 
43044
cat >>conftest.$ac_ext <<_ACEOF
 
43045
/* end confdefs.h.  */
 
43046
 
 
43047
/* Override any gcc2 internal prototype to avoid an error.  */
 
43048
#ifdef __cplusplus
 
43049
extern "C"
 
43050
#endif
 
43051
/* We use char because int might match the return type of a gcc2
 
43052
   builtin and then its argument prototype would still apply.  */
 
43053
char hstrerror ();
 
43054
int
 
43055
main ()
 
43056
{
 
43057
hstrerror ();
 
43058
  ;
 
43059
  return 0;
 
43060
}
 
43061
_ACEOF
 
43062
rm -f conftest.$ac_objext conftest$ac_exeext
 
43063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
43064
  (eval $ac_link) 2>conftest.er1
 
43065
  ac_status=$?
 
43066
  grep -v '^ *+' conftest.er1 >conftest.err
 
43067
  rm -f conftest.er1
 
43068
  cat conftest.err >&5
 
43069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43070
  (exit $ac_status); } &&
 
43071
         { ac_try='test -z "$ac_c_werror_flag"
 
43072
                         || test ! -s conftest.err'
 
43073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43074
  (eval $ac_try) 2>&5
 
43075
  ac_status=$?
 
43076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43077
  (exit $ac_status); }; } &&
 
43078
         { ac_try='test -s conftest$ac_exeext'
 
43079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43080
  (eval $ac_try) 2>&5
 
43081
  ac_status=$?
 
43082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43083
  (exit $ac_status); }; }; then
 
43084
  ac_cv_search_hstrerror="none required"
 
43085
else
 
43086
  echo "$as_me: failed program was:" >&5
 
43087
sed 's/^/| /' conftest.$ac_ext >&5
 
43088
 
 
43089
fi
 
43090
rm -f conftest.err conftest.$ac_objext \
 
43091
      conftest$ac_exeext conftest.$ac_ext
 
43092
if test "$ac_cv_search_hstrerror" = no; then
 
43093
  for ac_lib in resolv; do
 
43094
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
43095
    cat >conftest.$ac_ext <<_ACEOF
 
43096
/* confdefs.h.  */
 
43097
_ACEOF
 
43098
cat confdefs.h >>conftest.$ac_ext
 
43099
cat >>conftest.$ac_ext <<_ACEOF
 
43100
/* end confdefs.h.  */
 
43101
 
 
43102
/* Override any gcc2 internal prototype to avoid an error.  */
 
43103
#ifdef __cplusplus
 
43104
extern "C"
 
43105
#endif
 
43106
/* We use char because int might match the return type of a gcc2
 
43107
   builtin and then its argument prototype would still apply.  */
 
43108
char hstrerror ();
 
43109
int
 
43110
main ()
 
43111
{
 
43112
hstrerror ();
 
43113
  ;
 
43114
  return 0;
 
43115
}
 
43116
_ACEOF
 
43117
rm -f conftest.$ac_objext conftest$ac_exeext
 
43118
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
43119
  (eval $ac_link) 2>conftest.er1
 
43120
  ac_status=$?
 
43121
  grep -v '^ *+' conftest.er1 >conftest.err
 
43122
  rm -f conftest.er1
 
43123
  cat conftest.err >&5
 
43124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43125
  (exit $ac_status); } &&
 
43126
         { ac_try='test -z "$ac_c_werror_flag"
 
43127
                         || test ! -s conftest.err'
 
43128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43129
  (eval $ac_try) 2>&5
 
43130
  ac_status=$?
 
43131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43132
  (exit $ac_status); }; } &&
 
43133
         { ac_try='test -s conftest$ac_exeext'
 
43134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43135
  (eval $ac_try) 2>&5
 
43136
  ac_status=$?
 
43137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43138
  (exit $ac_status); }; }; then
 
43139
  ac_cv_search_hstrerror="-l$ac_lib"
 
43140
break
 
43141
else
 
43142
  echo "$as_me: failed program was:" >&5
 
43143
sed 's/^/| /' conftest.$ac_ext >&5
 
43144
 
 
43145
fi
 
43146
rm -f conftest.err conftest.$ac_objext \
 
43147
      conftest$ac_exeext conftest.$ac_ext
 
43148
  done
 
43149
fi
 
43150
LIBS=$ac_func_search_save_LIBS
 
43151
fi
 
43152
echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
 
43153
echo "${ECHO_T}$ac_cv_search_hstrerror" >&6
 
43154
if test "$ac_cv_search_hstrerror" != no; then
 
43155
  test "$ac_cv_search_hstrerror" = "none required" || LIBS="$ac_cv_search_hstrerror $LIBS"
 
43156
 
 
43157
cat >>confdefs.h <<\_ACEOF
 
43158
#define HAVE_HSTRERROR 1
 
43159
_ACEOF
 
43160
 
 
43161
fi
 
43162
 
 
43163
fi
 
43164
 
 
43165
 
 
43166
 
 
43167
for ac_header in langinfo.h
 
43168
do
 
43169
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
43170
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
43171
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
43172
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
43173
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
43174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
43175
fi
 
43176
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
43177
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
43178
else
 
43179
  # Is the header compilable?
 
43180
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
43181
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
43182
cat >conftest.$ac_ext <<_ACEOF
 
43183
/* confdefs.h.  */
 
43184
_ACEOF
 
43185
cat confdefs.h >>conftest.$ac_ext
 
43186
cat >>conftest.$ac_ext <<_ACEOF
 
43187
/* end confdefs.h.  */
 
43188
$ac_includes_default
 
43189
#include <$ac_header>
 
43190
_ACEOF
 
43191
rm -f conftest.$ac_objext
 
43192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
43193
  (eval $ac_compile) 2>conftest.er1
 
43194
  ac_status=$?
 
43195
  grep -v '^ *+' conftest.er1 >conftest.err
 
43196
  rm -f conftest.er1
 
43197
  cat conftest.err >&5
 
43198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43199
  (exit $ac_status); } &&
 
43200
         { ac_try='test -z "$ac_c_werror_flag"
 
43201
                         || test ! -s conftest.err'
 
43202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43203
  (eval $ac_try) 2>&5
 
43204
  ac_status=$?
 
43205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43206
  (exit $ac_status); }; } &&
 
43207
         { ac_try='test -s conftest.$ac_objext'
 
43208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43209
  (eval $ac_try) 2>&5
 
43210
  ac_status=$?
 
43211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43212
  (exit $ac_status); }; }; then
 
43213
  ac_header_compiler=yes
 
43214
else
 
43215
  echo "$as_me: failed program was:" >&5
 
43216
sed 's/^/| /' conftest.$ac_ext >&5
 
43217
 
 
43218
ac_header_compiler=no
 
43219
fi
 
43220
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
43221
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
43222
echo "${ECHO_T}$ac_header_compiler" >&6
 
43223
 
 
43224
# Is the header present?
 
43225
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
43226
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
43227
cat >conftest.$ac_ext <<_ACEOF
 
43228
/* confdefs.h.  */
 
43229
_ACEOF
 
43230
cat confdefs.h >>conftest.$ac_ext
 
43231
cat >>conftest.$ac_ext <<_ACEOF
 
43232
/* end confdefs.h.  */
 
43233
#include <$ac_header>
 
43234
_ACEOF
 
43235
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
43236
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
43237
  ac_status=$?
 
43238
  grep -v '^ *+' conftest.er1 >conftest.err
 
43239
  rm -f conftest.er1
 
43240
  cat conftest.err >&5
 
43241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43242
  (exit $ac_status); } >/dev/null; then
 
43243
  if test -s conftest.err; then
 
43244
    ac_cpp_err=$ac_c_preproc_warn_flag
 
43245
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
43246
  else
 
43247
    ac_cpp_err=
 
43248
  fi
 
43249
else
 
43250
  ac_cpp_err=yes
 
43251
fi
 
43252
if test -z "$ac_cpp_err"; then
 
43253
  ac_header_preproc=yes
 
43254
else
 
43255
  echo "$as_me: failed program was:" >&5
 
43256
sed 's/^/| /' conftest.$ac_ext >&5
 
43257
 
 
43258
  ac_header_preproc=no
 
43259
fi
 
43260
rm -f conftest.err conftest.$ac_ext
 
43261
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
43262
echo "${ECHO_T}$ac_header_preproc" >&6
 
43263
 
 
43264
# So?  What about this header?
 
43265
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
43266
  yes:no: )
 
43267
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
43268
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
43269
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
43270
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
43271
    ac_header_preproc=yes
 
43272
    ;;
 
43273
  no:yes:* )
 
43274
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
43275
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
43276
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
43277
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
43278
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
43279
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
43280
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
43281
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
43282
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
43283
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
43284
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
43285
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
43286
    (
 
43287
      cat <<\_ASBOX
 
43288
## ------------------------------------------ ##
 
43289
## Report this to the AC_PACKAGE_NAME lists.  ##
 
43290
## ------------------------------------------ ##
 
43291
_ASBOX
 
43292
    ) |
 
43293
      sed "s/^/$as_me: WARNING:     /" >&2
 
43294
    ;;
 
43295
esac
 
43296
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
43297
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
43298
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
43299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
43300
else
 
43301
  eval "$as_ac_Header=\$ac_header_preproc"
 
43302
fi
 
43303
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
43304
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
43305
 
 
43306
fi
 
43307
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
43308
  cat >>confdefs.h <<_ACEOF
 
43309
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
43310
_ACEOF
 
43311
 
 
43312
fi
 
43313
 
 
43314
done
 
43315
 
 
43316
 
 
43317
for ac_func in nl_langinfo
 
43318
do
 
43319
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
43320
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
43321
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
43322
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
43323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
43324
else
 
43325
  cat >conftest.$ac_ext <<_ACEOF
 
43326
/* confdefs.h.  */
 
43327
_ACEOF
 
43328
cat confdefs.h >>conftest.$ac_ext
 
43329
cat >>conftest.$ac_ext <<_ACEOF
 
43330
/* end confdefs.h.  */
 
43331
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
43332
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
43333
#define $ac_func innocuous_$ac_func
 
43334
 
 
43335
/* System header to define __stub macros and hopefully few prototypes,
 
43336
    which can conflict with char $ac_func (); below.
 
43337
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
43338
    <limits.h> exists even on freestanding compilers.  */
 
43339
 
 
43340
#ifdef __STDC__
 
43341
# include <limits.h>
 
43342
#else
 
43343
# include <assert.h>
 
43344
#endif
 
43345
 
 
43346
#undef $ac_func
 
43347
 
 
43348
/* Override any gcc2 internal prototype to avoid an error.  */
 
43349
#ifdef __cplusplus
 
43350
extern "C"
 
43351
{
 
43352
#endif
 
43353
/* We use char because int might match the return type of a gcc2
 
43354
   builtin and then its argument prototype would still apply.  */
 
43355
char $ac_func ();
 
43356
/* The GNU C library defines this for functions which it implements
 
43357
    to always fail with ENOSYS.  Some functions are actually named
 
43358
    something starting with __ and the normal name is an alias.  */
 
43359
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
43360
choke me
 
43361
#else
 
43362
char (*f) () = $ac_func;
 
43363
#endif
 
43364
#ifdef __cplusplus
 
43365
}
 
43366
#endif
 
43367
 
 
43368
int
 
43369
main ()
 
43370
{
 
43371
return f != $ac_func;
 
43372
  ;
 
43373
  return 0;
 
43374
}
 
43375
_ACEOF
 
43376
rm -f conftest.$ac_objext conftest$ac_exeext
 
43377
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
43378
  (eval $ac_link) 2>conftest.er1
 
43379
  ac_status=$?
 
43380
  grep -v '^ *+' conftest.er1 >conftest.err
 
43381
  rm -f conftest.er1
 
43382
  cat conftest.err >&5
 
43383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43384
  (exit $ac_status); } &&
 
43385
         { ac_try='test -z "$ac_c_werror_flag"
 
43386
                         || test ! -s conftest.err'
 
43387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43388
  (eval $ac_try) 2>&5
 
43389
  ac_status=$?
 
43390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43391
  (exit $ac_status); }; } &&
 
43392
         { ac_try='test -s conftest$ac_exeext'
 
43393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
43394
  (eval $ac_try) 2>&5
 
43395
  ac_status=$?
 
43396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43397
  (exit $ac_status); }; }; then
 
43398
  eval "$as_ac_var=yes"
 
43399
else
 
43400
  echo "$as_me: failed program was:" >&5
 
43401
sed 's/^/| /' conftest.$ac_ext >&5
 
43402
 
 
43403
eval "$as_ac_var=no"
 
43404
fi
 
43405
rm -f conftest.err conftest.$ac_objext \
 
43406
      conftest$ac_exeext conftest.$ac_ext
 
43407
fi
 
43408
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
43409
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
43410
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
43411
  cat >>confdefs.h <<_ACEOF
 
43412
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
43413
_ACEOF
 
43414
 
 
43415
fi
 
43416
done
 
43417
 
 
43418
 
 
43419
 
 
43420
echo "${nl}Restore user-defined environment settings..."
 
43421
 
 
43422
 
 
43423
if test "x$apr_ste_save_CPPFLAGS" = "x"; then
 
43424
  EXTRA_CPPFLAGS="$CPPFLAGS"
 
43425
  CPPFLAGS=
 
43426
else
 
43427
  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
 
43428
    EXTRA_CPPFLAGS=
 
43429
  else
 
43430
    EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
 
43431
    CPPFLAGS="$apr_ste_save_CPPFLAGS"
 
43432
  fi
 
43433
fi
 
43434
if test "x$silent" != "xyes"; then
 
43435
  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
 
43436
  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
 
43437
fi
 
43438
 
 
43439
 
 
43440
 
 
43441
if test "x$apr_ste_save_CFLAGS" = "x"; then
 
43442
  EXTRA_CFLAGS="$CFLAGS"
 
43443
  CFLAGS=
 
43444
else
 
43445
  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
 
43446
    EXTRA_CFLAGS=
 
43447
  else
 
43448
    EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
 
43449
    CFLAGS="$apr_ste_save_CFLAGS"
 
43450
  fi
 
43451
fi
 
43452
if test "x$silent" != "xyes"; then
 
43453
  echo "  restoring CFLAGS to \"$CFLAGS\""
 
43454
  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
 
43455
fi
 
43456
 
 
43457
 
 
43458
 
 
43459
if test "x$apr_ste_save_LDFLAGS" = "x"; then
 
43460
  EXTRA_LDFLAGS="$LDFLAGS"
 
43461
  LDFLAGS=
 
43462
else
 
43463
  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
 
43464
    EXTRA_LDFLAGS=
 
43465
  else
 
43466
    EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
 
43467
    LDFLAGS="$apr_ste_save_LDFLAGS"
 
43468
  fi
 
43469
fi
 
43470
if test "x$silent" != "xyes"; then
 
43471
  echo "  restoring LDFLAGS to \"$LDFLAGS\""
 
43472
  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
 
43473
fi
 
43474
 
 
43475
 
 
43476
 
 
43477
if test "x$apr_ste_save_LIBS" = "x"; then
 
43478
  EXTRA_LIBS="$LIBS"
 
43479
  LIBS=
 
43480
else
 
43481
  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
 
43482
    EXTRA_LIBS=
 
43483
  else
 
43484
    EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
 
43485
    LIBS="$apr_ste_save_LIBS"
 
43486
  fi
 
43487
fi
 
43488
if test "x$silent" != "xyes"; then
 
43489
  echo "  restoring LIBS to \"$LIBS\""
 
43490
  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
 
43491
fi
 
43492
 
 
43493
 
 
43494
 
 
43495
if test "x$apr_ste_save_INCLUDES" = "x"; then
 
43496
  EXTRA_INCLUDES="$INCLUDES"
 
43497
  INCLUDES=
 
43498
else
 
43499
  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
 
43500
    EXTRA_INCLUDES=
 
43501
  else
 
43502
    EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
 
43503
    INCLUDES="$apr_ste_save_INCLUDES"
 
43504
  fi
 
43505
fi
 
43506
if test "x$silent" != "xyes"; then
 
43507
  echo "  restoring INCLUDES to \"$INCLUDES\""
 
43508
  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
 
43509
fi
 
43510
 
 
43511
 
 
43512
 
 
43513
 
 
43514
 
 
43515
 
 
43516
 
 
43517
 
 
43518
 
 
43519
 
 
43520
 
 
43521
 
 
43522
 
 
43523
 
 
43524
 
 
43525
 
 
43526
 
 
43527
 
 
43528
# Use -no-install to link the test programs on all platforms
 
43529
# but Darwin, where it would cause the programs to be linked
 
43530
# against installed versions of libapr instead of those just
 
43531
# built.
 
43532
case $host in
 
43533
*-apple-darwin*) LT_NO_INSTALL="" ;;
 
43534
*) LT_NO_INSTALL="-no-install" ;;
 
43535
esac
 
43536
 
 
43537
 
 
43538
#
 
43539
# BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
 
43540
#
 
43541
case $host in
 
43542
*bsdi*)
 
43543
    # Check whether they've installed GNU make
 
43544
    if make --version > /dev/null 2>&1; then
 
43545
        INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
 
43546
        INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
 
43547
    else
 
43548
        # BSDi make
 
43549
        INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
 
43550
        INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
 
43551
    fi
 
43552
    ;;
 
43553
*)
 
43554
    INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
 
43555
    INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
 
43556
    ;;
 
43557
esac
 
43558
 
 
43559
 
 
43560
 
 
43561
                                                            ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc"
 
43562
 
 
43563
 
 
43564
if test -d $srcdir/test; then
 
43565
                       ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
 
43566
 
 
43567
fi
 
43568
 
 
43569
dir=include/arch/unix
 
43570
test -d $dir || $MKDIR $dir
 
43571
 
 
43572
          ac_config_commands="$ac_config_commands default"
 
43573
 
 
43574
 
 
43575
cat >confcache <<\_ACEOF
 
43576
# This file is a shell script that caches the results of configure
 
43577
# tests run on this system so they can be shared between configure
 
43578
# scripts and configure runs, see configure's option --config-cache.
 
43579
# It is not useful on other systems.  If it contains results you don't
 
43580
# want to keep, you may remove or edit it.
 
43581
#
 
43582
# config.status only pays attention to the cache file if you give it
 
43583
# the --recheck option to rerun configure.
 
43584
#
 
43585
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
43586
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
43587
# following values.
 
43588
 
 
43589
_ACEOF
 
43590
 
 
43591
# The following way of writing the cache mishandles newlines in values,
 
43592
# but we know of no workaround that is simple, portable, and efficient.
 
43593
# So, don't put newlines in cache variables' values.
 
43594
# Ultrix sh set writes to stderr and can't be redirected directly,
 
43595
# and sets the high bit in the cache file unless we assign to the vars.
 
43596
{
 
43597
  (set) 2>&1 |
 
43598
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
43599
    *ac_space=\ *)
 
43600
      # `set' does not quote correctly, so add quotes (double-quote
 
43601
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
43602
      sed -n \
 
43603
        "s/'/'\\\\''/g;
 
43604
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
43605
      ;;
 
43606
    *)
 
43607
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
43608
      sed -n \
 
43609
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
43610
      ;;
 
43611
    esac;
 
43612
} |
 
43613
  sed '
 
43614
     t clear
 
43615
     : clear
 
43616
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
43617
     t end
 
43618
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
43619
     : end' >>confcache
 
43620
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
43621
  if test -w $cache_file; then
 
43622
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
43623
    cat confcache >$cache_file
 
43624
  else
 
43625
    echo "not updating unwritable cache $cache_file"
 
43626
  fi
 
43627
fi
 
43628
rm -f confcache
 
43629
 
 
43630
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
43631
# Let make expand exec_prefix.
 
43632
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
43633
 
 
43634
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
43635
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
43636
# trailing colons and then remove the whole line if VPATH becomes empty
 
43637
# (actually we leave an empty line to preserve line numbers).
 
43638
if test "x$srcdir" = x.; then
 
43639
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
43640
s/:*\$(srcdir):*/:/;
 
43641
s/:*\${srcdir}:*/:/;
 
43642
s/:*@srcdir@:*/:/;
 
43643
s/^\([^=]*=[     ]*\):*/\1/;
 
43644
s/:*$//;
 
43645
s/^[^=]*=[       ]*$//;
 
43646
}'
 
43647
fi
 
43648
 
 
43649
DEFS=-DHAVE_CONFIG_H
 
43650
 
 
43651
ac_libobjs=
 
43652
ac_ltlibobjs=
 
43653
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
43654
  # 1. Remove the extension, and $U if already installed.
 
43655
  ac_i=`echo "$ac_i" |
 
43656
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
43657
  # 2. Add them.
 
43658
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
43659
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
43660
done
 
43661
LIBOBJS=$ac_libobjs
 
43662
 
 
43663
LTLIBOBJS=$ac_ltlibobjs
 
43664
 
 
43665
 
 
43666
 
 
43667
: ${CONFIG_STATUS=./config.status}
 
43668
ac_clean_files_save=$ac_clean_files
 
43669
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
43670
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
43671
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
43672
cat >$CONFIG_STATUS <<_ACEOF
 
43673
#! $SHELL
 
43674
# Generated by $as_me.
 
43675
# Run this file to recreate the current configuration.
 
43676
# Compiler output produced by configure, useful for debugging
 
43677
# configure, is in config.log if it exists.
 
43678
 
 
43679
debug=false
 
43680
ac_cs_recheck=false
 
43681
ac_cs_silent=false
 
43682
SHELL=\${CONFIG_SHELL-$SHELL}
 
43683
_ACEOF
 
43684
 
 
43685
cat >>$CONFIG_STATUS <<\_ACEOF
 
43686
## --------------------- ##
 
43687
## M4sh Initialization.  ##
 
43688
## --------------------- ##
 
43689
 
 
43690
# Be Bourne compatible
 
43691
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
43692
  emulate sh
 
43693
  NULLCMD=:
 
43694
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
43695
  # is contrary to our usage.  Disable this feature.
 
43696
  alias -g '${1+"$@"}'='"$@"'
 
43697
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
43698
  set -o posix
 
43699
fi
 
43700
DUALCASE=1; export DUALCASE # for MKS sh
 
43701
 
 
43702
# Support unset when possible.
 
43703
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
43704
  as_unset=unset
 
43705
else
 
43706
  as_unset=false
 
43707
fi
 
43708
 
 
43709
 
 
43710
# Work around bugs in pre-3.0 UWIN ksh.
 
43711
$as_unset ENV MAIL MAILPATH
 
43712
PS1='$ '
 
43713
PS2='> '
 
43714
PS4='+ '
 
43715
 
 
43716
# NLS nuisances.
 
43717
for as_var in \
 
43718
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43719
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
43720
  LC_TELEPHONE LC_TIME
 
43721
do
 
43722
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
43723
    eval $as_var=C; export $as_var
 
43724
  else
 
43725
    $as_unset $as_var
 
43726
  fi
 
43727
done
 
43728
 
 
43729
# Required to use basename.
 
43730
if expr a : '\(a\)' >/dev/null 2>&1; then
 
43731
  as_expr=expr
 
43732
else
 
43733
  as_expr=false
 
43734
fi
 
43735
 
 
43736
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
43737
  as_basename=basename
 
43738
else
 
43739
  as_basename=false
 
43740
fi
 
43741
 
 
43742
 
 
43743
# Name of the executable.
 
43744
as_me=`$as_basename "$0" ||
 
43745
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
43746
         X"$0" : 'X\(//\)$' \| \
 
43747
         X"$0" : 'X\(/\)$' \| \
 
43748
         .     : '\(.\)' 2>/dev/null ||
 
43749
echo X/"$0" |
 
43750
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
43751
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
43752
          /^X\/\(\/\).*/{ s//\1/; q; }
 
43753
          s/.*/./; q'`
 
43754
 
 
43755
 
 
43756
# PATH needs CR, and LINENO needs CR and PATH.
 
43757
# Avoid depending upon Character Ranges.
 
43758
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
43759
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
43760
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
43761
as_cr_digits='0123456789'
 
43762
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
43763
 
 
43764
# The user is always right.
 
43765
if test "${PATH_SEPARATOR+set}" != set; then
 
43766
  echo "#! /bin/sh" >conf$$.sh
 
43767
  echo  "exit 0"   >>conf$$.sh
 
43768
  chmod +x conf$$.sh
 
43769
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
43770
    PATH_SEPARATOR=';'
 
43771
  else
 
43772
    PATH_SEPARATOR=:
 
43773
  fi
 
43774
  rm -f conf$$.sh
 
43775
fi
 
43776
 
 
43777
 
 
43778
  as_lineno_1=$LINENO
 
43779
  as_lineno_2=$LINENO
 
43780
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
43781
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
43782
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
43783
  # Find who we are.  Look in the path if we contain no path at all
 
43784
  # relative or not.
 
43785
  case $0 in
 
43786
    *[\\/]* ) as_myself=$0 ;;
 
43787
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
43788
for as_dir in $PATH
 
43789
do
 
43790
  IFS=$as_save_IFS
 
43791
  test -z "$as_dir" && as_dir=.
 
43792
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
43793
done
 
43794
 
 
43795
       ;;
 
43796
  esac
 
43797
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
43798
  # in which case we are not to be found in the path.
 
43799
  if test "x$as_myself" = x; then
 
43800
    as_myself=$0
 
43801
  fi
 
43802
  if test ! -f "$as_myself"; then
 
43803
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
43804
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
43805
   { (exit 1); exit 1; }; }
 
43806
  fi
 
43807
  case $CONFIG_SHELL in
 
43808
  '')
 
43809
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
43810
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
43811
do
 
43812
  IFS=$as_save_IFS
 
43813
  test -z "$as_dir" && as_dir=.
 
43814
  for as_base in sh bash ksh sh5; do
 
43815
         case $as_dir in
 
43816
         /*)
 
43817
           if ("$as_dir/$as_base" -c '
 
43818
  as_lineno_1=$LINENO
 
43819
  as_lineno_2=$LINENO
 
43820
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
43821
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
43822
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
43823
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
43824
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
43825
             CONFIG_SHELL=$as_dir/$as_base
 
43826
             export CONFIG_SHELL
 
43827
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
43828
           fi;;
 
43829
         esac
 
43830
       done
 
43831
done
 
43832
;;
 
43833
  esac
 
43834
 
 
43835
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
43836
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
43837
  # line-number line before each line; the second 'sed' does the real
 
43838
  # work.  The second script uses 'N' to pair each line-number line
 
43839
  # with the numbered line, and appends trailing '-' during
 
43840
  # substitution so that $LINENO is not a special case at line end.
 
43841
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
43842
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
43843
  sed '=' <$as_myself |
 
43844
    sed '
 
43845
      N
 
43846
      s,$,-,
 
43847
      : loop
 
43848
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
43849
      t loop
 
43850
      s,-$,,
 
43851
      s,^['$as_cr_digits']*\n,,
 
43852
    ' >$as_me.lineno &&
 
43853
  chmod +x $as_me.lineno ||
 
43854
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
43855
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
43856
   { (exit 1); exit 1; }; }
 
43857
 
 
43858
  # Don't try to exec as it changes $[0], causing all sort of problems
 
43859
  # (the dirname of $[0] is not the place where we might find the
 
43860
  # original and so on.  Autoconf is especially sensible to this).
 
43861
  . ./$as_me.lineno
 
43862
  # Exit status is that of the last command.
 
43863
  exit
 
43864
}
 
43865
 
 
43866
 
 
43867
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
43868
  *c*,-n*) ECHO_N= ECHO_C='
 
43869
' ECHO_T='      ' ;;
 
43870
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
43871
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
43872
esac
 
43873
 
 
43874
if expr a : '\(a\)' >/dev/null 2>&1; then
 
43875
  as_expr=expr
 
43876
else
 
43877
  as_expr=false
 
43878
fi
 
43879
 
 
43880
rm -f conf$$ conf$$.exe conf$$.file
 
43881
echo >conf$$.file
 
43882
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
43883
  # We could just check for DJGPP; but this test a) works b) is more generic
 
43884
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
43885
  if test -f conf$$.exe; then
 
43886
    # Don't use ln at all; we don't have any links
 
43887
    as_ln_s='cp -p'
 
43888
  else
 
43889
    as_ln_s='ln -s'
 
43890
  fi
 
43891
elif ln conf$$.file conf$$ 2>/dev/null; then
 
43892
  as_ln_s=ln
 
43893
else
 
43894
  as_ln_s='cp -p'
 
43895
fi
 
43896
rm -f conf$$ conf$$.exe conf$$.file
 
43897
 
 
43898
if mkdir -p . 2>/dev/null; then
 
43899
  as_mkdir_p=:
 
43900
else
 
43901
  test -d ./-p && rmdir ./-p
 
43902
  as_mkdir_p=false
 
43903
fi
 
43904
 
 
43905
as_executable_p="test -f"
 
43906
 
 
43907
# Sed expression to map a string onto a valid CPP name.
 
43908
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
43909
 
 
43910
# Sed expression to map a string onto a valid variable name.
 
43911
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
43912
 
 
43913
 
 
43914
# IFS
 
43915
# We need space, tab and new line, in precisely that order.
 
43916
as_nl='
 
43917
'
 
43918
IFS="   $as_nl"
 
43919
 
 
43920
# CDPATH.
 
43921
$as_unset CDPATH
 
43922
 
 
43923
exec 6>&1
 
43924
 
 
43925
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
43926
# report actual input values of CONFIG_FILES etc. instead of their
 
43927
# values after options handling.  Logging --version etc. is OK.
 
43928
exec 5>>config.log
 
43929
{
 
43930
  echo
 
43931
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
43932
## Running $as_me. ##
 
43933
_ASBOX
 
43934
} >&5
 
43935
cat >&5 <<_CSEOF
 
43936
 
 
43937
This file was extended by $as_me, which was
 
43938
generated by GNU Autoconf 2.59.  Invocation command line was
 
43939
 
 
43940
  CONFIG_FILES    = $CONFIG_FILES
 
43941
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
43942
  CONFIG_LINKS    = $CONFIG_LINKS
 
43943
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
43944
  $ $0 $@
 
43945
 
 
43946
_CSEOF
 
43947
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
43948
echo >&5
 
43949
_ACEOF
 
43950
 
 
43951
# Files that config.status was made for.
 
43952
if test -n "$ac_config_files"; then
 
43953
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
43954
fi
 
43955
 
 
43956
if test -n "$ac_config_headers"; then
 
43957
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
43958
fi
 
43959
 
 
43960
if test -n "$ac_config_links"; then
 
43961
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
43962
fi
 
43963
 
 
43964
if test -n "$ac_config_commands"; then
 
43965
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
43966
fi
 
43967
 
 
43968
cat >>$CONFIG_STATUS <<\_ACEOF
 
43969
 
 
43970
ac_cs_usage="\
 
43971
\`$as_me' instantiates files from templates according to the
 
43972
current configuration.
 
43973
 
 
43974
Usage: $0 [OPTIONS] [FILE]...
 
43975
 
 
43976
  -h, --help       print this help, then exit
 
43977
  -V, --version    print version number, then exit
 
43978
  -q, --quiet      do not print progress messages
 
43979
  -d, --debug      don't remove temporary files
 
43980
      --recheck    update $as_me by reconfiguring in the same conditions
 
43981
  --file=FILE[:TEMPLATE]
 
43982
                   instantiate the configuration file FILE
 
43983
  --header=FILE[:TEMPLATE]
 
43984
                   instantiate the configuration header FILE
 
43985
 
 
43986
Configuration files:
 
43987
$config_files
 
43988
 
 
43989
Configuration headers:
 
43990
$config_headers
 
43991
 
 
43992
Configuration commands:
 
43993
$config_commands
 
43994
 
 
43995
Report bugs to <bug-autoconf@gnu.org>."
 
43996
_ACEOF
 
43997
 
 
43998
cat >>$CONFIG_STATUS <<_ACEOF
 
43999
ac_cs_version="\\
 
44000
config.status
 
44001
configured by $0, generated by GNU Autoconf 2.59,
 
44002
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
44003
 
 
44004
Copyright (C) 2003 Free Software Foundation, Inc.
 
44005
This config.status script is free software; the Free Software Foundation
 
44006
gives unlimited permission to copy, distribute and modify it."
 
44007
srcdir=$srcdir
 
44008
INSTALL="$INSTALL"
 
44009
_ACEOF
 
44010
 
 
44011
cat >>$CONFIG_STATUS <<\_ACEOF
 
44012
# If no file are specified by the user, then we need to provide default
 
44013
# value.  By we need to know if files were specified by the user.
 
44014
ac_need_defaults=:
 
44015
while test $# != 0
 
44016
do
 
44017
  case $1 in
 
44018
  --*=*)
 
44019
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
44020
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
44021
    ac_shift=:
 
44022
    ;;
 
44023
  -*)
 
44024
    ac_option=$1
 
44025
    ac_optarg=$2
 
44026
    ac_shift=shift
 
44027
    ;;
 
44028
  *) # This is not an option, so the user has probably given explicit
 
44029
     # arguments.
 
44030
     ac_option=$1
 
44031
     ac_need_defaults=false;;
 
44032
  esac
 
44033
 
 
44034
  case $ac_option in
 
44035
  # Handling of the options.
 
44036
_ACEOF
 
44037
cat >>$CONFIG_STATUS <<\_ACEOF
 
44038
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
44039
    ac_cs_recheck=: ;;
 
44040
  --version | --vers* | -V )
 
44041
    echo "$ac_cs_version"; exit 0 ;;
 
44042
  --he | --h)
 
44043
    # Conflict between --help and --header
 
44044
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
44045
Try \`$0 --help' for more information." >&5
 
44046
echo "$as_me: error: ambiguous option: $1
 
44047
Try \`$0 --help' for more information." >&2;}
 
44048
   { (exit 1); exit 1; }; };;
 
44049
  --help | --hel | -h )
 
44050
    echo "$ac_cs_usage"; exit 0 ;;
 
44051
  --debug | --d* | -d )
 
44052
    debug=: ;;
 
44053
  --file | --fil | --fi | --f )
 
44054
    $ac_shift
 
44055
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
44056
    ac_need_defaults=false;;
 
44057
  --header | --heade | --head | --hea )
 
44058
    $ac_shift
 
44059
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
44060
    ac_need_defaults=false;;
 
44061
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
44062
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
44063
    ac_cs_silent=: ;;
 
44064
 
 
44065
  # This is an error.
 
44066
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
44067
Try \`$0 --help' for more information." >&5
 
44068
echo "$as_me: error: unrecognized option: $1
 
44069
Try \`$0 --help' for more information." >&2;}
 
44070
   { (exit 1); exit 1; }; } ;;
 
44071
 
 
44072
  *) ac_config_targets="$ac_config_targets $1" ;;
 
44073
 
 
44074
  esac
 
44075
  shift
 
44076
done
 
44077
 
 
44078
ac_configure_extra_args=
 
44079
 
 
44080
if $ac_cs_silent; then
 
44081
  exec 6>/dev/null
 
44082
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
44083
fi
 
44084
 
 
44085
_ACEOF
 
44086
cat >>$CONFIG_STATUS <<_ACEOF
 
44087
if \$ac_cs_recheck; then
 
44088
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
44089
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
44090
fi
 
44091
 
 
44092
_ACEOF
 
44093
 
 
44094
cat >>$CONFIG_STATUS <<_ACEOF
 
44095
#
 
44096
# INIT-COMMANDS section.
 
44097
#
 
44098
 
 
44099
 
 
44100
 
 
44101
# Commands run at the beginning of config.status:
 
44102
APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
 
44103
APR_MAJOR_VERSION=$APR_MAJOR_VERSION
 
44104
 
 
44105
for apri in \${APR_SAVE_HEADERS}; do
 
44106
  test -r \${apri} && mv \${apri} \${apri}.save
 
44107
done
 
44108
 
 
44109
 
 
44110
_ACEOF
 
44111
 
 
44112
 
 
44113
 
 
44114
cat >>$CONFIG_STATUS <<\_ACEOF
 
44115
for ac_config_target in $ac_config_targets
 
44116
do
 
44117
  case "$ac_config_target" in
 
44118
  # Handling of arguments.
 
44119
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
44120
  "include/apr.h" ) CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
 
44121
  "build/apr_rules.mk" ) CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
 
44122
  "build/pkg/pkginfo" ) CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
 
44123
  "apr-$APR_MAJOR_VERSION-config" ) CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
 
44124
  "apr.pc" ) CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
 
44125
  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
44126
  "test/internal/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
 
44127
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
44128
  "include/arch/unix/apr_private.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
 
44129
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
44130
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
44131
   { (exit 1); exit 1; }; };;
 
44132
  esac
 
44133
done
 
44134
 
 
44135
# If the user did not use the arguments to specify the items to instantiate,
 
44136
# then the envvar interface is used.  Set only those that are not.
 
44137
# We use the long form for the default assignment because of an extremely
 
44138
# bizarre bug on SunOS 4.1.3.
 
44139
if $ac_need_defaults; then
 
44140
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
44141
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
44142
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
44143
fi
 
44144
 
 
44145
# Have a temporary directory for convenience.  Make it in the build tree
 
44146
# simply because there is no reason to put it here, and in addition,
 
44147
# creating and moving files from /tmp can sometimes cause problems.
 
44148
# Create a temporary directory, and hook for its removal unless debugging.
 
44149
$debug ||
 
44150
{
 
44151
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
44152
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
44153
}
 
44154
 
 
44155
# Create a (secure) tmp directory for tmp files.
 
44156
 
 
44157
{
 
44158
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
44159
  test -n "$tmp" && test -d "$tmp"
 
44160
}  ||
 
44161
{
 
44162
  tmp=./confstat$$-$RANDOM
 
44163
  (umask 077 && mkdir $tmp)
 
44164
} ||
 
44165
{
 
44166
   echo "$me: cannot create a temporary directory in ." >&2
 
44167
   { (exit 1); exit 1; }
 
44168
}
 
44169
 
 
44170
_ACEOF
 
44171
 
 
44172
cat >>$CONFIG_STATUS <<_ACEOF
 
44173
 
 
44174
#
 
44175
# CONFIG_FILES section.
 
44176
#
 
44177
 
 
44178
# No need to generate the scripts if there are no CONFIG_FILES.
 
44179
# This happens for instance when ./config.status config.h
 
44180
if test -n "\$CONFIG_FILES"; then
 
44181
  # Protect against being on the right side of a sed subst in config.status.
 
44182
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
44183
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
44184
s,@SHELL@,$SHELL,;t t
 
44185
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
44186
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
44187
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
44188
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
44189
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
44190
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
44191
s,@exec_prefix@,$exec_prefix,;t t
 
44192
s,@prefix@,$prefix,;t t
 
44193
s,@program_transform_name@,$program_transform_name,;t t
 
44194
s,@bindir@,$bindir,;t t
 
44195
s,@sbindir@,$sbindir,;t t
 
44196
s,@libexecdir@,$libexecdir,;t t
 
44197
s,@datadir@,$datadir,;t t
 
44198
s,@sysconfdir@,$sysconfdir,;t t
 
44199
s,@sharedstatedir@,$sharedstatedir,;t t
 
44200
s,@localstatedir@,$localstatedir,;t t
 
44201
s,@libdir@,$libdir,;t t
 
44202
s,@includedir@,$includedir,;t t
 
44203
s,@oldincludedir@,$oldincludedir,;t t
 
44204
s,@infodir@,$infodir,;t t
 
44205
s,@mandir@,$mandir,;t t
 
44206
s,@build_alias@,$build_alias,;t t
 
44207
s,@host_alias@,$host_alias,;t t
 
44208
s,@target_alias@,$target_alias,;t t
 
44209
s,@DEFS@,$DEFS,;t t
 
44210
s,@ECHO_C@,$ECHO_C,;t t
 
44211
s,@ECHO_N@,$ECHO_N,;t t
 
44212
s,@ECHO_T@,$ECHO_T,;t t
 
44213
s,@LIBS@,$LIBS,;t t
 
44214
s,@build@,$build,;t t
 
44215
s,@build_cpu@,$build_cpu,;t t
 
44216
s,@build_vendor@,$build_vendor,;t t
 
44217
s,@build_os@,$build_os,;t t
 
44218
s,@host@,$host,;t t
 
44219
s,@host_cpu@,$host_cpu,;t t
 
44220
s,@host_vendor@,$host_vendor,;t t
 
44221
s,@host_os@,$host_os,;t t
 
44222
s,@target@,$target,;t t
 
44223
s,@target_cpu@,$target_cpu,;t t
 
44224
s,@target_vendor@,$target_vendor,;t t
 
44225
s,@target_os@,$target_os,;t t
 
44226
s,@apr_srcdir@,$apr_srcdir,;t t
 
44227
s,@apr_builddir@,$apr_builddir,;t t
 
44228
s,@APR_CONFIG_LOCATION@,$APR_CONFIG_LOCATION,;t t
 
44229
s,@top_builddir@,$top_builddir,;t t
 
44230
s,@apr_builders@,$apr_builders,;t t
 
44231
s,@APR_DOTTED_VERSION@,$APR_DOTTED_VERSION,;t t
 
44232
s,@APR_MAJOR_VERSION@,$APR_MAJOR_VERSION,;t t
 
44233
s,@CC@,$CC,;t t
 
44234
s,@CFLAGS@,$CFLAGS,;t t
 
44235
s,@LDFLAGS@,$LDFLAGS,;t t
 
44236
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
44237
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
44238
s,@EXEEXT@,$EXEEXT,;t t
 
44239
s,@OBJEXT@,$OBJEXT,;t t
 
44240
s,@SET_MAKE@,$SET_MAKE,;t t
 
44241
s,@CPP@,$CPP,;t t
 
44242
s,@AWK@,$AWK,;t t
 
44243
s,@LN_S@,$LN_S,;t t
 
44244
s,@RANLIB@,$RANLIB,;t t
 
44245
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
44246
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
44247
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
44248
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
44249
s,@RM@,$RM,;t t
 
44250
s,@AS@,$AS,;t t
 
44251
s,@ASCPP@,$ASCPP,;t t
 
44252
s,@AR@,$AR,;t t
 
44253
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
44254
s,@EGREP@,$EGREP,;t t
 
44255
s,@apr_charset_ebcdic@,$apr_charset_ebcdic,;t t
 
44256
s,@APR_LIBNAME@,$APR_LIBNAME,;t t
 
44257
s,@ECHO@,$ECHO,;t t
 
44258
s,@STRIP@,$STRIP,;t t
 
44259
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
44260
s,@CXX@,$CXX,;t t
 
44261
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
44262
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
44263
s,@CXXCPP@,$CXXCPP,;t t
 
44264
s,@F77@,$F77,;t t
 
44265
s,@FFLAGS@,$FFLAGS,;t t
 
44266
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
44267
s,@LIBTOOL@,$LIBTOOL,;t t
 
44268
s,@installbuilddir@,$installbuilddir,;t t
 
44269
s,@lt_compile@,$lt_compile,;t t
 
44270
s,@link@,$link,;t t
 
44271
s,@so_ext@,$so_ext,;t t
 
44272
s,@lib_target@,$lib_target,;t t
 
44273
s,@export_lib_target@,$export_lib_target,;t t
 
44274
s,@shlibpath_var@,$shlibpath_var,;t t
 
44275
s,@LTFLAGS@,$LTFLAGS,;t t
 
44276
s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
 
44277
s,@MKDEP@,$MKDEP,;t t
 
44278
s,@OBJECTS_PLATFORM@,$OBJECTS_PLATFORM,;t t
 
44279
s,@proc_mutex_is_global@,$proc_mutex_is_global,;t t
 
44280
s,@eolstr@,$eolstr,;t t
 
44281
s,@INSTALL_SUBDIRS@,$INSTALL_SUBDIRS,;t t
 
44282
s,@threads@,$threads,;t t
 
44283
s,@have_sigsuspend@,$have_sigsuspend,;t t
 
44284
s,@have_sigwait@,$have_sigwait,;t t
 
44285
s,@useshmgetanon@,$useshmgetanon,;t t
 
44286
s,@usemmapzero@,$usemmapzero,;t t
 
44287
s,@usemmapanon@,$usemmapanon,;t t
 
44288
s,@haveshmgetanon@,$haveshmgetanon,;t t
 
44289
s,@havemmapzero@,$havemmapzero,;t t
 
44290
s,@havemmapanon@,$havemmapanon,;t t
 
44291
s,@usemmaptmp@,$usemmaptmp,;t t
 
44292
s,@usemmapshm@,$usemmapshm,;t t
 
44293
s,@useshmget@,$useshmget,;t t
 
44294
s,@usebeosarea@,$usebeosarea,;t t
 
44295
s,@useos2shm@,$useos2shm,;t t
 
44296
s,@havemmaptmp@,$havemmaptmp,;t t
 
44297
s,@havemmapshm@,$havemmapshm,;t t
 
44298
s,@haveshmget@,$haveshmget,;t t
 
44299
s,@havebeosarea@,$havebeosarea,;t t
 
44300
s,@haveos2shm@,$haveos2shm,;t t
 
44301
s,@sharedmem@,$sharedmem,;t t
 
44302
s,@sendfile@,$sendfile,;t t
 
44303
s,@apr_inaddr_none@,$apr_inaddr_none,;t t
 
44304
s,@fork@,$fork,;t t
 
44305
s,@have_inet_addr@,$have_inet_addr,;t t
 
44306
s,@tcp_nodelay_inherited@,$tcp_nodelay_inherited,;t t
 
44307
s,@o_nonblock_inherited@,$o_nonblock_inherited,;t t
 
44308
s,@have_inet_network@,$have_inet_network,;t t
 
44309
s,@have_sigaction@,$have_sigaction,;t t
 
44310
s,@have_setrlimit@,$have_setrlimit,;t t
 
44311
s,@have_getrlimit@,$have_getrlimit,;t t
 
44312
s,@mmap@,$mmap,;t t
 
44313
s,@have_memmove@,$have_memmove,;t t
 
44314
s,@arpa_ineth@,$arpa_ineth,;t t
 
44315
s,@conioh@,$conioh,;t t
 
44316
s,@ctypeh@,$ctypeh,;t t
 
44317
s,@crypth@,$crypth,;t t
 
44318
s,@errnoh@,$errnoh,;t t
 
44319
s,@direnth@,$direnth,;t t
 
44320
s,@fcntlh@,$fcntlh,;t t
 
44321
s,@ioh@,$ioh,;t t
 
44322
s,@limitsh@,$limitsh,;t t
 
44323
s,@netdbh@,$netdbh,;t t
 
44324
s,@sys_syslimitsh@,$sys_syslimitsh,;t t
 
44325
s,@netinet_inh@,$netinet_inh,;t t
 
44326
s,@netinet_sctph@,$netinet_sctph,;t t
 
44327
s,@netinet_sctp_uioh@,$netinet_sctp_uioh,;t t
 
44328
s,@netinet_tcph@,$netinet_tcph,;t t
 
44329
s,@stdargh@,$stdargh,;t t
 
44330
s,@stdioh@,$stdioh,;t t
 
44331
s,@stdlibh@,$stdlibh,;t t
 
44332
s,@stringh@,$stringh,;t t
 
44333
s,@stringsh@,$stringsh,;t t
 
44334
s,@sys_ioctlh@,$sys_ioctlh,;t t
 
44335
s,@sys_sendfileh@,$sys_sendfileh,;t t
 
44336
s,@sys_signalh@,$sys_signalh,;t t
 
44337
s,@sys_socketh@,$sys_socketh,;t t
 
44338
s,@sys_sockioh@,$sys_sockioh,;t t
 
44339
s,@sys_typesh@,$sys_typesh,;t t
 
44340
s,@sys_timeh@,$sys_timeh,;t t
 
44341
s,@sys_uioh@,$sys_uioh,;t t
 
44342
s,@sys_unh@,$sys_unh,;t t
 
44343
s,@timeh@,$timeh,;t t
 
44344
s,@unistdh@,$unistdh,;t t
 
44345
s,@signalh@,$signalh,;t t
 
44346
s,@sys_waith@,$sys_waith,;t t
 
44347
s,@pthreadh@,$pthreadh,;t t
 
44348
s,@semaphoreh@,$semaphoreh,;t t
 
44349
s,@voidp_size@,$voidp_size,;t t
 
44350
s,@short_value@,$short_value,;t t
 
44351
s,@int_value@,$int_value,;t t
 
44352
s,@long_value@,$long_value,;t t
 
44353
s,@int64_value@,$int64_value,;t t
 
44354
s,@off_t_value@,$off_t_value,;t t
 
44355
s,@size_t_value@,$size_t_value,;t t
 
44356
s,@ssize_t_value@,$ssize_t_value,;t t
 
44357
s,@socklen_t_value@,$socklen_t_value,;t t
 
44358
s,@int64_t_fmt@,$int64_t_fmt,;t t
 
44359
s,@uint64_t_fmt@,$uint64_t_fmt,;t t
 
44360
s,@uint64_t_hex_fmt@,$uint64_t_hex_fmt,;t t
 
44361
s,@ssize_t_fmt@,$ssize_t_fmt,;t t
 
44362
s,@size_t_fmt@,$size_t_fmt,;t t
 
44363
s,@off_t_fmt@,$off_t_fmt,;t t
 
44364
s,@pid_t_fmt@,$pid_t_fmt,;t t
 
44365
s,@int64_literal@,$int64_literal,;t t
 
44366
s,@uint64_literal@,$uint64_literal,;t t
 
44367
s,@stdint@,$stdint,;t t
 
44368
s,@bigendian@,$bigendian,;t t
 
44369
s,@aprlfs@,$aprlfs,;t t
 
44370
s,@have_strnicmp@,$have_strnicmp,;t t
 
44371
s,@have_strncasecmp@,$have_strncasecmp,;t t
 
44372
s,@have_stricmp@,$have_stricmp,;t t
 
44373
s,@have_strcasecmp@,$have_strcasecmp,;t t
 
44374
s,@have_strdup@,$have_strdup,;t t
 
44375
s,@have_strstr@,$have_strstr,;t t
 
44376
s,@have_memchr@,$have_memchr,;t t
 
44377
s,@aprdso@,$aprdso,;t t
 
44378
s,@oc@,$oc,;t t
 
44379
s,@struct_rlimit@,$struct_rlimit,;t t
 
44380
s,@have_union_semun@,$have_union_semun,;t t
 
44381
s,@hasflockser@,$hasflockser,;t t
 
44382
s,@hassysvser@,$hassysvser,;t t
 
44383
s,@hasposixser@,$hasposixser,;t t
 
44384
s,@hasfcntlser@,$hasfcntlser,;t t
 
44385
s,@hasprocpthreadser@,$hasprocpthreadser,;t t
 
44386
s,@flockser@,$flockser,;t t
 
44387
s,@sysvser@,$sysvser,;t t
 
44388
s,@posixser@,$posixser,;t t
 
44389
s,@fcntlser@,$fcntlser,;t t
 
44390
s,@procpthreadser@,$procpthreadser,;t t
 
44391
s,@pthreadser@,$pthreadser,;t t
 
44392
s,@proclockglobal@,$proclockglobal,;t t
 
44393
s,@rand@,$rand,;t t
 
44394
s,@osuuid@,$osuuid,;t t
 
44395
s,@have_in_addr@,$have_in_addr,;t t
 
44396
s,@file_as_socket@,$file_as_socket,;t t
 
44397
s,@apr_tcp_nopush_flag@,$apr_tcp_nopush_flag,;t t
 
44398
s,@have_corkable_tcp@,$have_corkable_tcp,;t t
 
44399
s,@acceptfilter@,$acceptfilter,;t t
 
44400
s,@have_sctp@,$have_sctp,;t t
 
44401
s,@have_sa_storage@,$have_sa_storage,;t t
 
44402
s,@have_ipv6@,$have_ipv6,;t t
 
44403
s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
 
44404
s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
 
44405
s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
 
44406
s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
 
44407
s,@EXTRA_INCLUDES@,$EXTRA_INCLUDES,;t t
 
44408
s,@NOTEST_CPPFLAGS@,$NOTEST_CPPFLAGS,;t t
 
44409
s,@NOTEST_CFLAGS@,$NOTEST_CFLAGS,;t t
 
44410
s,@NOTEST_LDFLAGS@,$NOTEST_LDFLAGS,;t t
 
44411
s,@NOTEST_LIBS@,$NOTEST_LIBS,;t t
 
44412
s,@NOTEST_INCLUDES@,$NOTEST_INCLUDES,;t t
 
44413
s,@LDLIBS@,$LDLIBS,;t t
 
44414
s,@INCLUDES@,$INCLUDES,;t t
 
44415
s,@OSDIR@,$OSDIR,;t t
 
44416
s,@DEFAULT_OSDIR@,$DEFAULT_OSDIR,;t t
 
44417
s,@LIBTOOL_LIBS@,$LIBTOOL_LIBS,;t t
 
44418
s,@LT_NO_INSTALL@,$LT_NO_INSTALL,;t t
 
44419
s,@INCLUDE_RULES@,$INCLUDE_RULES,;t t
 
44420
s,@INCLUDE_OUTPUTS@,$INCLUDE_OUTPUTS,;t t
 
44421
s,@LIBOBJS@,$LIBOBJS,;t t
 
44422
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
44423
CEOF
 
44424
 
 
44425
_ACEOF
 
44426
 
 
44427
  cat >>$CONFIG_STATUS <<\_ACEOF
 
44428
  # Split the substitutions into bite-sized pieces for seds with
 
44429
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
44430
  ac_max_sed_lines=48
 
44431
  ac_sed_frag=1 # Number of current file.
 
44432
  ac_beg=1 # First line for current file.
 
44433
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
44434
  ac_more_lines=:
 
44435
  ac_sed_cmds=
 
44436
  while $ac_more_lines; do
 
44437
    if test $ac_beg -gt 1; then
 
44438
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
44439
    else
 
44440
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
44441
    fi
 
44442
    if test ! -s $tmp/subs.frag; then
 
44443
      ac_more_lines=false
 
44444
    else
 
44445
      # The purpose of the label and of the branching condition is to
 
44446
      # speed up the sed processing (if there are no `@' at all, there
 
44447
      # is no need to browse any of the substitutions).
 
44448
      # These are the two extra sed commands mentioned above.
 
44449
      (echo ':t
 
44450
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
44451
      if test -z "$ac_sed_cmds"; then
 
44452
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
44453
      else
 
44454
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
44455
      fi
 
44456
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
44457
      ac_beg=$ac_end
 
44458
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
44459
    fi
 
44460
  done
 
44461
  if test -z "$ac_sed_cmds"; then
 
44462
    ac_sed_cmds=cat
 
44463
  fi
 
44464
fi # test -n "$CONFIG_FILES"
 
44465
 
 
44466
_ACEOF
 
44467
cat >>$CONFIG_STATUS <<\_ACEOF
 
44468
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
44469
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
44470
  case $ac_file in
 
44471
  - | *:- | *:-:* ) # input from stdin
 
44472
        cat >$tmp/stdin
 
44473
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
44474
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
44475
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
44476
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
44477
  * )   ac_file_in=$ac_file.in ;;
 
44478
  esac
 
44479
 
 
44480
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
44481
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
44482
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
44483
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
44484
         X"$ac_file" : 'X\(//\)$' \| \
 
44485
         X"$ac_file" : 'X\(/\)' \| \
 
44486
         .     : '\(.\)' 2>/dev/null ||
 
44487
echo X"$ac_file" |
 
44488
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
44489
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
44490
          /^X\(\/\/\)$/{ s//\1/; q; }
 
44491
          /^X\(\/\).*/{ s//\1/; q; }
 
44492
          s/.*/./; q'`
 
44493
  { if $as_mkdir_p; then
 
44494
    mkdir -p "$ac_dir"
 
44495
  else
 
44496
    as_dir="$ac_dir"
 
44497
    as_dirs=
 
44498
    while test ! -d "$as_dir"; do
 
44499
      as_dirs="$as_dir $as_dirs"
 
44500
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
44501
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
44502
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
44503
         X"$as_dir" : 'X\(//\)$' \| \
 
44504
         X"$as_dir" : 'X\(/\)' \| \
 
44505
         .     : '\(.\)' 2>/dev/null ||
 
44506
echo X"$as_dir" |
 
44507
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
44508
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
44509
          /^X\(\/\/\)$/{ s//\1/; q; }
 
44510
          /^X\(\/\).*/{ s//\1/; q; }
 
44511
          s/.*/./; q'`
 
44512
    done
 
44513
    test ! -n "$as_dirs" || mkdir $as_dirs
 
44514
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
44515
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
44516
   { (exit 1); exit 1; }; }; }
 
44517
 
 
44518
  ac_builddir=.
 
44519
 
 
44520
if test "$ac_dir" != .; then
 
44521
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
44522
  # A "../" for each directory in $ac_dir_suffix.
 
44523
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
44524
else
 
44525
  ac_dir_suffix= ac_top_builddir=
 
44526
fi
 
44527
 
 
44528
case $srcdir in
 
44529
  .)  # No --srcdir option.  We are building in place.
 
44530
    ac_srcdir=.
 
44531
    if test -z "$ac_top_builddir"; then
 
44532
       ac_top_srcdir=.
 
44533
    else
 
44534
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
44535
    fi ;;
 
44536
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
44537
    ac_srcdir=$srcdir$ac_dir_suffix;
 
44538
    ac_top_srcdir=$srcdir ;;
 
44539
  *) # Relative path.
 
44540
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
44541
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
44542
esac
 
44543
 
 
44544
# Do not use `cd foo && pwd` to compute absolute paths, because
 
44545
# the directories may not exist.
 
44546
case `pwd` in
 
44547
.) ac_abs_builddir="$ac_dir";;
 
44548
*)
 
44549
  case "$ac_dir" in
 
44550
  .) ac_abs_builddir=`pwd`;;
 
44551
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
44552
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
44553
  esac;;
 
44554
esac
 
44555
case $ac_abs_builddir in
 
44556
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
44557
*)
 
44558
  case ${ac_top_builddir}. in
 
44559
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
44560
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
44561
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
44562
  esac;;
 
44563
esac
 
44564
case $ac_abs_builddir in
 
44565
.) ac_abs_srcdir=$ac_srcdir;;
 
44566
*)
 
44567
  case $ac_srcdir in
 
44568
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
44569
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
44570
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
44571
  esac;;
 
44572
esac
 
44573
case $ac_abs_builddir in
 
44574
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
44575
*)
 
44576
  case $ac_top_srcdir in
 
44577
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
44578
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
44579
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
44580
  esac;;
 
44581
esac
 
44582
 
 
44583
 
 
44584
  case $INSTALL in
 
44585
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
44586
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
44587
  esac
 
44588
 
 
44589
  if test x"$ac_file" != x-; then
 
44590
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
44591
echo "$as_me: creating $ac_file" >&6;}
 
44592
    rm -f "$ac_file"
 
44593
  fi
 
44594
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
44595
  # use $as_me), people would be surprised to read:
 
44596
  #    /* config.h.  Generated by config.status.  */
 
44597
  if test x"$ac_file" = x-; then
 
44598
    configure_input=
 
44599
  else
 
44600
    configure_input="$ac_file.  "
 
44601
  fi
 
44602
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
44603
                                     sed 's,.*/,,'` by configure."
 
44604
 
 
44605
  # First look for the input files in the build tree, otherwise in the
 
44606
  # src tree.
 
44607
  ac_file_inputs=`IFS=:
 
44608
    for f in $ac_file_in; do
 
44609
      case $f in
 
44610
      -) echo $tmp/stdin ;;
 
44611
      [\\/$]*)
 
44612
         # Absolute (can't be DOS-style, as IFS=:)
 
44613
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
44614
echo "$as_me: error: cannot find input file: $f" >&2;}
 
44615
   { (exit 1); exit 1; }; }
 
44616
         echo "$f";;
 
44617
      *) # Relative
 
44618
         if test -f "$f"; then
 
44619
           # Build tree
 
44620
           echo "$f"
 
44621
         elif test -f "$srcdir/$f"; then
 
44622
           # Source tree
 
44623
           echo "$srcdir/$f"
 
44624
         else
 
44625
           # /dev/null tree
 
44626
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
44627
echo "$as_me: error: cannot find input file: $f" >&2;}
 
44628
   { (exit 1); exit 1; }; }
 
44629
         fi;;
 
44630
      esac
 
44631
    done` || { (exit 1); exit 1; }
 
44632
_ACEOF
 
44633
cat >>$CONFIG_STATUS <<_ACEOF
 
44634
  sed "$ac_vpsub
 
44635
$extrasub
 
44636
_ACEOF
 
44637
cat >>$CONFIG_STATUS <<\_ACEOF
 
44638
:t
 
44639
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
44640
s,@configure_input@,$configure_input,;t t
 
44641
s,@srcdir@,$ac_srcdir,;t t
 
44642
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
44643
s,@top_srcdir@,$ac_top_srcdir,;t t
 
44644
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
44645
s,@builddir@,$ac_builddir,;t t
 
44646
s,@abs_builddir@,$ac_abs_builddir,;t t
 
44647
s,@top_builddir@,$ac_top_builddir,;t t
 
44648
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
44649
s,@INSTALL@,$ac_INSTALL,;t t
 
44650
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
44651
  rm -f $tmp/stdin
 
44652
  if test x"$ac_file" != x-; then
 
44653
    mv $tmp/out $ac_file
 
44654
  else
 
44655
    cat $tmp/out
 
44656
    rm -f $tmp/out
 
44657
  fi
 
44658
 
 
44659
done
 
44660
_ACEOF
 
44661
cat >>$CONFIG_STATUS <<\_ACEOF
 
44662
 
 
44663
#
 
44664
# CONFIG_HEADER section.
 
44665
#
 
44666
 
 
44667
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
44668
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
44669
#
 
44670
# ac_d sets the value in "#define NAME VALUE" lines.
 
44671
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
44672
ac_dB='[         ].*$,\1#\2'
 
44673
ac_dC=' '
 
44674
ac_dD=',;t'
 
44675
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
44676
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
44677
ac_uB='$,\1#\2define\3'
 
44678
ac_uC=' '
 
44679
ac_uD=',;t'
 
44680
 
 
44681
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
44682
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
44683
  case $ac_file in
 
44684
  - | *:- | *:-:* ) # input from stdin
 
44685
        cat >$tmp/stdin
 
44686
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
44687
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
44688
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
44689
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
44690
  * )   ac_file_in=$ac_file.in ;;
 
44691
  esac
 
44692
 
 
44693
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
44694
echo "$as_me: creating $ac_file" >&6;}
 
44695
 
 
44696
  # First look for the input files in the build tree, otherwise in the
 
44697
  # src tree.
 
44698
  ac_file_inputs=`IFS=:
 
44699
    for f in $ac_file_in; do
 
44700
      case $f in
 
44701
      -) echo $tmp/stdin ;;
 
44702
      [\\/$]*)
 
44703
         # Absolute (can't be DOS-style, as IFS=:)
 
44704
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
44705
echo "$as_me: error: cannot find input file: $f" >&2;}
 
44706
   { (exit 1); exit 1; }; }
 
44707
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
44708
         echo "$f";;
 
44709
      *) # Relative
 
44710
         if test -f "$f"; then
 
44711
           # Build tree
 
44712
           echo "$f"
 
44713
         elif test -f "$srcdir/$f"; then
 
44714
           # Source tree
 
44715
           echo "$srcdir/$f"
 
44716
         else
 
44717
           # /dev/null tree
 
44718
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
44719
echo "$as_me: error: cannot find input file: $f" >&2;}
 
44720
   { (exit 1); exit 1; }; }
 
44721
         fi;;
 
44722
      esac
 
44723
    done` || { (exit 1); exit 1; }
 
44724
  # Remove the trailing spaces.
 
44725
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
44726
 
 
44727
_ACEOF
 
44728
 
 
44729
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
44730
# `conftest.undefs', that substitutes the proper values into
 
44731
# config.h.in to produce config.h.  The first handles `#define'
 
44732
# templates, and the second `#undef' templates.
 
44733
# And first: Protect against being on the right side of a sed subst in
 
44734
# config.status.  Protect against being in an unquoted here document
 
44735
# in config.status.
 
44736
rm -f conftest.defines conftest.undefs
 
44737
# Using a here document instead of a string reduces the quoting nightmare.
 
44738
# Putting comments in sed scripts is not portable.
 
44739
#
 
44740
# `end' is used to avoid that the second main sed command (meant for
 
44741
# 0-ary CPP macros) applies to n-ary macro definitions.
 
44742
# See the Autoconf documentation for `clear'.
 
44743
cat >confdef2sed.sed <<\_ACEOF
 
44744
s/[\\&,]/\\&/g
 
44745
s,[\\$`],\\&,g
 
44746
t clear
 
44747
: clear
 
44748
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
44749
t end
 
44750
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
44751
: end
 
44752
_ACEOF
 
44753
# If some macros were called several times there might be several times
 
44754
# the same #defines, which is useless.  Nevertheless, we may not want to
 
44755
# sort them, since we want the *last* AC-DEFINE to be honored.
 
44756
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
44757
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
44758
rm -f confdef2sed.sed
 
44759
 
 
44760
# This sed command replaces #undef with comments.  This is necessary, for
 
44761
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
44762
# on some systems where configure will not decide to define it.
 
44763
cat >>conftest.undefs <<\_ACEOF
 
44764
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
44765
_ACEOF
 
44766
 
 
44767
# Break up conftest.defines because some shells have a limit on the size
 
44768
# of here documents, and old seds have small limits too (100 cmds).
 
44769
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
44770
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
44771
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
44772
echo '  :' >>$CONFIG_STATUS
 
44773
rm -f conftest.tail
 
44774
while grep . conftest.defines >/dev/null
 
44775
do
 
44776
  # Write a limited-size here document to $tmp/defines.sed.
 
44777
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
44778
  # Speed up: don't consider the non `#define' lines.
 
44779
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
44780
  # Work around the forget-to-reset-the-flag bug.
 
44781
  echo 't clr' >>$CONFIG_STATUS
 
44782
  echo ': clr' >>$CONFIG_STATUS
 
44783
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
44784
  echo 'CEOF
 
44785
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
44786
  rm -f $tmp/in
 
44787
  mv $tmp/out $tmp/in
 
44788
' >>$CONFIG_STATUS
 
44789
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
44790
  rm -f conftest.defines
 
44791
  mv conftest.tail conftest.defines
 
44792
done
 
44793
rm -f conftest.defines
 
44794
echo '  fi # grep' >>$CONFIG_STATUS
 
44795
echo >>$CONFIG_STATUS
 
44796
 
 
44797
# Break up conftest.undefs because some shells have a limit on the size
 
44798
# of here documents, and old seds have small limits too (100 cmds).
 
44799
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
44800
rm -f conftest.tail
 
44801
while grep . conftest.undefs >/dev/null
 
44802
do
 
44803
  # Write a limited-size here document to $tmp/undefs.sed.
 
44804
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
44805
  # Speed up: don't consider the non `#undef'
 
44806
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
44807
  # Work around the forget-to-reset-the-flag bug.
 
44808
  echo 't clr' >>$CONFIG_STATUS
 
44809
  echo ': clr' >>$CONFIG_STATUS
 
44810
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
44811
  echo 'CEOF
 
44812
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
44813
  rm -f $tmp/in
 
44814
  mv $tmp/out $tmp/in
 
44815
' >>$CONFIG_STATUS
 
44816
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
44817
  rm -f conftest.undefs
 
44818
  mv conftest.tail conftest.undefs
 
44819
done
 
44820
rm -f conftest.undefs
 
44821
 
 
44822
cat >>$CONFIG_STATUS <<\_ACEOF
 
44823
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
44824
  # use $as_me), people would be surprised to read:
 
44825
  #    /* config.h.  Generated by config.status.  */
 
44826
  if test x"$ac_file" = x-; then
 
44827
    echo "/* Generated by configure.  */" >$tmp/config.h
 
44828
  else
 
44829
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
44830
  fi
 
44831
  cat $tmp/in >>$tmp/config.h
 
44832
  rm -f $tmp/in
 
44833
  if test x"$ac_file" != x-; then
 
44834
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
44835
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
44836
echo "$as_me: $ac_file is unchanged" >&6;}
 
44837
    else
 
44838
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
44839
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
44840
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
44841
         X"$ac_file" : 'X\(//\)$' \| \
 
44842
         X"$ac_file" : 'X\(/\)' \| \
 
44843
         .     : '\(.\)' 2>/dev/null ||
 
44844
echo X"$ac_file" |
 
44845
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
44846
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
44847
          /^X\(\/\/\)$/{ s//\1/; q; }
 
44848
          /^X\(\/\).*/{ s//\1/; q; }
 
44849
          s/.*/./; q'`
 
44850
      { if $as_mkdir_p; then
 
44851
    mkdir -p "$ac_dir"
 
44852
  else
 
44853
    as_dir="$ac_dir"
 
44854
    as_dirs=
 
44855
    while test ! -d "$as_dir"; do
 
44856
      as_dirs="$as_dir $as_dirs"
 
44857
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
44858
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
44859
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
44860
         X"$as_dir" : 'X\(//\)$' \| \
 
44861
         X"$as_dir" : 'X\(/\)' \| \
 
44862
         .     : '\(.\)' 2>/dev/null ||
 
44863
echo X"$as_dir" |
 
44864
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
44865
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
44866
          /^X\(\/\/\)$/{ s//\1/; q; }
 
44867
          /^X\(\/\).*/{ s//\1/; q; }
 
44868
          s/.*/./; q'`
 
44869
    done
 
44870
    test ! -n "$as_dirs" || mkdir $as_dirs
 
44871
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
44872
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
44873
   { (exit 1); exit 1; }; }; }
 
44874
 
 
44875
      rm -f $ac_file
 
44876
      mv $tmp/config.h $ac_file
 
44877
    fi
 
44878
  else
 
44879
    cat $tmp/config.h
 
44880
    rm -f $tmp/config.h
 
44881
  fi
 
44882
done
 
44883
_ACEOF
 
44884
cat >>$CONFIG_STATUS <<\_ACEOF
 
44885
 
 
44886
#
 
44887
# CONFIG_COMMANDS section.
 
44888
#
 
44889
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
44890
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
44891
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
44892
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
44893
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
44894
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
44895
         X"$ac_dest" : 'X\(//\)$' \| \
 
44896
         X"$ac_dest" : 'X\(/\)' \| \
 
44897
         .     : '\(.\)' 2>/dev/null ||
 
44898
echo X"$ac_dest" |
 
44899
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
44900
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
44901
          /^X\(\/\/\)$/{ s//\1/; q; }
 
44902
          /^X\(\/\).*/{ s//\1/; q; }
 
44903
          s/.*/./; q'`
 
44904
  { if $as_mkdir_p; then
 
44905
    mkdir -p "$ac_dir"
 
44906
  else
 
44907
    as_dir="$ac_dir"
 
44908
    as_dirs=
 
44909
    while test ! -d "$as_dir"; do
 
44910
      as_dirs="$as_dir $as_dirs"
 
44911
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
44912
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
44913
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
44914
         X"$as_dir" : 'X\(//\)$' \| \
 
44915
         X"$as_dir" : 'X\(/\)' \| \
 
44916
         .     : '\(.\)' 2>/dev/null ||
 
44917
echo X"$as_dir" |
 
44918
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
44919
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
44920
          /^X\(\/\/\)$/{ s//\1/; q; }
 
44921
          /^X\(\/\).*/{ s//\1/; q; }
 
44922
          s/.*/./; q'`
 
44923
    done
 
44924
    test ! -n "$as_dirs" || mkdir $as_dirs
 
44925
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
44926
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
44927
   { (exit 1); exit 1; }; }; }
 
44928
 
 
44929
  ac_builddir=.
 
44930
 
 
44931
if test "$ac_dir" != .; then
 
44932
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
44933
  # A "../" for each directory in $ac_dir_suffix.
 
44934
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
44935
else
 
44936
  ac_dir_suffix= ac_top_builddir=
 
44937
fi
 
44938
 
 
44939
case $srcdir in
 
44940
  .)  # No --srcdir option.  We are building in place.
 
44941
    ac_srcdir=.
 
44942
    if test -z "$ac_top_builddir"; then
 
44943
       ac_top_srcdir=.
 
44944
    else
 
44945
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
44946
    fi ;;
 
44947
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
44948
    ac_srcdir=$srcdir$ac_dir_suffix;
 
44949
    ac_top_srcdir=$srcdir ;;
 
44950
  *) # Relative path.
 
44951
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
44952
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
44953
esac
 
44954
 
 
44955
# Do not use `cd foo && pwd` to compute absolute paths, because
 
44956
# the directories may not exist.
 
44957
case `pwd` in
 
44958
.) ac_abs_builddir="$ac_dir";;
 
44959
*)
 
44960
  case "$ac_dir" in
 
44961
  .) ac_abs_builddir=`pwd`;;
 
44962
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
44963
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
44964
  esac;;
 
44965
esac
 
44966
case $ac_abs_builddir in
 
44967
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
44968
*)
 
44969
  case ${ac_top_builddir}. in
 
44970
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
44971
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
44972
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
44973
  esac;;
 
44974
esac
 
44975
case $ac_abs_builddir in
 
44976
.) ac_abs_srcdir=$ac_srcdir;;
 
44977
*)
 
44978
  case $ac_srcdir in
 
44979
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
44980
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
44981
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
44982
  esac;;
 
44983
esac
 
44984
case $ac_abs_builddir in
 
44985
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
44986
*)
 
44987
  case $ac_top_srcdir in
 
44988
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
44989
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
44990
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
44991
  esac;;
 
44992
esac
 
44993
 
 
44994
 
 
44995
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
44996
echo "$as_me: executing $ac_dest commands" >&6;}
 
44997
  case $ac_dest in
 
44998
    default )
 
44999
# Commands run at the end of config.status:
 
45000
for i in $APR_SAVE_HEADERS; do
 
45001
  if cmp -s $i $i.save 2>/dev/null; then
 
45002
    mv $i.save $i
 
45003
    { echo "$as_me:$LINENO: $i is unchanged" >&5
 
45004
echo "$as_me: $i is unchanged" >&6;}
 
45005
  fi
 
45006
  rm -f $i.save
 
45007
done
 
45008
chmod +x apr-$APR_MAJOR_VERSION-config
 
45009
 ;;
 
45010
  esac
 
45011
done
 
45012
_ACEOF
 
45013
 
 
45014
cat >>$CONFIG_STATUS <<\_ACEOF
 
45015
 
 
45016
{ (exit 0); exit 0; }
 
45017
_ACEOF
 
45018
chmod +x $CONFIG_STATUS
 
45019
ac_clean_files=$ac_clean_files_save
 
45020
 
 
45021
 
 
45022
# configure is writing to config.log, and then calls config.status.
 
45023
# config.status does its own redirection, appending to config.log.
 
45024
# Unfortunately, on DOS this fails, as config.log is still kept open
 
45025
# by configure, so config.status won't be able to write to it; its
 
45026
# output is simply discarded.  So we exec the FD to /dev/null,
 
45027
# effectively closing config.log, so it can be properly (re)opened and
 
45028
# appended to by config.status.  When coming back to configure, we
 
45029
# need to make the FD available again.
 
45030
if test "$no_create" != yes; then
 
45031
  ac_cs_success=:
 
45032
  ac_config_status_args=
 
45033
  test "$silent" = yes &&
 
45034
    ac_config_status_args="$ac_config_status_args --quiet"
 
45035
  exec 5>/dev/null
 
45036
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
45037
  exec 5>>config.log
 
45038
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
45039
  # would make configure fail if this is the last instruction.
 
45040
  $ac_cs_success || { (exit 1); exit 1; }
 
45041
fi
 
45042