~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to extra/jemalloc/configure

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

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.68.
 
4
#
 
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
8
# Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
if test "x$CONFIG_SHELL" = x; then
 
138
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
139
  emulate sh
 
140
  NULLCMD=:
 
141
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
142
  # is contrary to our usage.  Disable this feature.
 
143
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
144
  setopt NO_GLOB_SUBST
 
145
else
 
146
  case \`(set -o) 2>/dev/null\` in #(
 
147
  *posix*) :
 
148
    set -o posix ;; #(
 
149
  *) :
 
150
     ;;
 
151
esac
 
152
fi
 
153
"
 
154
  as_required="as_fn_return () { (exit \$1); }
 
155
as_fn_success () { as_fn_return 0; }
 
156
as_fn_failure () { as_fn_return 1; }
 
157
as_fn_ret_success () { return 0; }
 
158
as_fn_ret_failure () { return 1; }
 
159
 
 
160
exitcode=0
 
161
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
162
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
163
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
164
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
165
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
166
 
 
167
else
 
168
  exitcode=1; echo positional parameters were not saved.
 
169
fi
 
170
test x\$exitcode = x0 || exit 1"
 
171
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
172
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
173
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
174
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
175
test \$(( 1 + 1 )) = 2 || exit 1"
 
176
  if (eval "$as_required") 2>/dev/null; then :
 
177
  as_have_required=yes
 
178
else
 
179
  as_have_required=no
 
180
fi
 
181
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
182
 
 
183
else
 
184
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
185
as_found=false
 
186
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
187
do
 
188
  IFS=$as_save_IFS
 
189
  test -z "$as_dir" && as_dir=.
 
190
  as_found=:
 
191
  case $as_dir in #(
 
192
         /*)
 
193
           for as_base in sh bash ksh sh5; do
 
194
             # Try only shells that exist, to save several forks.
 
195
             as_shell=$as_dir/$as_base
 
196
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
197
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
198
  CONFIG_SHELL=$as_shell as_have_required=yes
 
199
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
200
  break 2
 
201
fi
 
202
fi
 
203
           done;;
 
204
       esac
 
205
  as_found=false
 
206
done
 
207
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
208
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
209
  CONFIG_SHELL=$SHELL as_have_required=yes
 
210
fi; }
 
211
IFS=$as_save_IFS
 
212
 
 
213
 
 
214
      if test "x$CONFIG_SHELL" != x; then :
 
215
  # We cannot yet assume a decent shell, so we have to provide a
 
216
        # neutralization value for shells without unset; and this also
 
217
        # works around shells that cannot unset nonexistent variables.
 
218
        # Preserve -v and -x to the replacement shell.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        case $- in # ((((
 
224
          *v*x* | *x*v* ) as_opts=-vx ;;
 
225
          *v* ) as_opts=-v ;;
 
226
          *x* ) as_opts=-x ;;
 
227
          * ) as_opts= ;;
 
228
        esac
 
229
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
230
fi
 
231
 
 
232
    if test x$as_have_required = xno; then :
 
233
  $as_echo "$0: This script requires a shell more modern than all"
 
234
  $as_echo "$0: the shells that I found on your system."
 
235
  if test x${ZSH_VERSION+set} = xset ; then
 
236
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
237
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
238
  else
 
239
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
240
$0: including any error possibly output before this
 
241
$0: message. Then install a modern shell, or manually run
 
242
$0: the script under such a shell if you do have one."
 
243
  fi
 
244
  exit 1
 
245
fi
 
246
fi
 
247
fi
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
export SHELL
 
250
# Unset more variables known to interfere with behavior of common tools.
 
251
CLICOLOR_FORCE= GREP_OPTIONS=
 
252
unset CLICOLOR_FORCE GREP_OPTIONS
 
253
 
 
254
## --------------------- ##
 
255
## M4sh Shell Functions. ##
 
256
## --------------------- ##
 
257
# as_fn_unset VAR
 
258
# ---------------
 
259
# Portably unset VAR.
 
260
as_fn_unset ()
 
261
{
 
262
  { eval $1=; unset $1;}
 
263
}
 
264
as_unset=as_fn_unset
 
265
 
 
266
# as_fn_set_status STATUS
 
267
# -----------------------
 
268
# Set $? to STATUS, without forking.
 
269
as_fn_set_status ()
 
270
{
 
271
  return $1
 
272
} # as_fn_set_status
 
273
 
 
274
# as_fn_exit STATUS
 
275
# -----------------
 
276
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
277
as_fn_exit ()
 
278
{
 
279
  set +e
 
280
  as_fn_set_status $1
 
281
  exit $1
 
282
} # as_fn_exit
 
283
 
 
284
# as_fn_mkdir_p
 
285
# -------------
 
286
# Create "$as_dir" as a directory, including parents if necessary.
 
287
as_fn_mkdir_p ()
 
288
{
 
289
 
 
290
  case $as_dir in #(
 
291
  -*) as_dir=./$as_dir;;
 
292
  esac
 
293
  test -d "$as_dir" || eval $as_mkdir_p || {
 
294
    as_dirs=
 
295
    while :; do
 
296
      case $as_dir in #(
 
297
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
298
      *) as_qdir=$as_dir;;
 
299
      esac
 
300
      as_dirs="'$as_qdir' $as_dirs"
 
301
      as_dir=`$as_dirname -- "$as_dir" ||
 
302
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
303
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
304
         X"$as_dir" : 'X\(//\)$' \| \
 
305
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
306
$as_echo X"$as_dir" |
 
307
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\/\)[^/].*/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          /^X\(\/\/\)$/{
 
316
            s//\1/
 
317
            q
 
318
          }
 
319
          /^X\(\/\).*/{
 
320
            s//\1/
 
321
            q
 
322
          }
 
323
          s/.*/./; q'`
 
324
      test -d "$as_dir" && break
 
325
    done
 
326
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
327
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
328
 
 
329
 
 
330
} # as_fn_mkdir_p
 
331
# as_fn_append VAR VALUE
 
332
# ----------------------
 
333
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
334
# advantage of any shell optimizations that allow amortized linear growth over
 
335
# repeated appends, instead of the typical quadratic growth present in naive
 
336
# implementations.
 
337
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
338
  eval 'as_fn_append ()
 
339
  {
 
340
    eval $1+=\$2
 
341
  }'
 
342
else
 
343
  as_fn_append ()
 
344
  {
 
345
    eval $1=\$$1\$2
 
346
  }
 
347
fi # as_fn_append
 
348
 
 
349
# as_fn_arith ARG...
 
350
# ------------------
 
351
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
352
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
353
# must be portable across $(()) and expr.
 
354
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
355
  eval 'as_fn_arith ()
 
356
  {
 
357
    as_val=$(( $* ))
 
358
  }'
 
359
else
 
360
  as_fn_arith ()
 
361
  {
 
362
    as_val=`expr "$@" || test $? -eq 1`
 
363
  }
 
364
fi # as_fn_arith
 
365
 
 
366
 
 
367
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
368
# ----------------------------------------
 
369
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
370
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
371
# script with STATUS, using 1 if that was 0.
 
372
as_fn_error ()
 
373
{
 
374
  as_status=$1; test $as_status -eq 0 && as_status=1
 
375
  if test "$4"; then
 
376
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
377
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
378
  fi
 
379
  $as_echo "$as_me: error: $2" >&2
 
380
  as_fn_exit $as_status
 
381
} # as_fn_error
 
382
 
 
383
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
384
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
385
  as_expr=expr
 
386
else
 
387
  as_expr=false
 
388
fi
 
389
 
 
390
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
391
  as_basename=basename
 
392
else
 
393
  as_basename=false
 
394
fi
 
395
 
 
396
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
397
  as_dirname=dirname
 
398
else
 
399
  as_dirname=false
 
400
fi
 
401
 
 
402
as_me=`$as_basename -- "$0" ||
 
403
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
404
         X"$0" : 'X\(//\)$' \| \
 
405
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
406
$as_echo X/"$0" |
 
407
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          /^X\/\(\/\/\)$/{
 
412
            s//\1/
 
413
            q
 
414
          }
 
415
          /^X\/\(\/\).*/{
 
416
            s//\1/
 
417
            q
 
418
          }
 
419
          s/.*/./; q'`
 
420
 
 
421
# Avoid depending upon Character Ranges.
 
422
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
423
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
424
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
425
as_cr_digits='0123456789'
 
426
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
427
 
 
428
 
 
429
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
430
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
431
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
432
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
433
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
434
  sed -n '
 
435
    p
 
436
    /[$]LINENO/=
 
437
  ' <$as_myself |
 
438
    sed '
 
439
      s/[$]LINENO.*/&-/
 
440
      t lineno
 
441
      b
 
442
      :lineno
 
443
      N
 
444
      :loop
 
445
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
446
      t loop
 
447
      s/-\n.*//
 
448
    ' >$as_me.lineno &&
 
449
  chmod +x "$as_me.lineno" ||
 
450
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
451
 
 
452
  # Don't try to exec as it changes $[0], causing all sort of problems
 
453
  # (the dirname of $[0] is not the place where we might find the
 
454
  # original and so on.  Autoconf is especially sensitive to this).
 
455
  . "./$as_me.lineno"
 
456
  # Exit status is that of the last command.
 
457
  exit
 
458
}
 
459
 
 
460
ECHO_C= ECHO_N= ECHO_T=
 
461
case `echo -n x` in #(((((
 
462
-n*)
 
463
  case `echo 'xy\c'` in
 
464
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
465
  xy)  ECHO_C='\c';;
 
466
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
467
       ECHO_T=' ';;
 
468
  esac;;
 
469
*)
 
470
  ECHO_N='-n';;
 
471
esac
 
472
 
 
473
rm -f conf$$ conf$$.exe conf$$.file
 
474
if test -d conf$$.dir; then
 
475
  rm -f conf$$.dir/conf$$.file
 
476
else
 
477
  rm -f conf$$.dir
 
478
  mkdir conf$$.dir 2>/dev/null
 
479
fi
 
480
if (echo >conf$$.file) 2>/dev/null; then
 
481
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
482
    as_ln_s='ln -s'
 
483
    # ... but there are two gotchas:
 
484
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
485
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
486
    # In both cases, we have to default to `cp -p'.
 
487
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
488
      as_ln_s='cp -p'
 
489
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
490
    as_ln_s=ln
 
491
  else
 
492
    as_ln_s='cp -p'
 
493
  fi
 
494
else
 
495
  as_ln_s='cp -p'
 
496
fi
 
497
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
498
rmdir conf$$.dir 2>/dev/null
 
499
 
 
500
if mkdir -p . 2>/dev/null; then
 
501
  as_mkdir_p='mkdir -p "$as_dir"'
 
502
else
 
503
  test -d ./-p && rmdir ./-p
 
504
  as_mkdir_p=false
 
505
fi
 
506
 
 
507
if test -x / >/dev/null 2>&1; then
 
508
  as_test_x='test -x'
 
509
else
 
510
  if ls -dL / >/dev/null 2>&1; then
 
511
    as_ls_L_option=L
 
512
  else
 
513
    as_ls_L_option=
 
514
  fi
 
515
  as_test_x='
 
516
    eval sh -c '\''
 
517
      if test -d "$1"; then
 
518
        test -d "$1/.";
 
519
      else
 
520
        case $1 in #(
 
521
        -*)set "./$1";;
 
522
        esac;
 
523
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
524
        ???[sx]*):;;*)false;;esac;fi
 
525
    '\'' sh
 
526
  '
 
527
fi
 
528
as_executable_p=$as_test_x
 
529
 
 
530
# Sed expression to map a string onto a valid CPP name.
 
531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
532
 
 
533
# Sed expression to map a string onto a valid variable name.
 
534
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
535
 
 
536
 
 
537
test -n "$DJDIR" || exec 7<&0 </dev/null
 
538
exec 6>&1
 
539
 
 
540
# Name of the host.
 
541
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
542
# so uname gets run too.
 
543
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
544
 
 
545
#
 
546
# Initializations.
 
547
#
 
548
ac_default_prefix=/usr/local
 
549
ac_clean_files=
 
550
ac_config_libobj_dir=.
 
551
LIBOBJS=
 
552
cross_compiling=no
 
553
subdirs=
 
554
MFLAGS=
 
555
MAKEFLAGS=
 
556
 
 
557
# Identity of this package.
 
558
PACKAGE_NAME=
 
559
PACKAGE_TARNAME=
 
560
PACKAGE_VERSION=
 
561
PACKAGE_STRING=
 
562
PACKAGE_BUGREPORT=
 
563
PACKAGE_URL=
 
564
 
 
565
ac_unique_file="Makefile.in"
 
566
# Factoring default headers for most tests.
 
567
ac_includes_default="\
 
568
#include <stdio.h>
 
569
#ifdef HAVE_SYS_TYPES_H
 
570
# include <sys/types.h>
 
571
#endif
 
572
#ifdef HAVE_SYS_STAT_H
 
573
# include <sys/stat.h>
 
574
#endif
 
575
#ifdef STDC_HEADERS
 
576
# include <stdlib.h>
 
577
# include <stddef.h>
 
578
#else
 
579
# ifdef HAVE_STDLIB_H
 
580
#  include <stdlib.h>
 
581
# endif
 
582
#endif
 
583
#ifdef HAVE_STRING_H
 
584
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
585
#  include <memory.h>
 
586
# endif
 
587
# include <string.h>
 
588
#endif
 
589
#ifdef HAVE_STRINGS_H
 
590
# include <strings.h>
 
591
#endif
 
592
#ifdef HAVE_INTTYPES_H
 
593
# include <inttypes.h>
 
594
#endif
 
595
#ifdef HAVE_STDINT_H
 
596
# include <stdint.h>
 
597
#endif
 
598
#ifdef HAVE_UNISTD_H
 
599
# include <unistd.h>
 
600
#endif"
 
601
 
 
602
ac_subst_vars='LTLIBOBJS
 
603
LIBOBJS
 
604
cfgoutputs_out
 
605
cfgoutputs_in
 
606
cfghdrs_out
 
607
cfghdrs_in
 
608
enable_zone_allocator
 
609
enable_tls
 
610
enable_lazy_lock
 
611
jemalloc_version_gid
 
612
jemalloc_version_nrev
 
613
jemalloc_version_bugfix
 
614
jemalloc_version_minor
 
615
jemalloc_version_major
 
616
jemalloc_version
 
617
enable_xmalloc
 
618
enable_valgrind
 
619
enable_utrace
 
620
enable_fill
 
621
enable_dss
 
622
enable_munmap
 
623
enable_mremap
 
624
enable_tcache
 
625
enable_prof
 
626
enable_stats
 
627
enable_debug
 
628
install_suffix
 
629
enable_experimental
 
630
AUTOCONF
 
631
LD
 
632
AR
 
633
RANLIB
 
634
INSTALL_DATA
 
635
INSTALL_SCRIPT
 
636
INSTALL_PROGRAM
 
637
enable_autogen
 
638
RPATH_EXTRA
 
639
CC_MM
 
640
MKLIB
 
641
LDTARGET
 
642
CTARGET
 
643
PIC_CFLAGS
 
644
SOREV
 
645
EXTRA_LDFLAGS
 
646
DSO_LDFLAGS
 
647
libprefix
 
648
exe
 
649
a
 
650
o
 
651
importlib
 
652
so
 
653
LD_PRELOAD_VAR
 
654
RPATH
 
655
abi
 
656
host_os
 
657
host_vendor
 
658
host_cpu
 
659
host
 
660
build_os
 
661
build_vendor
 
662
build_cpu
 
663
build
 
664
EGREP
 
665
GREP
 
666
CPP
 
667
OBJEXT
 
668
EXEEXT
 
669
ac_ct_CC
 
670
CPPFLAGS
 
671
LDFLAGS
 
672
CFLAGS
 
673
CC
 
674
XSLROOT
 
675
XSLTPROC
 
676
MANDIR
 
677
DATADIR
 
678
LIBDIR
 
679
INCLUDEDIR
 
680
BINDIR
 
681
PREFIX
 
682
abs_objroot
 
683
objroot
 
684
abs_srcroot
 
685
srcroot
 
686
rev
 
687
target_alias
 
688
host_alias
 
689
build_alias
 
690
LIBS
 
691
ECHO_T
 
692
ECHO_N
 
693
ECHO_C
 
694
DEFS
 
695
mandir
 
696
localedir
 
697
libdir
 
698
psdir
 
699
pdfdir
 
700
dvidir
 
701
htmldir
 
702
infodir
 
703
docdir
 
704
oldincludedir
 
705
includedir
 
706
localstatedir
 
707
sharedstatedir
 
708
sysconfdir
 
709
datadir
 
710
datarootdir
 
711
libexecdir
 
712
sbindir
 
713
bindir
 
714
program_transform_name
 
715
prefix
 
716
exec_prefix
 
717
PACKAGE_URL
 
718
PACKAGE_BUGREPORT
 
719
PACKAGE_STRING
 
720
PACKAGE_VERSION
 
721
PACKAGE_TARNAME
 
722
PACKAGE_NAME
 
723
PATH_SEPARATOR
 
724
SHELL'
 
725
ac_subst_files=''
 
726
ac_user_opts='
 
727
enable_option_checking
 
728
with_xslroot
 
729
with_rpath
 
730
enable_autogen
 
731
enable_experimental
 
732
with_mangling
 
733
with_jemalloc_prefix
 
734
with_export
 
735
with_private_namespace
 
736
with_install_suffix
 
737
enable_cc_silence
 
738
enable_debug
 
739
enable_ivsalloc
 
740
enable_stats
 
741
enable_prof
 
742
enable_prof_libunwind
 
743
with_static_libunwind
 
744
enable_prof_libgcc
 
745
enable_prof_gcc
 
746
enable_tcache
 
747
enable_mremap
 
748
enable_munmap
 
749
enable_dss
 
750
enable_fill
 
751
enable_utrace
 
752
enable_valgrind
 
753
enable_xmalloc
 
754
enable_lazy_lock
 
755
enable_tls
 
756
enable_zone_allocator
 
757
'
 
758
      ac_precious_vars='build_alias
 
759
host_alias
 
760
target_alias
 
761
CC
 
762
CFLAGS
 
763
LDFLAGS
 
764
LIBS
 
765
CPPFLAGS
 
766
CPP'
 
767
 
 
768
 
 
769
# Initialize some variables set by options.
 
770
ac_init_help=
 
771
ac_init_version=false
 
772
ac_unrecognized_opts=
 
773
ac_unrecognized_sep=
 
774
# The variables have the same names as the options, with
 
775
# dashes changed to underlines.
 
776
cache_file=/dev/null
 
777
exec_prefix=NONE
 
778
no_create=
 
779
no_recursion=
 
780
prefix=NONE
 
781
program_prefix=NONE
 
782
program_suffix=NONE
 
783
program_transform_name=s,x,x,
 
784
silent=
 
785
site=
 
786
srcdir=
 
787
verbose=
 
788
x_includes=NONE
 
789
x_libraries=NONE
 
790
 
 
791
# Installation directory options.
 
792
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
793
# and all the variables that are supposed to be based on exec_prefix
 
794
# by default will actually change.
 
795
# Use braces instead of parens because sh, perl, etc. also accept them.
 
796
# (The list follows the same order as the GNU Coding Standards.)
 
797
bindir='${exec_prefix}/bin'
 
798
sbindir='${exec_prefix}/sbin'
 
799
libexecdir='${exec_prefix}/libexec'
 
800
datarootdir='${prefix}/share'
 
801
datadir='${datarootdir}'
 
802
sysconfdir='${prefix}/etc'
 
803
sharedstatedir='${prefix}/com'
 
804
localstatedir='${prefix}/var'
 
805
includedir='${prefix}/include'
 
806
oldincludedir='/usr/include'
 
807
docdir='${datarootdir}/doc/${PACKAGE}'
 
808
infodir='${datarootdir}/info'
 
809
htmldir='${docdir}'
 
810
dvidir='${docdir}'
 
811
pdfdir='${docdir}'
 
812
psdir='${docdir}'
 
813
libdir='${exec_prefix}/lib'
 
814
localedir='${datarootdir}/locale'
 
815
mandir='${datarootdir}/man'
 
816
 
 
817
ac_prev=
 
818
ac_dashdash=
 
819
for ac_option
 
820
do
 
821
  # If the previous option needs an argument, assign it.
 
822
  if test -n "$ac_prev"; then
 
823
    eval $ac_prev=\$ac_option
 
824
    ac_prev=
 
825
    continue
 
826
  fi
 
827
 
 
828
  case $ac_option in
 
829
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
830
  *=)   ac_optarg= ;;
 
831
  *)    ac_optarg=yes ;;
 
832
  esac
 
833
 
 
834
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
835
 
 
836
  case $ac_dashdash$ac_option in
 
837
  --)
 
838
    ac_dashdash=yes ;;
 
839
 
 
840
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
841
    ac_prev=bindir ;;
 
842
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
843
    bindir=$ac_optarg ;;
 
844
 
 
845
  -build | --build | --buil | --bui | --bu)
 
846
    ac_prev=build_alias ;;
 
847
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
848
    build_alias=$ac_optarg ;;
 
849
 
 
850
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
851
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
852
    ac_prev=cache_file ;;
 
853
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
854
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
855
    cache_file=$ac_optarg ;;
 
856
 
 
857
  --config-cache | -C)
 
858
    cache_file=config.cache ;;
 
859
 
 
860
  -datadir | --datadir | --datadi | --datad)
 
861
    ac_prev=datadir ;;
 
862
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
863
    datadir=$ac_optarg ;;
 
864
 
 
865
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
866
  | --dataroo | --dataro | --datar)
 
867
    ac_prev=datarootdir ;;
 
868
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
869
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
870
    datarootdir=$ac_optarg ;;
 
871
 
 
872
  -disable-* | --disable-*)
 
873
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
874
    # Reject names that are not valid shell variable names.
 
875
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
876
      as_fn_error $? "invalid feature name: $ac_useropt"
 
877
    ac_useropt_orig=$ac_useropt
 
878
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
879
    case $ac_user_opts in
 
880
      *"
 
881
"enable_$ac_useropt"
 
882
"*) ;;
 
883
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
884
         ac_unrecognized_sep=', ';;
 
885
    esac
 
886
    eval enable_$ac_useropt=no ;;
 
887
 
 
888
  -docdir | --docdir | --docdi | --doc | --do)
 
889
    ac_prev=docdir ;;
 
890
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
891
    docdir=$ac_optarg ;;
 
892
 
 
893
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
894
    ac_prev=dvidir ;;
 
895
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
896
    dvidir=$ac_optarg ;;
 
897
 
 
898
  -enable-* | --enable-*)
 
899
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
900
    # Reject names that are not valid shell variable names.
 
901
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
902
      as_fn_error $? "invalid feature name: $ac_useropt"
 
903
    ac_useropt_orig=$ac_useropt
 
904
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
905
    case $ac_user_opts in
 
906
      *"
 
907
"enable_$ac_useropt"
 
908
"*) ;;
 
909
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
910
         ac_unrecognized_sep=', ';;
 
911
    esac
 
912
    eval enable_$ac_useropt=\$ac_optarg ;;
 
913
 
 
914
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
915
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
916
  | --exec | --exe | --ex)
 
917
    ac_prev=exec_prefix ;;
 
918
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
919
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
920
  | --exec=* | --exe=* | --ex=*)
 
921
    exec_prefix=$ac_optarg ;;
 
922
 
 
923
  -gas | --gas | --ga | --g)
 
924
    # Obsolete; use --with-gas.
 
925
    with_gas=yes ;;
 
926
 
 
927
  -help | --help | --hel | --he | -h)
 
928
    ac_init_help=long ;;
 
929
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
930
    ac_init_help=recursive ;;
 
931
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
932
    ac_init_help=short ;;
 
933
 
 
934
  -host | --host | --hos | --ho)
 
935
    ac_prev=host_alias ;;
 
936
  -host=* | --host=* | --hos=* | --ho=*)
 
937
    host_alias=$ac_optarg ;;
 
938
 
 
939
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
940
    ac_prev=htmldir ;;
 
941
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
942
  | --ht=*)
 
943
    htmldir=$ac_optarg ;;
 
944
 
 
945
  -includedir | --includedir | --includedi | --included | --include \
 
946
  | --includ | --inclu | --incl | --inc)
 
947
    ac_prev=includedir ;;
 
948
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
949
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
950
    includedir=$ac_optarg ;;
 
951
 
 
952
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
953
    ac_prev=infodir ;;
 
954
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
955
    infodir=$ac_optarg ;;
 
956
 
 
957
  -libdir | --libdir | --libdi | --libd)
 
958
    ac_prev=libdir ;;
 
959
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
960
    libdir=$ac_optarg ;;
 
961
 
 
962
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
963
  | --libexe | --libex | --libe)
 
964
    ac_prev=libexecdir ;;
 
965
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
966
  | --libexe=* | --libex=* | --libe=*)
 
967
    libexecdir=$ac_optarg ;;
 
968
 
 
969
  -localedir | --localedir | --localedi | --localed | --locale)
 
970
    ac_prev=localedir ;;
 
971
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
972
    localedir=$ac_optarg ;;
 
973
 
 
974
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
975
  | --localstate | --localstat | --localsta | --localst | --locals)
 
976
    ac_prev=localstatedir ;;
 
977
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
978
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
979
    localstatedir=$ac_optarg ;;
 
980
 
 
981
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
982
    ac_prev=mandir ;;
 
983
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
984
    mandir=$ac_optarg ;;
 
985
 
 
986
  -nfp | --nfp | --nf)
 
987
    # Obsolete; use --without-fp.
 
988
    with_fp=no ;;
 
989
 
 
990
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
991
  | --no-cr | --no-c | -n)
 
992
    no_create=yes ;;
 
993
 
 
994
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
995
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
996
    no_recursion=yes ;;
 
997
 
 
998
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
999
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1000
  | --oldin | --oldi | --old | --ol | --o)
 
1001
    ac_prev=oldincludedir ;;
 
1002
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1003
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1004
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1005
    oldincludedir=$ac_optarg ;;
 
1006
 
 
1007
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1008
    ac_prev=prefix ;;
 
1009
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1010
    prefix=$ac_optarg ;;
 
1011
 
 
1012
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1013
  | --program-pre | --program-pr | --program-p)
 
1014
    ac_prev=program_prefix ;;
 
1015
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1016
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1017
    program_prefix=$ac_optarg ;;
 
1018
 
 
1019
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1020
  | --program-suf | --program-su | --program-s)
 
1021
    ac_prev=program_suffix ;;
 
1022
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1023
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1024
    program_suffix=$ac_optarg ;;
 
1025
 
 
1026
  -program-transform-name | --program-transform-name \
 
1027
  | --program-transform-nam | --program-transform-na \
 
1028
  | --program-transform-n | --program-transform- \
 
1029
  | --program-transform | --program-transfor \
 
1030
  | --program-transfo | --program-transf \
 
1031
  | --program-trans | --program-tran \
 
1032
  | --progr-tra | --program-tr | --program-t)
 
1033
    ac_prev=program_transform_name ;;
 
1034
  -program-transform-name=* | --program-transform-name=* \
 
1035
  | --program-transform-nam=* | --program-transform-na=* \
 
1036
  | --program-transform-n=* | --program-transform-=* \
 
1037
  | --program-transform=* | --program-transfor=* \
 
1038
  | --program-transfo=* | --program-transf=* \
 
1039
  | --program-trans=* | --program-tran=* \
 
1040
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1041
    program_transform_name=$ac_optarg ;;
 
1042
 
 
1043
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1044
    ac_prev=pdfdir ;;
 
1045
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1046
    pdfdir=$ac_optarg ;;
 
1047
 
 
1048
  -psdir | --psdir | --psdi | --psd | --ps)
 
1049
    ac_prev=psdir ;;
 
1050
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1051
    psdir=$ac_optarg ;;
 
1052
 
 
1053
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1054
  | -silent | --silent | --silen | --sile | --sil)
 
1055
    silent=yes ;;
 
1056
 
 
1057
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1058
    ac_prev=sbindir ;;
 
1059
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1060
  | --sbi=* | --sb=*)
 
1061
    sbindir=$ac_optarg ;;
 
1062
 
 
1063
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1064
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1065
  | --sharedst | --shareds | --shared | --share | --shar \
 
1066
  | --sha | --sh)
 
1067
    ac_prev=sharedstatedir ;;
 
1068
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1069
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1070
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1071
  | --sha=* | --sh=*)
 
1072
    sharedstatedir=$ac_optarg ;;
 
1073
 
 
1074
  -site | --site | --sit)
 
1075
    ac_prev=site ;;
 
1076
  -site=* | --site=* | --sit=*)
 
1077
    site=$ac_optarg ;;
 
1078
 
 
1079
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1080
    ac_prev=srcdir ;;
 
1081
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1082
    srcdir=$ac_optarg ;;
 
1083
 
 
1084
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1085
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1086
    ac_prev=sysconfdir ;;
 
1087
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1088
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1089
    sysconfdir=$ac_optarg ;;
 
1090
 
 
1091
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1092
    ac_prev=target_alias ;;
 
1093
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1094
    target_alias=$ac_optarg ;;
 
1095
 
 
1096
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1097
    verbose=yes ;;
 
1098
 
 
1099
  -version | --version | --versio | --versi | --vers | -V)
 
1100
    ac_init_version=: ;;
 
1101
 
 
1102
  -with-* | --with-*)
 
1103
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1104
    # Reject names that are not valid shell variable names.
 
1105
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1106
      as_fn_error $? "invalid package name: $ac_useropt"
 
1107
    ac_useropt_orig=$ac_useropt
 
1108
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1109
    case $ac_user_opts in
 
1110
      *"
 
1111
"with_$ac_useropt"
 
1112
"*) ;;
 
1113
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1114
         ac_unrecognized_sep=', ';;
 
1115
    esac
 
1116
    eval with_$ac_useropt=\$ac_optarg ;;
 
1117
 
 
1118
  -without-* | --without-*)
 
1119
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1120
    # Reject names that are not valid shell variable names.
 
1121
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1122
      as_fn_error $? "invalid package name: $ac_useropt"
 
1123
    ac_useropt_orig=$ac_useropt
 
1124
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1125
    case $ac_user_opts in
 
1126
      *"
 
1127
"with_$ac_useropt"
 
1128
"*) ;;
 
1129
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1130
         ac_unrecognized_sep=', ';;
 
1131
    esac
 
1132
    eval with_$ac_useropt=no ;;
 
1133
 
 
1134
  --x)
 
1135
    # Obsolete; use --with-x.
 
1136
    with_x=yes ;;
 
1137
 
 
1138
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1139
  | --x-incl | --x-inc | --x-in | --x-i)
 
1140
    ac_prev=x_includes ;;
 
1141
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1142
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1143
    x_includes=$ac_optarg ;;
 
1144
 
 
1145
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1146
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1147
    ac_prev=x_libraries ;;
 
1148
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1149
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1150
    x_libraries=$ac_optarg ;;
 
1151
 
 
1152
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1153
Try \`$0 --help' for more information"
 
1154
    ;;
 
1155
 
 
1156
  *=*)
 
1157
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1158
    # Reject names that are not valid shell variable names.
 
1159
    case $ac_envvar in #(
 
1160
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1161
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1162
    esac
 
1163
    eval $ac_envvar=\$ac_optarg
 
1164
    export $ac_envvar ;;
 
1165
 
 
1166
  *)
 
1167
    # FIXME: should be removed in autoconf 3.0.
 
1168
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1169
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1170
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1171
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1172
    ;;
 
1173
 
 
1174
  esac
 
1175
done
 
1176
 
 
1177
if test -n "$ac_prev"; then
 
1178
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1179
  as_fn_error $? "missing argument to $ac_option"
 
1180
fi
 
1181
 
 
1182
if test -n "$ac_unrecognized_opts"; then
 
1183
  case $enable_option_checking in
 
1184
    no) ;;
 
1185
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1186
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1187
  esac
 
1188
fi
 
1189
 
 
1190
# Check all directory arguments for consistency.
 
1191
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1192
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1193
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1194
                libdir localedir mandir
 
1195
do
 
1196
  eval ac_val=\$$ac_var
 
1197
  # Remove trailing slashes.
 
1198
  case $ac_val in
 
1199
    */ )
 
1200
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1201
      eval $ac_var=\$ac_val;;
 
1202
  esac
 
1203
  # Be sure to have absolute directory names.
 
1204
  case $ac_val in
 
1205
    [\\/$]* | ?:[\\/]* )  continue;;
 
1206
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1207
  esac
 
1208
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1209
done
 
1210
 
 
1211
# There might be people who depend on the old broken behavior: `$host'
 
1212
# used to hold the argument of --host etc.
 
1213
# FIXME: To remove some day.
 
1214
build=$build_alias
 
1215
host=$host_alias
 
1216
target=$target_alias
 
1217
 
 
1218
# FIXME: To remove some day.
 
1219
if test "x$host_alias" != x; then
 
1220
  if test "x$build_alias" = x; then
 
1221
    cross_compiling=maybe
 
1222
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1223
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1224
  elif test "x$build_alias" != "x$host_alias"; then
 
1225
    cross_compiling=yes
 
1226
  fi
 
1227
fi
 
1228
 
 
1229
ac_tool_prefix=
 
1230
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1231
 
 
1232
test "$silent" = yes && exec 6>/dev/null
 
1233
 
 
1234
 
 
1235
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1236
ac_ls_di=`ls -di .` &&
 
1237
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1238
  as_fn_error $? "working directory cannot be determined"
 
1239
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1240
  as_fn_error $? "pwd does not report name of working directory"
 
1241
 
 
1242
 
 
1243
# Find the source files, if location was not specified.
 
1244
if test -z "$srcdir"; then
 
1245
  ac_srcdir_defaulted=yes
 
1246
  # Try the directory containing this script, then the parent directory.
 
1247
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1248
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1249
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1250
         X"$as_myself" : 'X\(//\)$' \| \
 
1251
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1252
$as_echo X"$as_myself" |
 
1253
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1254
            s//\1/
 
1255
            q
 
1256
          }
 
1257
          /^X\(\/\/\)[^/].*/{
 
1258
            s//\1/
 
1259
            q
 
1260
          }
 
1261
          /^X\(\/\/\)$/{
 
1262
            s//\1/
 
1263
            q
 
1264
          }
 
1265
          /^X\(\/\).*/{
 
1266
            s//\1/
 
1267
            q
 
1268
          }
 
1269
          s/.*/./; q'`
 
1270
  srcdir=$ac_confdir
 
1271
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1272
    srcdir=..
 
1273
  fi
 
1274
else
 
1275
  ac_srcdir_defaulted=no
 
1276
fi
 
1277
if test ! -r "$srcdir/$ac_unique_file"; then
 
1278
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1279
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1280
fi
 
1281
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1282
ac_abs_confdir=`(
 
1283
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1284
        pwd)`
 
1285
# When building in place, set srcdir=.
 
1286
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1287
  srcdir=.
 
1288
fi
 
1289
# Remove unnecessary trailing slashes from srcdir.
 
1290
# Double slashes in file names in object file debugging info
 
1291
# mess up M-x gdb in Emacs.
 
1292
case $srcdir in
 
1293
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1294
esac
 
1295
for ac_var in $ac_precious_vars; do
 
1296
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1297
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1298
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1299
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1300
done
 
1301
 
 
1302
#
 
1303
# Report the --help message.
 
1304
#
 
1305
if test "$ac_init_help" = "long"; then
 
1306
  # Omit some internal or obsolete options to make the list less imposing.
 
1307
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1308
  cat <<_ACEOF
 
1309
\`configure' configures this package to adapt to many kinds of systems.
 
1310
 
 
1311
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1312
 
 
1313
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1314
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1315
 
 
1316
Defaults for the options are specified in brackets.
 
1317
 
 
1318
Configuration:
 
1319
  -h, --help              display this help and exit
 
1320
      --help=short        display options specific to this package
 
1321
      --help=recursive    display the short help of all the included packages
 
1322
  -V, --version           display version information and exit
 
1323
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1324
      --cache-file=FILE   cache test results in FILE [disabled]
 
1325
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1326
  -n, --no-create         do not create output files
 
1327
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1328
 
 
1329
Installation directories:
 
1330
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1331
                          [$ac_default_prefix]
 
1332
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1333
                          [PREFIX]
 
1334
 
 
1335
By default, \`make install' will install all the files in
 
1336
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1337
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1338
for instance \`--prefix=\$HOME'.
 
1339
 
 
1340
For better control, use the options below.
 
1341
 
 
1342
Fine tuning of the installation directories:
 
1343
  --bindir=DIR            user executables [EPREFIX/bin]
 
1344
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1345
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1346
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1347
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1348
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1349
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1350
  --includedir=DIR        C header files [PREFIX/include]
 
1351
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1352
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1353
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1354
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1355
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1356
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1357
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 
1358
  --htmldir=DIR           html documentation [DOCDIR]
 
1359
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1360
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1361
  --psdir=DIR             ps documentation [DOCDIR]
 
1362
_ACEOF
 
1363
 
 
1364
  cat <<\_ACEOF
 
1365
 
 
1366
System types:
 
1367
  --build=BUILD     configure for building on BUILD [guessed]
 
1368
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1369
_ACEOF
 
1370
fi
 
1371
 
 
1372
if test -n "$ac_init_help"; then
 
1373
 
 
1374
  cat <<\_ACEOF
 
1375
 
 
1376
Optional Features:
 
1377
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1378
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1379
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1380
  --enable-autogen        Automatically regenerate configure output
 
1381
  --disable-experimental  Disable support for the experimental API
 
1382
  --enable-cc-silence     Silence irrelevant compiler warnings
 
1383
  --enable-debug          Build debugging code (implies --enable-ivsalloc)
 
1384
  --enable-ivsalloc       Validate pointers passed through the public API
 
1385
  --disable-stats         Disable statistics calculation/reporting
 
1386
  --enable-prof           Enable allocation profiling
 
1387
  --enable-prof-libunwind Use libunwind for backtracing
 
1388
  --disable-prof-libgcc   Do not use libgcc for backtracing
 
1389
  --disable-prof-gcc      Do not use gcc intrinsics for backtracing
 
1390
  --disable-tcache        Disable per thread caches
 
1391
  --enable-mremap         Enable mremap(2) for huge realloc()
 
1392
  --disable-munmap        Disable VM deallocation via munmap(2)
 
1393
  --enable-dss            Enable allocation from DSS
 
1394
  --disable-fill          Disable support for junk/zero filling, quarantine,
 
1395
                          and redzones
 
1396
  --enable-utrace         Enable utrace(2)-based tracing
 
1397
  --disable-valgrind      Disable support for Valgrind
 
1398
  --enable-xmalloc        Support xmalloc option
 
1399
  --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
 
1400
  --disable-tls           Disable thread-local storage (__thread keyword)
 
1401
  --disable-zone-allocator
 
1402
                          Disable zone allocator for Darwin
 
1403
 
 
1404
Optional Packages:
 
1405
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1406
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1407
  --with-xslroot=<path>   XSL stylesheet root path
 
1408
  --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
 
1409
  --with-mangling=<map>   Mangle symbols in <map>
 
1410
  --with-jemalloc-prefix=<prefix>
 
1411
                          Prefix to prepend to all public APIs
 
1412
  --without-export        disable exporting jemalloc public APIs
 
1413
  --with-private-namespace=<prefix>
 
1414
                          Prefix to prepend to all library-private APIs
 
1415
  --with-install-suffix=<suffix>
 
1416
                          Suffix to append to all installed files
 
1417
  --with-static-libunwind=<libunwind.a>
 
1418
                          Path to static libunwind library; use rather than
 
1419
                          dynamically linking
 
1420
 
 
1421
Some influential environment variables:
 
1422
  CC          C compiler command
 
1423
  CFLAGS      C compiler flags
 
1424
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1425
              nonstandard directory <lib dir>
 
1426
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1427
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1428
              you have headers in a nonstandard directory <include dir>
 
1429
  CPP         C preprocessor
 
1430
 
 
1431
Use these variables to override the choices made by `configure' or to help
 
1432
it to find libraries and programs with nonstandard names/locations.
 
1433
 
 
1434
Report bugs to the package provider.
 
1435
_ACEOF
 
1436
ac_status=$?
 
1437
fi
 
1438
 
 
1439
if test "$ac_init_help" = "recursive"; then
 
1440
  # If there are subdirs, report their specific --help.
 
1441
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1442
    test -d "$ac_dir" ||
 
1443
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1444
      continue
 
1445
    ac_builddir=.
 
1446
 
 
1447
case "$ac_dir" in
 
1448
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1449
*)
 
1450
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1451
  # A ".." for each directory in $ac_dir_suffix.
 
1452
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1453
  case $ac_top_builddir_sub in
 
1454
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1455
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1456
  esac ;;
 
1457
esac
 
1458
ac_abs_top_builddir=$ac_pwd
 
1459
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1460
# for backward compatibility:
 
1461
ac_top_builddir=$ac_top_build_prefix
 
1462
 
 
1463
case $srcdir in
 
1464
  .)  # We are building in place.
 
1465
    ac_srcdir=.
 
1466
    ac_top_srcdir=$ac_top_builddir_sub
 
1467
    ac_abs_top_srcdir=$ac_pwd ;;
 
1468
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1469
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1470
    ac_top_srcdir=$srcdir
 
1471
    ac_abs_top_srcdir=$srcdir ;;
 
1472
  *) # Relative name.
 
1473
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1474
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1475
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1476
esac
 
1477
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1478
 
 
1479
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1480
    # Check for guested configure.
 
1481
    if test -f "$ac_srcdir/configure.gnu"; then
 
1482
      echo &&
 
1483
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1484
    elif test -f "$ac_srcdir/configure"; then
 
1485
      echo &&
 
1486
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1487
    else
 
1488
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1489
    fi || ac_status=$?
 
1490
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1491
  done
 
1492
fi
 
1493
 
 
1494
test -n "$ac_init_help" && exit $ac_status
 
1495
if $ac_init_version; then
 
1496
  cat <<\_ACEOF
 
1497
configure
 
1498
generated by GNU Autoconf 2.68
 
1499
 
 
1500
Copyright (C) 2010 Free Software Foundation, Inc.
 
1501
This configure script is free software; the Free Software Foundation
 
1502
gives unlimited permission to copy, distribute and modify it.
 
1503
_ACEOF
 
1504
  exit
 
1505
fi
 
1506
 
 
1507
## ------------------------ ##
 
1508
## Autoconf initialization. ##
 
1509
## ------------------------ ##
 
1510
 
 
1511
# ac_fn_c_try_compile LINENO
 
1512
# --------------------------
 
1513
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1514
ac_fn_c_try_compile ()
 
1515
{
 
1516
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1517
  rm -f conftest.$ac_objext
 
1518
  if { { ac_try="$ac_compile"
 
1519
case "(($ac_try" in
 
1520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1521
  *) ac_try_echo=$ac_try;;
 
1522
esac
 
1523
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1524
$as_echo "$ac_try_echo"; } >&5
 
1525
  (eval "$ac_compile") 2>conftest.err
 
1526
  ac_status=$?
 
1527
  if test -s conftest.err; then
 
1528
    grep -v '^ *+' conftest.err >conftest.er1
 
1529
    cat conftest.er1 >&5
 
1530
    mv -f conftest.er1 conftest.err
 
1531
  fi
 
1532
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1533
  test $ac_status = 0; } && {
 
1534
         test -z "$ac_c_werror_flag" ||
 
1535
         test ! -s conftest.err
 
1536
       } && test -s conftest.$ac_objext; then :
 
1537
  ac_retval=0
 
1538
else
 
1539
  $as_echo "$as_me: failed program was:" >&5
 
1540
sed 's/^/| /' conftest.$ac_ext >&5
 
1541
 
 
1542
        ac_retval=1
 
1543
fi
 
1544
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1545
  as_fn_set_status $ac_retval
 
1546
 
 
1547
} # ac_fn_c_try_compile
 
1548
 
 
1549
# ac_fn_c_try_cpp LINENO
 
1550
# ----------------------
 
1551
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1552
ac_fn_c_try_cpp ()
 
1553
{
 
1554
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1555
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1556
case "(($ac_try" in
 
1557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1558
  *) ac_try_echo=$ac_try;;
 
1559
esac
 
1560
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1561
$as_echo "$ac_try_echo"; } >&5
 
1562
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1563
  ac_status=$?
 
1564
  if test -s conftest.err; then
 
1565
    grep -v '^ *+' conftest.err >conftest.er1
 
1566
    cat conftest.er1 >&5
 
1567
    mv -f conftest.er1 conftest.err
 
1568
  fi
 
1569
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1570
  test $ac_status = 0; } > conftest.i && {
 
1571
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1572
         test ! -s conftest.err
 
1573
       }; then :
 
1574
  ac_retval=0
 
1575
else
 
1576
  $as_echo "$as_me: failed program was:" >&5
 
1577
sed 's/^/| /' conftest.$ac_ext >&5
 
1578
 
 
1579
    ac_retval=1
 
1580
fi
 
1581
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1582
  as_fn_set_status $ac_retval
 
1583
 
 
1584
} # ac_fn_c_try_cpp
 
1585
 
 
1586
# ac_fn_c_try_run LINENO
 
1587
# ----------------------
 
1588
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1589
# that executables *can* be run.
 
1590
ac_fn_c_try_run ()
 
1591
{
 
1592
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1593
  if { { ac_try="$ac_link"
 
1594
case "(($ac_try" in
 
1595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1596
  *) ac_try_echo=$ac_try;;
 
1597
esac
 
1598
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1599
$as_echo "$ac_try_echo"; } >&5
 
1600
  (eval "$ac_link") 2>&5
 
1601
  ac_status=$?
 
1602
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1603
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1604
  { { case "(($ac_try" in
 
1605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1606
  *) ac_try_echo=$ac_try;;
 
1607
esac
 
1608
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1609
$as_echo "$ac_try_echo"; } >&5
 
1610
  (eval "$ac_try") 2>&5
 
1611
  ac_status=$?
 
1612
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1613
  test $ac_status = 0; }; }; then :
 
1614
  ac_retval=0
 
1615
else
 
1616
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1617
       $as_echo "$as_me: failed program was:" >&5
 
1618
sed 's/^/| /' conftest.$ac_ext >&5
 
1619
 
 
1620
       ac_retval=$ac_status
 
1621
fi
 
1622
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1623
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1624
  as_fn_set_status $ac_retval
 
1625
 
 
1626
} # ac_fn_c_try_run
 
1627
 
 
1628
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
1629
# --------------------------------------------
 
1630
# Tries to find the compile-time value of EXPR in a program that includes
 
1631
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
1632
# computed
 
1633
ac_fn_c_compute_int ()
 
1634
{
 
1635
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1636
  if test "$cross_compiling" = yes; then
 
1637
    # Depending upon the size, compute the lo and hi bounds.
 
1638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1639
/* end confdefs.h.  */
 
1640
$4
 
1641
int
 
1642
main ()
 
1643
{
 
1644
static int test_array [1 - 2 * !(($2) >= 0)];
 
1645
test_array [0] = 0
 
1646
 
 
1647
  ;
 
1648
  return 0;
 
1649
}
 
1650
_ACEOF
 
1651
if ac_fn_c_try_compile "$LINENO"; then :
 
1652
  ac_lo=0 ac_mid=0
 
1653
  while :; do
 
1654
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1655
/* end confdefs.h.  */
 
1656
$4
 
1657
int
 
1658
main ()
 
1659
{
 
1660
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
1661
test_array [0] = 0
 
1662
 
 
1663
  ;
 
1664
  return 0;
 
1665
}
 
1666
_ACEOF
 
1667
if ac_fn_c_try_compile "$LINENO"; then :
 
1668
  ac_hi=$ac_mid; break
 
1669
else
 
1670
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
1671
                        if test $ac_lo -le $ac_mid; then
 
1672
                          ac_lo= ac_hi=
 
1673
                          break
 
1674
                        fi
 
1675
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
1676
fi
 
1677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1678
  done
 
1679
else
 
1680
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1681
/* end confdefs.h.  */
 
1682
$4
 
1683
int
 
1684
main ()
 
1685
{
 
1686
static int test_array [1 - 2 * !(($2) < 0)];
 
1687
test_array [0] = 0
 
1688
 
 
1689
  ;
 
1690
  return 0;
 
1691
}
 
1692
_ACEOF
 
1693
if ac_fn_c_try_compile "$LINENO"; then :
 
1694
  ac_hi=-1 ac_mid=-1
 
1695
  while :; do
 
1696
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1697
/* end confdefs.h.  */
 
1698
$4
 
1699
int
 
1700
main ()
 
1701
{
 
1702
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
1703
test_array [0] = 0
 
1704
 
 
1705
  ;
 
1706
  return 0;
 
1707
}
 
1708
_ACEOF
 
1709
if ac_fn_c_try_compile "$LINENO"; then :
 
1710
  ac_lo=$ac_mid; break
 
1711
else
 
1712
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
1713
                        if test $ac_mid -le $ac_hi; then
 
1714
                          ac_lo= ac_hi=
 
1715
                          break
 
1716
                        fi
 
1717
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
1718
fi
 
1719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1720
  done
 
1721
else
 
1722
  ac_lo= ac_hi=
 
1723
fi
 
1724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1725
fi
 
1726
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1727
# Binary search between lo and hi bounds.
 
1728
while test "x$ac_lo" != "x$ac_hi"; do
 
1729
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
1730
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1731
/* end confdefs.h.  */
 
1732
$4
 
1733
int
 
1734
main ()
 
1735
{
 
1736
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
1737
test_array [0] = 0
 
1738
 
 
1739
  ;
 
1740
  return 0;
 
1741
}
 
1742
_ACEOF
 
1743
if ac_fn_c_try_compile "$LINENO"; then :
 
1744
  ac_hi=$ac_mid
 
1745
else
 
1746
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
1747
fi
 
1748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1749
done
 
1750
case $ac_lo in #((
 
1751
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
1752
'') ac_retval=1 ;;
 
1753
esac
 
1754
  else
 
1755
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1756
/* end confdefs.h.  */
 
1757
$4
 
1758
static long int longval () { return $2; }
 
1759
static unsigned long int ulongval () { return $2; }
 
1760
#include <stdio.h>
 
1761
#include <stdlib.h>
 
1762
int
 
1763
main ()
 
1764
{
 
1765
 
 
1766
  FILE *f = fopen ("conftest.val", "w");
 
1767
  if (! f)
 
1768
    return 1;
 
1769
  if (($2) < 0)
 
1770
    {
 
1771
      long int i = longval ();
 
1772
      if (i != ($2))
 
1773
        return 1;
 
1774
      fprintf (f, "%ld", i);
 
1775
    }
 
1776
  else
 
1777
    {
 
1778
      unsigned long int i = ulongval ();
 
1779
      if (i != ($2))
 
1780
        return 1;
 
1781
      fprintf (f, "%lu", i);
 
1782
    }
 
1783
  /* Do not output a trailing newline, as this causes \r\n confusion
 
1784
     on some platforms.  */
 
1785
  return ferror (f) || fclose (f) != 0;
 
1786
 
 
1787
  ;
 
1788
  return 0;
 
1789
}
 
1790
_ACEOF
 
1791
if ac_fn_c_try_run "$LINENO"; then :
 
1792
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
1793
else
 
1794
  ac_retval=1
 
1795
fi
 
1796
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
1797
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
1798
rm -f conftest.val
 
1799
 
 
1800
  fi
 
1801
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1802
  as_fn_set_status $ac_retval
 
1803
 
 
1804
} # ac_fn_c_compute_int
 
1805
 
 
1806
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1807
# -------------------------------------------------------
 
1808
# Tests whether HEADER exists and can be compiled using the include files in
 
1809
# INCLUDES, setting the cache variable VAR accordingly.
 
1810
ac_fn_c_check_header_compile ()
 
1811
{
 
1812
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1813
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1814
$as_echo_n "checking for $2... " >&6; }
 
1815
if eval \${$3+:} false; then :
 
1816
  $as_echo_n "(cached) " >&6
 
1817
else
 
1818
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1819
/* end confdefs.h.  */
 
1820
$4
 
1821
#include <$2>
 
1822
_ACEOF
 
1823
if ac_fn_c_try_compile "$LINENO"; then :
 
1824
  eval "$3=yes"
 
1825
else
 
1826
  eval "$3=no"
 
1827
fi
 
1828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1829
fi
 
1830
eval ac_res=\$$3
 
1831
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1832
$as_echo "$ac_res" >&6; }
 
1833
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1834
 
 
1835
} # ac_fn_c_check_header_compile
 
1836
 
 
1837
# ac_fn_c_try_link LINENO
 
1838
# -----------------------
 
1839
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1840
ac_fn_c_try_link ()
 
1841
{
 
1842
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1843
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1844
  if { { ac_try="$ac_link"
 
1845
case "(($ac_try" in
 
1846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1847
  *) ac_try_echo=$ac_try;;
 
1848
esac
 
1849
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1850
$as_echo "$ac_try_echo"; } >&5
 
1851
  (eval "$ac_link") 2>conftest.err
 
1852
  ac_status=$?
 
1853
  if test -s conftest.err; then
 
1854
    grep -v '^ *+' conftest.err >conftest.er1
 
1855
    cat conftest.er1 >&5
 
1856
    mv -f conftest.er1 conftest.err
 
1857
  fi
 
1858
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1859
  test $ac_status = 0; } && {
 
1860
         test -z "$ac_c_werror_flag" ||
 
1861
         test ! -s conftest.err
 
1862
       } && test -s conftest$ac_exeext && {
 
1863
         test "$cross_compiling" = yes ||
 
1864
         $as_test_x conftest$ac_exeext
 
1865
       }; then :
 
1866
  ac_retval=0
 
1867
else
 
1868
  $as_echo "$as_me: failed program was:" >&5
 
1869
sed 's/^/| /' conftest.$ac_ext >&5
 
1870
 
 
1871
        ac_retval=1
 
1872
fi
 
1873
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1874
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1875
  # interfere with the next link command; also delete a directory that is
 
1876
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1877
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1878
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1879
  as_fn_set_status $ac_retval
 
1880
 
 
1881
} # ac_fn_c_try_link
 
1882
 
 
1883
# ac_fn_c_check_func LINENO FUNC VAR
 
1884
# ----------------------------------
 
1885
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1886
ac_fn_c_check_func ()
 
1887
{
 
1888
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1889
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1890
$as_echo_n "checking for $2... " >&6; }
 
1891
if eval \${$3+:} false; then :
 
1892
  $as_echo_n "(cached) " >&6
 
1893
else
 
1894
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1895
/* end confdefs.h.  */
 
1896
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1897
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1898
#define $2 innocuous_$2
 
1899
 
 
1900
/* System header to define __stub macros and hopefully few prototypes,
 
1901
    which can conflict with char $2 (); below.
 
1902
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1903
    <limits.h> exists even on freestanding compilers.  */
 
1904
 
 
1905
#ifdef __STDC__
 
1906
# include <limits.h>
 
1907
#else
 
1908
# include <assert.h>
 
1909
#endif
 
1910
 
 
1911
#undef $2
 
1912
 
 
1913
/* Override any GCC internal prototype to avoid an error.
 
1914
   Use char because int might match the return type of a GCC
 
1915
   builtin and then its argument prototype would still apply.  */
 
1916
#ifdef __cplusplus
 
1917
extern "C"
 
1918
#endif
 
1919
char $2 ();
 
1920
/* The GNU C library defines this for functions which it implements
 
1921
    to always fail with ENOSYS.  Some functions are actually named
 
1922
    something starting with __ and the normal name is an alias.  */
 
1923
#if defined __stub_$2 || defined __stub___$2
 
1924
choke me
 
1925
#endif
 
1926
 
 
1927
int
 
1928
main ()
 
1929
{
 
1930
return $2 ();
 
1931
  ;
 
1932
  return 0;
 
1933
}
 
1934
_ACEOF
 
1935
if ac_fn_c_try_link "$LINENO"; then :
 
1936
  eval "$3=yes"
 
1937
else
 
1938
  eval "$3=no"
 
1939
fi
 
1940
rm -f core conftest.err conftest.$ac_objext \
 
1941
    conftest$ac_exeext conftest.$ac_ext
 
1942
fi
 
1943
eval ac_res=\$$3
 
1944
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1945
$as_echo "$ac_res" >&6; }
 
1946
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1947
 
 
1948
} # ac_fn_c_check_func
 
1949
 
 
1950
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1951
# -------------------------------------------------------
 
1952
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1953
# the include files in INCLUDES and setting the cache variable VAR
 
1954
# accordingly.
 
1955
ac_fn_c_check_header_mongrel ()
 
1956
{
 
1957
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1958
  if eval \${$3+:} false; then :
 
1959
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1960
$as_echo_n "checking for $2... " >&6; }
 
1961
if eval \${$3+:} false; then :
 
1962
  $as_echo_n "(cached) " >&6
 
1963
fi
 
1964
eval ac_res=\$$3
 
1965
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1966
$as_echo "$ac_res" >&6; }
 
1967
else
 
1968
  # Is the header compilable?
 
1969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1970
$as_echo_n "checking $2 usability... " >&6; }
 
1971
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1972
/* end confdefs.h.  */
 
1973
$4
 
1974
#include <$2>
 
1975
_ACEOF
 
1976
if ac_fn_c_try_compile "$LINENO"; then :
 
1977
  ac_header_compiler=yes
 
1978
else
 
1979
  ac_header_compiler=no
 
1980
fi
 
1981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1983
$as_echo "$ac_header_compiler" >&6; }
 
1984
 
 
1985
# Is the header present?
 
1986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1987
$as_echo_n "checking $2 presence... " >&6; }
 
1988
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1989
/* end confdefs.h.  */
 
1990
#include <$2>
 
1991
_ACEOF
 
1992
if ac_fn_c_try_cpp "$LINENO"; then :
 
1993
  ac_header_preproc=yes
 
1994
else
 
1995
  ac_header_preproc=no
 
1996
fi
 
1997
rm -f conftest.err conftest.i conftest.$ac_ext
 
1998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1999
$as_echo "$ac_header_preproc" >&6; }
 
2000
 
 
2001
# So?  What about this header?
 
2002
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2003
  yes:no: )
 
2004
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2005
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2006
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2007
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2008
    ;;
 
2009
  no:yes:* )
 
2010
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2011
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2012
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2013
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2014
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2015
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2016
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2017
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2018
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2019
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2020
    ;;
 
2021
esac
 
2022
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2023
$as_echo_n "checking for $2... " >&6; }
 
2024
if eval \${$3+:} false; then :
 
2025
  $as_echo_n "(cached) " >&6
 
2026
else
 
2027
  eval "$3=\$ac_header_compiler"
 
2028
fi
 
2029
eval ac_res=\$$3
 
2030
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2031
$as_echo "$ac_res" >&6; }
 
2032
fi
 
2033
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2034
 
 
2035
} # ac_fn_c_check_header_mongrel
 
2036
 
 
2037
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2038
# -------------------------------------------
 
2039
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2040
# variable VAR accordingly.
 
2041
ac_fn_c_check_type ()
 
2042
{
 
2043
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2044
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2045
$as_echo_n "checking for $2... " >&6; }
 
2046
if eval \${$3+:} false; then :
 
2047
  $as_echo_n "(cached) " >&6
 
2048
else
 
2049
  eval "$3=no"
 
2050
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2051
/* end confdefs.h.  */
 
2052
$4
 
2053
int
 
2054
main ()
 
2055
{
 
2056
if (sizeof ($2))
 
2057
         return 0;
 
2058
  ;
 
2059
  return 0;
 
2060
}
 
2061
_ACEOF
 
2062
if ac_fn_c_try_compile "$LINENO"; then :
 
2063
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2064
/* end confdefs.h.  */
 
2065
$4
 
2066
int
 
2067
main ()
 
2068
{
 
2069
if (sizeof (($2)))
 
2070
            return 0;
 
2071
  ;
 
2072
  return 0;
 
2073
}
 
2074
_ACEOF
 
2075
if ac_fn_c_try_compile "$LINENO"; then :
 
2076
 
 
2077
else
 
2078
  eval "$3=yes"
 
2079
fi
 
2080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2081
fi
 
2082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2083
fi
 
2084
eval ac_res=\$$3
 
2085
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2086
$as_echo "$ac_res" >&6; }
 
2087
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2088
 
 
2089
} # ac_fn_c_check_type
 
2090
cat >config.log <<_ACEOF
 
2091
This file contains any messages produced by compilers while
 
2092
running configure, to aid debugging if configure makes a mistake.
 
2093
 
 
2094
It was created by $as_me, which was
 
2095
generated by GNU Autoconf 2.68.  Invocation command line was
 
2096
 
 
2097
  $ $0 $@
 
2098
 
 
2099
_ACEOF
 
2100
exec 5>>config.log
 
2101
{
 
2102
cat <<_ASUNAME
 
2103
## --------- ##
 
2104
## Platform. ##
 
2105
## --------- ##
 
2106
 
 
2107
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2108
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2109
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2110
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2111
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2112
 
 
2113
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2114
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2115
 
 
2116
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2117
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2118
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2119
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2120
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2121
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2122
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2123
 
 
2124
_ASUNAME
 
2125
 
 
2126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2127
for as_dir in $PATH
 
2128
do
 
2129
  IFS=$as_save_IFS
 
2130
  test -z "$as_dir" && as_dir=.
 
2131
    $as_echo "PATH: $as_dir"
 
2132
  done
 
2133
IFS=$as_save_IFS
 
2134
 
 
2135
} >&5
 
2136
 
 
2137
cat >&5 <<_ACEOF
 
2138
 
 
2139
 
 
2140
## ----------- ##
 
2141
## Core tests. ##
 
2142
## ----------- ##
 
2143
 
 
2144
_ACEOF
 
2145
 
 
2146
 
 
2147
# Keep a trace of the command line.
 
2148
# Strip out --no-create and --no-recursion so they do not pile up.
 
2149
# Strip out --silent because we don't want to record it for future runs.
 
2150
# Also quote any args containing shell meta-characters.
 
2151
# Make two passes to allow for proper duplicate-argument suppression.
 
2152
ac_configure_args=
 
2153
ac_configure_args0=
 
2154
ac_configure_args1=
 
2155
ac_must_keep_next=false
 
2156
for ac_pass in 1 2
 
2157
do
 
2158
  for ac_arg
 
2159
  do
 
2160
    case $ac_arg in
 
2161
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2162
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2163
    | -silent | --silent | --silen | --sile | --sil)
 
2164
      continue ;;
 
2165
    *\'*)
 
2166
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2167
    esac
 
2168
    case $ac_pass in
 
2169
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2170
    2)
 
2171
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2172
      if test $ac_must_keep_next = true; then
 
2173
        ac_must_keep_next=false # Got value, back to normal.
 
2174
      else
 
2175
        case $ac_arg in
 
2176
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2177
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2178
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2179
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2180
            case "$ac_configure_args0 " in
 
2181
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2182
            esac
 
2183
            ;;
 
2184
          -* ) ac_must_keep_next=true ;;
 
2185
        esac
 
2186
      fi
 
2187
      as_fn_append ac_configure_args " '$ac_arg'"
 
2188
      ;;
 
2189
    esac
 
2190
  done
 
2191
done
 
2192
{ ac_configure_args0=; unset ac_configure_args0;}
 
2193
{ ac_configure_args1=; unset ac_configure_args1;}
 
2194
 
 
2195
# When interrupted or exit'd, cleanup temporary files, and complete
 
2196
# config.log.  We remove comments because anyway the quotes in there
 
2197
# would cause problems or look ugly.
 
2198
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2199
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2200
trap 'exit_status=$?
 
2201
  # Save into config.log some information that might help in debugging.
 
2202
  {
 
2203
    echo
 
2204
 
 
2205
    $as_echo "## ---------------- ##
 
2206
## Cache variables. ##
 
2207
## ---------------- ##"
 
2208
    echo
 
2209
    # The following way of writing the cache mishandles newlines in values,
 
2210
(
 
2211
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2212
    eval ac_val=\$$ac_var
 
2213
    case $ac_val in #(
 
2214
    *${as_nl}*)
 
2215
      case $ac_var in #(
 
2216
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2217
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2218
      esac
 
2219
      case $ac_var in #(
 
2220
      _ | IFS | as_nl) ;; #(
 
2221
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2222
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2223
      esac ;;
 
2224
    esac
 
2225
  done
 
2226
  (set) 2>&1 |
 
2227
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2228
    *${as_nl}ac_space=\ *)
 
2229
      sed -n \
 
2230
        "s/'\''/'\''\\\\'\'''\''/g;
 
2231
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2232
      ;; #(
 
2233
    *)
 
2234
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2235
      ;;
 
2236
    esac |
 
2237
    sort
 
2238
)
 
2239
    echo
 
2240
 
 
2241
    $as_echo "## ----------------- ##
 
2242
## Output variables. ##
 
2243
## ----------------- ##"
 
2244
    echo
 
2245
    for ac_var in $ac_subst_vars
 
2246
    do
 
2247
      eval ac_val=\$$ac_var
 
2248
      case $ac_val in
 
2249
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2250
      esac
 
2251
      $as_echo "$ac_var='\''$ac_val'\''"
 
2252
    done | sort
 
2253
    echo
 
2254
 
 
2255
    if test -n "$ac_subst_files"; then
 
2256
      $as_echo "## ------------------- ##
 
2257
## File substitutions. ##
 
2258
## ------------------- ##"
 
2259
      echo
 
2260
      for ac_var in $ac_subst_files
 
2261
      do
 
2262
        eval ac_val=\$$ac_var
 
2263
        case $ac_val in
 
2264
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2265
        esac
 
2266
        $as_echo "$ac_var='\''$ac_val'\''"
 
2267
      done | sort
 
2268
      echo
 
2269
    fi
 
2270
 
 
2271
    if test -s confdefs.h; then
 
2272
      $as_echo "## ----------- ##
 
2273
## confdefs.h. ##
 
2274
## ----------- ##"
 
2275
      echo
 
2276
      cat confdefs.h
 
2277
      echo
 
2278
    fi
 
2279
    test "$ac_signal" != 0 &&
 
2280
      $as_echo "$as_me: caught signal $ac_signal"
 
2281
    $as_echo "$as_me: exit $exit_status"
 
2282
  } >&5
 
2283
  rm -f core *.core core.conftest.* &&
 
2284
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2285
    exit $exit_status
 
2286
' 0
 
2287
for ac_signal in 1 2 13 15; do
 
2288
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2289
done
 
2290
ac_signal=0
 
2291
 
 
2292
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2293
rm -f -r conftest* confdefs.h
 
2294
 
 
2295
$as_echo "/* confdefs.h */" > confdefs.h
 
2296
 
 
2297
# Predefined preprocessor variables.
 
2298
 
 
2299
cat >>confdefs.h <<_ACEOF
 
2300
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2301
_ACEOF
 
2302
 
 
2303
cat >>confdefs.h <<_ACEOF
 
2304
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2305
_ACEOF
 
2306
 
 
2307
cat >>confdefs.h <<_ACEOF
 
2308
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2309
_ACEOF
 
2310
 
 
2311
cat >>confdefs.h <<_ACEOF
 
2312
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2313
_ACEOF
 
2314
 
 
2315
cat >>confdefs.h <<_ACEOF
 
2316
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2317
_ACEOF
 
2318
 
 
2319
cat >>confdefs.h <<_ACEOF
 
2320
#define PACKAGE_URL "$PACKAGE_URL"
 
2321
_ACEOF
 
2322
 
 
2323
 
 
2324
# Let the site file select an alternate cache file if it wants to.
 
2325
# Prefer an explicitly selected file to automatically selected ones.
 
2326
ac_site_file1=NONE
 
2327
ac_site_file2=NONE
 
2328
if test -n "$CONFIG_SITE"; then
 
2329
  # We do not want a PATH search for config.site.
 
2330
  case $CONFIG_SITE in #((
 
2331
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2332
    */*) ac_site_file1=$CONFIG_SITE;;
 
2333
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2334
  esac
 
2335
elif test "x$prefix" != xNONE; then
 
2336
  ac_site_file1=$prefix/share/config.site
 
2337
  ac_site_file2=$prefix/etc/config.site
 
2338
else
 
2339
  ac_site_file1=$ac_default_prefix/share/config.site
 
2340
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2341
fi
 
2342
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2343
do
 
2344
  test "x$ac_site_file" = xNONE && continue
 
2345
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2346
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2347
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2348
    sed 's/^/| /' "$ac_site_file" >&5
 
2349
    . "$ac_site_file" \
 
2350
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2351
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2352
as_fn_error $? "failed to load site script $ac_site_file
 
2353
See \`config.log' for more details" "$LINENO" 5; }
 
2354
  fi
 
2355
done
 
2356
 
 
2357
if test -r "$cache_file"; then
 
2358
  # Some versions of bash will fail to source /dev/null (special files
 
2359
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2360
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2361
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2362
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2363
    case $cache_file in
 
2364
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2365
      *)                      . "./$cache_file";;
 
2366
    esac
 
2367
  fi
 
2368
else
 
2369
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2370
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2371
  >$cache_file
 
2372
fi
 
2373
 
 
2374
# Check that the precious variables saved in the cache have kept the same
 
2375
# value.
 
2376
ac_cache_corrupted=false
 
2377
for ac_var in $ac_precious_vars; do
 
2378
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2379
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2380
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2381
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2382
  case $ac_old_set,$ac_new_set in
 
2383
    set,)
 
2384
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2385
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2386
      ac_cache_corrupted=: ;;
 
2387
    ,set)
 
2388
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2389
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2390
      ac_cache_corrupted=: ;;
 
2391
    ,);;
 
2392
    *)
 
2393
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2394
        # differences in whitespace do not lead to failure.
 
2395
        ac_old_val_w=`echo x $ac_old_val`
 
2396
        ac_new_val_w=`echo x $ac_new_val`
 
2397
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2398
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2399
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2400
          ac_cache_corrupted=:
 
2401
        else
 
2402
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2403
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2404
          eval $ac_var=\$ac_old_val
 
2405
        fi
 
2406
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2407
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2408
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2409
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2410
      fi;;
 
2411
  esac
 
2412
  # Pass precious variables to config.status.
 
2413
  if test "$ac_new_set" = set; then
 
2414
    case $ac_new_val in
 
2415
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2416
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2417
    esac
 
2418
    case " $ac_configure_args " in
 
2419
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2420
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2421
    esac
 
2422
  fi
 
2423
done
 
2424
if $ac_cache_corrupted; then
 
2425
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2426
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2427
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2428
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2429
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2430
fi
 
2431
## -------------------- ##
 
2432
## Main body of script. ##
 
2433
## -------------------- ##
 
2434
 
 
2435
ac_ext=c
 
2436
ac_cpp='$CPP $CPPFLAGS'
 
2437
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2438
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2439
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2440
 
 
2441
 
 
2442
 
 
2443
 
 
2444
 
 
2445
 
 
2446
 
 
2447
 
 
2448
 
 
2449
rev=1
 
2450
 
 
2451
 
 
2452
srcroot=$srcdir
 
2453
if test "x${srcroot}" = "x." ; then
 
2454
  srcroot=""
 
2455
else
 
2456
  srcroot="${srcroot}/"
 
2457
fi
 
2458
 
 
2459
abs_srcroot="`cd \"${srcdir}\"; pwd`/"
 
2460
 
 
2461
 
 
2462
objroot=""
 
2463
 
 
2464
abs_objroot="`pwd`/"
 
2465
 
 
2466
 
 
2467
if test "x$prefix" = "xNONE" ; then
 
2468
  prefix="/usr/local"
 
2469
fi
 
2470
if test "x$exec_prefix" = "xNONE" ; then
 
2471
  exec_prefix=$prefix
 
2472
fi
 
2473
PREFIX=$prefix
 
2474
 
 
2475
BINDIR=`eval echo $bindir`
 
2476
BINDIR=`eval echo $BINDIR`
 
2477
 
 
2478
INCLUDEDIR=`eval echo $includedir`
 
2479
INCLUDEDIR=`eval echo $INCLUDEDIR`
 
2480
 
 
2481
LIBDIR=`eval echo $libdir`
 
2482
LIBDIR=`eval echo $LIBDIR`
 
2483
 
 
2484
DATADIR=`eval echo $datadir`
 
2485
DATADIR=`eval echo $DATADIR`
 
2486
 
 
2487
MANDIR=`eval echo $mandir`
 
2488
MANDIR=`eval echo $MANDIR`
 
2489
 
 
2490
 
 
2491
# Extract the first word of "xsltproc", so it can be a program name with args.
 
2492
set dummy xsltproc; ac_word=$2
 
2493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2494
$as_echo_n "checking for $ac_word... " >&6; }
 
2495
if ${ac_cv_path_XSLTPROC+:} false; then :
 
2496
  $as_echo_n "(cached) " >&6
 
2497
else
 
2498
  case $XSLTPROC in
 
2499
  [\\/]* | ?:[\\/]*)
 
2500
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
 
2501
  ;;
 
2502
  *)
 
2503
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2504
for as_dir in $PATH
 
2505
do
 
2506
  IFS=$as_save_IFS
 
2507
  test -z "$as_dir" && as_dir=.
 
2508
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2509
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2510
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
 
2511
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2512
    break 2
 
2513
  fi
 
2514
done
 
2515
  done
 
2516
IFS=$as_save_IFS
 
2517
 
 
2518
  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
 
2519
  ;;
 
2520
esac
 
2521
fi
 
2522
XSLTPROC=$ac_cv_path_XSLTPROC
 
2523
if test -n "$XSLTPROC"; then
 
2524
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
 
2525
$as_echo "$XSLTPROC" >&6; }
 
2526
else
 
2527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2528
$as_echo "no" >&6; }
 
2529
fi
 
2530
 
 
2531
 
 
2532
if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
 
2533
  DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
 
2534
elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
 
2535
  DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
 
2536
else
 
2537
    DEFAULT_XSLROOT=""
 
2538
fi
 
2539
 
 
2540
# Check whether --with-xslroot was given.
 
2541
if test "${with_xslroot+set}" = set; then :
 
2542
  withval=$with_xslroot;
 
2543
if test "x$with_xslroot" = "xno" ; then
 
2544
  XSLROOT="${DEFAULT_XSLROOT}"
 
2545
else
 
2546
  XSLROOT="${with_xslroot}"
 
2547
fi
 
2548
 
 
2549
else
 
2550
  XSLROOT="${DEFAULT_XSLROOT}"
 
2551
 
 
2552
fi
 
2553
 
 
2554
 
 
2555
 
 
2556
CFLAGS=$CFLAGS
 
2557
ac_ext=c
 
2558
ac_cpp='$CPP $CPPFLAGS'
 
2559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2562
if test -n "$ac_tool_prefix"; then
 
2563
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2564
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2566
$as_echo_n "checking for $ac_word... " >&6; }
 
2567
if ${ac_cv_prog_CC+:} false; then :
 
2568
  $as_echo_n "(cached) " >&6
 
2569
else
 
2570
  if test -n "$CC"; then
 
2571
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2572
else
 
2573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2574
for as_dir in $PATH
 
2575
do
 
2576
  IFS=$as_save_IFS
 
2577
  test -z "$as_dir" && as_dir=.
 
2578
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2579
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2580
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2581
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2582
    break 2
 
2583
  fi
 
2584
done
 
2585
  done
 
2586
IFS=$as_save_IFS
 
2587
 
 
2588
fi
 
2589
fi
 
2590
CC=$ac_cv_prog_CC
 
2591
if test -n "$CC"; then
 
2592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2593
$as_echo "$CC" >&6; }
 
2594
else
 
2595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2596
$as_echo "no" >&6; }
 
2597
fi
 
2598
 
 
2599
 
 
2600
fi
 
2601
if test -z "$ac_cv_prog_CC"; then
 
2602
  ac_ct_CC=$CC
 
2603
  # Extract the first word of "gcc", so it can be a program name with args.
 
2604
set dummy gcc; ac_word=$2
 
2605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2606
$as_echo_n "checking for $ac_word... " >&6; }
 
2607
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2608
  $as_echo_n "(cached) " >&6
 
2609
else
 
2610
  if test -n "$ac_ct_CC"; then
 
2611
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2612
else
 
2613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2614
for as_dir in $PATH
 
2615
do
 
2616
  IFS=$as_save_IFS
 
2617
  test -z "$as_dir" && as_dir=.
 
2618
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2620
    ac_cv_prog_ac_ct_CC="gcc"
 
2621
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2622
    break 2
 
2623
  fi
 
2624
done
 
2625
  done
 
2626
IFS=$as_save_IFS
 
2627
 
 
2628
fi
 
2629
fi
 
2630
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2631
if test -n "$ac_ct_CC"; then
 
2632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2633
$as_echo "$ac_ct_CC" >&6; }
 
2634
else
 
2635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2636
$as_echo "no" >&6; }
 
2637
fi
 
2638
 
 
2639
  if test "x$ac_ct_CC" = x; then
 
2640
    CC=""
 
2641
  else
 
2642
    case $cross_compiling:$ac_tool_warned in
 
2643
yes:)
 
2644
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2645
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2646
ac_tool_warned=yes ;;
 
2647
esac
 
2648
    CC=$ac_ct_CC
 
2649
  fi
 
2650
else
 
2651
  CC="$ac_cv_prog_CC"
 
2652
fi
 
2653
 
 
2654
if test -z "$CC"; then
 
2655
          if test -n "$ac_tool_prefix"; then
 
2656
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2657
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2659
$as_echo_n "checking for $ac_word... " >&6; }
 
2660
if ${ac_cv_prog_CC+:} false; then :
 
2661
  $as_echo_n "(cached) " >&6
 
2662
else
 
2663
  if test -n "$CC"; then
 
2664
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2665
else
 
2666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2667
for as_dir in $PATH
 
2668
do
 
2669
  IFS=$as_save_IFS
 
2670
  test -z "$as_dir" && as_dir=.
 
2671
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2672
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2673
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2674
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2675
    break 2
 
2676
  fi
 
2677
done
 
2678
  done
 
2679
IFS=$as_save_IFS
 
2680
 
 
2681
fi
 
2682
fi
 
2683
CC=$ac_cv_prog_CC
 
2684
if test -n "$CC"; then
 
2685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2686
$as_echo "$CC" >&6; }
 
2687
else
 
2688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2689
$as_echo "no" >&6; }
 
2690
fi
 
2691
 
 
2692
 
 
2693
  fi
 
2694
fi
 
2695
if test -z "$CC"; then
 
2696
  # Extract the first word of "cc", so it can be a program name with args.
 
2697
set dummy cc; ac_word=$2
 
2698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2699
$as_echo_n "checking for $ac_word... " >&6; }
 
2700
if ${ac_cv_prog_CC+:} false; then :
 
2701
  $as_echo_n "(cached) " >&6
 
2702
else
 
2703
  if test -n "$CC"; then
 
2704
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2705
else
 
2706
  ac_prog_rejected=no
 
2707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2708
for as_dir in $PATH
 
2709
do
 
2710
  IFS=$as_save_IFS
 
2711
  test -z "$as_dir" && as_dir=.
 
2712
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2713
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2714
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2715
       ac_prog_rejected=yes
 
2716
       continue
 
2717
     fi
 
2718
    ac_cv_prog_CC="cc"
 
2719
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2720
    break 2
 
2721
  fi
 
2722
done
 
2723
  done
 
2724
IFS=$as_save_IFS
 
2725
 
 
2726
if test $ac_prog_rejected = yes; then
 
2727
  # We found a bogon in the path, so make sure we never use it.
 
2728
  set dummy $ac_cv_prog_CC
 
2729
  shift
 
2730
  if test $# != 0; then
 
2731
    # We chose a different compiler from the bogus one.
 
2732
    # However, it has the same basename, so the bogon will be chosen
 
2733
    # first if we set CC to just the basename; use the full file name.
 
2734
    shift
 
2735
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2736
  fi
 
2737
fi
 
2738
fi
 
2739
fi
 
2740
CC=$ac_cv_prog_CC
 
2741
if test -n "$CC"; then
 
2742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2743
$as_echo "$CC" >&6; }
 
2744
else
 
2745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2746
$as_echo "no" >&6; }
 
2747
fi
 
2748
 
 
2749
 
 
2750
fi
 
2751
if test -z "$CC"; then
 
2752
  if test -n "$ac_tool_prefix"; then
 
2753
  for ac_prog in cl.exe
 
2754
  do
 
2755
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2756
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2758
$as_echo_n "checking for $ac_word... " >&6; }
 
2759
if ${ac_cv_prog_CC+:} false; then :
 
2760
  $as_echo_n "(cached) " >&6
 
2761
else
 
2762
  if test -n "$CC"; then
 
2763
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2764
else
 
2765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2766
for as_dir in $PATH
 
2767
do
 
2768
  IFS=$as_save_IFS
 
2769
  test -z "$as_dir" && as_dir=.
 
2770
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2771
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2772
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2773
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2774
    break 2
 
2775
  fi
 
2776
done
 
2777
  done
 
2778
IFS=$as_save_IFS
 
2779
 
 
2780
fi
 
2781
fi
 
2782
CC=$ac_cv_prog_CC
 
2783
if test -n "$CC"; then
 
2784
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2785
$as_echo "$CC" >&6; }
 
2786
else
 
2787
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2788
$as_echo "no" >&6; }
 
2789
fi
 
2790
 
 
2791
 
 
2792
    test -n "$CC" && break
 
2793
  done
 
2794
fi
 
2795
if test -z "$CC"; then
 
2796
  ac_ct_CC=$CC
 
2797
  for ac_prog in cl.exe
 
2798
do
 
2799
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2800
set dummy $ac_prog; ac_word=$2
 
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2802
$as_echo_n "checking for $ac_word... " >&6; }
 
2803
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2804
  $as_echo_n "(cached) " >&6
 
2805
else
 
2806
  if test -n "$ac_ct_CC"; then
 
2807
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2808
else
 
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2810
for as_dir in $PATH
 
2811
do
 
2812
  IFS=$as_save_IFS
 
2813
  test -z "$as_dir" && as_dir=.
 
2814
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2816
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2817
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2818
    break 2
 
2819
  fi
 
2820
done
 
2821
  done
 
2822
IFS=$as_save_IFS
 
2823
 
 
2824
fi
 
2825
fi
 
2826
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2827
if test -n "$ac_ct_CC"; then
 
2828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2829
$as_echo "$ac_ct_CC" >&6; }
 
2830
else
 
2831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2832
$as_echo "no" >&6; }
 
2833
fi
 
2834
 
 
2835
 
 
2836
  test -n "$ac_ct_CC" && break
 
2837
done
 
2838
 
 
2839
  if test "x$ac_ct_CC" = x; then
 
2840
    CC=""
 
2841
  else
 
2842
    case $cross_compiling:$ac_tool_warned in
 
2843
yes:)
 
2844
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2845
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2846
ac_tool_warned=yes ;;
 
2847
esac
 
2848
    CC=$ac_ct_CC
 
2849
  fi
 
2850
fi
 
2851
 
 
2852
fi
 
2853
 
 
2854
 
 
2855
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2856
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2857
as_fn_error $? "no acceptable C compiler found in \$PATH
 
2858
See \`config.log' for more details" "$LINENO" 5; }
 
2859
 
 
2860
# Provide some information about the compiler.
 
2861
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2862
set X $ac_compile
 
2863
ac_compiler=$2
 
2864
for ac_option in --version -v -V -qversion; do
 
2865
  { { ac_try="$ac_compiler $ac_option >&5"
 
2866
case "(($ac_try" in
 
2867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2868
  *) ac_try_echo=$ac_try;;
 
2869
esac
 
2870
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2871
$as_echo "$ac_try_echo"; } >&5
 
2872
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2873
  ac_status=$?
 
2874
  if test -s conftest.err; then
 
2875
    sed '10a\
 
2876
... rest of stderr output deleted ...
 
2877
         10q' conftest.err >conftest.er1
 
2878
    cat conftest.er1 >&5
 
2879
  fi
 
2880
  rm -f conftest.er1 conftest.err
 
2881
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2882
  test $ac_status = 0; }
 
2883
done
 
2884
 
 
2885
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2886
/* end confdefs.h.  */
 
2887
 
 
2888
int
 
2889
main ()
 
2890
{
 
2891
 
 
2892
  ;
 
2893
  return 0;
 
2894
}
 
2895
_ACEOF
 
2896
ac_clean_files_save=$ac_clean_files
 
2897
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2898
# Try to create an executable without -o first, disregard a.out.
 
2899
# It will help us diagnose broken compilers, and finding out an intuition
 
2900
# of exeext.
 
2901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
2902
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2903
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2904
 
 
2905
# The possible output files:
 
2906
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2907
 
 
2908
ac_rmfiles=
 
2909
for ac_file in $ac_files
 
2910
do
 
2911
  case $ac_file in
 
2912
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2913
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2914
  esac
 
2915
done
 
2916
rm -f $ac_rmfiles
 
2917
 
 
2918
if { { ac_try="$ac_link_default"
 
2919
case "(($ac_try" in
 
2920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2921
  *) ac_try_echo=$ac_try;;
 
2922
esac
 
2923
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2924
$as_echo "$ac_try_echo"; } >&5
 
2925
  (eval "$ac_link_default") 2>&5
 
2926
  ac_status=$?
 
2927
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2928
  test $ac_status = 0; }; then :
 
2929
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2930
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2931
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2932
# so that the user can short-circuit this test for compilers unknown to
 
2933
# Autoconf.
 
2934
for ac_file in $ac_files ''
 
2935
do
 
2936
  test -f "$ac_file" || continue
 
2937
  case $ac_file in
 
2938
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2939
        ;;
 
2940
    [ab].out )
 
2941
        # We found the default executable, but exeext='' is most
 
2942
        # certainly right.
 
2943
        break;;
 
2944
    *.* )
 
2945
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2946
        then :; else
 
2947
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2948
        fi
 
2949
        # We set ac_cv_exeext here because the later test for it is not
 
2950
        # safe: cross compilers may not add the suffix if given an `-o'
 
2951
        # argument, so we may need to know it at that point already.
 
2952
        # Even if this section looks crufty: it has the advantage of
 
2953
        # actually working.
 
2954
        break;;
 
2955
    * )
 
2956
        break;;
 
2957
  esac
 
2958
done
 
2959
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2960
 
 
2961
else
 
2962
  ac_file=''
 
2963
fi
 
2964
if test -z "$ac_file"; then :
 
2965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2966
$as_echo "no" >&6; }
 
2967
$as_echo "$as_me: failed program was:" >&5
 
2968
sed 's/^/| /' conftest.$ac_ext >&5
 
2969
 
 
2970
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2971
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2972
as_fn_error 77 "C compiler cannot create executables
 
2973
See \`config.log' for more details" "$LINENO" 5; }
 
2974
else
 
2975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2976
$as_echo "yes" >&6; }
 
2977
fi
 
2978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
2979
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
2981
$as_echo "$ac_file" >&6; }
 
2982
ac_exeext=$ac_cv_exeext
 
2983
 
 
2984
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2985
ac_clean_files=$ac_clean_files_save
 
2986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
2987
$as_echo_n "checking for suffix of executables... " >&6; }
 
2988
if { { ac_try="$ac_link"
 
2989
case "(($ac_try" in
 
2990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2991
  *) ac_try_echo=$ac_try;;
 
2992
esac
 
2993
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2994
$as_echo "$ac_try_echo"; } >&5
 
2995
  (eval "$ac_link") 2>&5
 
2996
  ac_status=$?
 
2997
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2998
  test $ac_status = 0; }; then :
 
2999
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3000
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3001
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3002
# `rm'.
 
3003
for ac_file in conftest.exe conftest conftest.*; do
 
3004
  test -f "$ac_file" || continue
 
3005
  case $ac_file in
 
3006
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3007
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3008
          break;;
 
3009
    * ) break;;
 
3010
  esac
 
3011
done
 
3012
else
 
3013
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3014
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3015
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3016
See \`config.log' for more details" "$LINENO" 5; }
 
3017
fi
 
3018
rm -f conftest conftest$ac_cv_exeext
 
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3020
$as_echo "$ac_cv_exeext" >&6; }
 
3021
 
 
3022
rm -f conftest.$ac_ext
 
3023
EXEEXT=$ac_cv_exeext
 
3024
ac_exeext=$EXEEXT
 
3025
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3026
/* end confdefs.h.  */
 
3027
#include <stdio.h>
 
3028
int
 
3029
main ()
 
3030
{
 
3031
FILE *f = fopen ("conftest.out", "w");
 
3032
 return ferror (f) || fclose (f) != 0;
 
3033
 
 
3034
  ;
 
3035
  return 0;
 
3036
}
 
3037
_ACEOF
 
3038
ac_clean_files="$ac_clean_files conftest.out"
 
3039
# Check that the compiler produces executables we can run.  If not, either
 
3040
# the compiler is broken, or we cross compile.
 
3041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3042
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3043
if test "$cross_compiling" != yes; then
 
3044
  { { ac_try="$ac_link"
 
3045
case "(($ac_try" in
 
3046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3047
  *) ac_try_echo=$ac_try;;
 
3048
esac
 
3049
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3050
$as_echo "$ac_try_echo"; } >&5
 
3051
  (eval "$ac_link") 2>&5
 
3052
  ac_status=$?
 
3053
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3054
  test $ac_status = 0; }
 
3055
  if { ac_try='./conftest$ac_cv_exeext'
 
3056
  { { case "(($ac_try" in
 
3057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3058
  *) ac_try_echo=$ac_try;;
 
3059
esac
 
3060
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3061
$as_echo "$ac_try_echo"; } >&5
 
3062
  (eval "$ac_try") 2>&5
 
3063
  ac_status=$?
 
3064
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3065
  test $ac_status = 0; }; }; then
 
3066
    cross_compiling=no
 
3067
  else
 
3068
    if test "$cross_compiling" = maybe; then
 
3069
        cross_compiling=yes
 
3070
    else
 
3071
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3072
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3073
as_fn_error $? "cannot run C compiled programs.
 
3074
If you meant to cross compile, use \`--host'.
 
3075
See \`config.log' for more details" "$LINENO" 5; }
 
3076
    fi
 
3077
  fi
 
3078
fi
 
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3080
$as_echo "$cross_compiling" >&6; }
 
3081
 
 
3082
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3083
ac_clean_files=$ac_clean_files_save
 
3084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3085
$as_echo_n "checking for suffix of object files... " >&6; }
 
3086
if ${ac_cv_objext+:} false; then :
 
3087
  $as_echo_n "(cached) " >&6
 
3088
else
 
3089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3090
/* end confdefs.h.  */
 
3091
 
 
3092
int
 
3093
main ()
 
3094
{
 
3095
 
 
3096
  ;
 
3097
  return 0;
 
3098
}
 
3099
_ACEOF
 
3100
rm -f conftest.o conftest.obj
 
3101
if { { ac_try="$ac_compile"
 
3102
case "(($ac_try" in
 
3103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3104
  *) ac_try_echo=$ac_try;;
 
3105
esac
 
3106
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3107
$as_echo "$ac_try_echo"; } >&5
 
3108
  (eval "$ac_compile") 2>&5
 
3109
  ac_status=$?
 
3110
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3111
  test $ac_status = 0; }; then :
 
3112
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3113
  test -f "$ac_file" || continue;
 
3114
  case $ac_file in
 
3115
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3116
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3117
       break;;
 
3118
  esac
 
3119
done
 
3120
else
 
3121
  $as_echo "$as_me: failed program was:" >&5
 
3122
sed 's/^/| /' conftest.$ac_ext >&5
 
3123
 
 
3124
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3125
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3126
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3127
See \`config.log' for more details" "$LINENO" 5; }
 
3128
fi
 
3129
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3130
fi
 
3131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3132
$as_echo "$ac_cv_objext" >&6; }
 
3133
OBJEXT=$ac_cv_objext
 
3134
ac_objext=$OBJEXT
 
3135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3136
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3137
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3138
  $as_echo_n "(cached) " >&6
 
3139
else
 
3140
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3141
/* end confdefs.h.  */
 
3142
 
 
3143
int
 
3144
main ()
 
3145
{
 
3146
#ifndef __GNUC__
 
3147
       choke me
 
3148
#endif
 
3149
 
 
3150
  ;
 
3151
  return 0;
 
3152
}
 
3153
_ACEOF
 
3154
if ac_fn_c_try_compile "$LINENO"; then :
 
3155
  ac_compiler_gnu=yes
 
3156
else
 
3157
  ac_compiler_gnu=no
 
3158
fi
 
3159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3160
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3161
 
 
3162
fi
 
3163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3164
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3165
if test $ac_compiler_gnu = yes; then
 
3166
  GCC=yes
 
3167
else
 
3168
  GCC=
 
3169
fi
 
3170
ac_test_CFLAGS=${CFLAGS+set}
 
3171
ac_save_CFLAGS=$CFLAGS
 
3172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3173
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3174
if ${ac_cv_prog_cc_g+:} false; then :
 
3175
  $as_echo_n "(cached) " >&6
 
3176
else
 
3177
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3178
   ac_c_werror_flag=yes
 
3179
   ac_cv_prog_cc_g=no
 
3180
   CFLAGS="-g"
 
3181
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3182
/* end confdefs.h.  */
 
3183
 
 
3184
int
 
3185
main ()
 
3186
{
 
3187
 
 
3188
  ;
 
3189
  return 0;
 
3190
}
 
3191
_ACEOF
 
3192
if ac_fn_c_try_compile "$LINENO"; then :
 
3193
  ac_cv_prog_cc_g=yes
 
3194
else
 
3195
  CFLAGS=""
 
3196
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3197
/* end confdefs.h.  */
 
3198
 
 
3199
int
 
3200
main ()
 
3201
{
 
3202
 
 
3203
  ;
 
3204
  return 0;
 
3205
}
 
3206
_ACEOF
 
3207
if ac_fn_c_try_compile "$LINENO"; then :
 
3208
 
 
3209
else
 
3210
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3211
         CFLAGS="-g"
 
3212
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3213
/* end confdefs.h.  */
 
3214
 
 
3215
int
 
3216
main ()
 
3217
{
 
3218
 
 
3219
  ;
 
3220
  return 0;
 
3221
}
 
3222
_ACEOF
 
3223
if ac_fn_c_try_compile "$LINENO"; then :
 
3224
  ac_cv_prog_cc_g=yes
 
3225
fi
 
3226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3227
fi
 
3228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3229
fi
 
3230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3231
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3232
fi
 
3233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3234
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3235
if test "$ac_test_CFLAGS" = set; then
 
3236
  CFLAGS=$ac_save_CFLAGS
 
3237
elif test $ac_cv_prog_cc_g = yes; then
 
3238
  if test "$GCC" = yes; then
 
3239
    CFLAGS="-g -O2"
 
3240
  else
 
3241
    CFLAGS="-g"
 
3242
  fi
 
3243
else
 
3244
  if test "$GCC" = yes; then
 
3245
    CFLAGS="-O2"
 
3246
  else
 
3247
    CFLAGS=
 
3248
  fi
 
3249
fi
 
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3251
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3252
if ${ac_cv_prog_cc_c89+:} false; then :
 
3253
  $as_echo_n "(cached) " >&6
 
3254
else
 
3255
  ac_cv_prog_cc_c89=no
 
3256
ac_save_CC=$CC
 
3257
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3258
/* end confdefs.h.  */
 
3259
#include <stdarg.h>
 
3260
#include <stdio.h>
 
3261
#include <sys/types.h>
 
3262
#include <sys/stat.h>
 
3263
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3264
struct buf { int x; };
 
3265
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3266
static char *e (p, i)
 
3267
     char **p;
 
3268
     int i;
 
3269
{
 
3270
  return p[i];
 
3271
}
 
3272
static char *f (char * (*g) (char **, int), char **p, ...)
 
3273
{
 
3274
  char *s;
 
3275
  va_list v;
 
3276
  va_start (v,p);
 
3277
  s = g (p, va_arg (v,int));
 
3278
  va_end (v);
 
3279
  return s;
 
3280
}
 
3281
 
 
3282
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3283
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3284
   These don't provoke an error unfortunately, instead are silently treated
 
3285
   as 'x'.  The following induces an error, until -std is added to get
 
3286
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3287
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3288
   that's true only with -std.  */
 
3289
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3290
 
 
3291
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3292
   inside strings and character constants.  */
 
3293
#define FOO(x) 'x'
 
3294
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3295
 
 
3296
int test (int i, double x);
 
3297
struct s1 {int (*f) (int a);};
 
3298
struct s2 {int (*f) (double a);};
 
3299
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3300
int argc;
 
3301
char **argv;
 
3302
int
 
3303
main ()
 
3304
{
 
3305
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3306
  ;
 
3307
  return 0;
 
3308
}
 
3309
_ACEOF
 
3310
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3311
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3312
do
 
3313
  CC="$ac_save_CC $ac_arg"
 
3314
  if ac_fn_c_try_compile "$LINENO"; then :
 
3315
  ac_cv_prog_cc_c89=$ac_arg
 
3316
fi
 
3317
rm -f core conftest.err conftest.$ac_objext
 
3318
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3319
done
 
3320
rm -f conftest.$ac_ext
 
3321
CC=$ac_save_CC
 
3322
 
 
3323
fi
 
3324
# AC_CACHE_VAL
 
3325
case "x$ac_cv_prog_cc_c89" in
 
3326
  x)
 
3327
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3328
$as_echo "none needed" >&6; } ;;
 
3329
  xno)
 
3330
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3331
$as_echo "unsupported" >&6; } ;;
 
3332
  *)
 
3333
    CC="$CC $ac_cv_prog_cc_c89"
 
3334
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3335
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3336
esac
 
3337
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3338
 
 
3339
fi
 
3340
 
 
3341
ac_ext=c
 
3342
ac_cpp='$CPP $CPPFLAGS'
 
3343
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3344
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3345
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3346
 
 
3347
if test "x$GCC" != "xyes" ; then
 
3348
 
 
3349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
 
3350
$as_echo_n "checking whether compiler is MSVC... " >&6; }
 
3351
if ${je_cv_msvc+:} false; then :
 
3352
  $as_echo_n "(cached) " >&6
 
3353
else
 
3354
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3355
/* end confdefs.h.  */
 
3356
 
 
3357
int
 
3358
main ()
 
3359
{
 
3360
 
 
3361
#ifndef _MSC_VER
 
3362
  int fail-1;
 
3363
#endif
 
3364
 
 
3365
  ;
 
3366
  return 0;
 
3367
}
 
3368
_ACEOF
 
3369
if ac_fn_c_try_compile "$LINENO"; then :
 
3370
  je_cv_msvc=yes
 
3371
else
 
3372
  je_cv_msvc=no
 
3373
fi
 
3374
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3375
fi
 
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
 
3377
$as_echo "$je_cv_msvc" >&6; }
 
3378
fi
 
3379
 
 
3380
if test "x$CFLAGS" = "x" ; then
 
3381
  no_CFLAGS="yes"
 
3382
  if test "x$GCC" = "xyes" ; then
 
3383
 
 
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
 
3385
$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
 
3386
TCFLAGS="${CFLAGS}"
 
3387
if test "x${CFLAGS}" = "x" ; then
 
3388
  CFLAGS="-std=gnu99"
 
3389
else
 
3390
  CFLAGS="${CFLAGS} -std=gnu99"
 
3391
fi
 
3392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3393
/* end confdefs.h.  */
 
3394
 
 
3395
 
 
3396
int
 
3397
main ()
 
3398
{
 
3399
 
 
3400
    return 0;
 
3401
 
 
3402
  ;
 
3403
  return 0;
 
3404
}
 
3405
_ACEOF
 
3406
if ac_fn_c_try_compile "$LINENO"; then :
 
3407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3408
$as_echo "yes" >&6; }
 
3409
else
 
3410
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3411
$as_echo "no" >&6; }
 
3412
              CFLAGS="${TCFLAGS}"
 
3413
 
 
3414
fi
 
3415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3416
 
 
3417
 
 
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
 
3419
$as_echo_n "checking whether compiler supports -Wall... " >&6; }
 
3420
TCFLAGS="${CFLAGS}"
 
3421
if test "x${CFLAGS}" = "x" ; then
 
3422
  CFLAGS="-Wall"
 
3423
else
 
3424
  CFLAGS="${CFLAGS} -Wall"
 
3425
fi
 
3426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3427
/* end confdefs.h.  */
 
3428
 
 
3429
 
 
3430
int
 
3431
main ()
 
3432
{
 
3433
 
 
3434
    return 0;
 
3435
 
 
3436
  ;
 
3437
  return 0;
 
3438
}
 
3439
_ACEOF
 
3440
if ac_fn_c_try_compile "$LINENO"; then :
 
3441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3442
$as_echo "yes" >&6; }
 
3443
else
 
3444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3445
$as_echo "no" >&6; }
 
3446
              CFLAGS="${TCFLAGS}"
 
3447
 
 
3448
fi
 
3449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3450
 
 
3451
 
 
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
 
3453
$as_echo_n "checking whether compiler supports -pipe... " >&6; }
 
3454
TCFLAGS="${CFLAGS}"
 
3455
if test "x${CFLAGS}" = "x" ; then
 
3456
  CFLAGS="-pipe"
 
3457
else
 
3458
  CFLAGS="${CFLAGS} -pipe"
 
3459
fi
 
3460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3461
/* end confdefs.h.  */
 
3462
 
 
3463
 
 
3464
int
 
3465
main ()
 
3466
{
 
3467
 
 
3468
    return 0;
 
3469
 
 
3470
  ;
 
3471
  return 0;
 
3472
}
 
3473
_ACEOF
 
3474
if ac_fn_c_try_compile "$LINENO"; then :
 
3475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3476
$as_echo "yes" >&6; }
 
3477
else
 
3478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3479
$as_echo "no" >&6; }
 
3480
              CFLAGS="${TCFLAGS}"
 
3481
 
 
3482
fi
 
3483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3484
 
 
3485
 
 
3486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
 
3487
$as_echo_n "checking whether compiler supports -g3... " >&6; }
 
3488
TCFLAGS="${CFLAGS}"
 
3489
if test "x${CFLAGS}" = "x" ; then
 
3490
  CFLAGS="-g3"
 
3491
else
 
3492
  CFLAGS="${CFLAGS} -g3"
 
3493
fi
 
3494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3495
/* end confdefs.h.  */
 
3496
 
 
3497
 
 
3498
int
 
3499
main ()
 
3500
{
 
3501
 
 
3502
    return 0;
 
3503
 
 
3504
  ;
 
3505
  return 0;
 
3506
}
 
3507
_ACEOF
 
3508
if ac_fn_c_try_compile "$LINENO"; then :
 
3509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3510
$as_echo "yes" >&6; }
 
3511
else
 
3512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3513
$as_echo "no" >&6; }
 
3514
              CFLAGS="${TCFLAGS}"
 
3515
 
 
3516
fi
 
3517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3518
 
 
3519
  elif test "x$je_cv_msvc" = "xyes" ; then
 
3520
    CC="$CC -nologo"
 
3521
 
 
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
 
3523
$as_echo_n "checking whether compiler supports -Zi... " >&6; }
 
3524
TCFLAGS="${CFLAGS}"
 
3525
if test "x${CFLAGS}" = "x" ; then
 
3526
  CFLAGS="-Zi"
 
3527
else
 
3528
  CFLAGS="${CFLAGS} -Zi"
 
3529
fi
 
3530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3531
/* end confdefs.h.  */
 
3532
 
 
3533
 
 
3534
int
 
3535
main ()
 
3536
{
 
3537
 
 
3538
    return 0;
 
3539
 
 
3540
  ;
 
3541
  return 0;
 
3542
}
 
3543
_ACEOF
 
3544
if ac_fn_c_try_compile "$LINENO"; then :
 
3545
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3546
$as_echo "yes" >&6; }
 
3547
else
 
3548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3549
$as_echo "no" >&6; }
 
3550
              CFLAGS="${TCFLAGS}"
 
3551
 
 
3552
fi
 
3553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3554
 
 
3555
 
 
3556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
 
3557
$as_echo_n "checking whether compiler supports -MT... " >&6; }
 
3558
TCFLAGS="${CFLAGS}"
 
3559
if test "x${CFLAGS}" = "x" ; then
 
3560
  CFLAGS="-MT"
 
3561
else
 
3562
  CFLAGS="${CFLAGS} -MT"
 
3563
fi
 
3564
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3565
/* end confdefs.h.  */
 
3566
 
 
3567
 
 
3568
int
 
3569
main ()
 
3570
{
 
3571
 
 
3572
    return 0;
 
3573
 
 
3574
  ;
 
3575
  return 0;
 
3576
}
 
3577
_ACEOF
 
3578
if ac_fn_c_try_compile "$LINENO"; then :
 
3579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3580
$as_echo "yes" >&6; }
 
3581
else
 
3582
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3583
$as_echo "no" >&6; }
 
3584
              CFLAGS="${TCFLAGS}"
 
3585
 
 
3586
fi
 
3587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3588
 
 
3589
 
 
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
 
3591
$as_echo_n "checking whether compiler supports -W3... " >&6; }
 
3592
TCFLAGS="${CFLAGS}"
 
3593
if test "x${CFLAGS}" = "x" ; then
 
3594
  CFLAGS="-W3"
 
3595
else
 
3596
  CFLAGS="${CFLAGS} -W3"
 
3597
fi
 
3598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3599
/* end confdefs.h.  */
 
3600
 
 
3601
 
 
3602
int
 
3603
main ()
 
3604
{
 
3605
 
 
3606
    return 0;
 
3607
 
 
3608
  ;
 
3609
  return 0;
 
3610
}
 
3611
_ACEOF
 
3612
if ac_fn_c_try_compile "$LINENO"; then :
 
3613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3614
$as_echo "yes" >&6; }
 
3615
else
 
3616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3617
$as_echo "no" >&6; }
 
3618
              CFLAGS="${TCFLAGS}"
 
3619
 
 
3620
fi
 
3621
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3622
 
 
3623
    CPPFLAGS="$CPPFLAGS -I${srcroot}/include/msvc_compat"
 
3624
  fi
 
3625
fi
 
3626
if test "x$EXTRA_CFLAGS" != "x" ; then
 
3627
 
 
3628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $EXTRA_CFLAGS" >&5
 
3629
$as_echo_n "checking whether compiler supports $EXTRA_CFLAGS... " >&6; }
 
3630
TCFLAGS="${CFLAGS}"
 
3631
if test "x${CFLAGS}" = "x" ; then
 
3632
  CFLAGS="$EXTRA_CFLAGS"
 
3633
else
 
3634
  CFLAGS="${CFLAGS} $EXTRA_CFLAGS"
 
3635
fi
 
3636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3637
/* end confdefs.h.  */
 
3638
 
 
3639
 
 
3640
int
 
3641
main ()
 
3642
{
 
3643
 
 
3644
    return 0;
 
3645
 
 
3646
  ;
 
3647
  return 0;
 
3648
}
 
3649
_ACEOF
 
3650
if ac_fn_c_try_compile "$LINENO"; then :
 
3651
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3652
$as_echo "yes" >&6; }
 
3653
else
 
3654
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3655
$as_echo "no" >&6; }
 
3656
              CFLAGS="${TCFLAGS}"
 
3657
 
 
3658
fi
 
3659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3660
 
 
3661
fi
 
3662
ac_ext=c
 
3663
ac_cpp='$CPP $CPPFLAGS'
 
3664
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3665
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3666
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3668
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3669
# On Suns, sometimes $CPP names a directory.
 
3670
if test -n "$CPP" && test -d "$CPP"; then
 
3671
  CPP=
 
3672
fi
 
3673
if test -z "$CPP"; then
 
3674
  if ${ac_cv_prog_CPP+:} false; then :
 
3675
  $as_echo_n "(cached) " >&6
 
3676
else
 
3677
      # Double quotes because CPP needs to be expanded
 
3678
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3679
    do
 
3680
      ac_preproc_ok=false
 
3681
for ac_c_preproc_warn_flag in '' yes
 
3682
do
 
3683
  # Use a header file that comes with gcc, so configuring glibc
 
3684
  # with a fresh cross-compiler works.
 
3685
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3686
  # <limits.h> exists even on freestanding compilers.
 
3687
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3688
  # not just through cpp. "Syntax error" is here to catch this case.
 
3689
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3690
/* end confdefs.h.  */
 
3691
#ifdef __STDC__
 
3692
# include <limits.h>
 
3693
#else
 
3694
# include <assert.h>
 
3695
#endif
 
3696
                     Syntax error
 
3697
_ACEOF
 
3698
if ac_fn_c_try_cpp "$LINENO"; then :
 
3699
 
 
3700
else
 
3701
  # Broken: fails on valid input.
 
3702
continue
 
3703
fi
 
3704
rm -f conftest.err conftest.i conftest.$ac_ext
 
3705
 
 
3706
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3707
  # can be detected and how.
 
3708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3709
/* end confdefs.h.  */
 
3710
#include <ac_nonexistent.h>
 
3711
_ACEOF
 
3712
if ac_fn_c_try_cpp "$LINENO"; then :
 
3713
  # Broken: success on invalid input.
 
3714
continue
 
3715
else
 
3716
  # Passes both tests.
 
3717
ac_preproc_ok=:
 
3718
break
 
3719
fi
 
3720
rm -f conftest.err conftest.i conftest.$ac_ext
 
3721
 
 
3722
done
 
3723
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3724
rm -f conftest.i conftest.err conftest.$ac_ext
 
3725
if $ac_preproc_ok; then :
 
3726
  break
 
3727
fi
 
3728
 
 
3729
    done
 
3730
    ac_cv_prog_CPP=$CPP
 
3731
 
 
3732
fi
 
3733
  CPP=$ac_cv_prog_CPP
 
3734
else
 
3735
  ac_cv_prog_CPP=$CPP
 
3736
fi
 
3737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3738
$as_echo "$CPP" >&6; }
 
3739
ac_preproc_ok=false
 
3740
for ac_c_preproc_warn_flag in '' yes
 
3741
do
 
3742
  # Use a header file that comes with gcc, so configuring glibc
 
3743
  # with a fresh cross-compiler works.
 
3744
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3745
  # <limits.h> exists even on freestanding compilers.
 
3746
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3747
  # not just through cpp. "Syntax error" is here to catch this case.
 
3748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3749
/* end confdefs.h.  */
 
3750
#ifdef __STDC__
 
3751
# include <limits.h>
 
3752
#else
 
3753
# include <assert.h>
 
3754
#endif
 
3755
                     Syntax error
 
3756
_ACEOF
 
3757
if ac_fn_c_try_cpp "$LINENO"; then :
 
3758
 
 
3759
else
 
3760
  # Broken: fails on valid input.
 
3761
continue
 
3762
fi
 
3763
rm -f conftest.err conftest.i conftest.$ac_ext
 
3764
 
 
3765
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3766
  # can be detected and how.
 
3767
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3768
/* end confdefs.h.  */
 
3769
#include <ac_nonexistent.h>
 
3770
_ACEOF
 
3771
if ac_fn_c_try_cpp "$LINENO"; then :
 
3772
  # Broken: success on invalid input.
 
3773
continue
 
3774
else
 
3775
  # Passes both tests.
 
3776
ac_preproc_ok=:
 
3777
break
 
3778
fi
 
3779
rm -f conftest.err conftest.i conftest.$ac_ext
 
3780
 
 
3781
done
 
3782
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3783
rm -f conftest.i conftest.err conftest.$ac_ext
 
3784
if $ac_preproc_ok; then :
 
3785
 
 
3786
else
 
3787
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3788
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3789
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
3790
See \`config.log' for more details" "$LINENO" 5; }
 
3791
fi
 
3792
 
 
3793
ac_ext=c
 
3794
ac_cpp='$CPP $CPPFLAGS'
 
3795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3796
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3797
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3798
 
 
3799
 
 
3800
 
 
3801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3802
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3803
if ${ac_cv_path_GREP+:} false; then :
 
3804
  $as_echo_n "(cached) " >&6
 
3805
else
 
3806
  if test -z "$GREP"; then
 
3807
  ac_path_GREP_found=false
 
3808
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3809
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3810
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3811
do
 
3812
  IFS=$as_save_IFS
 
3813
  test -z "$as_dir" && as_dir=.
 
3814
    for ac_prog in grep ggrep; do
 
3815
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3816
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3817
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3818
# Check for GNU ac_path_GREP and select it if it is found.
 
3819
  # Check for GNU $ac_path_GREP
 
3820
case `"$ac_path_GREP" --version 2>&1` in
 
3821
*GNU*)
 
3822
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3823
*)
 
3824
  ac_count=0
 
3825
  $as_echo_n 0123456789 >"conftest.in"
 
3826
  while :
 
3827
  do
 
3828
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3829
    mv "conftest.tmp" "conftest.in"
 
3830
    cp "conftest.in" "conftest.nl"
 
3831
    $as_echo 'GREP' >> "conftest.nl"
 
3832
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3833
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3834
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3835
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3836
      # Best one so far, save it but keep looking for a better one
 
3837
      ac_cv_path_GREP="$ac_path_GREP"
 
3838
      ac_path_GREP_max=$ac_count
 
3839
    fi
 
3840
    # 10*(2^10) chars as input seems more than enough
 
3841
    test $ac_count -gt 10 && break
 
3842
  done
 
3843
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3844
esac
 
3845
 
 
3846
      $ac_path_GREP_found && break 3
 
3847
    done
 
3848
  done
 
3849
  done
 
3850
IFS=$as_save_IFS
 
3851
  if test -z "$ac_cv_path_GREP"; then
 
3852
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3853
  fi
 
3854
else
 
3855
  ac_cv_path_GREP=$GREP
 
3856
fi
 
3857
 
 
3858
fi
 
3859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3860
$as_echo "$ac_cv_path_GREP" >&6; }
 
3861
 GREP="$ac_cv_path_GREP"
 
3862
 
 
3863
 
 
3864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3865
$as_echo_n "checking for egrep... " >&6; }
 
3866
if ${ac_cv_path_EGREP+:} false; then :
 
3867
  $as_echo_n "(cached) " >&6
 
3868
else
 
3869
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3870
   then ac_cv_path_EGREP="$GREP -E"
 
3871
   else
 
3872
     if test -z "$EGREP"; then
 
3873
  ac_path_EGREP_found=false
 
3874
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3875
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3876
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3877
do
 
3878
  IFS=$as_save_IFS
 
3879
  test -z "$as_dir" && as_dir=.
 
3880
    for ac_prog in egrep; do
 
3881
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3882
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3883
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3884
# Check for GNU ac_path_EGREP and select it if it is found.
 
3885
  # Check for GNU $ac_path_EGREP
 
3886
case `"$ac_path_EGREP" --version 2>&1` in
 
3887
*GNU*)
 
3888
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3889
*)
 
3890
  ac_count=0
 
3891
  $as_echo_n 0123456789 >"conftest.in"
 
3892
  while :
 
3893
  do
 
3894
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3895
    mv "conftest.tmp" "conftest.in"
 
3896
    cp "conftest.in" "conftest.nl"
 
3897
    $as_echo 'EGREP' >> "conftest.nl"
 
3898
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3899
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3900
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3901
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3902
      # Best one so far, save it but keep looking for a better one
 
3903
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3904
      ac_path_EGREP_max=$ac_count
 
3905
    fi
 
3906
    # 10*(2^10) chars as input seems more than enough
 
3907
    test $ac_count -gt 10 && break
 
3908
  done
 
3909
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3910
esac
 
3911
 
 
3912
      $ac_path_EGREP_found && break 3
 
3913
    done
 
3914
  done
 
3915
  done
 
3916
IFS=$as_save_IFS
 
3917
  if test -z "$ac_cv_path_EGREP"; then
 
3918
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3919
  fi
 
3920
else
 
3921
  ac_cv_path_EGREP=$EGREP
 
3922
fi
 
3923
 
 
3924
   fi
 
3925
fi
 
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
3927
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3928
 EGREP="$ac_cv_path_EGREP"
 
3929
 
 
3930
 
 
3931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
3932
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3933
if ${ac_cv_header_stdc+:} false; then :
 
3934
  $as_echo_n "(cached) " >&6
 
3935
else
 
3936
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3937
/* end confdefs.h.  */
 
3938
#include <stdlib.h>
 
3939
#include <stdarg.h>
 
3940
#include <string.h>
 
3941
#include <float.h>
 
3942
 
 
3943
int
 
3944
main ()
 
3945
{
 
3946
 
 
3947
  ;
 
3948
  return 0;
 
3949
}
 
3950
_ACEOF
 
3951
if ac_fn_c_try_compile "$LINENO"; then :
 
3952
  ac_cv_header_stdc=yes
 
3953
else
 
3954
  ac_cv_header_stdc=no
 
3955
fi
 
3956
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3957
 
 
3958
if test $ac_cv_header_stdc = yes; then
 
3959
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3960
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3961
/* end confdefs.h.  */
 
3962
#include <string.h>
 
3963
 
 
3964
_ACEOF
 
3965
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3966
  $EGREP "memchr" >/dev/null 2>&1; then :
 
3967
 
 
3968
else
 
3969
  ac_cv_header_stdc=no
 
3970
fi
 
3971
rm -f conftest*
 
3972
 
 
3973
fi
 
3974
 
 
3975
if test $ac_cv_header_stdc = yes; then
 
3976
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3978
/* end confdefs.h.  */
 
3979
#include <stdlib.h>
 
3980
 
 
3981
_ACEOF
 
3982
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3983
  $EGREP "free" >/dev/null 2>&1; then :
 
3984
 
 
3985
else
 
3986
  ac_cv_header_stdc=no
 
3987
fi
 
3988
rm -f conftest*
 
3989
 
 
3990
fi
 
3991
 
 
3992
if test $ac_cv_header_stdc = yes; then
 
3993
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3994
  if test "$cross_compiling" = yes; then :
 
3995
  :
 
3996
else
 
3997
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3998
/* end confdefs.h.  */
 
3999
#include <ctype.h>
 
4000
#include <stdlib.h>
 
4001
#if ((' ' & 0x0FF) == 0x020)
 
4002
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4003
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4004
#else
 
4005
# define ISLOWER(c) \
 
4006
                   (('a' <= (c) && (c) <= 'i') \
 
4007
                     || ('j' <= (c) && (c) <= 'r') \
 
4008
                     || ('s' <= (c) && (c) <= 'z'))
 
4009
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4010
#endif
 
4011
 
 
4012
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4013
int
 
4014
main ()
 
4015
{
 
4016
  int i;
 
4017
  for (i = 0; i < 256; i++)
 
4018
    if (XOR (islower (i), ISLOWER (i))
 
4019
        || toupper (i) != TOUPPER (i))
 
4020
      return 2;
 
4021
  return 0;
 
4022
}
 
4023
_ACEOF
 
4024
if ac_fn_c_try_run "$LINENO"; then :
 
4025
 
 
4026
else
 
4027
  ac_cv_header_stdc=no
 
4028
fi
 
4029
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4030
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4031
fi
 
4032
 
 
4033
fi
 
4034
fi
 
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4036
$as_echo "$ac_cv_header_stdc" >&6; }
 
4037
if test $ac_cv_header_stdc = yes; then
 
4038
 
 
4039
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4040
 
 
4041
fi
 
4042
 
 
4043
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4044
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4045
                  inttypes.h stdint.h unistd.h
 
4046
do :
 
4047
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4048
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4049
"
 
4050
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
4051
  cat >>confdefs.h <<_ACEOF
 
4052
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4053
_ACEOF
 
4054
 
 
4055
fi
 
4056
 
 
4057
done
 
4058
 
 
4059
 
 
4060
# The cast to long int works around a bug in the HP C Compiler
 
4061
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4062
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4063
# This bug is HP SR number 8606223364.
 
4064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
 
4065
$as_echo_n "checking size of void *... " >&6; }
 
4066
if ${ac_cv_sizeof_void_p+:} false; then :
 
4067
  $as_echo_n "(cached) " >&6
 
4068
else
 
4069
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
 
4070
 
 
4071
else
 
4072
  if test "$ac_cv_type_void_p" = yes; then
 
4073
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4074
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4075
as_fn_error 77 "cannot compute sizeof (void *)
 
4076
See \`config.log' for more details" "$LINENO" 5; }
 
4077
   else
 
4078
     ac_cv_sizeof_void_p=0
 
4079
   fi
 
4080
fi
 
4081
 
 
4082
fi
 
4083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
 
4084
$as_echo "$ac_cv_sizeof_void_p" >&6; }
 
4085
 
 
4086
 
 
4087
 
 
4088
cat >>confdefs.h <<_ACEOF
 
4089
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
4090
_ACEOF
 
4091
 
 
4092
 
 
4093
if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
 
4094
  LG_SIZEOF_PTR=3
 
4095
elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
 
4096
  LG_SIZEOF_PTR=2
 
4097
else
 
4098
  as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
 
4099
fi
 
4100
cat >>confdefs.h <<_ACEOF
 
4101
#define LG_SIZEOF_PTR $LG_SIZEOF_PTR
 
4102
_ACEOF
 
4103
 
 
4104
 
 
4105
# The cast to long int works around a bug in the HP C Compiler
 
4106
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4107
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4108
# This bug is HP SR number 8606223364.
 
4109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
 
4110
$as_echo_n "checking size of int... " >&6; }
 
4111
if ${ac_cv_sizeof_int+:} false; then :
 
4112
  $as_echo_n "(cached) " >&6
 
4113
else
 
4114
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
 
4115
 
 
4116
else
 
4117
  if test "$ac_cv_type_int" = yes; then
 
4118
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4119
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4120
as_fn_error 77 "cannot compute sizeof (int)
 
4121
See \`config.log' for more details" "$LINENO" 5; }
 
4122
   else
 
4123
     ac_cv_sizeof_int=0
 
4124
   fi
 
4125
fi
 
4126
 
 
4127
fi
 
4128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
 
4129
$as_echo "$ac_cv_sizeof_int" >&6; }
 
4130
 
 
4131
 
 
4132
 
 
4133
cat >>confdefs.h <<_ACEOF
 
4134
#define SIZEOF_INT $ac_cv_sizeof_int
 
4135
_ACEOF
 
4136
 
 
4137
 
 
4138
if test "x${ac_cv_sizeof_int}" = "x8" ; then
 
4139
  LG_SIZEOF_INT=3
 
4140
elif test "x${ac_cv_sizeof_int}" = "x4" ; then
 
4141
  LG_SIZEOF_INT=2
 
4142
else
 
4143
  as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
 
4144
fi
 
4145
cat >>confdefs.h <<_ACEOF
 
4146
#define LG_SIZEOF_INT $LG_SIZEOF_INT
 
4147
_ACEOF
 
4148
 
 
4149
 
 
4150
# The cast to long int works around a bug in the HP C Compiler
 
4151
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4152
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4153
# This bug is HP SR number 8606223364.
 
4154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
4155
$as_echo_n "checking size of long... " >&6; }
 
4156
if ${ac_cv_sizeof_long+:} false; then :
 
4157
  $as_echo_n "(cached) " >&6
 
4158
else
 
4159
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
4160
 
 
4161
else
 
4162
  if test "$ac_cv_type_long" = yes; then
 
4163
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4164
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4165
as_fn_error 77 "cannot compute sizeof (long)
 
4166
See \`config.log' for more details" "$LINENO" 5; }
 
4167
   else
 
4168
     ac_cv_sizeof_long=0
 
4169
   fi
 
4170
fi
 
4171
 
 
4172
fi
 
4173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
4174
$as_echo "$ac_cv_sizeof_long" >&6; }
 
4175
 
 
4176
 
 
4177
 
 
4178
cat >>confdefs.h <<_ACEOF
 
4179
#define SIZEOF_LONG $ac_cv_sizeof_long
 
4180
_ACEOF
 
4181
 
 
4182
 
 
4183
if test "x${ac_cv_sizeof_long}" = "x8" ; then
 
4184
  LG_SIZEOF_LONG=3
 
4185
elif test "x${ac_cv_sizeof_long}" = "x4" ; then
 
4186
  LG_SIZEOF_LONG=2
 
4187
else
 
4188
  as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
 
4189
fi
 
4190
cat >>confdefs.h <<_ACEOF
 
4191
#define LG_SIZEOF_LONG $LG_SIZEOF_LONG
 
4192
_ACEOF
 
4193
 
 
4194
 
 
4195
# The cast to long int works around a bug in the HP C Compiler
 
4196
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4197
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4198
# This bug is HP SR number 8606223364.
 
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
 
4200
$as_echo_n "checking size of intmax_t... " >&6; }
 
4201
if ${ac_cv_sizeof_intmax_t+:} false; then :
 
4202
  $as_echo_n "(cached) " >&6
 
4203
else
 
4204
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
 
4205
 
 
4206
else
 
4207
  if test "$ac_cv_type_intmax_t" = yes; then
 
4208
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4209
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4210
as_fn_error 77 "cannot compute sizeof (intmax_t)
 
4211
See \`config.log' for more details" "$LINENO" 5; }
 
4212
   else
 
4213
     ac_cv_sizeof_intmax_t=0
 
4214
   fi
 
4215
fi
 
4216
 
 
4217
fi
 
4218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
 
4219
$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
 
4220
 
 
4221
 
 
4222
 
 
4223
cat >>confdefs.h <<_ACEOF
 
4224
#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
 
4225
_ACEOF
 
4226
 
 
4227
 
 
4228
if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
 
4229
  LG_SIZEOF_INTMAX_T=4
 
4230
elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
 
4231
  LG_SIZEOF_INTMAX_T=3
 
4232
elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
 
4233
  LG_SIZEOF_INTMAX_T=2
 
4234
else
 
4235
  as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
 
4236
fi
 
4237
cat >>confdefs.h <<_ACEOF
 
4238
#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
 
4239
_ACEOF
 
4240
 
 
4241
 
 
4242
ac_aux_dir=
 
4243
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
4244
  if test -f "$ac_dir/install-sh"; then
 
4245
    ac_aux_dir=$ac_dir
 
4246
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
4247
    break
 
4248
  elif test -f "$ac_dir/install.sh"; then
 
4249
    ac_aux_dir=$ac_dir
 
4250
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
4251
    break
 
4252
  elif test -f "$ac_dir/shtool"; then
 
4253
    ac_aux_dir=$ac_dir
 
4254
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
4255
    break
 
4256
  fi
 
4257
done
 
4258
if test -z "$ac_aux_dir"; then
 
4259
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
4260
fi
 
4261
 
 
4262
# These three variables are undocumented and unsupported,
 
4263
# and are intended to be withdrawn in a future Autoconf release.
 
4264
# They can cause serious problems if a builder's source tree is in a directory
 
4265
# whose full name contains unusual characters.
 
4266
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
4267
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
4268
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
4269
 
 
4270
 
 
4271
# Make sure we can run config.sub.
 
4272
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4273
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4274
 
 
4275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4276
$as_echo_n "checking build system type... " >&6; }
 
4277
if ${ac_cv_build+:} false; then :
 
4278
  $as_echo_n "(cached) " >&6
 
4279
else
 
4280
  ac_build_alias=$build_alias
 
4281
test "x$ac_build_alias" = x &&
 
4282
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4283
test "x$ac_build_alias" = x &&
 
4284
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4285
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4286
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4287
 
 
4288
fi
 
4289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4290
$as_echo "$ac_cv_build" >&6; }
 
4291
case $ac_cv_build in
 
4292
*-*-*) ;;
 
4293
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4294
esac
 
4295
build=$ac_cv_build
 
4296
ac_save_IFS=$IFS; IFS='-'
 
4297
set x $ac_cv_build
 
4298
shift
 
4299
build_cpu=$1
 
4300
build_vendor=$2
 
4301
shift; shift
 
4302
# Remember, the first character of IFS is used to create $*,
 
4303
# except with old shells:
 
4304
build_os=$*
 
4305
IFS=$ac_save_IFS
 
4306
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4307
 
 
4308
 
 
4309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4310
$as_echo_n "checking host system type... " >&6; }
 
4311
if ${ac_cv_host+:} false; then :
 
4312
  $as_echo_n "(cached) " >&6
 
4313
else
 
4314
  if test "x$host_alias" = x; then
 
4315
  ac_cv_host=$ac_cv_build
 
4316
else
 
4317
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4318
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4319
fi
 
4320
 
 
4321
fi
 
4322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4323
$as_echo "$ac_cv_host" >&6; }
 
4324
case $ac_cv_host in
 
4325
*-*-*) ;;
 
4326
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4327
esac
 
4328
host=$ac_cv_host
 
4329
ac_save_IFS=$IFS; IFS='-'
 
4330
set x $ac_cv_host
 
4331
shift
 
4332
host_cpu=$1
 
4333
host_vendor=$2
 
4334
shift; shift
 
4335
# Remember, the first character of IFS is used to create $*,
 
4336
# except with old shells:
 
4337
host_os=$*
 
4338
IFS=$ac_save_IFS
 
4339
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4340
 
 
4341
 
 
4342
CPU_SPINWAIT=""
 
4343
case "${host_cpu}" in
 
4344
  i[345]86)
 
4345
        ;;
 
4346
  i686)
 
4347
 
 
4348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ is compilable" >&5
 
4349
$as_echo_n "checking whether __asm__ is compilable... " >&6; }
 
4350
if ${je_cv_asm+:} false; then :
 
4351
  $as_echo_n "(cached) " >&6
 
4352
else
 
4353
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4354
/* end confdefs.h.  */
 
4355
 
 
4356
int
 
4357
main ()
 
4358
{
 
4359
__asm__ volatile("pause"); return 0;
 
4360
  ;
 
4361
  return 0;
 
4362
}
 
4363
_ACEOF
 
4364
if ac_fn_c_try_link "$LINENO"; then :
 
4365
  je_cv_asm=yes
 
4366
else
 
4367
  je_cv_asm=no
 
4368
fi
 
4369
rm -f core conftest.err conftest.$ac_objext \
 
4370
    conftest$ac_exeext conftest.$ac_ext
 
4371
fi
 
4372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_asm" >&5
 
4373
$as_echo "$je_cv_asm" >&6; }
 
4374
 
 
4375
        if test "x${je_cv_asm}" = "xyes" ; then
 
4376
            CPU_SPINWAIT='__asm__ volatile("pause")'
 
4377
        fi
 
4378
        ;;
 
4379
  x86_64)
 
4380
 
 
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __asm__ syntax is compilable" >&5
 
4382
$as_echo_n "checking whether __asm__ syntax is compilable... " >&6; }
 
4383
if ${je_cv_asm+:} false; then :
 
4384
  $as_echo_n "(cached) " >&6
 
4385
else
 
4386
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4387
/* end confdefs.h.  */
 
4388
 
 
4389
int
 
4390
main ()
 
4391
{
 
4392
__asm__ volatile("pause"); return 0;
 
4393
  ;
 
4394
  return 0;
 
4395
}
 
4396
_ACEOF
 
4397
if ac_fn_c_try_link "$LINENO"; then :
 
4398
  je_cv_asm=yes
 
4399
else
 
4400
  je_cv_asm=no
 
4401
fi
 
4402
rm -f core conftest.err conftest.$ac_objext \
 
4403
    conftest$ac_exeext conftest.$ac_ext
 
4404
fi
 
4405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_asm" >&5
 
4406
$as_echo "$je_cv_asm" >&6; }
 
4407
 
 
4408
        if test "x${je_cv_asm}" = "xyes" ; then
 
4409
            CPU_SPINWAIT='__asm__ volatile("pause")'
 
4410
        fi
 
4411
        ;;
 
4412
  *)
 
4413
        ;;
 
4414
esac
 
4415
cat >>confdefs.h <<_ACEOF
 
4416
#define CPU_SPINWAIT $CPU_SPINWAIT
 
4417
_ACEOF
 
4418
 
 
4419
 
 
4420
LD_PRELOAD_VAR="LD_PRELOAD"
 
4421
so="so"
 
4422
importlib="${so}"
 
4423
o="$ac_objext"
 
4424
a="a"
 
4425
exe="$ac_exeext"
 
4426
libprefix="lib"
 
4427
DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
 
4428
RPATH='-Wl,-rpath,$(1)'
 
4429
SOREV="${so}.${rev}"
 
4430
PIC_CFLAGS='-fPIC -DPIC'
 
4431
CTARGET='-o $@'
 
4432
LDTARGET='-o $@'
 
4433
EXTRA_LDFLAGS=
 
4434
MKLIB='ar crus $@'
 
4435
CC_MM=1
 
4436
 
 
4437
default_munmap="1"
 
4438
JEMALLOC_USABLE_SIZE_CONST="const"
 
4439
case "${host}" in
 
4440
  *-*-darwin*)
 
4441
        CFLAGS="$CFLAGS"
 
4442
        abi="macho"
 
4443
        $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
 
4444
 
 
4445
        RPATH=""
 
4446
        LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
 
4447
        so="dylib"
 
4448
        importlib="${so}"
 
4449
        force_tls="0"
 
4450
        DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
 
4451
        SOREV="${rev}.${so}"
 
4452
        ;;
 
4453
  *-*-freebsd*)
 
4454
        CFLAGS="$CFLAGS"
 
4455
        abi="elf"
 
4456
        $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
 
4457
 
 
4458
        force_lazy_lock="1"
 
4459
        ;;
 
4460
  *-*-linux*)
 
4461
        CFLAGS="$CFLAGS"
 
4462
        CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 
4463
        abi="elf"
 
4464
        $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
 
4465
 
 
4466
        $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
 
4467
 
 
4468
        $as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
 
4469
 
 
4470
        JEMALLOC_USABLE_SIZE_CONST=""
 
4471
        default_munmap="0"
 
4472
        ;;
 
4473
  *-*-netbsd*)
 
4474
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
 
4475
$as_echo_n "checking ABI... " >&6; }
 
4476
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4477
/* end confdefs.h.  */
 
4478
#ifdef __ELF__
 
4479
/* ELF */
 
4480
#else
 
4481
#error aout
 
4482
#endif
 
4483
 
 
4484
int
 
4485
main ()
 
4486
{
 
4487
 
 
4488
  ;
 
4489
  return 0;
 
4490
}
 
4491
_ACEOF
 
4492
if ac_fn_c_try_compile "$LINENO"; then :
 
4493
  CFLAGS="$CFLAGS"; abi="elf"
 
4494
else
 
4495
  abi="aout"
 
4496
fi
 
4497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4498
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
 
4499
$as_echo "$abi" >&6; }
 
4500
        $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
 
4501
 
 
4502
        ;;
 
4503
  *-*-solaris2*)
 
4504
        CFLAGS="$CFLAGS"
 
4505
        abi="elf"
 
4506
        RPATH='-Wl,-R,$(1)'
 
4507
                CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
 
4508
        LIBS="$LIBS -lposix4 -lsocket -lnsl"
 
4509
        ;;
 
4510
  *-ibm-aix*)
 
4511
        if "$LG_SIZEOF_PTR" = "8"; then
 
4512
                  LD_PRELOAD_VAR="LDR_PRELOAD64"
 
4513
        else
 
4514
                  LD_PRELOAD_VAR="LDR_PRELOAD"
 
4515
        fi
 
4516
        abi="xcoff"
 
4517
        ;;
 
4518
  *-*-mingw*)
 
4519
        abi="pecoff"
 
4520
        force_tls="0"
 
4521
        RPATH=""
 
4522
        so="dll"
 
4523
        if test "x$je_cv_msvc" = "xyes" ; then
 
4524
          importlib="lib"
 
4525
          DSO_LDFLAGS="-LD"
 
4526
          EXTRA_LDFLAGS="-link -DEBUG"
 
4527
          CTARGET='-Fo$@'
 
4528
          LDTARGET='-Fe$@'
 
4529
          MKLIB='lib -nologo -out:$@'
 
4530
          CC_MM=
 
4531
        else
 
4532
          importlib="${so}"
 
4533
          DSO_LDFLAGS="-shared"
 
4534
        fi
 
4535
        a="lib"
 
4536
        libprefix=""
 
4537
        SOREV="${so}"
 
4538
        PIC_CFLAGS=""
 
4539
        ;;
 
4540
  *)
 
4541
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
 
4542
$as_echo "Unsupported operating system: ${host}" >&6; }
 
4543
        abi="elf"
 
4544
        ;;
 
4545
esac
 
4546
cat >>confdefs.h <<_ACEOF
 
4547
#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
 
4548
_ACEOF
 
4549
 
 
4550
 
 
4551
 
 
4552
 
 
4553
 
 
4554
 
 
4555
 
 
4556
 
 
4557
 
 
4558
 
 
4559
 
 
4560
 
 
4561
 
 
4562
 
 
4563
 
 
4564
 
 
4565
 
 
4566
 
 
4567
 
 
4568
if test "x$abi" != "xpecoff"; then
 
4569
    LIBS="$LIBS -lm"
 
4570
fi
 
4571
 
 
4572
 
 
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
 
4574
$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
 
4575
if ${je_cv_attribute+:} false; then :
 
4576
  $as_echo_n "(cached) " >&6
 
4577
else
 
4578
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4579
/* end confdefs.h.  */
 
4580
static __attribute__((unused)) void foo(void){}
 
4581
int
 
4582
main ()
 
4583
{
 
4584
 
 
4585
  ;
 
4586
  return 0;
 
4587
}
 
4588
_ACEOF
 
4589
if ac_fn_c_try_link "$LINENO"; then :
 
4590
  je_cv_attribute=yes
 
4591
else
 
4592
  je_cv_attribute=no
 
4593
fi
 
4594
rm -f core conftest.err conftest.$ac_objext \
 
4595
    conftest$ac_exeext conftest.$ac_ext
 
4596
fi
 
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
 
4598
$as_echo "$je_cv_attribute" >&6; }
 
4599
 
 
4600
if test "x${je_cv_attribute}" = "xyes" ; then
 
4601
  $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
 
4602
 
 
4603
  if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
 
4604
 
 
4605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
 
4606
$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
 
4607
TCFLAGS="${CFLAGS}"
 
4608
if test "x${CFLAGS}" = "x" ; then
 
4609
  CFLAGS="-fvisibility=hidden"
 
4610
else
 
4611
  CFLAGS="${CFLAGS} -fvisibility=hidden"
 
4612
fi
 
4613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4614
/* end confdefs.h.  */
 
4615
 
 
4616
 
 
4617
int
 
4618
main ()
 
4619
{
 
4620
 
 
4621
    return 0;
 
4622
 
 
4623
  ;
 
4624
  return 0;
 
4625
}
 
4626
_ACEOF
 
4627
if ac_fn_c_try_compile "$LINENO"; then :
 
4628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4629
$as_echo "yes" >&6; }
 
4630
else
 
4631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4632
$as_echo "no" >&6; }
 
4633
              CFLAGS="${TCFLAGS}"
 
4634
 
 
4635
fi
 
4636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4637
 
 
4638
  fi
 
4639
fi
 
4640
SAVED_CFLAGS="${CFLAGS}"
 
4641
 
 
4642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
 
4643
$as_echo_n "checking whether compiler supports -Werror... " >&6; }
 
4644
TCFLAGS="${CFLAGS}"
 
4645
if test "x${CFLAGS}" = "x" ; then
 
4646
  CFLAGS="-Werror"
 
4647
else
 
4648
  CFLAGS="${CFLAGS} -Werror"
 
4649
fi
 
4650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4651
/* end confdefs.h.  */
 
4652
 
 
4653
 
 
4654
int
 
4655
main ()
 
4656
{
 
4657
 
 
4658
    return 0;
 
4659
 
 
4660
  ;
 
4661
  return 0;
 
4662
}
 
4663
_ACEOF
 
4664
if ac_fn_c_try_compile "$LINENO"; then :
 
4665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4666
$as_echo "yes" >&6; }
 
4667
else
 
4668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4669
$as_echo "no" >&6; }
 
4670
              CFLAGS="${TCFLAGS}"
 
4671
 
 
4672
fi
 
4673
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4674
 
 
4675
 
 
4676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
 
4677
$as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
 
4678
if ${je_cv_tls_model+:} false; then :
 
4679
  $as_echo_n "(cached) " >&6
 
4680
else
 
4681
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4682
/* end confdefs.h.  */
 
4683
 
 
4684
int
 
4685
main ()
 
4686
{
 
4687
static __thread int
 
4688
               __attribute__((tls_model("initial-exec"))) foo;
 
4689
               foo = 0;
 
4690
  ;
 
4691
  return 0;
 
4692
}
 
4693
_ACEOF
 
4694
if ac_fn_c_try_link "$LINENO"; then :
 
4695
  je_cv_tls_model=yes
 
4696
else
 
4697
  je_cv_tls_model=no
 
4698
fi
 
4699
rm -f core conftest.err conftest.$ac_objext \
 
4700
    conftest$ac_exeext conftest.$ac_ext
 
4701
fi
 
4702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
 
4703
$as_echo "$je_cv_tls_model" >&6; }
 
4704
 
 
4705
CFLAGS="${SAVED_CFLAGS}"
 
4706
if test "x${je_cv_tls_model}" = "xyes" ; then
 
4707
  $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
 
4708
 
 
4709
else
 
4710
  $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
 
4711
 
 
4712
fi
 
4713
 
 
4714
 
 
4715
# Check whether --with-rpath was given.
 
4716
if test "${with_rpath+set}" = set; then :
 
4717
  withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
 
4718
  RPATH_EXTRA=
 
4719
else
 
4720
  RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
 
4721
fi
 
4722
else
 
4723
  RPATH_EXTRA=
 
4724
 
 
4725
fi
 
4726
 
 
4727
 
 
4728
 
 
4729
# Check whether --enable-autogen was given.
 
4730
if test "${enable_autogen+set}" = set; then :
 
4731
  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
 
4732
  enable_autogen="0"
 
4733
else
 
4734
  enable_autogen="1"
 
4735
fi
 
4736
 
 
4737
else
 
4738
  enable_autogen="0"
 
4739
 
 
4740
fi
 
4741
 
 
4742
 
 
4743
 
 
4744
# Find a good install program.  We prefer a C program (faster),
 
4745
# so one script is as good as another.  But avoid the broken or
 
4746
# incompatible versions:
 
4747
# SysV /etc/install, /usr/sbin/install
 
4748
# SunOS /usr/etc/install
 
4749
# IRIX /sbin/install
 
4750
# AIX /bin/install
 
4751
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4752
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4753
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4754
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4755
# OS/2's system install, which has a completely different semantic
 
4756
# ./install, which can be erroneously created by make from ./install.sh.
 
4757
# Reject install programs that cannot install multiple files.
 
4758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
4759
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
4760
if test -z "$INSTALL"; then
 
4761
if ${ac_cv_path_install+:} false; then :
 
4762
  $as_echo_n "(cached) " >&6
 
4763
else
 
4764
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4765
for as_dir in $PATH
 
4766
do
 
4767
  IFS=$as_save_IFS
 
4768
  test -z "$as_dir" && as_dir=.
 
4769
    # Account for people who put trailing slashes in PATH elements.
 
4770
case $as_dir/ in #((
 
4771
  ./ | .// | /[cC]/* | \
 
4772
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4773
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
4774
  /usr/ucb/* ) ;;
 
4775
  *)
 
4776
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
4777
    # Don't use installbsd from OSF since it installs stuff as root
 
4778
    # by default.
 
4779
    for ac_prog in ginstall scoinst install; do
 
4780
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4781
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
4782
          if test $ac_prog = install &&
 
4783
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4784
            # AIX install.  It has an incompatible calling convention.
 
4785
            :
 
4786
          elif test $ac_prog = install &&
 
4787
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4788
            # program-specific install script used by HP pwplus--don't use.
 
4789
            :
 
4790
          else
 
4791
            rm -rf conftest.one conftest.two conftest.dir
 
4792
            echo one > conftest.one
 
4793
            echo two > conftest.two
 
4794
            mkdir conftest.dir
 
4795
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
4796
              test -s conftest.one && test -s conftest.two &&
 
4797
              test -s conftest.dir/conftest.one &&
 
4798
              test -s conftest.dir/conftest.two
 
4799
            then
 
4800
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4801
              break 3
 
4802
            fi
 
4803
          fi
 
4804
        fi
 
4805
      done
 
4806
    done
 
4807
    ;;
 
4808
esac
 
4809
 
 
4810
  done
 
4811
IFS=$as_save_IFS
 
4812
 
 
4813
rm -rf conftest.one conftest.two conftest.dir
 
4814
 
 
4815
fi
 
4816
  if test "${ac_cv_path_install+set}" = set; then
 
4817
    INSTALL=$ac_cv_path_install
 
4818
  else
 
4819
    # As a last resort, use the slow shell script.  Don't cache a
 
4820
    # value for INSTALL within a source directory, because that will
 
4821
    # break other packages using the cache if that directory is
 
4822
    # removed, or if the value is a relative name.
 
4823
    INSTALL=$ac_install_sh
 
4824
  fi
 
4825
fi
 
4826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
4827
$as_echo "$INSTALL" >&6; }
 
4828
 
 
4829
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
4830
# It thinks the first close brace ends the variable substitution.
 
4831
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
4832
 
 
4833
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4834
 
 
4835
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4836
 
 
4837
if test -n "$ac_tool_prefix"; then
 
4838
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4839
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4841
$as_echo_n "checking for $ac_word... " >&6; }
 
4842
if ${ac_cv_prog_RANLIB+:} false; then :
 
4843
  $as_echo_n "(cached) " >&6
 
4844
else
 
4845
  if test -n "$RANLIB"; then
 
4846
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4847
else
 
4848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4849
for as_dir in $PATH
 
4850
do
 
4851
  IFS=$as_save_IFS
 
4852
  test -z "$as_dir" && as_dir=.
 
4853
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4854
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4855
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4856
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4857
    break 2
 
4858
  fi
 
4859
done
 
4860
  done
 
4861
IFS=$as_save_IFS
 
4862
 
 
4863
fi
 
4864
fi
 
4865
RANLIB=$ac_cv_prog_RANLIB
 
4866
if test -n "$RANLIB"; then
 
4867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
4868
$as_echo "$RANLIB" >&6; }
 
4869
else
 
4870
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4871
$as_echo "no" >&6; }
 
4872
fi
 
4873
 
 
4874
 
 
4875
fi
 
4876
if test -z "$ac_cv_prog_RANLIB"; then
 
4877
  ac_ct_RANLIB=$RANLIB
 
4878
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4879
set dummy ranlib; ac_word=$2
 
4880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4881
$as_echo_n "checking for $ac_word... " >&6; }
 
4882
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
4883
  $as_echo_n "(cached) " >&6
 
4884
else
 
4885
  if test -n "$ac_ct_RANLIB"; then
 
4886
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4887
else
 
4888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4889
for as_dir in $PATH
 
4890
do
 
4891
  IFS=$as_save_IFS
 
4892
  test -z "$as_dir" && as_dir=.
 
4893
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4895
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4897
    break 2
 
4898
  fi
 
4899
done
 
4900
  done
 
4901
IFS=$as_save_IFS
 
4902
 
 
4903
fi
 
4904
fi
 
4905
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4906
if test -n "$ac_ct_RANLIB"; then
 
4907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
4908
$as_echo "$ac_ct_RANLIB" >&6; }
 
4909
else
 
4910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4911
$as_echo "no" >&6; }
 
4912
fi
 
4913
 
 
4914
  if test "x$ac_ct_RANLIB" = x; then
 
4915
    RANLIB=":"
 
4916
  else
 
4917
    case $cross_compiling:$ac_tool_warned in
 
4918
yes:)
 
4919
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4920
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4921
ac_tool_warned=yes ;;
 
4922
esac
 
4923
    RANLIB=$ac_ct_RANLIB
 
4924
  fi
 
4925
else
 
4926
  RANLIB="$ac_cv_prog_RANLIB"
 
4927
fi
 
4928
 
 
4929
# Extract the first word of "ar", so it can be a program name with args.
 
4930
set dummy ar; ac_word=$2
 
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4932
$as_echo_n "checking for $ac_word... " >&6; }
 
4933
if ${ac_cv_path_AR+:} false; then :
 
4934
  $as_echo_n "(cached) " >&6
 
4935
else
 
4936
  case $AR in
 
4937
  [\\/]* | ?:[\\/]*)
 
4938
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
 
4939
  ;;
 
4940
  *)
 
4941
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4942
for as_dir in $PATH
 
4943
do
 
4944
  IFS=$as_save_IFS
 
4945
  test -z "$as_dir" && as_dir=.
 
4946
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4947
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4948
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
 
4949
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4950
    break 2
 
4951
  fi
 
4952
done
 
4953
  done
 
4954
IFS=$as_save_IFS
 
4955
 
 
4956
  test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
 
4957
  ;;
 
4958
esac
 
4959
fi
 
4960
AR=$ac_cv_path_AR
 
4961
if test -n "$AR"; then
 
4962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
4963
$as_echo "$AR" >&6; }
 
4964
else
 
4965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4966
$as_echo "no" >&6; }
 
4967
fi
 
4968
 
 
4969
 
 
4970
# Extract the first word of "ld", so it can be a program name with args.
 
4971
set dummy ld; ac_word=$2
 
4972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4973
$as_echo_n "checking for $ac_word... " >&6; }
 
4974
if ${ac_cv_path_LD+:} false; then :
 
4975
  $as_echo_n "(cached) " >&6
 
4976
else
 
4977
  case $LD in
 
4978
  [\\/]* | ?:[\\/]*)
 
4979
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
 
4980
  ;;
 
4981
  *)
 
4982
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4983
for as_dir in $PATH
 
4984
do
 
4985
  IFS=$as_save_IFS
 
4986
  test -z "$as_dir" && as_dir=.
 
4987
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4988
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4989
    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
 
4990
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4991
    break 2
 
4992
  fi
 
4993
done
 
4994
  done
 
4995
IFS=$as_save_IFS
 
4996
 
 
4997
  test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
 
4998
  ;;
 
4999
esac
 
5000
fi
 
5001
LD=$ac_cv_path_LD
 
5002
if test -n "$LD"; then
 
5003
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5004
$as_echo "$LD" >&6; }
 
5005
else
 
5006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5007
$as_echo "no" >&6; }
 
5008
fi
 
5009
 
 
5010
 
 
5011
# Extract the first word of "autoconf", so it can be a program name with args.
 
5012
set dummy autoconf; ac_word=$2
 
5013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5014
$as_echo_n "checking for $ac_word... " >&6; }
 
5015
if ${ac_cv_path_AUTOCONF+:} false; then :
 
5016
  $as_echo_n "(cached) " >&6
 
5017
else
 
5018
  case $AUTOCONF in
 
5019
  [\\/]* | ?:[\\/]*)
 
5020
  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
 
5021
  ;;
 
5022
  *)
 
5023
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5024
for as_dir in $PATH
 
5025
do
 
5026
  IFS=$as_save_IFS
 
5027
  test -z "$as_dir" && as_dir=.
 
5028
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5030
    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
 
5031
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5032
    break 2
 
5033
  fi
 
5034
done
 
5035
  done
 
5036
IFS=$as_save_IFS
 
5037
 
 
5038
  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
 
5039
  ;;
 
5040
esac
 
5041
fi
 
5042
AUTOCONF=$ac_cv_path_AUTOCONF
 
5043
if test -n "$AUTOCONF"; then
 
5044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
 
5045
$as_echo "$AUTOCONF" >&6; }
 
5046
else
 
5047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5048
$as_echo "no" >&6; }
 
5049
fi
 
5050
 
 
5051
 
 
5052
 
 
5053
public_syms="malloc_conf malloc_message malloc calloc posix_memalign aligned_alloc realloc free malloc_usable_size malloc_stats_print mallctl mallctlnametomib mallctlbymib"
 
5054
 
 
5055
ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
 
5056
if test "x$ac_cv_func_memalign" = xyes; then :
 
5057
  $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
 
5058
 
 
5059
               public_syms="${public_syms} memalign"
 
5060
fi
 
5061
 
 
5062
ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
 
5063
if test "x$ac_cv_func_valloc" = xyes; then :
 
5064
  $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
 
5065
 
 
5066
               public_syms="${public_syms} valloc"
 
5067
fi
 
5068
 
 
5069
 
 
5070
# Check whether --enable-experimental was given.
 
5071
if test "${enable_experimental+set}" = set; then :
 
5072
  enableval=$enable_experimental; if test "x$enable_experimental" = "xno" ; then
 
5073
  enable_experimental="0"
 
5074
else
 
5075
  enable_experimental="1"
 
5076
fi
 
5077
 
 
5078
else
 
5079
  enable_experimental="1"
 
5080
 
 
5081
fi
 
5082
 
 
5083
if test "x$enable_experimental" = "x1" ; then
 
5084
  $as_echo "#define JEMALLOC_EXPERIMENTAL  " >>confdefs.h
 
5085
 
 
5086
  public_syms="${public_syms} allocm dallocm nallocm rallocm sallocm"
 
5087
fi
 
5088
 
 
5089
 
 
5090
 
 
5091
# Check whether --with-mangling was given.
 
5092
if test "${with_mangling+set}" = set; then :
 
5093
  withval=$with_mangling; mangling_map="$with_mangling"
 
5094
else
 
5095
  mangling_map=""
 
5096
fi
 
5097
 
 
5098
for nm in `echo ${mangling_map} |tr ',' ' '` ; do
 
5099
  k="`echo ${nm} |tr ':' ' ' |awk '{print $1}'`"
 
5100
  n="je_${k}"
 
5101
  m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
 
5102
  cat >>confdefs.h <<_ACEOF
 
5103
#define ${n} ${m}
 
5104
_ACEOF
 
5105
 
 
5106
    public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${k}\$" |tr '\n' ' '`
 
5107
done
 
5108
 
 
5109
 
 
5110
# Check whether --with-jemalloc_prefix was given.
 
5111
if test "${with_jemalloc_prefix+set}" = set; then :
 
5112
  withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
 
5113
else
 
5114
  if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
 
5115
  JEMALLOC_PREFIX=""
 
5116
else
 
5117
  JEMALLOC_PREFIX="je_"
 
5118
fi
 
5119
 
 
5120
fi
 
5121
 
 
5122
if test "x$JEMALLOC_PREFIX" != "x" ; then
 
5123
  JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
 
5124
  cat >>confdefs.h <<_ACEOF
 
5125
#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
 
5126
_ACEOF
 
5127
 
 
5128
  cat >>confdefs.h <<_ACEOF
 
5129
#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
 
5130
_ACEOF
 
5131
 
 
5132
fi
 
5133
for stem in ${public_syms}; do
 
5134
  n="je_${stem}"
 
5135
  m="${JEMALLOC_PREFIX}${stem}"
 
5136
  cat >>confdefs.h <<_ACEOF
 
5137
#define ${n} ${m}
 
5138
_ACEOF
 
5139
 
 
5140
done
 
5141
 
 
5142
 
 
5143
# Check whether --with-export was given.
 
5144
if test "${with_export+set}" = set; then :
 
5145
  withval=$with_export; if test "x$with_export" = "xno"; then
 
5146
  $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
 
5147
 
 
5148
fi
 
5149
 
 
5150
fi
 
5151
 
 
5152
 
 
5153
 
 
5154
# Check whether --with-private_namespace was given.
 
5155
if test "${with_private_namespace+set}" = set; then :
 
5156
  withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="$with_private_namespace"
 
5157
else
 
5158
  JEMALLOC_PRIVATE_NAMESPACE=""
 
5159
 
 
5160
fi
 
5161
 
 
5162
cat >>confdefs.h <<_ACEOF
 
5163
#define JEMALLOC_PRIVATE_NAMESPACE "$JEMALLOC_PRIVATE_NAMESPACE"
 
5164
_ACEOF
 
5165
 
 
5166
if test "x$JEMALLOC_PRIVATE_NAMESPACE" != "x" ; then
 
5167
  cat >>confdefs.h <<_ACEOF
 
5168
#define JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix) ${JEMALLOC_PRIVATE_NAMESPACE}##string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix
 
5169
_ACEOF
 
5170
 
 
5171
else
 
5172
  cat >>confdefs.h <<_ACEOF
 
5173
#define JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix) string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix
 
5174
_ACEOF
 
5175
 
 
5176
fi
 
5177
 
 
5178
 
 
5179
# Check whether --with-install_suffix was given.
 
5180
if test "${with_install_suffix+set}" = set; then :
 
5181
  withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
 
5182
else
 
5183
  INSTALL_SUFFIX=
 
5184
 
 
5185
fi
 
5186
 
 
5187
install_suffix="$INSTALL_SUFFIX"
 
5188
 
 
5189
 
 
5190
cfgoutputs_in="${srcroot}Makefile.in"
 
5191
cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/html.xsl.in"
 
5192
cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/manpages.xsl.in"
 
5193
cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/jemalloc.xml.in"
 
5194
cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/jemalloc.h.in"
 
5195
cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/internal/jemalloc_internal.h.in"
 
5196
cfgoutputs_in="${cfgoutputs_in} ${srcroot}test/jemalloc_test.h.in"
 
5197
 
 
5198
cfgoutputs_out="Makefile"
 
5199
cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
 
5200
cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
 
5201
cfgoutputs_out="${cfgoutputs_out} doc/jemalloc${install_suffix}.xml"
 
5202
cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc${install_suffix}.h"
 
5203
cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h"
 
5204
cfgoutputs_out="${cfgoutputs_out} test/jemalloc_test.h"
 
5205
 
 
5206
cfgoutputs_tup="Makefile"
 
5207
cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
 
5208
cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
 
5209
cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc${install_suffix}.xml:doc/jemalloc.xml.in"
 
5210
cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc${install_suffix}.h:include/jemalloc/jemalloc.h.in"
 
5211
cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h"
 
5212
cfgoutputs_tup="${cfgoutputs_tup} test/jemalloc_test.h:test/jemalloc_test.h.in"
 
5213
 
 
5214
cfghdrs_in="${srcroot}include/jemalloc/jemalloc_defs.h.in"
 
5215
cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/size_classes.sh"
 
5216
 
 
5217
cfghdrs_out="include/jemalloc/jemalloc_defs${install_suffix}.h"
 
5218
cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
 
5219
 
 
5220
cfghdrs_tup="include/jemalloc/jemalloc_defs${install_suffix}.h:include/jemalloc/jemalloc_defs.h.in"
 
5221
 
 
5222
# Check whether --enable-cc-silence was given.
 
5223
if test "${enable_cc_silence+set}" = set; then :
 
5224
  enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then
 
5225
  enable_cc_silence="0"
 
5226
else
 
5227
  enable_cc_silence="1"
 
5228
fi
 
5229
 
 
5230
else
 
5231
  enable_cc_silence="0"
 
5232
 
 
5233
fi
 
5234
 
 
5235
if test "x$enable_cc_silence" = "x1" ; then
 
5236
  $as_echo "#define JEMALLOC_CC_SILENCE  " >>confdefs.h
 
5237
 
 
5238
fi
 
5239
 
 
5240
# Check whether --enable-debug was given.
 
5241
if test "${enable_debug+set}" = set; then :
 
5242
  enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
 
5243
  enable_debug="0"
 
5244
else
 
5245
  enable_debug="1"
 
5246
fi
 
5247
 
 
5248
else
 
5249
  enable_debug="0"
 
5250
 
 
5251
fi
 
5252
 
 
5253
if test "x$enable_debug" = "x1" ; then
 
5254
  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
 
5255
 
 
5256
  enable_ivsalloc="1"
 
5257
fi
 
5258
 
 
5259
 
 
5260
# Check whether --enable-ivsalloc was given.
 
5261
if test "${enable_ivsalloc+set}" = set; then :
 
5262
  enableval=$enable_ivsalloc; if test "x$enable_ivsalloc" = "xno" ; then
 
5263
  enable_ivsalloc="0"
 
5264
else
 
5265
  enable_ivsalloc="1"
 
5266
fi
 
5267
 
 
5268
else
 
5269
  enable_ivsalloc="0"
 
5270
 
 
5271
fi
 
5272
 
 
5273
if test "x$enable_ivsalloc" = "x1" ; then
 
5274
  $as_echo "#define JEMALLOC_IVSALLOC  " >>confdefs.h
 
5275
 
 
5276
fi
 
5277
 
 
5278
if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then
 
5279
    optimize="no"
 
5280
  echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes"
 
5281
  if test "x${optimize}" = "xyes" ; then
 
5282
    if test "x$GCC" = "xyes" ; then
 
5283
 
 
5284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
 
5285
$as_echo_n "checking whether compiler supports -O3... " >&6; }
 
5286
TCFLAGS="${CFLAGS}"
 
5287
if test "x${CFLAGS}" = "x" ; then
 
5288
  CFLAGS="-O3"
 
5289
else
 
5290
  CFLAGS="${CFLAGS} -O3"
 
5291
fi
 
5292
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5293
/* end confdefs.h.  */
 
5294
 
 
5295
 
 
5296
int
 
5297
main ()
 
5298
{
 
5299
 
 
5300
    return 0;
 
5301
 
 
5302
  ;
 
5303
  return 0;
 
5304
}
 
5305
_ACEOF
 
5306
if ac_fn_c_try_compile "$LINENO"; then :
 
5307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5308
$as_echo "yes" >&6; }
 
5309
else
 
5310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5311
$as_echo "no" >&6; }
 
5312
              CFLAGS="${TCFLAGS}"
 
5313
 
 
5314
fi
 
5315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5316
 
 
5317
 
 
5318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
 
5319
$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
 
5320
TCFLAGS="${CFLAGS}"
 
5321
if test "x${CFLAGS}" = "x" ; then
 
5322
  CFLAGS="-funroll-loops"
 
5323
else
 
5324
  CFLAGS="${CFLAGS} -funroll-loops"
 
5325
fi
 
5326
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5327
/* end confdefs.h.  */
 
5328
 
 
5329
 
 
5330
int
 
5331
main ()
 
5332
{
 
5333
 
 
5334
    return 0;
 
5335
 
 
5336
  ;
 
5337
  return 0;
 
5338
}
 
5339
_ACEOF
 
5340
if ac_fn_c_try_compile "$LINENO"; then :
 
5341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5342
$as_echo "yes" >&6; }
 
5343
else
 
5344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5345
$as_echo "no" >&6; }
 
5346
              CFLAGS="${TCFLAGS}"
 
5347
 
 
5348
fi
 
5349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5350
 
 
5351
    elif test "x$je_cv_msvc" = "xyes" ; then
 
5352
 
 
5353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
 
5354
$as_echo_n "checking whether compiler supports -O2... " >&6; }
 
5355
TCFLAGS="${CFLAGS}"
 
5356
if test "x${CFLAGS}" = "x" ; then
 
5357
  CFLAGS="-O2"
 
5358
else
 
5359
  CFLAGS="${CFLAGS} -O2"
 
5360
fi
 
5361
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5362
/* end confdefs.h.  */
 
5363
 
 
5364
 
 
5365
int
 
5366
main ()
 
5367
{
 
5368
 
 
5369
    return 0;
 
5370
 
 
5371
  ;
 
5372
  return 0;
 
5373
}
 
5374
_ACEOF
 
5375
if ac_fn_c_try_compile "$LINENO"; then :
 
5376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5377
$as_echo "yes" >&6; }
 
5378
else
 
5379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5380
$as_echo "no" >&6; }
 
5381
              CFLAGS="${TCFLAGS}"
 
5382
 
 
5383
fi
 
5384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5385
 
 
5386
    else
 
5387
 
 
5388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
 
5389
$as_echo_n "checking whether compiler supports -O... " >&6; }
 
5390
TCFLAGS="${CFLAGS}"
 
5391
if test "x${CFLAGS}" = "x" ; then
 
5392
  CFLAGS="-O"
 
5393
else
 
5394
  CFLAGS="${CFLAGS} -O"
 
5395
fi
 
5396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5397
/* end confdefs.h.  */
 
5398
 
 
5399
 
 
5400
int
 
5401
main ()
 
5402
{
 
5403
 
 
5404
    return 0;
 
5405
 
 
5406
  ;
 
5407
  return 0;
 
5408
}
 
5409
_ACEOF
 
5410
if ac_fn_c_try_compile "$LINENO"; then :
 
5411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5412
$as_echo "yes" >&6; }
 
5413
else
 
5414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5415
$as_echo "no" >&6; }
 
5416
              CFLAGS="${TCFLAGS}"
 
5417
 
 
5418
fi
 
5419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5420
 
 
5421
    fi
 
5422
  fi
 
5423
fi
 
5424
 
 
5425
# Check whether --enable-stats was given.
 
5426
if test "${enable_stats+set}" = set; then :
 
5427
  enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
 
5428
  enable_stats="0"
 
5429
else
 
5430
  enable_stats="1"
 
5431
fi
 
5432
 
 
5433
else
 
5434
  enable_stats="1"
 
5435
 
 
5436
fi
 
5437
 
 
5438
if test "x$enable_stats" = "x1" ; then
 
5439
  $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
 
5440
 
 
5441
fi
 
5442
 
 
5443
 
 
5444
# Check whether --enable-prof was given.
 
5445
if test "${enable_prof+set}" = set; then :
 
5446
  enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
 
5447
  enable_prof="0"
 
5448
else
 
5449
  enable_prof="1"
 
5450
fi
 
5451
 
 
5452
else
 
5453
  enable_prof="0"
 
5454
 
 
5455
fi
 
5456
 
 
5457
if test "x$enable_prof" = "x1" ; then
 
5458
  backtrace_method=""
 
5459
else
 
5460
  backtrace_method="N/A"
 
5461
fi
 
5462
 
 
5463
# Check whether --enable-prof-libunwind was given.
 
5464
if test "${enable_prof_libunwind+set}" = set; then :
 
5465
  enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
 
5466
  enable_prof_libunwind="0"
 
5467
else
 
5468
  enable_prof_libunwind="1"
 
5469
fi
 
5470
 
 
5471
else
 
5472
  enable_prof_libunwind="0"
 
5473
 
 
5474
fi
 
5475
 
 
5476
 
 
5477
# Check whether --with-static_libunwind was given.
 
5478
if test "${with_static_libunwind+set}" = set; then :
 
5479
  withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
 
5480
  LUNWIND="-lunwind"
 
5481
else
 
5482
  if test ! -f "$with_static_libunwind" ; then
 
5483
    as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
 
5484
  fi
 
5485
  LUNWIND="$with_static_libunwind"
 
5486
fi
 
5487
else
 
5488
  LUNWIND="-lunwind"
 
5489
 
 
5490
fi
 
5491
 
 
5492
if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
 
5493
  for ac_header in libunwind.h
 
5494
do :
 
5495
  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
 
5496
if test "x$ac_cv_header_libunwind_h" = xyes; then :
 
5497
  cat >>confdefs.h <<_ACEOF
 
5498
#define HAVE_LIBUNWIND_H 1
 
5499
_ACEOF
 
5500
 
 
5501
else
 
5502
  enable_prof_libunwind="0"
 
5503
fi
 
5504
 
 
5505
done
 
5506
 
 
5507
  if test "x$LUNWIND" = "x-lunwind" ; then
 
5508
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
 
5509
$as_echo_n "checking for backtrace in -lunwind... " >&6; }
 
5510
if ${ac_cv_lib_unwind_backtrace+:} false; then :
 
5511
  $as_echo_n "(cached) " >&6
 
5512
else
 
5513
  ac_check_lib_save_LIBS=$LIBS
 
5514
LIBS="-lunwind  $LIBS"
 
5515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5516
/* end confdefs.h.  */
 
5517
 
 
5518
/* Override any GCC internal prototype to avoid an error.
 
5519
   Use char because int might match the return type of a GCC
 
5520
   builtin and then its argument prototype would still apply.  */
 
5521
#ifdef __cplusplus
 
5522
extern "C"
 
5523
#endif
 
5524
char backtrace ();
 
5525
int
 
5526
main ()
 
5527
{
 
5528
return backtrace ();
 
5529
  ;
 
5530
  return 0;
 
5531
}
 
5532
_ACEOF
 
5533
if ac_fn_c_try_link "$LINENO"; then :
 
5534
  ac_cv_lib_unwind_backtrace=yes
 
5535
else
 
5536
  ac_cv_lib_unwind_backtrace=no
 
5537
fi
 
5538
rm -f core conftest.err conftest.$ac_objext \
 
5539
    conftest$ac_exeext conftest.$ac_ext
 
5540
LIBS=$ac_check_lib_save_LIBS
 
5541
fi
 
5542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
 
5543
$as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
 
5544
if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
 
5545
  LIBS="$LIBS $LUNWIND"
 
5546
else
 
5547
  enable_prof_libunwind="0"
 
5548
fi
 
5549
 
 
5550
  else
 
5551
    LIBS="$LIBS $LUNWIND"
 
5552
  fi
 
5553
  if test "x${enable_prof_libunwind}" = "x1" ; then
 
5554
    backtrace_method="libunwind"
 
5555
    $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
 
5556
 
 
5557
  fi
 
5558
fi
 
5559
 
 
5560
# Check whether --enable-prof-libgcc was given.
 
5561
if test "${enable_prof_libgcc+set}" = set; then :
 
5562
  enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
 
5563
  enable_prof_libgcc="0"
 
5564
else
 
5565
  enable_prof_libgcc="1"
 
5566
fi
 
5567
 
 
5568
else
 
5569
  enable_prof_libgcc="1"
 
5570
 
 
5571
fi
 
5572
 
 
5573
if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
 
5574
     -a "x$GCC" = "xyes" ; then
 
5575
  for ac_header in unwind.h
 
5576
do :
 
5577
  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
 
5578
if test "x$ac_cv_header_unwind_h" = xyes; then :
 
5579
  cat >>confdefs.h <<_ACEOF
 
5580
#define HAVE_UNWIND_H 1
 
5581
_ACEOF
 
5582
 
 
5583
else
 
5584
  enable_prof_libgcc="0"
 
5585
fi
 
5586
 
 
5587
done
 
5588
 
 
5589
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
 
5590
$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
 
5591
if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
 
5592
  $as_echo_n "(cached) " >&6
 
5593
else
 
5594
  ac_check_lib_save_LIBS=$LIBS
 
5595
LIBS="-lgcc  $LIBS"
 
5596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5597
/* end confdefs.h.  */
 
5598
 
 
5599
/* Override any GCC internal prototype to avoid an error.
 
5600
   Use char because int might match the return type of a GCC
 
5601
   builtin and then its argument prototype would still apply.  */
 
5602
#ifdef __cplusplus
 
5603
extern "C"
 
5604
#endif
 
5605
char _Unwind_Backtrace ();
 
5606
int
 
5607
main ()
 
5608
{
 
5609
return _Unwind_Backtrace ();
 
5610
  ;
 
5611
  return 0;
 
5612
}
 
5613
_ACEOF
 
5614
if ac_fn_c_try_link "$LINENO"; then :
 
5615
  ac_cv_lib_gcc__Unwind_Backtrace=yes
 
5616
else
 
5617
  ac_cv_lib_gcc__Unwind_Backtrace=no
 
5618
fi
 
5619
rm -f core conftest.err conftest.$ac_objext \
 
5620
    conftest$ac_exeext conftest.$ac_ext
 
5621
LIBS=$ac_check_lib_save_LIBS
 
5622
fi
 
5623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
 
5624
$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
 
5625
if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
 
5626
  LIBS="$LIBS -lgcc"
 
5627
else
 
5628
  enable_prof_libgcc="0"
 
5629
fi
 
5630
 
 
5631
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcc-based backtracing reliability on ${host_cpu}" >&5
 
5632
$as_echo_n "checking libgcc-based backtracing reliability on ${host_cpu}... " >&6; }
 
5633
  case "${host_cpu}" in
 
5634
    i[3456]86)
 
5635
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5
 
5636
$as_echo "unreliable" >&6; }
 
5637
      enable_prof_libgcc="0";
 
5638
      ;;
 
5639
    x86_64)
 
5640
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: reliable" >&5
 
5641
$as_echo "reliable" >&6; }
 
5642
      ;;
 
5643
    *)
 
5644
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: unreliable" >&5
 
5645
$as_echo "unreliable" >&6; }
 
5646
      enable_prof_libgcc="0";
 
5647
      ;;
 
5648
  esac
 
5649
  if test "x${enable_prof_libgcc}" = "x1" ; then
 
5650
    backtrace_method="libgcc"
 
5651
    $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
 
5652
 
 
5653
  fi
 
5654
else
 
5655
  enable_prof_libgcc="0"
 
5656
fi
 
5657
 
 
5658
# Check whether --enable-prof-gcc was given.
 
5659
if test "${enable_prof_gcc+set}" = set; then :
 
5660
  enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
 
5661
  enable_prof_gcc="0"
 
5662
else
 
5663
  enable_prof_gcc="1"
 
5664
fi
 
5665
 
 
5666
else
 
5667
  enable_prof_gcc="1"
 
5668
 
 
5669
fi
 
5670
 
 
5671
if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
 
5672
     -a "x$GCC" = "xyes" ; then
 
5673
  backtrace_method="gcc intrinsics"
 
5674
  $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
 
5675
 
 
5676
else
 
5677
  enable_prof_gcc="0"
 
5678
fi
 
5679
 
 
5680
if test "x$backtrace_method" = "x" ; then
 
5681
  backtrace_method="none (disabling profiling)"
 
5682
  enable_prof="0"
 
5683
fi
 
5684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
 
5685
$as_echo_n "checking configured backtracing method... " >&6; }
 
5686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
 
5687
$as_echo "$backtrace_method" >&6; }
 
5688
if test "x$enable_prof" = "x1" ; then
 
5689
  if test "x${force_tls}" = "x0" ; then
 
5690
    as_fn_error $? "Heap profiling requires TLS" "$LINENO" 5;
 
5691
  fi
 
5692
  force_tls="1"
 
5693
  $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
 
5694
 
 
5695
fi
 
5696
 
 
5697
 
 
5698
# Check whether --enable-tcache was given.
 
5699
if test "${enable_tcache+set}" = set; then :
 
5700
  enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then
 
5701
  enable_tcache="0"
 
5702
else
 
5703
  enable_tcache="1"
 
5704
fi
 
5705
 
 
5706
else
 
5707
  enable_tcache="1"
 
5708
 
 
5709
fi
 
5710
 
 
5711
if test "x$enable_tcache" = "x1" ; then
 
5712
  $as_echo "#define JEMALLOC_TCACHE  " >>confdefs.h
 
5713
 
 
5714
fi
 
5715
 
 
5716
 
 
5717
# Check whether --enable-mremap was given.
 
5718
if test "${enable_mremap+set}" = set; then :
 
5719
  enableval=$enable_mremap; if test "x$enable_mremap" = "xno" ; then
 
5720
  enable_mremap="0"
 
5721
else
 
5722
  enable_mremap="1"
 
5723
fi
 
5724
 
 
5725
else
 
5726
  enable_mremap="0"
 
5727
 
 
5728
fi
 
5729
 
 
5730
if test "x$enable_mremap" = "x1" ; then
 
5731
 
 
5732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mremap(...MREMAP_FIXED...) is compilable" >&5
 
5733
$as_echo_n "checking whether mremap(...MREMAP_FIXED...) is compilable... " >&6; }
 
5734
if ${je_cv_mremap_fixed+:} false; then :
 
5735
  $as_echo_n "(cached) " >&6
 
5736
else
 
5737
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5738
/* end confdefs.h.  */
 
5739
 
 
5740
#define _GNU_SOURCE
 
5741
#include <sys/mman.h>
 
5742
 
 
5743
int
 
5744
main ()
 
5745
{
 
5746
 
 
5747
void *p = mremap((void *)0, 0, 0, MREMAP_MAYMOVE|MREMAP_FIXED, (void *)0);
 
5748
 
 
5749
  ;
 
5750
  return 0;
 
5751
}
 
5752
_ACEOF
 
5753
if ac_fn_c_try_link "$LINENO"; then :
 
5754
  je_cv_mremap_fixed=yes
 
5755
else
 
5756
  je_cv_mremap_fixed=no
 
5757
fi
 
5758
rm -f core conftest.err conftest.$ac_objext \
 
5759
    conftest$ac_exeext conftest.$ac_ext
 
5760
fi
 
5761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mremap_fixed" >&5
 
5762
$as_echo "$je_cv_mremap_fixed" >&6; }
 
5763
 
 
5764
  if test "x${je_cv_mremap_fixed}" = "xno" ; then
 
5765
    enable_mremap="0"
 
5766
  fi
 
5767
fi
 
5768
if test "x$enable_mremap" = "x1" ; then
 
5769
  $as_echo "#define JEMALLOC_MREMAP  " >>confdefs.h
 
5770
 
 
5771
fi
 
5772
 
 
5773
 
 
5774
# Check whether --enable-munmap was given.
 
5775
if test "${enable_munmap+set}" = set; then :
 
5776
  enableval=$enable_munmap; if test "x$enable_munmap" = "xno" ; then
 
5777
  enable_munmap="0"
 
5778
else
 
5779
  enable_munmap="1"
 
5780
fi
 
5781
 
 
5782
else
 
5783
  enable_munmap="${default_munmap}"
 
5784
 
 
5785
fi
 
5786
 
 
5787
if test "x$enable_munmap" = "x1" ; then
 
5788
  $as_echo "#define JEMALLOC_MUNMAP  " >>confdefs.h
 
5789
 
 
5790
fi
 
5791
 
 
5792
 
 
5793
# Check whether --enable-dss was given.
 
5794
if test "${enable_dss+set}" = set; then :
 
5795
  enableval=$enable_dss; if test "x$enable_dss" = "xno" ; then
 
5796
  enable_dss="0"
 
5797
else
 
5798
  enable_dss="1"
 
5799
fi
 
5800
 
 
5801
else
 
5802
  enable_dss="0"
 
5803
 
 
5804
fi
 
5805
 
 
5806
ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
 
5807
if test "x$ac_cv_func_sbrk" = xyes; then :
 
5808
  have_sbrk="1"
 
5809
else
 
5810
  have_sbrk="0"
 
5811
fi
 
5812
 
 
5813
if test "x$have_sbrk" = "x1" ; then
 
5814
  $as_echo "#define JEMALLOC_HAVE_SBRK  " >>confdefs.h
 
5815
 
 
5816
else
 
5817
  enable_dss="0"
 
5818
fi
 
5819
 
 
5820
if test "x$enable_dss" = "x1" ; then
 
5821
  $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
 
5822
 
 
5823
fi
 
5824
 
 
5825
 
 
5826
# Check whether --enable-fill was given.
 
5827
if test "${enable_fill+set}" = set; then :
 
5828
  enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
 
5829
  enable_fill="0"
 
5830
else
 
5831
  enable_fill="1"
 
5832
fi
 
5833
 
 
5834
else
 
5835
  enable_fill="1"
 
5836
 
 
5837
fi
 
5838
 
 
5839
if test "x$enable_fill" = "x1" ; then
 
5840
  $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
 
5841
 
 
5842
fi
 
5843
 
 
5844
 
 
5845
# Check whether --enable-utrace was given.
 
5846
if test "${enable_utrace+set}" = set; then :
 
5847
  enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
 
5848
  enable_utrace="0"
 
5849
else
 
5850
  enable_utrace="1"
 
5851
fi
 
5852
 
 
5853
else
 
5854
  enable_utrace="0"
 
5855
 
 
5856
fi
 
5857
 
 
5858
 
 
5859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
 
5860
$as_echo_n "checking whether utrace(2) is compilable... " >&6; }
 
5861
if ${je_cv_utrace+:} false; then :
 
5862
  $as_echo_n "(cached) " >&6
 
5863
else
 
5864
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5865
/* end confdefs.h.  */
 
5866
 
 
5867
#include <sys/types.h>
 
5868
#include <sys/param.h>
 
5869
#include <sys/time.h>
 
5870
#include <sys/uio.h>
 
5871
#include <sys/ktrace.h>
 
5872
 
 
5873
int
 
5874
main ()
 
5875
{
 
5876
 
 
5877
        utrace((void *)0, 0);
 
5878
 
 
5879
  ;
 
5880
  return 0;
 
5881
}
 
5882
_ACEOF
 
5883
if ac_fn_c_try_link "$LINENO"; then :
 
5884
  je_cv_utrace=yes
 
5885
else
 
5886
  je_cv_utrace=no
 
5887
fi
 
5888
rm -f core conftest.err conftest.$ac_objext \
 
5889
    conftest$ac_exeext conftest.$ac_ext
 
5890
fi
 
5891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
 
5892
$as_echo "$je_cv_utrace" >&6; }
 
5893
 
 
5894
if test "x${je_cv_utrace}" = "xno" ; then
 
5895
  enable_utrace="0"
 
5896
fi
 
5897
if test "x$enable_utrace" = "x1" ; then
 
5898
  $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
 
5899
 
 
5900
fi
 
5901
 
 
5902
 
 
5903
# Check whether --enable-valgrind was given.
 
5904
if test "${enable_valgrind+set}" = set; then :
 
5905
  enableval=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then
 
5906
  enable_valgrind="0"
 
5907
else
 
5908
  enable_valgrind="1"
 
5909
fi
 
5910
 
 
5911
else
 
5912
  enable_valgrind="1"
 
5913
 
 
5914
fi
 
5915
 
 
5916
if test "x$enable_valgrind" = "x1" ; then
 
5917
 
 
5918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5
 
5919
$as_echo_n "checking whether valgrind is compilable... " >&6; }
 
5920
if ${je_cv_valgrind+:} false; then :
 
5921
  $as_echo_n "(cached) " >&6
 
5922
else
 
5923
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5924
/* end confdefs.h.  */
 
5925
 
 
5926
#include <valgrind/valgrind.h>
 
5927
#include <valgrind/memcheck.h>
 
5928
 
 
5929
#if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
 
5930
#  error "Incompatible Valgrind version"
 
5931
#endif
 
5932
 
 
5933
int
 
5934
main ()
 
5935
{
 
5936
 
 
5937
  ;
 
5938
  return 0;
 
5939
}
 
5940
_ACEOF
 
5941
if ac_fn_c_try_link "$LINENO"; then :
 
5942
  je_cv_valgrind=yes
 
5943
else
 
5944
  je_cv_valgrind=no
 
5945
fi
 
5946
rm -f core conftest.err conftest.$ac_objext \
 
5947
    conftest$ac_exeext conftest.$ac_ext
 
5948
fi
 
5949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5
 
5950
$as_echo "$je_cv_valgrind" >&6; }
 
5951
 
 
5952
  if test "x${je_cv_valgrind}" = "xno" ; then
 
5953
    enable_valgrind="0"
 
5954
  fi
 
5955
  if test "x$enable_valgrind" = "x1" ; then
 
5956
    $as_echo "#define JEMALLOC_VALGRIND  " >>confdefs.h
 
5957
 
 
5958
  fi
 
5959
fi
 
5960
 
 
5961
 
 
5962
# Check whether --enable-xmalloc was given.
 
5963
if test "${enable_xmalloc+set}" = set; then :
 
5964
  enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
 
5965
  enable_xmalloc="0"
 
5966
else
 
5967
  enable_xmalloc="1"
 
5968
fi
 
5969
 
 
5970
else
 
5971
  enable_xmalloc="0"
 
5972
 
 
5973
fi
 
5974
 
 
5975
if test "x$enable_xmalloc" = "x1" ; then
 
5976
  $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
 
5977
 
 
5978
fi
 
5979
 
 
5980
 
 
5981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking STATIC_PAGE_SHIFT" >&5
 
5982
$as_echo_n "checking STATIC_PAGE_SHIFT... " >&6; }
 
5983
if ${je_cv_static_page_shift+:} false; then :
 
5984
  $as_echo_n "(cached) " >&6
 
5985
else
 
5986
  if test "$cross_compiling" = yes; then :
 
5987
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5988
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5989
as_fn_error $? "cannot run test program while cross compiling
 
5990
See \`config.log' for more details" "$LINENO" 5; }
 
5991
else
 
5992
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5993
/* end confdefs.h.  */
 
5994
 
 
5995
#include <strings.h>
 
5996
#ifdef _WIN32
 
5997
#include <windows.h>
 
5998
#else
 
5999
#include <unistd.h>
 
6000
#endif
 
6001
#include <stdio.h>
 
6002
 
 
6003
int
 
6004
main ()
 
6005
{
 
6006
 
 
6007
    int result;
 
6008
    FILE *f;
 
6009
 
 
6010
#ifdef _WIN32
 
6011
    SYSTEM_INFO si;
 
6012
    GetSystemInfo(&si);
 
6013
    result = si.dwPageSize;
 
6014
#else
 
6015
    result = sysconf(_SC_PAGESIZE);
 
6016
#endif
 
6017
    if (result == -1) {
 
6018
        return 1;
 
6019
    }
 
6020
    result = ffsl(result) - 1;
 
6021
 
 
6022
    f = fopen("conftest.out", "w");
 
6023
    if (f == NULL) {
 
6024
        return 1;
 
6025
    }
 
6026
    fprintf(f, "%d\n", result);
 
6027
    fclose(f);
 
6028
 
 
6029
    return 0;
 
6030
 
 
6031
  ;
 
6032
  return 0;
 
6033
}
 
6034
_ACEOF
 
6035
if ac_fn_c_try_run "$LINENO"; then :
 
6036
  je_cv_static_page_shift=`cat conftest.out`
 
6037
else
 
6038
  je_cv_static_page_shift=undefined
 
6039
fi
 
6040
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6041
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6042
fi
 
6043
 
 
6044
fi
 
6045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_static_page_shift" >&5
 
6046
$as_echo "$je_cv_static_page_shift" >&6; }
 
6047
 
 
6048
if test "x$je_cv_static_page_shift" != "xundefined"; then
 
6049
   cat >>confdefs.h <<_ACEOF
 
6050
#define STATIC_PAGE_SHIFT $je_cv_static_page_shift
 
6051
_ACEOF
 
6052
 
 
6053
else
 
6054
   as_fn_error $? "cannot determine value for STATIC_PAGE_SHIFT" "$LINENO" 5
 
6055
fi
 
6056
 
 
6057
 
 
6058
if test -d "${srcroot}.git" ; then
 
6059
  git describe --long --abbrev=40 > ${srcroot}VERSION
 
6060
fi
 
6061
jemalloc_version=`cat ${srcroot}VERSION`
 
6062
jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
 
6063
jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
 
6064
jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
 
6065
jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
 
6066
jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
 
6067
 
 
6068
 
 
6069
 
 
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
if test "x$abi" != "xpecoff" ; then
 
6076
  for ac_header in pthread.h
 
6077
do :
 
6078
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
6079
if test "x$ac_cv_header_pthread_h" = xyes; then :
 
6080
  cat >>confdefs.h <<_ACEOF
 
6081
#define HAVE_PTHREAD_H 1
 
6082
_ACEOF
 
6083
 
 
6084
else
 
6085
  as_fn_error $? "pthread.h is missing" "$LINENO" 5
 
6086
fi
 
6087
 
 
6088
done
 
6089
 
 
6090
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
 
6091
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
 
6092
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
 
6093
  $as_echo_n "(cached) " >&6
 
6094
else
 
6095
  ac_check_lib_save_LIBS=$LIBS
 
6096
LIBS="-lpthread  $LIBS"
 
6097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6098
/* end confdefs.h.  */
 
6099
 
 
6100
/* Override any GCC internal prototype to avoid an error.
 
6101
   Use char because int might match the return type of a GCC
 
6102
   builtin and then its argument prototype would still apply.  */
 
6103
#ifdef __cplusplus
 
6104
extern "C"
 
6105
#endif
 
6106
char pthread_create ();
 
6107
int
 
6108
main ()
 
6109
{
 
6110
return pthread_create ();
 
6111
  ;
 
6112
  return 0;
 
6113
}
 
6114
_ACEOF
 
6115
if ac_fn_c_try_link "$LINENO"; then :
 
6116
  ac_cv_lib_pthread_pthread_create=yes
 
6117
else
 
6118
  ac_cv_lib_pthread_pthread_create=no
 
6119
fi
 
6120
rm -f core conftest.err conftest.$ac_objext \
 
6121
    conftest$ac_exeext conftest.$ac_ext
 
6122
LIBS=$ac_check_lib_save_LIBS
 
6123
fi
 
6124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
 
6125
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 
6126
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
 
6127
  LIBS="$LIBS -lpthread"
 
6128
else
 
6129
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
 
6130
$as_echo_n "checking for library containing pthread_create... " >&6; }
 
6131
if ${ac_cv_search_pthread_create+:} false; then :
 
6132
  $as_echo_n "(cached) " >&6
 
6133
else
 
6134
  ac_func_search_save_LIBS=$LIBS
 
6135
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6136
/* end confdefs.h.  */
 
6137
 
 
6138
/* Override any GCC internal prototype to avoid an error.
 
6139
   Use char because int might match the return type of a GCC
 
6140
   builtin and then its argument prototype would still apply.  */
 
6141
#ifdef __cplusplus
 
6142
extern "C"
 
6143
#endif
 
6144
char pthread_create ();
 
6145
int
 
6146
main ()
 
6147
{
 
6148
return pthread_create ();
 
6149
  ;
 
6150
  return 0;
 
6151
}
 
6152
_ACEOF
 
6153
for ac_lib in '' ; do
 
6154
  if test -z "$ac_lib"; then
 
6155
    ac_res="none required"
 
6156
  else
 
6157
    ac_res=-l$ac_lib
 
6158
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6159
  fi
 
6160
  if ac_fn_c_try_link "$LINENO"; then :
 
6161
  ac_cv_search_pthread_create=$ac_res
 
6162
fi
 
6163
rm -f core conftest.err conftest.$ac_objext \
 
6164
    conftest$ac_exeext
 
6165
  if ${ac_cv_search_pthread_create+:} false; then :
 
6166
  break
 
6167
fi
 
6168
done
 
6169
if ${ac_cv_search_pthread_create+:} false; then :
 
6170
 
 
6171
else
 
6172
  ac_cv_search_pthread_create=no
 
6173
fi
 
6174
rm conftest.$ac_ext
 
6175
LIBS=$ac_func_search_save_LIBS
 
6176
fi
 
6177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
 
6178
$as_echo "$ac_cv_search_pthread_create" >&6; }
 
6179
ac_res=$ac_cv_search_pthread_create
 
6180
if test "$ac_res" != no; then :
 
6181
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
6182
 
 
6183
else
 
6184
  as_fn_error $? "libpthread is missing" "$LINENO" 5
 
6185
fi
 
6186
 
 
6187
fi
 
6188
 
 
6189
fi
 
6190
 
 
6191
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
6192
 
 
6193
ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
 
6194
if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
 
6195
  have__malloc_thread_cleanup="1"
 
6196
else
 
6197
  have__malloc_thread_cleanup="0"
 
6198
 
 
6199
fi
 
6200
 
 
6201
if test "x$have__malloc_thread_cleanup" = "x1" ; then
 
6202
  $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
 
6203
 
 
6204
  force_tls="1"
 
6205
fi
 
6206
 
 
6207
ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
 
6208
if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
 
6209
  have__pthread_mutex_init_calloc_cb="1"
 
6210
else
 
6211
  have__pthread_mutex_init_calloc_cb="0"
 
6212
 
 
6213
fi
 
6214
 
 
6215
if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
 
6216
  $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
 
6217
 
 
6218
fi
 
6219
 
 
6220
# Check whether --enable-lazy_lock was given.
 
6221
if test "${enable_lazy_lock+set}" = set; then :
 
6222
  enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
 
6223
  enable_lazy_lock="0"
 
6224
else
 
6225
  enable_lazy_lock="1"
 
6226
fi
 
6227
 
 
6228
else
 
6229
  enable_lazy_lock="0"
 
6230
 
 
6231
fi
 
6232
 
 
6233
if test "x$enable_lazy_lock" = "x0" -a "x${force_lazy_lock}" = "x1" ; then
 
6234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
 
6235
$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
 
6236
  enable_lazy_lock="1"
 
6237
fi
 
6238
if test "x$enable_lazy_lock" = "x1" ; then
 
6239
  if test "x$abi" != "xpecoff" ; then
 
6240
    for ac_header in dlfcn.h
 
6241
do :
 
6242
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
 
6243
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
6244
  cat >>confdefs.h <<_ACEOF
 
6245
#define HAVE_DLFCN_H 1
 
6246
_ACEOF
 
6247
 
 
6248
else
 
6249
  as_fn_error $? "dlfcn.h is missing" "$LINENO" 5
 
6250
fi
 
6251
 
 
6252
done
 
6253
 
 
6254
    ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
 
6255
if test "x$ac_cv_func_dlsym" = xyes; then :
 
6256
 
 
6257
else
 
6258
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
 
6259
$as_echo_n "checking for dlsym in -ldl... " >&6; }
 
6260
if ${ac_cv_lib_dl_dlsym+:} false; then :
 
6261
  $as_echo_n "(cached) " >&6
 
6262
else
 
6263
  ac_check_lib_save_LIBS=$LIBS
 
6264
LIBS="-ldl  $LIBS"
 
6265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6266
/* end confdefs.h.  */
 
6267
 
 
6268
/* Override any GCC internal prototype to avoid an error.
 
6269
   Use char because int might match the return type of a GCC
 
6270
   builtin and then its argument prototype would still apply.  */
 
6271
#ifdef __cplusplus
 
6272
extern "C"
 
6273
#endif
 
6274
char dlsym ();
 
6275
int
 
6276
main ()
 
6277
{
 
6278
return dlsym ();
 
6279
  ;
 
6280
  return 0;
 
6281
}
 
6282
_ACEOF
 
6283
if ac_fn_c_try_link "$LINENO"; then :
 
6284
  ac_cv_lib_dl_dlsym=yes
 
6285
else
 
6286
  ac_cv_lib_dl_dlsym=no
 
6287
fi
 
6288
rm -f core conftest.err conftest.$ac_objext \
 
6289
    conftest$ac_exeext conftest.$ac_ext
 
6290
LIBS=$ac_check_lib_save_LIBS
 
6291
fi
 
6292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
 
6293
$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
 
6294
if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
 
6295
  LIBS="$LIBS -ldl"
 
6296
else
 
6297
  as_fn_error $? "libdl is missing" "$LINENO" 5
 
6298
fi
 
6299
 
 
6300
 
 
6301
fi
 
6302
 
 
6303
  fi
 
6304
  $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
 
6305
 
 
6306
fi
 
6307
 
 
6308
 
 
6309
# Check whether --enable-tls was given.
 
6310
if test "${enable_tls+set}" = set; then :
 
6311
  enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then
 
6312
  enable_tls="0"
 
6313
else
 
6314
  enable_tls="1"
 
6315
fi
 
6316
 
 
6317
else
 
6318
  enable_tls="1"
 
6319
 
 
6320
fi
 
6321
 
 
6322
if test "x${enable_tls}" = "x0" -a "x${force_tls}" = "x1" ; then
 
6323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5
 
6324
$as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; }
 
6325
  enable_tls="1"
 
6326
fi
 
6327
if test "x${enable_tls}" = "x1" -a "x${force_tls}" = "x0" ; then
 
6328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5
 
6329
$as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; }
 
6330
  enable_tls="0"
 
6331
fi
 
6332
if test "x${enable_tls}" = "x1" ; then
 
6333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
 
6334
$as_echo_n "checking for TLS... " >&6; }
 
6335
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6336
/* end confdefs.h.  */
 
6337
 
 
6338
    __thread int x;
 
6339
 
 
6340
int
 
6341
main ()
 
6342
{
 
6343
 
 
6344
    x = 42;
 
6345
 
 
6346
    return 0;
 
6347
 
 
6348
  ;
 
6349
  return 0;
 
6350
}
 
6351
_ACEOF
 
6352
if ac_fn_c_try_compile "$LINENO"; then :
 
6353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6354
$as_echo "yes" >&6; }
 
6355
else
 
6356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6357
$as_echo "no" >&6; }
 
6358
              enable_tls="0"
 
6359
fi
 
6360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6361
fi
 
6362
 
 
6363
if test "x${enable_tls}" = "x1" ; then
 
6364
  cat >>confdefs.h <<_ACEOF
 
6365
#define JEMALLOC_TLS
 
6366
_ACEOF
 
6367
 
 
6368
elif test "x${force_tls}" = "x1" ; then
 
6369
  as_fn_error $? "Failed to configure TLS, which is mandatory for correct function" "$LINENO" 5
 
6370
fi
 
6371
 
 
6372
 
 
6373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
 
6374
$as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
 
6375
if ${je_cv_function_ffsl+:} false; then :
 
6376
  $as_echo_n "(cached) " >&6
 
6377
else
 
6378
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6379
/* end confdefs.h.  */
 
6380
 
 
6381
#include <stdio.h>
 
6382
#include <strings.h>
 
6383
#include <string.h>
 
6384
 
 
6385
int
 
6386
main ()
 
6387
{
 
6388
 
 
6389
        {
 
6390
                int rv = ffsl(0x08);
 
6391
                printf("%d\n", rv);
 
6392
        }
 
6393
 
 
6394
  ;
 
6395
  return 0;
 
6396
}
 
6397
_ACEOF
 
6398
if ac_fn_c_try_link "$LINENO"; then :
 
6399
  je_cv_function_ffsl=yes
 
6400
else
 
6401
  je_cv_function_ffsl=no
 
6402
fi
 
6403
rm -f core conftest.err conftest.$ac_objext \
 
6404
    conftest$ac_exeext conftest.$ac_ext
 
6405
fi
 
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
 
6407
$as_echo "$je_cv_function_ffsl" >&6; }
 
6408
 
 
6409
if test "x${je_cv_function_ffsl}" != "xyes" ; then
 
6410
   as_fn_error $? "Cannot build without ffsl(3)" "$LINENO" 5
 
6411
fi
 
6412
 
 
6413
 
 
6414
 
 
6415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5
 
6416
$as_echo_n "checking whether atomic(9) is compilable... " >&6; }
 
6417
if ${je_cv_atomic9+:} false; then :
 
6418
  $as_echo_n "(cached) " >&6
 
6419
else
 
6420
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6421
/* end confdefs.h.  */
 
6422
 
 
6423
#include <sys/types.h>
 
6424
#include <machine/atomic.h>
 
6425
#include <inttypes.h>
 
6426
 
 
6427
int
 
6428
main ()
 
6429
{
 
6430
 
 
6431
        {
 
6432
                uint32_t x32 = 0;
 
6433
                volatile uint32_t *x32p = &x32;
 
6434
                atomic_fetchadd_32(x32p, 1);
 
6435
        }
 
6436
        {
 
6437
                unsigned long xlong = 0;
 
6438
                volatile unsigned long *xlongp = &xlong;
 
6439
                atomic_fetchadd_long(xlongp, 1);
 
6440
        }
 
6441
 
 
6442
  ;
 
6443
  return 0;
 
6444
}
 
6445
_ACEOF
 
6446
if ac_fn_c_try_link "$LINENO"; then :
 
6447
  je_cv_atomic9=yes
 
6448
else
 
6449
  je_cv_atomic9=no
 
6450
fi
 
6451
rm -f core conftest.err conftest.$ac_objext \
 
6452
    conftest$ac_exeext conftest.$ac_ext
 
6453
fi
 
6454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5
 
6455
$as_echo "$je_cv_atomic9" >&6; }
 
6456
 
 
6457
if test "x${je_cv_atomic9}" = "xyes" ; then
 
6458
  $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h
 
6459
 
 
6460
fi
 
6461
 
 
6462
 
 
6463
 
 
6464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
 
6465
$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
 
6466
if ${je_cv_osatomic+:} false; then :
 
6467
  $as_echo_n "(cached) " >&6
 
6468
else
 
6469
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6470
/* end confdefs.h.  */
 
6471
 
 
6472
#include <libkern/OSAtomic.h>
 
6473
#include <inttypes.h>
 
6474
 
 
6475
int
 
6476
main ()
 
6477
{
 
6478
 
 
6479
        {
 
6480
                int32_t x32 = 0;
 
6481
                volatile int32_t *x32p = &x32;
 
6482
                OSAtomicAdd32(1, x32p);
 
6483
        }
 
6484
        {
 
6485
                int64_t x64 = 0;
 
6486
                volatile int64_t *x64p = &x64;
 
6487
                OSAtomicAdd64(1, x64p);
 
6488
        }
 
6489
 
 
6490
  ;
 
6491
  return 0;
 
6492
}
 
6493
_ACEOF
 
6494
if ac_fn_c_try_link "$LINENO"; then :
 
6495
  je_cv_osatomic=yes
 
6496
else
 
6497
  je_cv_osatomic=no
 
6498
fi
 
6499
rm -f core conftest.err conftest.$ac_objext \
 
6500
    conftest$ac_exeext conftest.$ac_ext
 
6501
fi
 
6502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
 
6503
$as_echo "$je_cv_osatomic" >&6; }
 
6504
 
 
6505
if test "x${je_cv_osatomic}" = "xyes" ; then
 
6506
  $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
 
6507
 
 
6508
fi
 
6509
 
 
6510
 
 
6511
 
 
6512
 
 
6513
if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
 
6514
 
 
6515
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
 
6516
$as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
 
6517
if ${je_cv_sync_compare_and_swap_4+:} false; then :
 
6518
  $as_echo_n "(cached) " >&6
 
6519
else
 
6520
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6521
/* end confdefs.h.  */
 
6522
 
 
6523
                                                 #include <stdint.h>
 
6524
 
 
6525
int
 
6526
main ()
 
6527
{
 
6528
 
 
6529
                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
 
6530
                                                 {
 
6531
                                                    uint32_t x32 = 0;
 
6532
                                                    __sync_add_and_fetch(&x32, 42);
 
6533
                                                    __sync_sub_and_fetch(&x32, 1);
 
6534
                                                 }
 
6535
                                                 #else
 
6536
                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
 
6537
                                                 #endif
 
6538
 
 
6539
  ;
 
6540
  return 0;
 
6541
}
 
6542
_ACEOF
 
6543
if ac_fn_c_try_link "$LINENO"; then :
 
6544
  je_cv_sync_compare_and_swap_4=yes
 
6545
else
 
6546
  je_cv_sync_compare_and_swap_4=no
 
6547
fi
 
6548
rm -f core conftest.err conftest.$ac_objext \
 
6549
    conftest$ac_exeext conftest.$ac_ext
 
6550
fi
 
6551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
 
6552
$as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
 
6553
 
 
6554
  if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
 
6555
    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4  " >>confdefs.h
 
6556
 
 
6557
  fi
 
6558
 
 
6559
 
 
6560
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
 
6561
$as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
 
6562
if ${je_cv_sync_compare_and_swap_8+:} false; then :
 
6563
  $as_echo_n "(cached) " >&6
 
6564
else
 
6565
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6566
/* end confdefs.h.  */
 
6567
 
 
6568
                                                 #include <stdint.h>
 
6569
 
 
6570
int
 
6571
main ()
 
6572
{
 
6573
 
 
6574
                                                 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
 
6575
                                                 {
 
6576
                                                    uint64_t x64 = 0;
 
6577
                                                    __sync_add_and_fetch(&x64, 42);
 
6578
                                                    __sync_sub_and_fetch(&x64, 1);
 
6579
                                                 }
 
6580
                                                 #else
 
6581
                                                 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
 
6582
                                                 #endif
 
6583
 
 
6584
  ;
 
6585
  return 0;
 
6586
}
 
6587
_ACEOF
 
6588
if ac_fn_c_try_link "$LINENO"; then :
 
6589
  je_cv_sync_compare_and_swap_8=yes
 
6590
else
 
6591
  je_cv_sync_compare_and_swap_8=no
 
6592
fi
 
6593
rm -f core conftest.err conftest.$ac_objext \
 
6594
    conftest$ac_exeext conftest.$ac_ext
 
6595
fi
 
6596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
 
6597
$as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
 
6598
 
 
6599
  if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
 
6600
    $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8  " >>confdefs.h
 
6601
 
 
6602
  fi
 
6603
 
 
6604
fi
 
6605
 
 
6606
 
 
6607
 
 
6608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
 
6609
$as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
 
6610
if ${je_cv_osspin+:} false; then :
 
6611
  $as_echo_n "(cached) " >&6
 
6612
else
 
6613
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6614
/* end confdefs.h.  */
 
6615
 
 
6616
#include <libkern/OSAtomic.h>
 
6617
#include <inttypes.h>
 
6618
 
 
6619
int
 
6620
main ()
 
6621
{
 
6622
 
 
6623
        OSSpinLock lock = 0;
 
6624
        OSSpinLockLock(&lock);
 
6625
        OSSpinLockUnlock(&lock);
 
6626
 
 
6627
  ;
 
6628
  return 0;
 
6629
}
 
6630
_ACEOF
 
6631
if ac_fn_c_try_link "$LINENO"; then :
 
6632
  je_cv_osspin=yes
 
6633
else
 
6634
  je_cv_osspin=no
 
6635
fi
 
6636
rm -f core conftest.err conftest.$ac_objext \
 
6637
    conftest$ac_exeext conftest.$ac_ext
 
6638
fi
 
6639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
 
6640
$as_echo "$je_cv_osspin" >&6; }
 
6641
 
 
6642
if test "x${je_cv_osspin}" = "xyes" ; then
 
6643
  $as_echo "#define JEMALLOC_OSSPIN  " >>confdefs.h
 
6644
 
 
6645
fi
 
6646
 
 
6647
 
 
6648
# Check whether --enable-zone-allocator was given.
 
6649
if test "${enable_zone_allocator+set}" = set; then :
 
6650
  enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
 
6651
  enable_zone_allocator="0"
 
6652
else
 
6653
  enable_zone_allocator="1"
 
6654
fi
 
6655
 
 
6656
else
 
6657
  if test "x${abi}" = "xmacho"; then
 
6658
  enable_zone_allocator="1"
 
6659
fi
 
6660
 
 
6661
 
 
6662
fi
 
6663
 
 
6664
 
 
6665
 
 
6666
if test "x${enable_zone_allocator}" = "x1" ; then
 
6667
  if test "x${abi}" != "xmacho"; then
 
6668
    as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
 
6669
  fi
 
6670
  $as_echo "#define JEMALLOC_IVSALLOC  " >>confdefs.h
 
6671
 
 
6672
  $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
 
6673
 
 
6674
 
 
6675
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc zone version" >&5
 
6676
$as_echo_n "checking malloc zone version... " >&6; }
 
6677
 
 
6678
 
 
6679
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6680
/* end confdefs.h.  */
 
6681
#include <malloc/malloc.h>
 
6682
int
 
6683
main ()
 
6684
{
 
6685
static foo[sizeof(malloc_zone_t) == sizeof(void *) * 14 ? 1 : -1]
 
6686
 
 
6687
  ;
 
6688
  return 0;
 
6689
}
 
6690
_ACEOF
 
6691
if ac_fn_c_try_compile "$LINENO"; then :
 
6692
  JEMALLOC_ZONE_VERSION=3
 
6693
else
 
6694
 
 
6695
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6696
/* end confdefs.h.  */
 
6697
#include <malloc/malloc.h>
 
6698
int
 
6699
main ()
 
6700
{
 
6701
static foo[sizeof(malloc_zone_t) == sizeof(void *) * 15 ? 1 : -1]
 
6702
 
 
6703
  ;
 
6704
  return 0;
 
6705
}
 
6706
_ACEOF
 
6707
if ac_fn_c_try_compile "$LINENO"; then :
 
6708
  JEMALLOC_ZONE_VERSION=5
 
6709
else
 
6710
 
 
6711
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6712
/* end confdefs.h.  */
 
6713
#include <malloc/malloc.h>
 
6714
int
 
6715
main ()
 
6716
{
 
6717
static foo[sizeof(malloc_zone_t) == sizeof(void *) * 16 ? 1 : -1]
 
6718
 
 
6719
  ;
 
6720
  return 0;
 
6721
}
 
6722
_ACEOF
 
6723
if ac_fn_c_try_compile "$LINENO"; then :
 
6724
 
 
6725
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6726
/* end confdefs.h.  */
 
6727
#include <malloc/malloc.h>
 
6728
int
 
6729
main ()
 
6730
{
 
6731
static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 9 ? 1 : -1]
 
6732
 
 
6733
  ;
 
6734
  return 0;
 
6735
}
 
6736
_ACEOF
 
6737
if ac_fn_c_try_compile "$LINENO"; then :
 
6738
  JEMALLOC_ZONE_VERSION=6
 
6739
else
 
6740
 
 
6741
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6742
/* end confdefs.h.  */
 
6743
#include <malloc/malloc.h>
 
6744
int
 
6745
main ()
 
6746
{
 
6747
static foo[sizeof(malloc_introspection_t) == sizeof(void *) * 13 ? 1 : -1]
 
6748
 
 
6749
  ;
 
6750
  return 0;
 
6751
}
 
6752
_ACEOF
 
6753
if ac_fn_c_try_compile "$LINENO"; then :
 
6754
  JEMALLOC_ZONE_VERSION=7
 
6755
else
 
6756
  JEMALLOC_ZONE_VERSION=
 
6757
 
 
6758
fi
 
6759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6760
fi
 
6761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6762
else
 
6763
 
 
6764
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6765
/* end confdefs.h.  */
 
6766
#include <malloc/malloc.h>
 
6767
int
 
6768
main ()
 
6769
{
 
6770
static foo[sizeof(malloc_zone_t) == sizeof(void *) * 17 ? 1 : -1]
 
6771
 
 
6772
  ;
 
6773
  return 0;
 
6774
}
 
6775
_ACEOF
 
6776
if ac_fn_c_try_compile "$LINENO"; then :
 
6777
  JEMALLOC_ZONE_VERSION=8
 
6778
else
 
6779
 
 
6780
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6781
/* end confdefs.h.  */
 
6782
#include <malloc/malloc.h>
 
6783
int
 
6784
main ()
 
6785
{
 
6786
static foo[sizeof(malloc_zone_t) > sizeof(void *) * 17 ? 1 : -1]
 
6787
 
 
6788
  ;
 
6789
  return 0;
 
6790
}
 
6791
_ACEOF
 
6792
if ac_fn_c_try_compile "$LINENO"; then :
 
6793
  JEMALLOC_ZONE_VERSION=9
 
6794
else
 
6795
  JEMALLOC_ZONE_VERSION=
 
6796
 
 
6797
fi
 
6798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6799
fi
 
6800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6801
fi
 
6802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6803
fi
 
6804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6805
fi
 
6806
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6807
  if test "x${JEMALLOC_ZONE_VERSION}" = "x"; then
 
6808
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
6809
$as_echo "unsupported" >&6; }
 
6810
    as_fn_error $? "Unsupported malloc zone version" "$LINENO" 5
 
6811
  fi
 
6812
  if test "${JEMALLOC_ZONE_VERSION}" = 9; then
 
6813
    JEMALLOC_ZONE_VERSION=8
 
6814
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: > 8" >&5
 
6815
$as_echo "> 8" >&6; }
 
6816
  else
 
6817
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JEMALLOC_ZONE_VERSION" >&5
 
6818
$as_echo "$JEMALLOC_ZONE_VERSION" >&6; }
 
6819
  fi
 
6820
  cat >>confdefs.h <<_ACEOF
 
6821
#define JEMALLOC_ZONE_VERSION $JEMALLOC_ZONE_VERSION
 
6822
_ACEOF
 
6823
 
 
6824
fi
 
6825
 
 
6826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 
6827
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
 
6828
if ${ac_cv_header_stdbool_h+:} false; then :
 
6829
  $as_echo_n "(cached) " >&6
 
6830
else
 
6831
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6832
/* end confdefs.h.  */
 
6833
 
 
6834
#include <stdbool.h>
 
6835
#ifndef bool
 
6836
 "error: bool is not defined"
 
6837
#endif
 
6838
#ifndef false
 
6839
 "error: false is not defined"
 
6840
#endif
 
6841
#if false
 
6842
 "error: false is not 0"
 
6843
#endif
 
6844
#ifndef true
 
6845
 "error: true is not defined"
 
6846
#endif
 
6847
#if true != 1
 
6848
 "error: true is not 1"
 
6849
#endif
 
6850
#ifndef __bool_true_false_are_defined
 
6851
 "error: __bool_true_false_are_defined is not defined"
 
6852
#endif
 
6853
 
 
6854
        struct s { _Bool s: 1; _Bool t; } s;
 
6855
 
 
6856
        char a[true == 1 ? 1 : -1];
 
6857
        char b[false == 0 ? 1 : -1];
 
6858
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
6859
        char d[(bool) 0.5 == true ? 1 : -1];
 
6860
        /* See body of main program for 'e'.  */
 
6861
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
6862
        char g[true];
 
6863
        char h[sizeof (_Bool)];
 
6864
        char i[sizeof s.t];
 
6865
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
6866
        /* The following fails for
 
6867
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
6868
        _Bool n[m];
 
6869
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
6870
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
6871
        /* Catch a bug in an HP-UX C compiler.  See
 
6872
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
6873
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
6874
         */
 
6875
        _Bool q = true;
 
6876
        _Bool *pq = &q;
 
6877
 
 
6878
int
 
6879
main ()
 
6880
{
 
6881
 
 
6882
        bool e = &s;
 
6883
        *pq |= q;
 
6884
        *pq |= ! q;
 
6885
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
6886
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
6887
                + !m + !n + !o + !p + !q + !pq);
 
6888
 
 
6889
  ;
 
6890
  return 0;
 
6891
}
 
6892
_ACEOF
 
6893
if ac_fn_c_try_compile "$LINENO"; then :
 
6894
  ac_cv_header_stdbool_h=yes
 
6895
else
 
6896
  ac_cv_header_stdbool_h=no
 
6897
fi
 
6898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6899
fi
 
6900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
 
6901
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
6902
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
 
6903
if test "x$ac_cv_type__Bool" = xyes; then :
 
6904
 
 
6905
cat >>confdefs.h <<_ACEOF
 
6906
#define HAVE__BOOL 1
 
6907
_ACEOF
 
6908
 
 
6909
 
 
6910
fi
 
6911
 
 
6912
if test $ac_cv_header_stdbool_h = yes; then
 
6913
 
 
6914
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
 
6915
 
 
6916
fi
 
6917
 
 
6918
 
 
6919
ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
 
6920
 
 
6921
 
 
6922
 
 
6923
 
 
6924
ac_config_headers="$ac_config_headers $cfghdrs_tup"
 
6925
 
 
6926
 
 
6927
ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc.sh"
 
6928
 
 
6929
 
 
6930
 
 
6931
cat >confcache <<\_ACEOF
 
6932
# This file is a shell script that caches the results of configure
 
6933
# tests run on this system so they can be shared between configure
 
6934
# scripts and configure runs, see configure's option --config-cache.
 
6935
# It is not useful on other systems.  If it contains results you don't
 
6936
# want to keep, you may remove or edit it.
 
6937
#
 
6938
# config.status only pays attention to the cache file if you give it
 
6939
# the --recheck option to rerun configure.
 
6940
#
 
6941
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
6942
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
6943
# following values.
 
6944
 
 
6945
_ACEOF
 
6946
 
 
6947
# The following way of writing the cache mishandles newlines in values,
 
6948
# but we know of no workaround that is simple, portable, and efficient.
 
6949
# So, we kill variables containing newlines.
 
6950
# Ultrix sh set writes to stderr and can't be redirected directly,
 
6951
# and sets the high bit in the cache file unless we assign to the vars.
 
6952
(
 
6953
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
6954
    eval ac_val=\$$ac_var
 
6955
    case $ac_val in #(
 
6956
    *${as_nl}*)
 
6957
      case $ac_var in #(
 
6958
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
6959
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
6960
      esac
 
6961
      case $ac_var in #(
 
6962
      _ | IFS | as_nl) ;; #(
 
6963
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
6964
      *) { eval $ac_var=; unset $ac_var;} ;;
 
6965
      esac ;;
 
6966
    esac
 
6967
  done
 
6968
 
 
6969
  (set) 2>&1 |
 
6970
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
6971
    *${as_nl}ac_space=\ *)
 
6972
      # `set' does not quote correctly, so add quotes: double-quote
 
6973
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
6974
      sed -n \
 
6975
        "s/'/'\\\\''/g;
 
6976
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
6977
      ;; #(
 
6978
    *)
 
6979
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
6980
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
6981
      ;;
 
6982
    esac |
 
6983
    sort
 
6984
) |
 
6985
  sed '
 
6986
     /^ac_cv_env_/b end
 
6987
     t clear
 
6988
     :clear
 
6989
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
6990
     t end
 
6991
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
6992
     :end' >>confcache
 
6993
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
6994
  if test -w "$cache_file"; then
 
6995
    if test "x$cache_file" != "x/dev/null"; then
 
6996
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
6997
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
6998
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
6999
        cat confcache >"$cache_file"
 
7000
      else
 
7001
        case $cache_file in #(
 
7002
        */* | ?:*)
 
7003
          mv -f confcache "$cache_file"$$ &&
 
7004
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
7005
        *)
 
7006
          mv -f confcache "$cache_file" ;;
 
7007
        esac
 
7008
      fi
 
7009
    fi
 
7010
  else
 
7011
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
7012
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
7013
  fi
 
7014
fi
 
7015
rm -f confcache
 
7016
 
 
7017
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
7018
# Let make expand exec_prefix.
 
7019
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
7020
 
 
7021
DEFS=-DHAVE_CONFIG_H
 
7022
 
 
7023
ac_libobjs=
 
7024
ac_ltlibobjs=
 
7025
U=
 
7026
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
7027
  # 1. Remove the extension, and $U if already installed.
 
7028
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
7029
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
7030
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
7031
  #    will be set to the directory where LIBOBJS objects are built.
 
7032
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
7033
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
7034
done
 
7035
LIBOBJS=$ac_libobjs
 
7036
 
 
7037
LTLIBOBJS=$ac_ltlibobjs
 
7038
 
 
7039
 
 
7040
 
 
7041
: "${CONFIG_STATUS=./config.status}"
 
7042
ac_write_fail=0
 
7043
ac_clean_files_save=$ac_clean_files
 
7044
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
7045
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
7046
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7047
as_write_fail=0
 
7048
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
7049
#! $SHELL
 
7050
# Generated by $as_me.
 
7051
# Run this file to recreate the current configuration.
 
7052
# Compiler output produced by configure, useful for debugging
 
7053
# configure, is in config.log if it exists.
 
7054
 
 
7055
debug=false
 
7056
ac_cs_recheck=false
 
7057
ac_cs_silent=false
 
7058
 
 
7059
SHELL=\${CONFIG_SHELL-$SHELL}
 
7060
export SHELL
 
7061
_ASEOF
 
7062
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
7063
## -------------------- ##
 
7064
## M4sh Initialization. ##
 
7065
## -------------------- ##
 
7066
 
 
7067
# Be more Bourne compatible
 
7068
DUALCASE=1; export DUALCASE # for MKS sh
 
7069
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
7070
  emulate sh
 
7071
  NULLCMD=:
 
7072
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
7073
  # is contrary to our usage.  Disable this feature.
 
7074
  alias -g '${1+"$@"}'='"$@"'
 
7075
  setopt NO_GLOB_SUBST
 
7076
else
 
7077
  case `(set -o) 2>/dev/null` in #(
 
7078
  *posix*) :
 
7079
    set -o posix ;; #(
 
7080
  *) :
 
7081
     ;;
 
7082
esac
 
7083
fi
 
7084
 
 
7085
 
 
7086
as_nl='
 
7087
'
 
7088
export as_nl
 
7089
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
7090
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
7091
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
7092
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
7093
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
7094
# but without wasting forks for bash or zsh.
 
7095
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
7096
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
7097
  as_echo='print -r --'
 
7098
  as_echo_n='print -rn --'
 
7099
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
7100
  as_echo='printf %s\n'
 
7101
  as_echo_n='printf %s'
 
7102
else
 
7103
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
7104
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
7105
    as_echo_n='/usr/ucb/echo -n'
 
7106
  else
 
7107
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
7108
    as_echo_n_body='eval
 
7109
      arg=$1;
 
7110
      case $arg in #(
 
7111
      *"$as_nl"*)
 
7112
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
7113
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
7114
      esac;
 
7115
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
7116
    '
 
7117
    export as_echo_n_body
 
7118
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
7119
  fi
 
7120
  export as_echo_body
 
7121
  as_echo='sh -c $as_echo_body as_echo'
 
7122
fi
 
7123
 
 
7124
# The user is always right.
 
7125
if test "${PATH_SEPARATOR+set}" != set; then
 
7126
  PATH_SEPARATOR=:
 
7127
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
7128
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
7129
      PATH_SEPARATOR=';'
 
7130
  }
 
7131
fi
 
7132
 
 
7133
 
 
7134
# IFS
 
7135
# We need space, tab and new line, in precisely that order.  Quoting is
 
7136
# there to prevent editors from complaining about space-tab.
 
7137
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
7138
# splitting by setting IFS to empty value.)
 
7139
IFS=" ""        $as_nl"
 
7140
 
 
7141
# Find who we are.  Look in the path if we contain no directory separator.
 
7142
as_myself=
 
7143
case $0 in #((
 
7144
  *[\\/]* ) as_myself=$0 ;;
 
7145
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7146
for as_dir in $PATH
 
7147
do
 
7148
  IFS=$as_save_IFS
 
7149
  test -z "$as_dir" && as_dir=.
 
7150
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
7151
  done
 
7152
IFS=$as_save_IFS
 
7153
 
 
7154
     ;;
 
7155
esac
 
7156
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
7157
# in which case we are not to be found in the path.
 
7158
if test "x$as_myself" = x; then
 
7159
  as_myself=$0
 
7160
fi
 
7161
if test ! -f "$as_myself"; then
 
7162
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
7163
  exit 1
 
7164
fi
 
7165
 
 
7166
# Unset variables that we do not need and which cause bugs (e.g. in
 
7167
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
7168
# suppresses any "Segmentation fault" message there.  '((' could
 
7169
# trigger a bug in pdksh 5.2.14.
 
7170
for as_var in BASH_ENV ENV MAIL MAILPATH
 
7171
do eval test x\${$as_var+set} = xset \
 
7172
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
7173
done
 
7174
PS1='$ '
 
7175
PS2='> '
 
7176
PS4='+ '
 
7177
 
 
7178
# NLS nuisances.
 
7179
LC_ALL=C
 
7180
export LC_ALL
 
7181
LANGUAGE=C
 
7182
export LANGUAGE
 
7183
 
 
7184
# CDPATH.
 
7185
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
7186
 
 
7187
 
 
7188
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
7189
# ----------------------------------------
 
7190
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
7191
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
7192
# script with STATUS, using 1 if that was 0.
 
7193
as_fn_error ()
 
7194
{
 
7195
  as_status=$1; test $as_status -eq 0 && as_status=1
 
7196
  if test "$4"; then
 
7197
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
7198
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
7199
  fi
 
7200
  $as_echo "$as_me: error: $2" >&2
 
7201
  as_fn_exit $as_status
 
7202
} # as_fn_error
 
7203
 
 
7204
 
 
7205
# as_fn_set_status STATUS
 
7206
# -----------------------
 
7207
# Set $? to STATUS, without forking.
 
7208
as_fn_set_status ()
 
7209
{
 
7210
  return $1
 
7211
} # as_fn_set_status
 
7212
 
 
7213
# as_fn_exit STATUS
 
7214
# -----------------
 
7215
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
7216
as_fn_exit ()
 
7217
{
 
7218
  set +e
 
7219
  as_fn_set_status $1
 
7220
  exit $1
 
7221
} # as_fn_exit
 
7222
 
 
7223
# as_fn_unset VAR
 
7224
# ---------------
 
7225
# Portably unset VAR.
 
7226
as_fn_unset ()
 
7227
{
 
7228
  { eval $1=; unset $1;}
 
7229
}
 
7230
as_unset=as_fn_unset
 
7231
# as_fn_append VAR VALUE
 
7232
# ----------------------
 
7233
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
7234
# advantage of any shell optimizations that allow amortized linear growth over
 
7235
# repeated appends, instead of the typical quadratic growth present in naive
 
7236
# implementations.
 
7237
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
7238
  eval 'as_fn_append ()
 
7239
  {
 
7240
    eval $1+=\$2
 
7241
  }'
 
7242
else
 
7243
  as_fn_append ()
 
7244
  {
 
7245
    eval $1=\$$1\$2
 
7246
  }
 
7247
fi # as_fn_append
 
7248
 
 
7249
# as_fn_arith ARG...
 
7250
# ------------------
 
7251
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
7252
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
7253
# must be portable across $(()) and expr.
 
7254
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
7255
  eval 'as_fn_arith ()
 
7256
  {
 
7257
    as_val=$(( $* ))
 
7258
  }'
 
7259
else
 
7260
  as_fn_arith ()
 
7261
  {
 
7262
    as_val=`expr "$@" || test $? -eq 1`
 
7263
  }
 
7264
fi # as_fn_arith
 
7265
 
 
7266
 
 
7267
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
7268
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
7269
  as_expr=expr
 
7270
else
 
7271
  as_expr=false
 
7272
fi
 
7273
 
 
7274
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
7275
  as_basename=basename
 
7276
else
 
7277
  as_basename=false
 
7278
fi
 
7279
 
 
7280
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
7281
  as_dirname=dirname
 
7282
else
 
7283
  as_dirname=false
 
7284
fi
 
7285
 
 
7286
as_me=`$as_basename -- "$0" ||
 
7287
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
7288
         X"$0" : 'X\(//\)$' \| \
 
7289
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
7290
$as_echo X/"$0" |
 
7291
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
7292
            s//\1/
 
7293
            q
 
7294
          }
 
7295
          /^X\/\(\/\/\)$/{
 
7296
            s//\1/
 
7297
            q
 
7298
          }
 
7299
          /^X\/\(\/\).*/{
 
7300
            s//\1/
 
7301
            q
 
7302
          }
 
7303
          s/.*/./; q'`
 
7304
 
 
7305
# Avoid depending upon Character Ranges.
 
7306
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
7307
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
7308
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
7309
as_cr_digits='0123456789'
 
7310
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
7311
 
 
7312
ECHO_C= ECHO_N= ECHO_T=
 
7313
case `echo -n x` in #(((((
 
7314
-n*)
 
7315
  case `echo 'xy\c'` in
 
7316
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
7317
  xy)  ECHO_C='\c';;
 
7318
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
7319
       ECHO_T=' ';;
 
7320
  esac;;
 
7321
*)
 
7322
  ECHO_N='-n';;
 
7323
esac
 
7324
 
 
7325
rm -f conf$$ conf$$.exe conf$$.file
 
7326
if test -d conf$$.dir; then
 
7327
  rm -f conf$$.dir/conf$$.file
 
7328
else
 
7329
  rm -f conf$$.dir
 
7330
  mkdir conf$$.dir 2>/dev/null
 
7331
fi
 
7332
if (echo >conf$$.file) 2>/dev/null; then
 
7333
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
7334
    as_ln_s='ln -s'
 
7335
    # ... but there are two gotchas:
 
7336
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
7337
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
7338
    # In both cases, we have to default to `cp -p'.
 
7339
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
7340
      as_ln_s='cp -p'
 
7341
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
7342
    as_ln_s=ln
 
7343
  else
 
7344
    as_ln_s='cp -p'
 
7345
  fi
 
7346
else
 
7347
  as_ln_s='cp -p'
 
7348
fi
 
7349
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
7350
rmdir conf$$.dir 2>/dev/null
 
7351
 
 
7352
 
 
7353
# as_fn_mkdir_p
 
7354
# -------------
 
7355
# Create "$as_dir" as a directory, including parents if necessary.
 
7356
as_fn_mkdir_p ()
 
7357
{
 
7358
 
 
7359
  case $as_dir in #(
 
7360
  -*) as_dir=./$as_dir;;
 
7361
  esac
 
7362
  test -d "$as_dir" || eval $as_mkdir_p || {
 
7363
    as_dirs=
 
7364
    while :; do
 
7365
      case $as_dir in #(
 
7366
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
7367
      *) as_qdir=$as_dir;;
 
7368
      esac
 
7369
      as_dirs="'$as_qdir' $as_dirs"
 
7370
      as_dir=`$as_dirname -- "$as_dir" ||
 
7371
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7372
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7373
         X"$as_dir" : 'X\(//\)$' \| \
 
7374
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
7375
$as_echo X"$as_dir" |
 
7376
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
7377
            s//\1/
 
7378
            q
 
7379
          }
 
7380
          /^X\(\/\/\)[^/].*/{
 
7381
            s//\1/
 
7382
            q
 
7383
          }
 
7384
          /^X\(\/\/\)$/{
 
7385
            s//\1/
 
7386
            q
 
7387
          }
 
7388
          /^X\(\/\).*/{
 
7389
            s//\1/
 
7390
            q
 
7391
          }
 
7392
          s/.*/./; q'`
 
7393
      test -d "$as_dir" && break
 
7394
    done
 
7395
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
7396
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
7397
 
 
7398
 
 
7399
} # as_fn_mkdir_p
 
7400
if mkdir -p . 2>/dev/null; then
 
7401
  as_mkdir_p='mkdir -p "$as_dir"'
 
7402
else
 
7403
  test -d ./-p && rmdir ./-p
 
7404
  as_mkdir_p=false
 
7405
fi
 
7406
 
 
7407
if test -x / >/dev/null 2>&1; then
 
7408
  as_test_x='test -x'
 
7409
else
 
7410
  if ls -dL / >/dev/null 2>&1; then
 
7411
    as_ls_L_option=L
 
7412
  else
 
7413
    as_ls_L_option=
 
7414
  fi
 
7415
  as_test_x='
 
7416
    eval sh -c '\''
 
7417
      if test -d "$1"; then
 
7418
        test -d "$1/.";
 
7419
      else
 
7420
        case $1 in #(
 
7421
        -*)set "./$1";;
 
7422
        esac;
 
7423
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
7424
        ???[sx]*):;;*)false;;esac;fi
 
7425
    '\'' sh
 
7426
  '
 
7427
fi
 
7428
as_executable_p=$as_test_x
 
7429
 
 
7430
# Sed expression to map a string onto a valid CPP name.
 
7431
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
7432
 
 
7433
# Sed expression to map a string onto a valid variable name.
 
7434
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
7435
 
 
7436
 
 
7437
exec 6>&1
 
7438
## ----------------------------------- ##
 
7439
## Main body of $CONFIG_STATUS script. ##
 
7440
## ----------------------------------- ##
 
7441
_ASEOF
 
7442
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
7443
 
 
7444
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7445
# Save the log message, to keep $0 and so on meaningful, and to
 
7446
# report actual input values of CONFIG_FILES etc. instead of their
 
7447
# values after options handling.
 
7448
ac_log="
 
7449
This file was extended by $as_me, which was
 
7450
generated by GNU Autoconf 2.68.  Invocation command line was
 
7451
 
 
7452
  CONFIG_FILES    = $CONFIG_FILES
 
7453
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
7454
  CONFIG_LINKS    = $CONFIG_LINKS
 
7455
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
7456
  $ $0 $@
 
7457
 
 
7458
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
7459
"
 
7460
 
 
7461
_ACEOF
 
7462
 
 
7463
case $ac_config_files in *"
 
7464
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
7465
esac
 
7466
 
 
7467
case $ac_config_headers in *"
 
7468
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
7469
esac
 
7470
 
 
7471
 
 
7472
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7473
# Files that config.status was made for.
 
7474
config_files="$ac_config_files"
 
7475
config_headers="$ac_config_headers"
 
7476
config_commands="$ac_config_commands"
 
7477
 
 
7478
_ACEOF
 
7479
 
 
7480
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7481
ac_cs_usage="\
 
7482
\`$as_me' instantiates files and other configuration actions
 
7483
from templates according to the current configuration.  Unless the files
 
7484
and actions are specified as TAGs, all are instantiated by default.
 
7485
 
 
7486
Usage: $0 [OPTION]... [TAG]...
 
7487
 
 
7488
  -h, --help       print this help, then exit
 
7489
  -V, --version    print version number and configuration settings, then exit
 
7490
      --config     print configuration, then exit
 
7491
  -q, --quiet, --silent
 
7492
                   do not print progress messages
 
7493
  -d, --debug      don't remove temporary files
 
7494
      --recheck    update $as_me by reconfiguring in the same conditions
 
7495
      --file=FILE[:TEMPLATE]
 
7496
                   instantiate the configuration file FILE
 
7497
      --header=FILE[:TEMPLATE]
 
7498
                   instantiate the configuration header FILE
 
7499
 
 
7500
Configuration files:
 
7501
$config_files
 
7502
 
 
7503
Configuration headers:
 
7504
$config_headers
 
7505
 
 
7506
Configuration commands:
 
7507
$config_commands
 
7508
 
 
7509
Report bugs to the package provider."
 
7510
 
 
7511
_ACEOF
 
7512
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7513
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
7514
ac_cs_version="\\
 
7515
config.status
 
7516
configured by $0, generated by GNU Autoconf 2.68,
 
7517
  with options \\"\$ac_cs_config\\"
 
7518
 
 
7519
Copyright (C) 2010 Free Software Foundation, Inc.
 
7520
This config.status script is free software; the Free Software Foundation
 
7521
gives unlimited permission to copy, distribute and modify it."
 
7522
 
 
7523
ac_pwd='$ac_pwd'
 
7524
srcdir='$srcdir'
 
7525
INSTALL='$INSTALL'
 
7526
test -n "\$AWK" || AWK=awk
 
7527
_ACEOF
 
7528
 
 
7529
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7530
# The default lists apply if the user does not specify any file.
 
7531
ac_need_defaults=:
 
7532
while test $# != 0
 
7533
do
 
7534
  case $1 in
 
7535
  --*=?*)
 
7536
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
7537
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
7538
    ac_shift=:
 
7539
    ;;
 
7540
  --*=)
 
7541
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
7542
    ac_optarg=
 
7543
    ac_shift=:
 
7544
    ;;
 
7545
  *)
 
7546
    ac_option=$1
 
7547
    ac_optarg=$2
 
7548
    ac_shift=shift
 
7549
    ;;
 
7550
  esac
 
7551
 
 
7552
  case $ac_option in
 
7553
  # Handling of the options.
 
7554
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
7555
    ac_cs_recheck=: ;;
 
7556
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
7557
    $as_echo "$ac_cs_version"; exit ;;
 
7558
  --config | --confi | --conf | --con | --co | --c )
 
7559
    $as_echo "$ac_cs_config"; exit ;;
 
7560
  --debug | --debu | --deb | --de | --d | -d )
 
7561
    debug=: ;;
 
7562
  --file | --fil | --fi | --f )
 
7563
    $ac_shift
 
7564
    case $ac_optarg in
 
7565
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
7566
    '') as_fn_error $? "missing file argument" ;;
 
7567
    esac
 
7568
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
7569
    ac_need_defaults=false;;
 
7570
  --header | --heade | --head | --hea )
 
7571
    $ac_shift
 
7572
    case $ac_optarg in
 
7573
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
7574
    esac
 
7575
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
7576
    ac_need_defaults=false;;
 
7577
  --he | --h)
 
7578
    # Conflict between --help and --header
 
7579
    as_fn_error $? "ambiguous option: \`$1'
 
7580
Try \`$0 --help' for more information.";;
 
7581
  --help | --hel | -h )
 
7582
    $as_echo "$ac_cs_usage"; exit ;;
 
7583
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
7584
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
7585
    ac_cs_silent=: ;;
 
7586
 
 
7587
  # This is an error.
 
7588
  -*) as_fn_error $? "unrecognized option: \`$1'
 
7589
Try \`$0 --help' for more information." ;;
 
7590
 
 
7591
  *) as_fn_append ac_config_targets " $1"
 
7592
     ac_need_defaults=false ;;
 
7593
 
 
7594
  esac
 
7595
  shift
 
7596
done
 
7597
 
 
7598
ac_configure_extra_args=
 
7599
 
 
7600
if $ac_cs_silent; then
 
7601
  exec 6>/dev/null
 
7602
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
7603
fi
 
7604
 
 
7605
_ACEOF
 
7606
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7607
if \$ac_cs_recheck; then
 
7608
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7609
  shift
 
7610
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
7611
  CONFIG_SHELL='$SHELL'
 
7612
  export CONFIG_SHELL
 
7613
  exec "\$@"
 
7614
fi
 
7615
 
 
7616
_ACEOF
 
7617
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7618
exec 5>>config.log
 
7619
{
 
7620
  echo
 
7621
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
7622
## Running $as_me. ##
 
7623
_ASBOX
 
7624
  $as_echo "$ac_log"
 
7625
} >&5
 
7626
 
 
7627
_ACEOF
 
7628
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7629
_ACEOF
 
7630
 
 
7631
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7632
 
 
7633
# Handling of arguments.
 
7634
for ac_config_target in $ac_config_targets
 
7635
do
 
7636
  case $ac_config_target in
 
7637
    "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
 
7638
    "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
 
7639
    "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
 
7640
    "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
 
7641
    "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
 
7642
 
 
7643
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
7644
  esac
 
7645
done
 
7646
 
 
7647
 
 
7648
# If the user did not use the arguments to specify the items to instantiate,
 
7649
# then the envvar interface is used.  Set only those that are not.
 
7650
# We use the long form for the default assignment because of an extremely
 
7651
# bizarre bug on SunOS 4.1.3.
 
7652
if $ac_need_defaults; then
 
7653
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
7654
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
7655
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
7656
fi
 
7657
 
 
7658
# Have a temporary directory for convenience.  Make it in the build tree
 
7659
# simply because there is no reason against having it here, and in addition,
 
7660
# creating and moving files from /tmp can sometimes cause problems.
 
7661
# Hook for its removal unless debugging.
 
7662
# Note that there is a small window in which the directory will not be cleaned:
 
7663
# after its creation but before its name has been assigned to `$tmp'.
 
7664
$debug ||
 
7665
{
 
7666
  tmp= ac_tmp=
 
7667
  trap 'exit_status=$?
 
7668
  : "${ac_tmp:=$tmp}"
 
7669
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
7670
' 0
 
7671
  trap 'as_fn_exit 1' 1 2 13 15
 
7672
}
 
7673
# Create a (secure) tmp directory for tmp files.
 
7674
 
 
7675
{
 
7676
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
7677
  test -d "$tmp"
 
7678
}  ||
 
7679
{
 
7680
  tmp=./conf$$-$RANDOM
 
7681
  (umask 077 && mkdir "$tmp")
 
7682
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
7683
ac_tmp=$tmp
 
7684
 
 
7685
# Set up the scripts for CONFIG_FILES section.
 
7686
# No need to generate them if there are no CONFIG_FILES.
 
7687
# This happens for instance with `./config.status config.h'.
 
7688
if test -n "$CONFIG_FILES"; then
 
7689
 
 
7690
 
 
7691
ac_cr=`echo X | tr X '\015'`
 
7692
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
7693
# But we know of no other shell where ac_cr would be empty at this
 
7694
# point, so we can use a bashism as a fallback.
 
7695
if test "x$ac_cr" = x; then
 
7696
  eval ac_cr=\$\'\\r\'
 
7697
fi
 
7698
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
7699
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
7700
  ac_cs_awk_cr='\\r'
 
7701
else
 
7702
  ac_cs_awk_cr=$ac_cr
 
7703
fi
 
7704
 
 
7705
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
7706
_ACEOF
 
7707
 
 
7708
 
 
7709
{
 
7710
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
7711
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
7712
  echo "_ACEOF"
 
7713
} >conf$$subs.sh ||
 
7714
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
7715
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
7716
ac_delim='%!_!# '
 
7717
for ac_last_try in false false false false false :; do
 
7718
  . ./conf$$subs.sh ||
 
7719
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
7720
 
 
7721
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
7722
  if test $ac_delim_n = $ac_delim_num; then
 
7723
    break
 
7724
  elif $ac_last_try; then
 
7725
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
7726
  else
 
7727
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
7728
  fi
 
7729
done
 
7730
rm -f conf$$subs.sh
 
7731
 
 
7732
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7733
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
7734
_ACEOF
 
7735
sed -n '
 
7736
h
 
7737
s/^/S["/; s/!.*/"]=/
 
7738
p
 
7739
g
 
7740
s/^[^!]*!//
 
7741
:repl
 
7742
t repl
 
7743
s/'"$ac_delim"'$//
 
7744
t delim
 
7745
:nl
 
7746
h
 
7747
s/\(.\{148\}\)..*/\1/
 
7748
t more1
 
7749
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
7750
p
 
7751
n
 
7752
b repl
 
7753
:more1
 
7754
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7755
p
 
7756
g
 
7757
s/.\{148\}//
 
7758
t nl
 
7759
:delim
 
7760
h
 
7761
s/\(.\{148\}\)..*/\1/
 
7762
t more2
 
7763
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
7764
p
 
7765
b
 
7766
:more2
 
7767
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7768
p
 
7769
g
 
7770
s/.\{148\}//
 
7771
t delim
 
7772
' <conf$$subs.awk | sed '
 
7773
/^[^""]/{
 
7774
  N
 
7775
  s/\n//
 
7776
}
 
7777
' >>$CONFIG_STATUS || ac_write_fail=1
 
7778
rm -f conf$$subs.awk
 
7779
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7780
_ACAWK
 
7781
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
7782
  for (key in S) S_is_set[key] = 1
 
7783
  FS = ""
 
7784
 
 
7785
}
 
7786
{
 
7787
  line = $ 0
 
7788
  nfields = split(line, field, "@")
 
7789
  substed = 0
 
7790
  len = length(field[1])
 
7791
  for (i = 2; i < nfields; i++) {
 
7792
    key = field[i]
 
7793
    keylen = length(key)
 
7794
    if (S_is_set[key]) {
 
7795
      value = S[key]
 
7796
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
7797
      len += length(value) + length(field[++i])
 
7798
      substed = 1
 
7799
    } else
 
7800
      len += 1 + keylen
 
7801
  }
 
7802
 
 
7803
  print line
 
7804
}
 
7805
 
 
7806
_ACAWK
 
7807
_ACEOF
 
7808
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7809
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
7810
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
7811
else
 
7812
  cat
 
7813
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
7814
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
7815
_ACEOF
 
7816
 
 
7817
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
7818
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
7819
# trailing colons and then remove the whole line if VPATH becomes empty
 
7820
# (actually we leave an empty line to preserve line numbers).
 
7821
if test "x$srcdir" = x.; then
 
7822
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
7823
h
 
7824
s///
 
7825
s/^/:/
 
7826
s/[      ]*$/:/
 
7827
s/:\$(srcdir):/:/g
 
7828
s/:\${srcdir}:/:/g
 
7829
s/:@srcdir@:/:/g
 
7830
s/^:*//
 
7831
s/:*$//
 
7832
x
 
7833
s/\(=[   ]*\).*/\1/
 
7834
G
 
7835
s/\n//
 
7836
s/^[^=]*=[       ]*$//
 
7837
}'
 
7838
fi
 
7839
 
 
7840
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7841
fi # test -n "$CONFIG_FILES"
 
7842
 
 
7843
# Set up the scripts for CONFIG_HEADERS section.
 
7844
# No need to generate them if there are no CONFIG_HEADERS.
 
7845
# This happens for instance with `./config.status Makefile'.
 
7846
if test -n "$CONFIG_HEADERS"; then
 
7847
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
7848
BEGIN {
 
7849
_ACEOF
 
7850
 
 
7851
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
7852
# here-document in config.status, that substitutes the proper values into
 
7853
# config.h.in to produce config.h.
 
7854
 
 
7855
# Create a delimiter string that does not exist in confdefs.h, to ease
 
7856
# handling of long lines.
 
7857
ac_delim='%!_!# '
 
7858
for ac_last_try in false false :; do
 
7859
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
7860
  if test -z "$ac_tt"; then
 
7861
    break
 
7862
  elif $ac_last_try; then
 
7863
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
7864
  else
 
7865
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
7866
  fi
 
7867
done
 
7868
 
 
7869
# For the awk script, D is an array of macro values keyed by name,
 
7870
# likewise P contains macro parameters if any.  Preserve backslash
 
7871
# newline sequences.
 
7872
 
 
7873
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
7874
sed -n '
 
7875
s/.\{148\}/&'"$ac_delim"'/g
 
7876
t rset
 
7877
:rset
 
7878
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
7879
t def
 
7880
d
 
7881
:def
 
7882
s/\\$//
 
7883
t bsnl
 
7884
s/["\\]/\\&/g
 
7885
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
7886
D["\1"]=" \3"/p
 
7887
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
7888
d
 
7889
:bsnl
 
7890
s/["\\]/\\&/g
 
7891
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
7892
D["\1"]=" \3\\\\\\n"\\/p
 
7893
t cont
 
7894
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
7895
t cont
 
7896
d
 
7897
:cont
 
7898
n
 
7899
s/.\{148\}/&'"$ac_delim"'/g
 
7900
t clear
 
7901
:clear
 
7902
s/\\$//
 
7903
t bsnlc
 
7904
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
7905
d
 
7906
:bsnlc
 
7907
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
7908
b cont
 
7909
' <confdefs.h | sed '
 
7910
s/'"$ac_delim"'/"\\\
 
7911
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
7912
 
 
7913
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7914
  for (key in D) D_is_set[key] = 1
 
7915
  FS = ""
 
7916
}
 
7917
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
7918
  line = \$ 0
 
7919
  split(line, arg, " ")
 
7920
  if (arg[1] == "#") {
 
7921
    defundef = arg[2]
 
7922
    mac1 = arg[3]
 
7923
  } else {
 
7924
    defundef = substr(arg[1], 2)
 
7925
    mac1 = arg[2]
 
7926
  }
 
7927
  split(mac1, mac2, "(") #)
 
7928
  macro = mac2[1]
 
7929
  prefix = substr(line, 1, index(line, defundef) - 1)
 
7930
  if (D_is_set[macro]) {
 
7931
    # Preserve the white space surrounding the "#".
 
7932
    print prefix "define", macro P[macro] D[macro]
 
7933
    next
 
7934
  } else {
 
7935
    # Replace #undef with comments.  This is necessary, for example,
 
7936
    # in the case of _POSIX_SOURCE, which is predefined and required
 
7937
    # on some systems where configure will not decide to define it.
 
7938
    if (defundef == "undef") {
 
7939
      print "/*", prefix defundef, macro, "*/"
 
7940
      next
 
7941
    }
 
7942
  }
 
7943
}
 
7944
{ print }
 
7945
_ACAWK
 
7946
_ACEOF
 
7947
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7948
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
7949
fi # test -n "$CONFIG_HEADERS"
 
7950
 
 
7951
 
 
7952
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
7953
shift
 
7954
for ac_tag
 
7955
do
 
7956
  case $ac_tag in
 
7957
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
7958
  esac
 
7959
  case $ac_mode$ac_tag in
 
7960
  :[FHL]*:*);;
 
7961
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
7962
  :[FH]-) ac_tag=-:-;;
 
7963
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
7964
  esac
 
7965
  ac_save_IFS=$IFS
 
7966
  IFS=:
 
7967
  set x $ac_tag
 
7968
  IFS=$ac_save_IFS
 
7969
  shift
 
7970
  ac_file=$1
 
7971
  shift
 
7972
 
 
7973
  case $ac_mode in
 
7974
  :L) ac_source=$1;;
 
7975
  :[FH])
 
7976
    ac_file_inputs=
 
7977
    for ac_f
 
7978
    do
 
7979
      case $ac_f in
 
7980
      -) ac_f="$ac_tmp/stdin";;
 
7981
      *) # Look for the file first in the build tree, then in the source tree
 
7982
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
7983
         # because $ac_f cannot contain `:'.
 
7984
         test -f "$ac_f" ||
 
7985
           case $ac_f in
 
7986
           [\\/$]*) false;;
 
7987
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
7988
           esac ||
 
7989
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
7990
      esac
 
7991
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
7992
      as_fn_append ac_file_inputs " '$ac_f'"
 
7993
    done
 
7994
 
 
7995
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
7996
    # use $as_me), people would be surprised to read:
 
7997
    #    /* config.h.  Generated by config.status.  */
 
7998
    configure_input='Generated from '`
 
7999
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
8000
        `' by configure.'
 
8001
    if test x"$ac_file" != x-; then
 
8002
      configure_input="$ac_file.  $configure_input"
 
8003
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
8004
$as_echo "$as_me: creating $ac_file" >&6;}
 
8005
    fi
 
8006
    # Neutralize special characters interpreted by sed in replacement strings.
 
8007
    case $configure_input in #(
 
8008
    *\&* | *\|* | *\\* )
 
8009
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
8010
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
8011
    *) ac_sed_conf_input=$configure_input;;
 
8012
    esac
 
8013
 
 
8014
    case $ac_tag in
 
8015
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
8016
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
8017
    esac
 
8018
    ;;
 
8019
  esac
 
8020
 
 
8021
  ac_dir=`$as_dirname -- "$ac_file" ||
 
8022
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8023
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
8024
         X"$ac_file" : 'X\(//\)$' \| \
 
8025
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
8026
$as_echo X"$ac_file" |
 
8027
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8028
            s//\1/
 
8029
            q
 
8030
          }
 
8031
          /^X\(\/\/\)[^/].*/{
 
8032
            s//\1/
 
8033
            q
 
8034
          }
 
8035
          /^X\(\/\/\)$/{
 
8036
            s//\1/
 
8037
            q
 
8038
          }
 
8039
          /^X\(\/\).*/{
 
8040
            s//\1/
 
8041
            q
 
8042
          }
 
8043
          s/.*/./; q'`
 
8044
  as_dir="$ac_dir"; as_fn_mkdir_p
 
8045
  ac_builddir=.
 
8046
 
 
8047
case "$ac_dir" in
 
8048
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8049
*)
 
8050
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
8051
  # A ".." for each directory in $ac_dir_suffix.
 
8052
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
8053
  case $ac_top_builddir_sub in
 
8054
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8055
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
8056
  esac ;;
 
8057
esac
 
8058
ac_abs_top_builddir=$ac_pwd
 
8059
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
8060
# for backward compatibility:
 
8061
ac_top_builddir=$ac_top_build_prefix
 
8062
 
 
8063
case $srcdir in
 
8064
  .)  # We are building in place.
 
8065
    ac_srcdir=.
 
8066
    ac_top_srcdir=$ac_top_builddir_sub
 
8067
    ac_abs_top_srcdir=$ac_pwd ;;
 
8068
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
8069
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8070
    ac_top_srcdir=$srcdir
 
8071
    ac_abs_top_srcdir=$srcdir ;;
 
8072
  *) # Relative name.
 
8073
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
8074
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
8075
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
8076
esac
 
8077
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
8078
 
 
8079
 
 
8080
  case $ac_mode in
 
8081
  :F)
 
8082
  #
 
8083
  # CONFIG_FILE
 
8084
  #
 
8085
 
 
8086
  case $INSTALL in
 
8087
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
8088
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
8089
  esac
 
8090
_ACEOF
 
8091
 
 
8092
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8093
# If the template does not know about datarootdir, expand it.
 
8094
# FIXME: This hack should be removed a few years after 2.60.
 
8095
ac_datarootdir_hack=; ac_datarootdir_seen=
 
8096
ac_sed_dataroot='
 
8097
/datarootdir/ {
 
8098
  p
 
8099
  q
 
8100
}
 
8101
/@datadir@/p
 
8102
/@docdir@/p
 
8103
/@infodir@/p
 
8104
/@localedir@/p
 
8105
/@mandir@/p'
 
8106
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
8107
*datarootdir*) ac_datarootdir_seen=yes;;
 
8108
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
8109
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
8110
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
8111
_ACEOF
 
8112
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8113
  ac_datarootdir_hack='
 
8114
  s&@datadir@&$datadir&g
 
8115
  s&@docdir@&$docdir&g
 
8116
  s&@infodir@&$infodir&g
 
8117
  s&@localedir@&$localedir&g
 
8118
  s&@mandir@&$mandir&g
 
8119
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
8120
esac
 
8121
_ACEOF
 
8122
 
 
8123
# Neutralize VPATH when `$srcdir' = `.'.
 
8124
# Shell code in configure.ac might set extrasub.
 
8125
# FIXME: do we really want to maintain this feature?
 
8126
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8127
ac_sed_extra="$ac_vpsub
 
8128
$extrasub
 
8129
_ACEOF
 
8130
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8131
:t
 
8132
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8133
s|@configure_input@|$ac_sed_conf_input|;t t
 
8134
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
8135
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
8136
s&@srcdir@&$ac_srcdir&;t t
 
8137
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
8138
s&@top_srcdir@&$ac_top_srcdir&;t t
 
8139
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
8140
s&@builddir@&$ac_builddir&;t t
 
8141
s&@abs_builddir@&$ac_abs_builddir&;t t
 
8142
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
8143
s&@INSTALL@&$ac_INSTALL&;t t
 
8144
$ac_datarootdir_hack
 
8145
"
 
8146
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
8147
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
8148
 
 
8149
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
8150
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
8151
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
8152
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
8153
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8154
which seems to be undefined.  Please make sure it is defined" >&5
 
8155
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8156
which seems to be undefined.  Please make sure it is defined" >&2;}
 
8157
 
 
8158
  rm -f "$ac_tmp/stdin"
 
8159
  case $ac_file in
 
8160
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
8161
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
8162
  esac \
 
8163
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
8164
 ;;
 
8165
  :H)
 
8166
  #
 
8167
  # CONFIG_HEADER
 
8168
  #
 
8169
  if test x"$ac_file" != x-; then
 
8170
    {
 
8171
      $as_echo "/* $configure_input  */" \
 
8172
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
8173
    } >"$ac_tmp/config.h" \
 
8174
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
8175
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
8176
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
8177
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
8178
    else
 
8179
      rm -f "$ac_file"
 
8180
      mv "$ac_tmp/config.h" "$ac_file" \
 
8181
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
8182
    fi
 
8183
  else
 
8184
    $as_echo "/* $configure_input  */" \
 
8185
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
8186
      || as_fn_error $? "could not create -" "$LINENO" 5
 
8187
  fi
 
8188
 ;;
 
8189
 
 
8190
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
8191
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
8192
 ;;
 
8193
  esac
 
8194
 
 
8195
 
 
8196
  case $ac_file$ac_mode in
 
8197
    "include/jemalloc/internal/size_classes.h":C)
 
8198
  mkdir -p "include/jemalloc/internal"
 
8199
  "${srcdir}/include/jemalloc/internal/size_classes.sh" > "${objroot}include/jemalloc/internal/size_classes.h"
 
8200
 ;;
 
8201
 
 
8202
  esac
 
8203
done # for ac_tag
 
8204
 
 
8205
 
 
8206
as_fn_exit 0
 
8207
_ACEOF
 
8208
ac_clean_files=$ac_clean_files_save
 
8209
 
 
8210
test $ac_write_fail = 0 ||
 
8211
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
8212
 
 
8213
 
 
8214
# configure is writing to config.log, and then calls config.status.
 
8215
# config.status does its own redirection, appending to config.log.
 
8216
# Unfortunately, on DOS this fails, as config.log is still kept open
 
8217
# by configure, so config.status won't be able to write to it; its
 
8218
# output is simply discarded.  So we exec the FD to /dev/null,
 
8219
# effectively closing config.log, so it can be properly (re)opened and
 
8220
# appended to by config.status.  When coming back to configure, we
 
8221
# need to make the FD available again.
 
8222
if test "$no_create" != yes; then
 
8223
  ac_cs_success=:
 
8224
  ac_config_status_args=
 
8225
  test "$silent" = yes &&
 
8226
    ac_config_status_args="$ac_config_status_args --quiet"
 
8227
  exec 5>/dev/null
 
8228
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
8229
  exec 5>>config.log
 
8230
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
8231
  # would make configure fail if this is the last instruction.
 
8232
  $ac_cs_success || as_fn_exit 1
 
8233
fi
 
8234
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
8235
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
8236
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
8237
fi
 
8238
 
 
8239
 
 
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
 
8241
$as_echo "===============================================================================" >&6; }
 
8242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
 
8243
$as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
 
8244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
 
8245
$as_echo "library revision   : ${rev}" >&6; }
 
8246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
8247
$as_echo "" >&6; }
 
8248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
 
8249
$as_echo "CC                 : ${CC}" >&6; }
 
8250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
 
8251
$as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
 
8252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS             : ${CFLAGS}" >&5
 
8253
$as_echo "CFLAGS             : ${CFLAGS}" >&6; }
 
8254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
 
8255
$as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
 
8256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
 
8257
$as_echo "LIBS               : ${LIBS}" >&6; }
 
8258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
 
8259
$as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
 
8260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
8261
$as_echo "" >&6; }
 
8262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
 
8263
$as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
 
8264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
 
8265
$as_echo "XSLROOT            : ${XSLROOT}" >&6; }
 
8266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
8267
$as_echo "" >&6; }
 
8268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
 
8269
$as_echo "PREFIX             : ${PREFIX}" >&6; }
 
8270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
 
8271
$as_echo "BINDIR             : ${BINDIR}" >&6; }
 
8272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
 
8273
$as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
 
8274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
 
8275
$as_echo "LIBDIR             : ${LIBDIR}" >&6; }
 
8276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
 
8277
$as_echo "DATADIR            : ${DATADIR}" >&6; }
 
8278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
 
8279
$as_echo "MANDIR             : ${MANDIR}" >&6; }
 
8280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
8281
$as_echo "" >&6; }
 
8282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
 
8283
$as_echo "srcroot            : ${srcroot}" >&6; }
 
8284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
 
8285
$as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
 
8286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
 
8287
$as_echo "objroot            : ${objroot}" >&6; }
 
8288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
 
8289
$as_echo "abs_objroot        : ${abs_objroot}" >&6; }
 
8290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
8291
$as_echo "" >&6; }
 
8292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
 
8293
$as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
 
8294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
 
8295
$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
 
8296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
 
8297
$as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
 
8298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
 
8299
$as_echo "install_suffix     : ${install_suffix}" >&6; }
 
8300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
 
8301
$as_echo "autogen            : ${enable_autogen}" >&6; }
 
8302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: experimental       : ${enable_experimental}" >&5
 
8303
$as_echo "experimental       : ${enable_experimental}" >&6; }
 
8304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence         : ${enable_cc_silence}" >&5
 
8305
$as_echo "cc-silence         : ${enable_cc_silence}" >&6; }
 
8306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
 
8307
$as_echo "debug              : ${enable_debug}" >&6; }
 
8308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
 
8309
$as_echo "stats              : ${enable_stats}" >&6; }
 
8310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
 
8311
$as_echo "prof               : ${enable_prof}" >&6; }
 
8312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
 
8313
$as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
 
8314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
 
8315
$as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
 
8316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
 
8317
$as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
 
8318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache             : ${enable_tcache}" >&5
 
8319
$as_echo "tcache             : ${enable_tcache}" >&6; }
 
8320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
 
8321
$as_echo "fill               : ${enable_fill}" >&6; }
 
8322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
 
8323
$as_echo "utrace             : ${enable_utrace}" >&6; }
 
8324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind           : ${enable_valgrind}" >&5
 
8325
$as_echo "valgrind           : ${enable_valgrind}" >&6; }
 
8326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
 
8327
$as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
 
8328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: mremap             : ${enable_mremap}" >&5
 
8329
$as_echo "mremap             : ${enable_mremap}" >&6; }
 
8330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap             : ${enable_munmap}" >&5
 
8331
$as_echo "munmap             : ${enable_munmap}" >&6; }
 
8332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: dss                : ${enable_dss}" >&5
 
8333
$as_echo "dss                : ${enable_dss}" >&6; }
 
8334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
 
8335
$as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
 
8336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tls                : ${enable_tls}" >&5
 
8337
$as_echo "tls                : ${enable_tls}" >&6; }
 
8338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
 
8339
$as_echo "===============================================================================" >&6; }