~ubuntu-branches/ubuntu/natty/pd-zexy/natty

« back to all changes in this revision

Viewing changes to src/configure

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard, IOhannes m zmölnig, Jonas Smedegaard
  • Date: 2010-08-20 12:17:41 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100820121741-4kxozn8b9rhee9fr
Tags: 2.2.3-1
* New upstream version

[ IOhannes m zmölnig ]
* Adopt package, on behalf of Multimedia Team.
  Closes: #546964
* Simply debian/rules with CDBS, and don't unconditionally strip
  binaries.
  Closes: #437763
* Install into /usr/lib/pd/extra/zexy/. Document usage in REAME.Debian
  and warn about change in NEWS.
* git'ify package. Add Vcs-* stanzas to control file.
* Use dpkg source format 3.0 (quilt). Drop build-dependency on quilt.

[ Jonas Smedegaard ]
* Enable CDBS copyright-check routine.
* Add copyright and licensing header to debian/rules.
* Add myself as uploader.
* Rewrite debian/copyright using rev. 135 of draft DEP5 format.

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.67.
 
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
case $0 in #((
 
93
  *[\\/]* ) as_myself=$0 ;;
 
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
95
for as_dir in $PATH
 
96
do
 
97
  IFS=$as_save_IFS
 
98
  test -z "$as_dir" && as_dir=.
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
 
101
IFS=$as_save_IFS
 
102
 
 
103
     ;;
 
104
esac
 
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
106
# in which case we are not to be found in the path.
 
107
if test "x$as_myself" = x; then
 
108
  as_myself=$0
 
109
fi
 
110
if test ! -f "$as_myself"; then
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
 
113
fi
 
114
 
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
122
done
 
123
PS1='$ '
 
124
PS2='> '
 
125
PS4='+ '
 
126
 
 
127
# NLS nuisances.
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
 
132
 
 
133
# CDPATH.
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
135
 
 
136
if test "x$CONFIG_SHELL" = x; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
 
176
  as_have_required=yes
 
177
else
 
178
  as_have_required=no
 
179
fi
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
 
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
186
do
 
187
  IFS=$as_save_IFS
 
188
  test -z "$as_dir" && as_dir=.
 
189
  as_found=:
 
190
  case $as_dir in #(
 
191
         /*)
 
192
           for as_base in sh bash ksh sh5; do
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
 
202
           done;;
 
203
       esac
 
204
  as_found=false
 
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
 
210
IFS=$as_save_IFS
 
211
 
 
212
 
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
232
$0: including any error possibly output before this
 
233
$0: message. Then install a modern shell, or manually run
 
234
$0: the script under such a shell if you do have one."
 
235
  fi
 
236
  exit 1
 
237
fi
 
238
fi
 
239
fi
 
240
SHELL=${CONFIG_SHELL-/bin/sh}
 
241
export SHELL
 
242
# Unset more variables known to interfere with behavior of common tools.
 
243
CLICOLOR_FORCE= GREP_OPTIONS=
 
244
unset CLICOLOR_FORCE GREP_OPTIONS
 
245
 
 
246
## --------------------- ##
 
247
## M4sh Shell Functions. ##
 
248
## --------------------- ##
 
249
# as_fn_unset VAR
 
250
# ---------------
 
251
# Portably unset VAR.
 
252
as_fn_unset ()
 
253
{
 
254
  { eval $1=; unset $1;}
 
255
}
 
256
as_unset=as_fn_unset
 
257
 
 
258
# as_fn_set_status STATUS
 
259
# -----------------------
 
260
# Set $? to STATUS, without forking.
 
261
as_fn_set_status ()
 
262
{
 
263
  return $1
 
264
} # as_fn_set_status
 
265
 
 
266
# as_fn_exit STATUS
 
267
# -----------------
 
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
269
as_fn_exit ()
 
270
{
 
271
  set +e
 
272
  as_fn_set_status $1
 
273
  exit $1
 
274
} # as_fn_exit
 
275
 
 
276
# as_fn_mkdir_p
 
277
# -------------
 
278
# Create "$as_dir" as a directory, including parents if necessary.
 
279
as_fn_mkdir_p ()
 
280
{
 
281
 
 
282
  case $as_dir in #(
 
283
  -*) as_dir=./$as_dir;;
 
284
  esac
 
285
  test -d "$as_dir" || eval $as_mkdir_p || {
 
286
    as_dirs=
 
287
    while :; do
 
288
      case $as_dir in #(
 
289
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
290
      *) as_qdir=$as_dir;;
 
291
      esac
 
292
      as_dirs="'$as_qdir' $as_dirs"
 
293
      as_dir=`$as_dirname -- "$as_dir" ||
 
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
295
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
296
         X"$as_dir" : 'X\(//\)$' \| \
 
297
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
298
$as_echo X"$as_dir" |
 
299
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
300
            s//\1/
 
301
            q
 
302
          }
 
303
          /^X\(\/\/\)[^/].*/{
 
304
            s//\1/
 
305
            q
 
306
          }
 
307
          /^X\(\/\/\)$/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\).*/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          s/.*/./; q'`
 
316
      test -d "$as_dir" && break
 
317
    done
 
318
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
319
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
320
 
 
321
 
 
322
} # as_fn_mkdir_p
 
323
# as_fn_append VAR VALUE
 
324
# ----------------------
 
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
326
# advantage of any shell optimizations that allow amortized linear growth over
 
327
# repeated appends, instead of the typical quadratic growth present in naive
 
328
# implementations.
 
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
330
  eval 'as_fn_append ()
 
331
  {
 
332
    eval $1+=\$2
 
333
  }'
 
334
else
 
335
  as_fn_append ()
 
336
  {
 
337
    eval $1=\$$1\$2
 
338
  }
 
339
fi # as_fn_append
 
340
 
 
341
# as_fn_arith ARG...
 
342
# ------------------
 
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
345
# must be portable across $(()) and expr.
 
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
347
  eval 'as_fn_arith ()
 
348
  {
 
349
    as_val=$(( $* ))
 
350
  }'
 
351
else
 
352
  as_fn_arith ()
 
353
  {
 
354
    as_val=`expr "$@" || test $? -eq 1`
 
355
  }
 
356
fi # as_fn_arith
 
357
 
 
358
 
 
359
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
360
# ----------------------------------------
 
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
363
# script with STATUS, using 1 if that was 0.
 
364
as_fn_error ()
 
365
{
 
366
  as_status=$1; test $as_status -eq 0 && as_status=1
 
367
  if test "$4"; then
 
368
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
369
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
370
  fi
 
371
  $as_echo "$as_me: error: $2" >&2
 
372
  as_fn_exit $as_status
 
373
} # as_fn_error
 
374
 
 
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
376
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
377
  as_expr=expr
 
378
else
 
379
  as_expr=false
 
380
fi
 
381
 
 
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
383
  as_basename=basename
 
384
else
 
385
  as_basename=false
 
386
fi
 
387
 
 
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
389
  as_dirname=dirname
 
390
else
 
391
  as_dirname=false
 
392
fi
 
393
 
 
394
as_me=`$as_basename -- "$0" ||
 
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
396
         X"$0" : 'X\(//\)$' \| \
 
397
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
398
$as_echo X/"$0" |
 
399
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
400
            s//\1/
 
401
            q
 
402
          }
 
403
          /^X\/\(\/\/\)$/{
 
404
            s//\1/
 
405
            q
 
406
          }
 
407
          /^X\/\(\/\).*/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          s/.*/./; q'`
 
412
 
 
413
# Avoid depending upon Character Ranges.
 
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
417
as_cr_digits='0123456789'
 
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
419
 
 
420
 
 
421
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
422
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
423
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
424
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
425
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
426
  sed -n '
 
427
    p
 
428
    /[$]LINENO/=
 
429
  ' <$as_myself |
 
430
    sed '
 
431
      s/[$]LINENO.*/&-/
 
432
      t lineno
 
433
      b
 
434
      :lineno
 
435
      N
 
436
      :loop
 
437
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
438
      t loop
 
439
      s/-\n.*//
 
440
    ' >$as_me.lineno &&
 
441
  chmod +x "$as_me.lineno" ||
 
442
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
443
 
 
444
  # Don't try to exec as it changes $[0], causing all sort of problems
 
445
  # (the dirname of $[0] is not the place where we might find the
 
446
  # original and so on.  Autoconf is especially sensitive to this).
 
447
  . "./$as_me.lineno"
 
448
  # Exit status is that of the last command.
 
449
  exit
 
450
}
 
451
 
 
452
ECHO_C= ECHO_N= ECHO_T=
 
453
case `echo -n x` in #(((((
 
454
-n*)
 
455
  case `echo 'xy\c'` in
 
456
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
457
  xy)  ECHO_C='\c';;
 
458
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
459
       ECHO_T=' ';;
 
460
  esac;;
 
461
*)
 
462
  ECHO_N='-n';;
 
463
esac
 
464
 
 
465
rm -f conf$$ conf$$.exe conf$$.file
 
466
if test -d conf$$.dir; then
 
467
  rm -f conf$$.dir/conf$$.file
 
468
else
 
469
  rm -f conf$$.dir
 
470
  mkdir conf$$.dir 2>/dev/null
 
471
fi
 
472
if (echo >conf$$.file) 2>/dev/null; then
 
473
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
474
    as_ln_s='ln -s'
 
475
    # ... but there are two gotchas:
 
476
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
477
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
478
    # In both cases, we have to default to `cp -p'.
 
479
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
480
      as_ln_s='cp -p'
 
481
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
482
    as_ln_s=ln
 
483
  else
 
484
    as_ln_s='cp -p'
 
485
  fi
 
486
else
 
487
  as_ln_s='cp -p'
 
488
fi
 
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
490
rmdir conf$$.dir 2>/dev/null
 
491
 
 
492
if mkdir -p . 2>/dev/null; then
 
493
  as_mkdir_p='mkdir -p "$as_dir"'
 
494
else
 
495
  test -d ./-p && rmdir ./-p
 
496
  as_mkdir_p=false
 
497
fi
 
498
 
 
499
if test -x / >/dev/null 2>&1; then
 
500
  as_test_x='test -x'
 
501
else
 
502
  if ls -dL / >/dev/null 2>&1; then
 
503
    as_ls_L_option=L
 
504
  else
 
505
    as_ls_L_option=
 
506
  fi
 
507
  as_test_x='
 
508
    eval sh -c '\''
 
509
      if test -d "$1"; then
 
510
        test -d "$1/.";
 
511
      else
 
512
        case $1 in #(
 
513
        -*)set "./$1";;
 
514
        esac;
 
515
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
516
        ???[sx]*):;;*)false;;esac;fi
 
517
    '\'' sh
 
518
  '
 
519
fi
 
520
as_executable_p=$as_test_x
 
521
 
 
522
# Sed expression to map a string onto a valid CPP name.
 
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
524
 
 
525
# Sed expression to map a string onto a valid variable name.
 
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
 
 
529
test -n "$DJDIR" || exec 7<&0 </dev/null
 
530
exec 6>&1
 
531
 
 
532
# Name of the host.
 
533
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
534
# so uname gets run too.
 
535
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
536
 
 
537
#
 
538
# Initializations.
 
539
#
 
540
ac_default_prefix=/usr/local
 
541
ac_clean_files=
 
542
ac_config_libobj_dir=.
 
543
LIBOBJS=
 
544
cross_compiling=no
 
545
subdirs=
 
546
MFLAGS=
 
547
MAKEFLAGS=
 
548
 
 
549
# Identity of this package.
 
550
PACKAGE_NAME=
 
551
PACKAGE_TARNAME=
 
552
PACKAGE_VERSION=
 
553
PACKAGE_STRING=
 
554
PACKAGE_BUGREPORT=
 
555
PACKAGE_URL=
 
556
 
 
557
ac_unique_file="zexy.h"
 
558
# Factoring default headers for most tests.
 
559
ac_includes_default="\
 
560
#include <stdio.h>
 
561
#ifdef HAVE_SYS_TYPES_H
 
562
# include <sys/types.h>
 
563
#endif
 
564
#ifdef HAVE_SYS_STAT_H
 
565
# include <sys/stat.h>
 
566
#endif
 
567
#ifdef STDC_HEADERS
 
568
# include <stdlib.h>
 
569
# include <stddef.h>
 
570
#else
 
571
# ifdef HAVE_STDLIB_H
 
572
#  include <stdlib.h>
 
573
# endif
 
574
#endif
 
575
#ifdef HAVE_STRING_H
 
576
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
577
#  include <memory.h>
 
578
# endif
 
579
# include <string.h>
 
580
#endif
 
581
#ifdef HAVE_STRINGS_H
 
582
# include <strings.h>
 
583
#endif
 
584
#ifdef HAVE_INTTYPES_H
 
585
# include <inttypes.h>
 
586
#endif
 
587
#ifdef HAVE_STDINT_H
 
588
# include <stdint.h>
 
589
#endif
 
590
#ifdef HAVE_UNISTD_H
 
591
# include <unistd.h>
 
592
#endif"
 
593
 
 
594
ac_header_list=
 
595
ac_subst_vars='LTLIBOBJS
 
596
LIBOBJS
 
597
ARCH_FLAG
 
598
MAKEDEP_FLAGS
 
599
EGREP
 
600
GREP
 
601
CPP
 
602
CONFIGUREFLAGS
 
603
LIBNAME
 
604
SOURCES
 
605
INCLUDES
 
606
PDLIBDIR
 
607
REFERENCEPATH
 
608
BUILDLIBRARY
 
609
LIBRARY_VERSION
 
610
STRIPFLAGS
 
611
STRIP
 
612
LD
 
613
EXT
 
614
LFLAGS
 
615
STK
 
616
OBJEXT
 
617
EXEEXT
 
618
ac_ct_CC
 
619
CPPFLAGS
 
620
LDFLAGS
 
621
CFLAGS
 
622
CC
 
623
target_alias
 
624
host_alias
 
625
build_alias
 
626
LIBS
 
627
ECHO_T
 
628
ECHO_N
 
629
ECHO_C
 
630
DEFS
 
631
mandir
 
632
localedir
 
633
libdir
 
634
psdir
 
635
pdfdir
 
636
dvidir
 
637
htmldir
 
638
infodir
 
639
docdir
 
640
oldincludedir
 
641
includedir
 
642
localstatedir
 
643
sharedstatedir
 
644
sysconfdir
 
645
datadir
 
646
datarootdir
 
647
libexecdir
 
648
sbindir
 
649
bindir
 
650
program_transform_name
 
651
prefix
 
652
exec_prefix
 
653
PACKAGE_URL
 
654
PACKAGE_BUGREPORT
 
655
PACKAGE_STRING
 
656
PACKAGE_VERSION
 
657
PACKAGE_TARNAME
 
658
PACKAGE_NAME
 
659
PATH_SEPARATOR
 
660
SHELL'
 
661
ac_subst_files=''
 
662
ac_user_opts='
 
663
enable_option_checking
 
664
with_pdversion
 
665
with_version
 
666
with_extension
 
667
with_pd
 
668
enable_PIC
 
669
enable_lpt
 
670
enable_library
 
671
enable_fat_binary
 
672
'
 
673
      ac_precious_vars='build_alias
 
674
host_alias
 
675
target_alias
 
676
CC
 
677
CFLAGS
 
678
LDFLAGS
 
679
LIBS
 
680
CPPFLAGS
 
681
CPP'
 
682
 
 
683
 
 
684
# Initialize some variables set by options.
 
685
ac_init_help=
 
686
ac_init_version=false
 
687
ac_unrecognized_opts=
 
688
ac_unrecognized_sep=
 
689
# The variables have the same names as the options, with
 
690
# dashes changed to underlines.
 
691
cache_file=/dev/null
 
692
exec_prefix=NONE
 
693
no_create=
 
694
no_recursion=
 
695
prefix=NONE
 
696
program_prefix=NONE
 
697
program_suffix=NONE
 
698
program_transform_name=s,x,x,
 
699
silent=
 
700
site=
 
701
srcdir=
 
702
verbose=
 
703
x_includes=NONE
 
704
x_libraries=NONE
 
705
 
 
706
# Installation directory options.
 
707
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
708
# and all the variables that are supposed to be based on exec_prefix
 
709
# by default will actually change.
 
710
# Use braces instead of parens because sh, perl, etc. also accept them.
 
711
# (The list follows the same order as the GNU Coding Standards.)
 
712
bindir='${exec_prefix}/bin'
 
713
sbindir='${exec_prefix}/sbin'
 
714
libexecdir='${exec_prefix}/libexec'
 
715
datarootdir='${prefix}/share'
 
716
datadir='${datarootdir}'
 
717
sysconfdir='${prefix}/etc'
 
718
sharedstatedir='${prefix}/com'
 
719
localstatedir='${prefix}/var'
 
720
includedir='${prefix}/include'
 
721
oldincludedir='/usr/include'
 
722
docdir='${datarootdir}/doc/${PACKAGE}'
 
723
infodir='${datarootdir}/info'
 
724
htmldir='${docdir}'
 
725
dvidir='${docdir}'
 
726
pdfdir='${docdir}'
 
727
psdir='${docdir}'
 
728
libdir='${exec_prefix}/lib'
 
729
localedir='${datarootdir}/locale'
 
730
mandir='${datarootdir}/man'
 
731
 
 
732
ac_prev=
 
733
ac_dashdash=
 
734
for ac_option
 
735
do
 
736
  # If the previous option needs an argument, assign it.
 
737
  if test -n "$ac_prev"; then
 
738
    eval $ac_prev=\$ac_option
 
739
    ac_prev=
 
740
    continue
 
741
  fi
 
742
 
 
743
  case $ac_option in
 
744
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
745
  *=)   ac_optarg= ;;
 
746
  *)    ac_optarg=yes ;;
 
747
  esac
 
748
 
 
749
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
750
 
 
751
  case $ac_dashdash$ac_option in
 
752
  --)
 
753
    ac_dashdash=yes ;;
 
754
 
 
755
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
756
    ac_prev=bindir ;;
 
757
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
758
    bindir=$ac_optarg ;;
 
759
 
 
760
  -build | --build | --buil | --bui | --bu)
 
761
    ac_prev=build_alias ;;
 
762
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
763
    build_alias=$ac_optarg ;;
 
764
 
 
765
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
766
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
767
    ac_prev=cache_file ;;
 
768
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
769
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
770
    cache_file=$ac_optarg ;;
 
771
 
 
772
  --config-cache | -C)
 
773
    cache_file=config.cache ;;
 
774
 
 
775
  -datadir | --datadir | --datadi | --datad)
 
776
    ac_prev=datadir ;;
 
777
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
778
    datadir=$ac_optarg ;;
 
779
 
 
780
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
781
  | --dataroo | --dataro | --datar)
 
782
    ac_prev=datarootdir ;;
 
783
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
784
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
785
    datarootdir=$ac_optarg ;;
 
786
 
 
787
  -disable-* | --disable-*)
 
788
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
789
    # Reject names that are not valid shell variable names.
 
790
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
791
      as_fn_error $? "invalid feature name: $ac_useropt"
 
792
    ac_useropt_orig=$ac_useropt
 
793
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
794
    case $ac_user_opts in
 
795
      *"
 
796
"enable_$ac_useropt"
 
797
"*) ;;
 
798
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
799
         ac_unrecognized_sep=', ';;
 
800
    esac
 
801
    eval enable_$ac_useropt=no ;;
 
802
 
 
803
  -docdir | --docdir | --docdi | --doc | --do)
 
804
    ac_prev=docdir ;;
 
805
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
806
    docdir=$ac_optarg ;;
 
807
 
 
808
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
809
    ac_prev=dvidir ;;
 
810
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
811
    dvidir=$ac_optarg ;;
 
812
 
 
813
  -enable-* | --enable-*)
 
814
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
815
    # Reject names that are not valid shell variable names.
 
816
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
817
      as_fn_error $? "invalid feature name: $ac_useropt"
 
818
    ac_useropt_orig=$ac_useropt
 
819
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
820
    case $ac_user_opts in
 
821
      *"
 
822
"enable_$ac_useropt"
 
823
"*) ;;
 
824
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
825
         ac_unrecognized_sep=', ';;
 
826
    esac
 
827
    eval enable_$ac_useropt=\$ac_optarg ;;
 
828
 
 
829
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
830
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
831
  | --exec | --exe | --ex)
 
832
    ac_prev=exec_prefix ;;
 
833
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
834
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
835
  | --exec=* | --exe=* | --ex=*)
 
836
    exec_prefix=$ac_optarg ;;
 
837
 
 
838
  -gas | --gas | --ga | --g)
 
839
    # Obsolete; use --with-gas.
 
840
    with_gas=yes ;;
 
841
 
 
842
  -help | --help | --hel | --he | -h)
 
843
    ac_init_help=long ;;
 
844
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
845
    ac_init_help=recursive ;;
 
846
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
847
    ac_init_help=short ;;
 
848
 
 
849
  -host | --host | --hos | --ho)
 
850
    ac_prev=host_alias ;;
 
851
  -host=* | --host=* | --hos=* | --ho=*)
 
852
    host_alias=$ac_optarg ;;
 
853
 
 
854
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
855
    ac_prev=htmldir ;;
 
856
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
857
  | --ht=*)
 
858
    htmldir=$ac_optarg ;;
 
859
 
 
860
  -includedir | --includedir | --includedi | --included | --include \
 
861
  | --includ | --inclu | --incl | --inc)
 
862
    ac_prev=includedir ;;
 
863
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
864
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
865
    includedir=$ac_optarg ;;
 
866
 
 
867
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
868
    ac_prev=infodir ;;
 
869
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
870
    infodir=$ac_optarg ;;
 
871
 
 
872
  -libdir | --libdir | --libdi | --libd)
 
873
    ac_prev=libdir ;;
 
874
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
875
    libdir=$ac_optarg ;;
 
876
 
 
877
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
878
  | --libexe | --libex | --libe)
 
879
    ac_prev=libexecdir ;;
 
880
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
881
  | --libexe=* | --libex=* | --libe=*)
 
882
    libexecdir=$ac_optarg ;;
 
883
 
 
884
  -localedir | --localedir | --localedi | --localed | --locale)
 
885
    ac_prev=localedir ;;
 
886
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
887
    localedir=$ac_optarg ;;
 
888
 
 
889
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
890
  | --localstate | --localstat | --localsta | --localst | --locals)
 
891
    ac_prev=localstatedir ;;
 
892
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
893
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
894
    localstatedir=$ac_optarg ;;
 
895
 
 
896
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
897
    ac_prev=mandir ;;
 
898
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
899
    mandir=$ac_optarg ;;
 
900
 
 
901
  -nfp | --nfp | --nf)
 
902
    # Obsolete; use --without-fp.
 
903
    with_fp=no ;;
 
904
 
 
905
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
906
  | --no-cr | --no-c | -n)
 
907
    no_create=yes ;;
 
908
 
 
909
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
910
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
911
    no_recursion=yes ;;
 
912
 
 
913
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
914
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
915
  | --oldin | --oldi | --old | --ol | --o)
 
916
    ac_prev=oldincludedir ;;
 
917
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
918
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
919
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
920
    oldincludedir=$ac_optarg ;;
 
921
 
 
922
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
923
    ac_prev=prefix ;;
 
924
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
925
    prefix=$ac_optarg ;;
 
926
 
 
927
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
928
  | --program-pre | --program-pr | --program-p)
 
929
    ac_prev=program_prefix ;;
 
930
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
931
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
932
    program_prefix=$ac_optarg ;;
 
933
 
 
934
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
935
  | --program-suf | --program-su | --program-s)
 
936
    ac_prev=program_suffix ;;
 
937
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
938
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
939
    program_suffix=$ac_optarg ;;
 
940
 
 
941
  -program-transform-name | --program-transform-name \
 
942
  | --program-transform-nam | --program-transform-na \
 
943
  | --program-transform-n | --program-transform- \
 
944
  | --program-transform | --program-transfor \
 
945
  | --program-transfo | --program-transf \
 
946
  | --program-trans | --program-tran \
 
947
  | --progr-tra | --program-tr | --program-t)
 
948
    ac_prev=program_transform_name ;;
 
949
  -program-transform-name=* | --program-transform-name=* \
 
950
  | --program-transform-nam=* | --program-transform-na=* \
 
951
  | --program-transform-n=* | --program-transform-=* \
 
952
  | --program-transform=* | --program-transfor=* \
 
953
  | --program-transfo=* | --program-transf=* \
 
954
  | --program-trans=* | --program-tran=* \
 
955
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
956
    program_transform_name=$ac_optarg ;;
 
957
 
 
958
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
959
    ac_prev=pdfdir ;;
 
960
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
961
    pdfdir=$ac_optarg ;;
 
962
 
 
963
  -psdir | --psdir | --psdi | --psd | --ps)
 
964
    ac_prev=psdir ;;
 
965
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
966
    psdir=$ac_optarg ;;
 
967
 
 
968
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
969
  | -silent | --silent | --silen | --sile | --sil)
 
970
    silent=yes ;;
 
971
 
 
972
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
973
    ac_prev=sbindir ;;
 
974
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
975
  | --sbi=* | --sb=*)
 
976
    sbindir=$ac_optarg ;;
 
977
 
 
978
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
979
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
980
  | --sharedst | --shareds | --shared | --share | --shar \
 
981
  | --sha | --sh)
 
982
    ac_prev=sharedstatedir ;;
 
983
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
984
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
985
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
986
  | --sha=* | --sh=*)
 
987
    sharedstatedir=$ac_optarg ;;
 
988
 
 
989
  -site | --site | --sit)
 
990
    ac_prev=site ;;
 
991
  -site=* | --site=* | --sit=*)
 
992
    site=$ac_optarg ;;
 
993
 
 
994
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
995
    ac_prev=srcdir ;;
 
996
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
997
    srcdir=$ac_optarg ;;
 
998
 
 
999
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1000
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1001
    ac_prev=sysconfdir ;;
 
1002
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1003
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1004
    sysconfdir=$ac_optarg ;;
 
1005
 
 
1006
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1007
    ac_prev=target_alias ;;
 
1008
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1009
    target_alias=$ac_optarg ;;
 
1010
 
 
1011
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1012
    verbose=yes ;;
 
1013
 
 
1014
  -version | --version | --versio | --versi | --vers | -V)
 
1015
    ac_init_version=: ;;
 
1016
 
 
1017
  -with-* | --with-*)
 
1018
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1019
    # Reject names that are not valid shell variable names.
 
1020
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1021
      as_fn_error $? "invalid package name: $ac_useropt"
 
1022
    ac_useropt_orig=$ac_useropt
 
1023
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1024
    case $ac_user_opts in
 
1025
      *"
 
1026
"with_$ac_useropt"
 
1027
"*) ;;
 
1028
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1029
         ac_unrecognized_sep=', ';;
 
1030
    esac
 
1031
    eval with_$ac_useropt=\$ac_optarg ;;
 
1032
 
 
1033
  -without-* | --without-*)
 
1034
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1035
    # Reject names that are not valid shell variable names.
 
1036
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1037
      as_fn_error $? "invalid package name: $ac_useropt"
 
1038
    ac_useropt_orig=$ac_useropt
 
1039
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1040
    case $ac_user_opts in
 
1041
      *"
 
1042
"with_$ac_useropt"
 
1043
"*) ;;
 
1044
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1045
         ac_unrecognized_sep=', ';;
 
1046
    esac
 
1047
    eval with_$ac_useropt=no ;;
 
1048
 
 
1049
  --x)
 
1050
    # Obsolete; use --with-x.
 
1051
    with_x=yes ;;
 
1052
 
 
1053
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1054
  | --x-incl | --x-inc | --x-in | --x-i)
 
1055
    ac_prev=x_includes ;;
 
1056
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1057
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1058
    x_includes=$ac_optarg ;;
 
1059
 
 
1060
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1061
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1062
    ac_prev=x_libraries ;;
 
1063
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1064
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1065
    x_libraries=$ac_optarg ;;
 
1066
 
 
1067
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1068
Try \`$0 --help' for more information"
 
1069
    ;;
 
1070
 
 
1071
  *=*)
 
1072
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1073
    # Reject names that are not valid shell variable names.
 
1074
    case $ac_envvar in #(
 
1075
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1076
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1077
    esac
 
1078
    eval $ac_envvar=\$ac_optarg
 
1079
    export $ac_envvar ;;
 
1080
 
 
1081
  *)
 
1082
    # FIXME: should be removed in autoconf 3.0.
 
1083
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1084
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1085
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1086
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1087
    ;;
 
1088
 
 
1089
  esac
 
1090
done
 
1091
 
 
1092
if test -n "$ac_prev"; then
 
1093
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1094
  as_fn_error $? "missing argument to $ac_option"
 
1095
fi
 
1096
 
 
1097
if test -n "$ac_unrecognized_opts"; then
 
1098
  case $enable_option_checking in
 
1099
    no) ;;
 
1100
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1101
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1102
  esac
 
1103
fi
 
1104
 
 
1105
# Check all directory arguments for consistency.
 
1106
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1107
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1108
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1109
                libdir localedir mandir
 
1110
do
 
1111
  eval ac_val=\$$ac_var
 
1112
  # Remove trailing slashes.
 
1113
  case $ac_val in
 
1114
    */ )
 
1115
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1116
      eval $ac_var=\$ac_val;;
 
1117
  esac
 
1118
  # Be sure to have absolute directory names.
 
1119
  case $ac_val in
 
1120
    [\\/$]* | ?:[\\/]* )  continue;;
 
1121
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1122
  esac
 
1123
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1124
done
 
1125
 
 
1126
# There might be people who depend on the old broken behavior: `$host'
 
1127
# used to hold the argument of --host etc.
 
1128
# FIXME: To remove some day.
 
1129
build=$build_alias
 
1130
host=$host_alias
 
1131
target=$target_alias
 
1132
 
 
1133
# FIXME: To remove some day.
 
1134
if test "x$host_alias" != x; then
 
1135
  if test "x$build_alias" = x; then
 
1136
    cross_compiling=maybe
 
1137
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1138
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1139
  elif test "x$build_alias" != "x$host_alias"; then
 
1140
    cross_compiling=yes
 
1141
  fi
 
1142
fi
 
1143
 
 
1144
ac_tool_prefix=
 
1145
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1146
 
 
1147
test "$silent" = yes && exec 6>/dev/null
 
1148
 
 
1149
 
 
1150
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1151
ac_ls_di=`ls -di .` &&
 
1152
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1153
  as_fn_error $? "working directory cannot be determined"
 
1154
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1155
  as_fn_error $? "pwd does not report name of working directory"
 
1156
 
 
1157
 
 
1158
# Find the source files, if location was not specified.
 
1159
if test -z "$srcdir"; then
 
1160
  ac_srcdir_defaulted=yes
 
1161
  # Try the directory containing this script, then the parent directory.
 
1162
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1163
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1164
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1165
         X"$as_myself" : 'X\(//\)$' \| \
 
1166
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1167
$as_echo X"$as_myself" |
 
1168
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1169
            s//\1/
 
1170
            q
 
1171
          }
 
1172
          /^X\(\/\/\)[^/].*/{
 
1173
            s//\1/
 
1174
            q
 
1175
          }
 
1176
          /^X\(\/\/\)$/{
 
1177
            s//\1/
 
1178
            q
 
1179
          }
 
1180
          /^X\(\/\).*/{
 
1181
            s//\1/
 
1182
            q
 
1183
          }
 
1184
          s/.*/./; q'`
 
1185
  srcdir=$ac_confdir
 
1186
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1187
    srcdir=..
 
1188
  fi
 
1189
else
 
1190
  ac_srcdir_defaulted=no
 
1191
fi
 
1192
if test ! -r "$srcdir/$ac_unique_file"; then
 
1193
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1194
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1195
fi
 
1196
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1197
ac_abs_confdir=`(
 
1198
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1199
        pwd)`
 
1200
# When building in place, set srcdir=.
 
1201
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1202
  srcdir=.
 
1203
fi
 
1204
# Remove unnecessary trailing slashes from srcdir.
 
1205
# Double slashes in file names in object file debugging info
 
1206
# mess up M-x gdb in Emacs.
 
1207
case $srcdir in
 
1208
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1209
esac
 
1210
for ac_var in $ac_precious_vars; do
 
1211
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1212
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1213
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1214
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1215
done
 
1216
 
 
1217
#
 
1218
# Report the --help message.
 
1219
#
 
1220
if test "$ac_init_help" = "long"; then
 
1221
  # Omit some internal or obsolete options to make the list less imposing.
 
1222
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1223
  cat <<_ACEOF
 
1224
\`configure' configures this package to adapt to many kinds of systems.
 
1225
 
 
1226
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1227
 
 
1228
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1229
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1230
 
 
1231
Defaults for the options are specified in brackets.
 
1232
 
 
1233
Configuration:
 
1234
  -h, --help              display this help and exit
 
1235
      --help=short        display options specific to this package
 
1236
      --help=recursive    display the short help of all the included packages
 
1237
  -V, --version           display version information and exit
 
1238
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1239
      --cache-file=FILE   cache test results in FILE [disabled]
 
1240
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1241
  -n, --no-create         do not create output files
 
1242
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1243
 
 
1244
Installation directories:
 
1245
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1246
                          [$ac_default_prefix]
 
1247
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1248
                          [PREFIX]
 
1249
 
 
1250
By default, \`make install' will install all the files in
 
1251
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1252
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1253
for instance \`--prefix=\$HOME'.
 
1254
 
 
1255
For better control, use the options below.
 
1256
 
 
1257
Fine tuning of the installation directories:
 
1258
  --bindir=DIR            user executables [EPREFIX/bin]
 
1259
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1260
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1261
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1262
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1263
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1264
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1265
  --includedir=DIR        C header files [PREFIX/include]
 
1266
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1267
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1268
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1269
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1270
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1271
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1272
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 
1273
  --htmldir=DIR           html documentation [DOCDIR]
 
1274
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1275
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1276
  --psdir=DIR             ps documentation [DOCDIR]
 
1277
_ACEOF
 
1278
 
 
1279
  cat <<\_ACEOF
 
1280
_ACEOF
 
1281
fi
 
1282
 
 
1283
if test -n "$ac_init_help"; then
 
1284
 
 
1285
  cat <<\_ACEOF
 
1286
 
 
1287
Optional Features:
 
1288
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1289
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1290
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1291
  --disable-PIC           disable compilation with PIC-flag
 
1292
  --enable-lpt            enable parallelport-support
 
1293
  --disable-library       split the library into single externals
 
1294
  --enable-fat-binary=ARCHS
 
1295
                          build an Apple Multi Architecture Binary (MAB);
 
1296
                          ARCHS is a comma-delimited list of architectures for
 
1297
                          which to build; if ARCHS is omitted, then the package
 
1298
                          will be built for all architectures supported by the
 
1299
                          platform (e.g. "ppc,i386" for MacOS/X and Darwin;
 
1300
                          if this option is disabled or omitted entirely, then
 
1301
                          the package will be built only for the target
 
1302
                          platform
 
1303
 
 
1304
Optional Packages:
 
1305
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1306
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1307
  --with-pdversion=<ver>  enforce a certain pd-version (e.g. 0.37)
 
1308
  --with-version=<ver>    enforce a certain zexy-version (e.g. 2.0)
 
1309
  --with-extension=<ext>  enforce a certain extension for the dynamic library (e.g. dll)
 
1310
  --with-pd=</path/to/pd> where to look for pd-headers and and -libs
 
1311
 
 
1312
Some influential environment variables:
 
1313
  CC          C compiler command
 
1314
  CFLAGS      C compiler flags
 
1315
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1316
              nonstandard directory <lib dir>
 
1317
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1318
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1319
              you have headers in a nonstandard directory <include dir>
 
1320
  CPP         C preprocessor
 
1321
 
 
1322
Use these variables to override the choices made by `configure' or to help
 
1323
it to find libraries and programs with nonstandard names/locations.
 
1324
 
 
1325
Report bugs to the package provider.
 
1326
_ACEOF
 
1327
ac_status=$?
 
1328
fi
 
1329
 
 
1330
if test "$ac_init_help" = "recursive"; then
 
1331
  # If there are subdirs, report their specific --help.
 
1332
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1333
    test -d "$ac_dir" ||
 
1334
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1335
      continue
 
1336
    ac_builddir=.
 
1337
 
 
1338
case "$ac_dir" in
 
1339
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1340
*)
 
1341
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1342
  # A ".." for each directory in $ac_dir_suffix.
 
1343
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1344
  case $ac_top_builddir_sub in
 
1345
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1346
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1347
  esac ;;
 
1348
esac
 
1349
ac_abs_top_builddir=$ac_pwd
 
1350
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1351
# for backward compatibility:
 
1352
ac_top_builddir=$ac_top_build_prefix
 
1353
 
 
1354
case $srcdir in
 
1355
  .)  # We are building in place.
 
1356
    ac_srcdir=.
 
1357
    ac_top_srcdir=$ac_top_builddir_sub
 
1358
    ac_abs_top_srcdir=$ac_pwd ;;
 
1359
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1360
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1361
    ac_top_srcdir=$srcdir
 
1362
    ac_abs_top_srcdir=$srcdir ;;
 
1363
  *) # Relative name.
 
1364
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1365
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1366
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1367
esac
 
1368
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1369
 
 
1370
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1371
    # Check for guested configure.
 
1372
    if test -f "$ac_srcdir/configure.gnu"; then
 
1373
      echo &&
 
1374
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1375
    elif test -f "$ac_srcdir/configure"; then
 
1376
      echo &&
 
1377
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1378
    else
 
1379
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1380
    fi || ac_status=$?
 
1381
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1382
  done
 
1383
fi
 
1384
 
 
1385
test -n "$ac_init_help" && exit $ac_status
 
1386
if $ac_init_version; then
 
1387
  cat <<\_ACEOF
 
1388
configure
 
1389
generated by GNU Autoconf 2.67
 
1390
 
 
1391
Copyright (C) 2010 Free Software Foundation, Inc.
 
1392
This configure script is free software; the Free Software Foundation
 
1393
gives unlimited permission to copy, distribute and modify it.
 
1394
_ACEOF
 
1395
  exit
 
1396
fi
 
1397
 
 
1398
## ------------------------ ##
 
1399
## Autoconf initialization. ##
 
1400
## ------------------------ ##
 
1401
 
 
1402
# ac_fn_c_try_compile LINENO
 
1403
# --------------------------
 
1404
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1405
ac_fn_c_try_compile ()
 
1406
{
 
1407
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1408
  rm -f conftest.$ac_objext
 
1409
  if { { ac_try="$ac_compile"
 
1410
case "(($ac_try" in
 
1411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1412
  *) ac_try_echo=$ac_try;;
 
1413
esac
 
1414
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1415
$as_echo "$ac_try_echo"; } >&5
 
1416
  (eval "$ac_compile") 2>conftest.err
 
1417
  ac_status=$?
 
1418
  if test -s conftest.err; then
 
1419
    grep -v '^ *+' conftest.err >conftest.er1
 
1420
    cat conftest.er1 >&5
 
1421
    mv -f conftest.er1 conftest.err
 
1422
  fi
 
1423
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1424
  test $ac_status = 0; } && {
 
1425
         test -z "$ac_c_werror_flag" ||
 
1426
         test ! -s conftest.err
 
1427
       } && test -s conftest.$ac_objext; then :
 
1428
  ac_retval=0
 
1429
else
 
1430
  $as_echo "$as_me: failed program was:" >&5
 
1431
sed 's/^/| /' conftest.$ac_ext >&5
 
1432
 
 
1433
        ac_retval=1
 
1434
fi
 
1435
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1436
  as_fn_set_status $ac_retval
 
1437
 
 
1438
} # ac_fn_c_try_compile
 
1439
 
 
1440
# ac_fn_c_try_link LINENO
 
1441
# -----------------------
 
1442
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1443
ac_fn_c_try_link ()
 
1444
{
 
1445
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1446
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1447
  if { { ac_try="$ac_link"
 
1448
case "(($ac_try" in
 
1449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1450
  *) ac_try_echo=$ac_try;;
 
1451
esac
 
1452
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1453
$as_echo "$ac_try_echo"; } >&5
 
1454
  (eval "$ac_link") 2>conftest.err
 
1455
  ac_status=$?
 
1456
  if test -s conftest.err; then
 
1457
    grep -v '^ *+' conftest.err >conftest.er1
 
1458
    cat conftest.er1 >&5
 
1459
    mv -f conftest.er1 conftest.err
 
1460
  fi
 
1461
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1462
  test $ac_status = 0; } && {
 
1463
         test -z "$ac_c_werror_flag" ||
 
1464
         test ! -s conftest.err
 
1465
       } && test -s conftest$ac_exeext && {
 
1466
         test "$cross_compiling" = yes ||
 
1467
         $as_test_x conftest$ac_exeext
 
1468
       }; then :
 
1469
  ac_retval=0
 
1470
else
 
1471
  $as_echo "$as_me: failed program was:" >&5
 
1472
sed 's/^/| /' conftest.$ac_ext >&5
 
1473
 
 
1474
        ac_retval=1
 
1475
fi
 
1476
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1477
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1478
  # interfere with the next link command; also delete a directory that is
 
1479
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1480
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1481
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1482
  as_fn_set_status $ac_retval
 
1483
 
 
1484
} # ac_fn_c_try_link
 
1485
 
 
1486
# ac_fn_c_try_cpp LINENO
 
1487
# ----------------------
 
1488
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1489
ac_fn_c_try_cpp ()
 
1490
{
 
1491
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1492
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1493
case "(($ac_try" in
 
1494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1495
  *) ac_try_echo=$ac_try;;
 
1496
esac
 
1497
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1498
$as_echo "$ac_try_echo"; } >&5
 
1499
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1500
  ac_status=$?
 
1501
  if test -s conftest.err; then
 
1502
    grep -v '^ *+' conftest.err >conftest.er1
 
1503
    cat conftest.er1 >&5
 
1504
    mv -f conftest.er1 conftest.err
 
1505
  fi
 
1506
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1507
  test $ac_status = 0; } > conftest.i && {
 
1508
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1509
         test ! -s conftest.err
 
1510
       }; then :
 
1511
  ac_retval=0
 
1512
else
 
1513
  $as_echo "$as_me: failed program was:" >&5
 
1514
sed 's/^/| /' conftest.$ac_ext >&5
 
1515
 
 
1516
    ac_retval=1
 
1517
fi
 
1518
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1519
  as_fn_set_status $ac_retval
 
1520
 
 
1521
} # ac_fn_c_try_cpp
 
1522
 
 
1523
# ac_fn_c_try_run LINENO
 
1524
# ----------------------
 
1525
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1526
# that executables *can* be run.
 
1527
ac_fn_c_try_run ()
 
1528
{
 
1529
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1530
  if { { ac_try="$ac_link"
 
1531
case "(($ac_try" in
 
1532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1533
  *) ac_try_echo=$ac_try;;
 
1534
esac
 
1535
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1536
$as_echo "$ac_try_echo"; } >&5
 
1537
  (eval "$ac_link") 2>&5
 
1538
  ac_status=$?
 
1539
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1540
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1541
  { { case "(($ac_try" in
 
1542
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1543
  *) ac_try_echo=$ac_try;;
 
1544
esac
 
1545
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1546
$as_echo "$ac_try_echo"; } >&5
 
1547
  (eval "$ac_try") 2>&5
 
1548
  ac_status=$?
 
1549
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1550
  test $ac_status = 0; }; }; then :
 
1551
  ac_retval=0
 
1552
else
 
1553
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1554
       $as_echo "$as_me: failed program was:" >&5
 
1555
sed 's/^/| /' conftest.$ac_ext >&5
 
1556
 
 
1557
       ac_retval=$ac_status
 
1558
fi
 
1559
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1560
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1561
  as_fn_set_status $ac_retval
 
1562
 
 
1563
} # ac_fn_c_try_run
 
1564
 
 
1565
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1566
# -------------------------------------------------------
 
1567
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1568
# the include files in INCLUDES and setting the cache variable VAR
 
1569
# accordingly.
 
1570
ac_fn_c_check_header_mongrel ()
 
1571
{
 
1572
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1573
  if eval "test \"\${$3+set}\"" = set; then :
 
1574
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1575
$as_echo_n "checking for $2... " >&6; }
 
1576
if eval "test \"\${$3+set}\"" = set; then :
 
1577
  $as_echo_n "(cached) " >&6
 
1578
fi
 
1579
eval ac_res=\$$3
 
1580
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1581
$as_echo "$ac_res" >&6; }
 
1582
else
 
1583
  # Is the header compilable?
 
1584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1585
$as_echo_n "checking $2 usability... " >&6; }
 
1586
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1587
/* end confdefs.h.  */
 
1588
$4
 
1589
#include <$2>
 
1590
_ACEOF
 
1591
if ac_fn_c_try_compile "$LINENO"; then :
 
1592
  ac_header_compiler=yes
 
1593
else
 
1594
  ac_header_compiler=no
 
1595
fi
 
1596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1598
$as_echo "$ac_header_compiler" >&6; }
 
1599
 
 
1600
# Is the header present?
 
1601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1602
$as_echo_n "checking $2 presence... " >&6; }
 
1603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1604
/* end confdefs.h.  */
 
1605
#include <$2>
 
1606
_ACEOF
 
1607
if ac_fn_c_try_cpp "$LINENO"; then :
 
1608
  ac_header_preproc=yes
 
1609
else
 
1610
  ac_header_preproc=no
 
1611
fi
 
1612
rm -f conftest.err conftest.i conftest.$ac_ext
 
1613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1614
$as_echo "$ac_header_preproc" >&6; }
 
1615
 
 
1616
# So?  What about this header?
 
1617
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1618
  yes:no: )
 
1619
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1620
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1621
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1622
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1623
    ;;
 
1624
  no:yes:* )
 
1625
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1626
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1627
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1628
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1629
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1630
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1631
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1632
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1633
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1634
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1635
    ;;
 
1636
esac
 
1637
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1638
$as_echo_n "checking for $2... " >&6; }
 
1639
if eval "test \"\${$3+set}\"" = set; then :
 
1640
  $as_echo_n "(cached) " >&6
 
1641
else
 
1642
  eval "$3=\$ac_header_compiler"
 
1643
fi
 
1644
eval ac_res=\$$3
 
1645
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1646
$as_echo "$ac_res" >&6; }
 
1647
fi
 
1648
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1649
 
 
1650
} # ac_fn_c_check_header_mongrel
 
1651
 
 
1652
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1653
# -------------------------------------------------------
 
1654
# Tests whether HEADER exists and can be compiled using the include files in
 
1655
# INCLUDES, setting the cache variable VAR accordingly.
 
1656
ac_fn_c_check_header_compile ()
 
1657
{
 
1658
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1659
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1660
$as_echo_n "checking for $2... " >&6; }
 
1661
if eval "test \"\${$3+set}\"" = set; then :
 
1662
  $as_echo_n "(cached) " >&6
 
1663
else
 
1664
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1665
/* end confdefs.h.  */
 
1666
$4
 
1667
#include <$2>
 
1668
_ACEOF
 
1669
if ac_fn_c_try_compile "$LINENO"; then :
 
1670
  eval "$3=yes"
 
1671
else
 
1672
  eval "$3=no"
 
1673
fi
 
1674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1675
fi
 
1676
eval ac_res=\$$3
 
1677
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1678
$as_echo "$ac_res" >&6; }
 
1679
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1680
 
 
1681
} # ac_fn_c_check_header_compile
 
1682
 
 
1683
# ac_fn_c_check_func LINENO FUNC VAR
 
1684
# ----------------------------------
 
1685
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1686
ac_fn_c_check_func ()
 
1687
{
 
1688
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1689
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1690
$as_echo_n "checking for $2... " >&6; }
 
1691
if eval "test \"\${$3+set}\"" = set; then :
 
1692
  $as_echo_n "(cached) " >&6
 
1693
else
 
1694
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1695
/* end confdefs.h.  */
 
1696
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1697
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1698
#define $2 innocuous_$2
 
1699
 
 
1700
/* System header to define __stub macros and hopefully few prototypes,
 
1701
    which can conflict with char $2 (); below.
 
1702
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1703
    <limits.h> exists even on freestanding compilers.  */
 
1704
 
 
1705
#ifdef __STDC__
 
1706
# include <limits.h>
 
1707
#else
 
1708
# include <assert.h>
 
1709
#endif
 
1710
 
 
1711
#undef $2
 
1712
 
 
1713
/* Override any GCC internal prototype to avoid an error.
 
1714
   Use char because int might match the return type of a GCC
 
1715
   builtin and then its argument prototype would still apply.  */
 
1716
#ifdef __cplusplus
 
1717
extern "C"
 
1718
#endif
 
1719
char $2 ();
 
1720
/* The GNU C library defines this for functions which it implements
 
1721
    to always fail with ENOSYS.  Some functions are actually named
 
1722
    something starting with __ and the normal name is an alias.  */
 
1723
#if defined __stub_$2 || defined __stub___$2
 
1724
choke me
 
1725
#endif
 
1726
 
 
1727
int
 
1728
main ()
 
1729
{
 
1730
return $2 ();
 
1731
  ;
 
1732
  return 0;
 
1733
}
 
1734
_ACEOF
 
1735
if ac_fn_c_try_link "$LINENO"; then :
 
1736
  eval "$3=yes"
 
1737
else
 
1738
  eval "$3=no"
 
1739
fi
 
1740
rm -f core conftest.err conftest.$ac_objext \
 
1741
    conftest$ac_exeext conftest.$ac_ext
 
1742
fi
 
1743
eval ac_res=\$$3
 
1744
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1745
$as_echo "$ac_res" >&6; }
 
1746
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1747
 
 
1748
} # ac_fn_c_check_func
 
1749
cat >config.log <<_ACEOF
 
1750
This file contains any messages produced by compilers while
 
1751
running configure, to aid debugging if configure makes a mistake.
 
1752
 
 
1753
It was created by $as_me, which was
 
1754
generated by GNU Autoconf 2.67.  Invocation command line was
 
1755
 
 
1756
  $ $0 $@
 
1757
 
 
1758
_ACEOF
 
1759
exec 5>>config.log
 
1760
{
 
1761
cat <<_ASUNAME
 
1762
## --------- ##
 
1763
## Platform. ##
 
1764
## --------- ##
 
1765
 
 
1766
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1767
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1768
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1769
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1770
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1771
 
 
1772
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1773
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1774
 
 
1775
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1776
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1777
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1778
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1779
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1780
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1781
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1782
 
 
1783
_ASUNAME
 
1784
 
 
1785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1786
for as_dir in $PATH
 
1787
do
 
1788
  IFS=$as_save_IFS
 
1789
  test -z "$as_dir" && as_dir=.
 
1790
    $as_echo "PATH: $as_dir"
 
1791
  done
 
1792
IFS=$as_save_IFS
 
1793
 
 
1794
} >&5
 
1795
 
 
1796
cat >&5 <<_ACEOF
 
1797
 
 
1798
 
 
1799
## ----------- ##
 
1800
## Core tests. ##
 
1801
## ----------- ##
 
1802
 
 
1803
_ACEOF
 
1804
 
 
1805
 
 
1806
# Keep a trace of the command line.
 
1807
# Strip out --no-create and --no-recursion so they do not pile up.
 
1808
# Strip out --silent because we don't want to record it for future runs.
 
1809
# Also quote any args containing shell meta-characters.
 
1810
# Make two passes to allow for proper duplicate-argument suppression.
 
1811
ac_configure_args=
 
1812
ac_configure_args0=
 
1813
ac_configure_args1=
 
1814
ac_must_keep_next=false
 
1815
for ac_pass in 1 2
 
1816
do
 
1817
  for ac_arg
 
1818
  do
 
1819
    case $ac_arg in
 
1820
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1821
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1822
    | -silent | --silent | --silen | --sile | --sil)
 
1823
      continue ;;
 
1824
    *\'*)
 
1825
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1826
    esac
 
1827
    case $ac_pass in
 
1828
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1829
    2)
 
1830
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1831
      if test $ac_must_keep_next = true; then
 
1832
        ac_must_keep_next=false # Got value, back to normal.
 
1833
      else
 
1834
        case $ac_arg in
 
1835
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1836
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1837
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1838
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1839
            case "$ac_configure_args0 " in
 
1840
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1841
            esac
 
1842
            ;;
 
1843
          -* ) ac_must_keep_next=true ;;
 
1844
        esac
 
1845
      fi
 
1846
      as_fn_append ac_configure_args " '$ac_arg'"
 
1847
      ;;
 
1848
    esac
 
1849
  done
 
1850
done
 
1851
{ ac_configure_args0=; unset ac_configure_args0;}
 
1852
{ ac_configure_args1=; unset ac_configure_args1;}
 
1853
 
 
1854
# When interrupted or exit'd, cleanup temporary files, and complete
 
1855
# config.log.  We remove comments because anyway the quotes in there
 
1856
# would cause problems or look ugly.
 
1857
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1858
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1859
trap 'exit_status=$?
 
1860
  # Save into config.log some information that might help in debugging.
 
1861
  {
 
1862
    echo
 
1863
 
 
1864
    $as_echo "## ---------------- ##
 
1865
## Cache variables. ##
 
1866
## ---------------- ##"
 
1867
    echo
 
1868
    # The following way of writing the cache mishandles newlines in values,
 
1869
(
 
1870
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1871
    eval ac_val=\$$ac_var
 
1872
    case $ac_val in #(
 
1873
    *${as_nl}*)
 
1874
      case $ac_var in #(
 
1875
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1876
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1877
      esac
 
1878
      case $ac_var in #(
 
1879
      _ | IFS | as_nl) ;; #(
 
1880
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1881
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1882
      esac ;;
 
1883
    esac
 
1884
  done
 
1885
  (set) 2>&1 |
 
1886
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1887
    *${as_nl}ac_space=\ *)
 
1888
      sed -n \
 
1889
        "s/'\''/'\''\\\\'\'''\''/g;
 
1890
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1891
      ;; #(
 
1892
    *)
 
1893
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1894
      ;;
 
1895
    esac |
 
1896
    sort
 
1897
)
 
1898
    echo
 
1899
 
 
1900
    $as_echo "## ----------------- ##
 
1901
## Output variables. ##
 
1902
## ----------------- ##"
 
1903
    echo
 
1904
    for ac_var in $ac_subst_vars
 
1905
    do
 
1906
      eval ac_val=\$$ac_var
 
1907
      case $ac_val in
 
1908
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1909
      esac
 
1910
      $as_echo "$ac_var='\''$ac_val'\''"
 
1911
    done | sort
 
1912
    echo
 
1913
 
 
1914
    if test -n "$ac_subst_files"; then
 
1915
      $as_echo "## ------------------- ##
 
1916
## File substitutions. ##
 
1917
## ------------------- ##"
 
1918
      echo
 
1919
      for ac_var in $ac_subst_files
 
1920
      do
 
1921
        eval ac_val=\$$ac_var
 
1922
        case $ac_val in
 
1923
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1924
        esac
 
1925
        $as_echo "$ac_var='\''$ac_val'\''"
 
1926
      done | sort
 
1927
      echo
 
1928
    fi
 
1929
 
 
1930
    if test -s confdefs.h; then
 
1931
      $as_echo "## ----------- ##
 
1932
## confdefs.h. ##
 
1933
## ----------- ##"
 
1934
      echo
 
1935
      cat confdefs.h
 
1936
      echo
 
1937
    fi
 
1938
    test "$ac_signal" != 0 &&
 
1939
      $as_echo "$as_me: caught signal $ac_signal"
 
1940
    $as_echo "$as_me: exit $exit_status"
 
1941
  } >&5
 
1942
  rm -f core *.core core.conftest.* &&
 
1943
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1944
    exit $exit_status
 
1945
' 0
 
1946
for ac_signal in 1 2 13 15; do
 
1947
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
1948
done
 
1949
ac_signal=0
 
1950
 
 
1951
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1952
rm -f -r conftest* confdefs.h
 
1953
 
 
1954
$as_echo "/* confdefs.h */" > confdefs.h
 
1955
 
 
1956
# Predefined preprocessor variables.
 
1957
 
 
1958
cat >>confdefs.h <<_ACEOF
 
1959
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1960
_ACEOF
 
1961
 
 
1962
cat >>confdefs.h <<_ACEOF
 
1963
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1964
_ACEOF
 
1965
 
 
1966
cat >>confdefs.h <<_ACEOF
 
1967
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1968
_ACEOF
 
1969
 
 
1970
cat >>confdefs.h <<_ACEOF
 
1971
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1972
_ACEOF
 
1973
 
 
1974
cat >>confdefs.h <<_ACEOF
 
1975
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1976
_ACEOF
 
1977
 
 
1978
cat >>confdefs.h <<_ACEOF
 
1979
#define PACKAGE_URL "$PACKAGE_URL"
 
1980
_ACEOF
 
1981
 
 
1982
 
 
1983
# Let the site file select an alternate cache file if it wants to.
 
1984
# Prefer an explicitly selected file to automatically selected ones.
 
1985
ac_site_file1=NONE
 
1986
ac_site_file2=NONE
 
1987
if test -n "$CONFIG_SITE"; then
 
1988
  # We do not want a PATH search for config.site.
 
1989
  case $CONFIG_SITE in #((
 
1990
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
1991
    */*) ac_site_file1=$CONFIG_SITE;;
 
1992
    *)   ac_site_file1=./$CONFIG_SITE;;
 
1993
  esac
 
1994
elif test "x$prefix" != xNONE; then
 
1995
  ac_site_file1=$prefix/share/config.site
 
1996
  ac_site_file2=$prefix/etc/config.site
 
1997
else
 
1998
  ac_site_file1=$ac_default_prefix/share/config.site
 
1999
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2000
fi
 
2001
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2002
do
 
2003
  test "x$ac_site_file" = xNONE && continue
 
2004
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2005
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2006
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2007
    sed 's/^/| /' "$ac_site_file" >&5
 
2008
    . "$ac_site_file" \
 
2009
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2010
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2011
as_fn_error $? "failed to load site script $ac_site_file
 
2012
See \`config.log' for more details" "$LINENO" 5 ; }
 
2013
  fi
 
2014
done
 
2015
 
 
2016
if test -r "$cache_file"; then
 
2017
  # Some versions of bash will fail to source /dev/null (special files
 
2018
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2019
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2020
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2021
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2022
    case $cache_file in
 
2023
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2024
      *)                      . "./$cache_file";;
 
2025
    esac
 
2026
  fi
 
2027
else
 
2028
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2029
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2030
  >$cache_file
 
2031
fi
 
2032
 
 
2033
as_fn_append ac_header_list " stdlib.h"
 
2034
as_fn_append ac_header_list " unistd.h"
 
2035
as_fn_append ac_header_list " sys/param.h"
 
2036
# Check that the precious variables saved in the cache have kept the same
 
2037
# value.
 
2038
ac_cache_corrupted=false
 
2039
for ac_var in $ac_precious_vars; do
 
2040
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2041
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2042
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2043
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2044
  case $ac_old_set,$ac_new_set in
 
2045
    set,)
 
2046
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2047
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2048
      ac_cache_corrupted=: ;;
 
2049
    ,set)
 
2050
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2051
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2052
      ac_cache_corrupted=: ;;
 
2053
    ,);;
 
2054
    *)
 
2055
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2056
        # differences in whitespace do not lead to failure.
 
2057
        ac_old_val_w=`echo x $ac_old_val`
 
2058
        ac_new_val_w=`echo x $ac_new_val`
 
2059
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2060
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2061
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2062
          ac_cache_corrupted=:
 
2063
        else
 
2064
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2065
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2066
          eval $ac_var=\$ac_old_val
 
2067
        fi
 
2068
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2069
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2070
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2071
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2072
      fi;;
 
2073
  esac
 
2074
  # Pass precious variables to config.status.
 
2075
  if test "$ac_new_set" = set; then
 
2076
    case $ac_new_val in
 
2077
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2078
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2079
    esac
 
2080
    case " $ac_configure_args " in
 
2081
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2082
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2083
    esac
 
2084
  fi
 
2085
done
 
2086
if $ac_cache_corrupted; then
 
2087
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2088
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2089
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2090
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2091
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2092
fi
 
2093
## -------------------- ##
 
2094
## Main body of script. ##
 
2095
## -------------------- ##
 
2096
 
 
2097
ac_ext=c
 
2098
ac_cpp='$CPP $CPPFLAGS'
 
2099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2102
 
 
2103
 
 
2104
ac_config_headers="$ac_config_headers zexyconf.h"
 
2105
 
 
2106
 
 
2107
LIBNAME=zexy
 
2108
 
 
2109
ARCH=$(uname -m)
 
2110
KERN=$(uname -s)
 
2111
 
 
2112
 
 
2113
ac_ext=c
 
2114
ac_cpp='$CPP $CPPFLAGS'
 
2115
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2116
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2117
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2118
if test -n "$ac_tool_prefix"; then
 
2119
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2120
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2122
$as_echo_n "checking for $ac_word... " >&6; }
 
2123
if test "${ac_cv_prog_CC+set}" = set; then :
 
2124
  $as_echo_n "(cached) " >&6
 
2125
else
 
2126
  if test -n "$CC"; then
 
2127
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2128
else
 
2129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2130
for as_dir in $PATH
 
2131
do
 
2132
  IFS=$as_save_IFS
 
2133
  test -z "$as_dir" && as_dir=.
 
2134
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2135
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2136
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2137
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2138
    break 2
 
2139
  fi
 
2140
done
 
2141
  done
 
2142
IFS=$as_save_IFS
 
2143
 
 
2144
fi
 
2145
fi
 
2146
CC=$ac_cv_prog_CC
 
2147
if test -n "$CC"; then
 
2148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2149
$as_echo "$CC" >&6; }
 
2150
else
 
2151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2152
$as_echo "no" >&6; }
 
2153
fi
 
2154
 
 
2155
 
 
2156
fi
 
2157
if test -z "$ac_cv_prog_CC"; then
 
2158
  ac_ct_CC=$CC
 
2159
  # Extract the first word of "gcc", so it can be a program name with args.
 
2160
set dummy gcc; ac_word=$2
 
2161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2162
$as_echo_n "checking for $ac_word... " >&6; }
 
2163
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2164
  $as_echo_n "(cached) " >&6
 
2165
else
 
2166
  if test -n "$ac_ct_CC"; then
 
2167
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2168
else
 
2169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2170
for as_dir in $PATH
 
2171
do
 
2172
  IFS=$as_save_IFS
 
2173
  test -z "$as_dir" && as_dir=.
 
2174
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2175
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2176
    ac_cv_prog_ac_ct_CC="gcc"
 
2177
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2178
    break 2
 
2179
  fi
 
2180
done
 
2181
  done
 
2182
IFS=$as_save_IFS
 
2183
 
 
2184
fi
 
2185
fi
 
2186
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2187
if test -n "$ac_ct_CC"; then
 
2188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2189
$as_echo "$ac_ct_CC" >&6; }
 
2190
else
 
2191
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2192
$as_echo "no" >&6; }
 
2193
fi
 
2194
 
 
2195
  if test "x$ac_ct_CC" = x; then
 
2196
    CC=""
 
2197
  else
 
2198
    case $cross_compiling:$ac_tool_warned in
 
2199
yes:)
 
2200
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2201
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2202
ac_tool_warned=yes ;;
 
2203
esac
 
2204
    CC=$ac_ct_CC
 
2205
  fi
 
2206
else
 
2207
  CC="$ac_cv_prog_CC"
 
2208
fi
 
2209
 
 
2210
if test -z "$CC"; then
 
2211
          if test -n "$ac_tool_prefix"; then
 
2212
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2213
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2215
$as_echo_n "checking for $ac_word... " >&6; }
 
2216
if test "${ac_cv_prog_CC+set}" = set; then :
 
2217
  $as_echo_n "(cached) " >&6
 
2218
else
 
2219
  if test -n "$CC"; then
 
2220
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2221
else
 
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2223
for as_dir in $PATH
 
2224
do
 
2225
  IFS=$as_save_IFS
 
2226
  test -z "$as_dir" && as_dir=.
 
2227
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2228
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2229
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2230
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2231
    break 2
 
2232
  fi
 
2233
done
 
2234
  done
 
2235
IFS=$as_save_IFS
 
2236
 
 
2237
fi
 
2238
fi
 
2239
CC=$ac_cv_prog_CC
 
2240
if test -n "$CC"; then
 
2241
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2242
$as_echo "$CC" >&6; }
 
2243
else
 
2244
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2245
$as_echo "no" >&6; }
 
2246
fi
 
2247
 
 
2248
 
 
2249
  fi
 
2250
fi
 
2251
if test -z "$CC"; then
 
2252
  # Extract the first word of "cc", so it can be a program name with args.
 
2253
set dummy cc; ac_word=$2
 
2254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2255
$as_echo_n "checking for $ac_word... " >&6; }
 
2256
if test "${ac_cv_prog_CC+set}" = set; then :
 
2257
  $as_echo_n "(cached) " >&6
 
2258
else
 
2259
  if test -n "$CC"; then
 
2260
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2261
else
 
2262
  ac_prog_rejected=no
 
2263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2264
for as_dir in $PATH
 
2265
do
 
2266
  IFS=$as_save_IFS
 
2267
  test -z "$as_dir" && as_dir=.
 
2268
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2269
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2270
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2271
       ac_prog_rejected=yes
 
2272
       continue
 
2273
     fi
 
2274
    ac_cv_prog_CC="cc"
 
2275
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2276
    break 2
 
2277
  fi
 
2278
done
 
2279
  done
 
2280
IFS=$as_save_IFS
 
2281
 
 
2282
if test $ac_prog_rejected = yes; then
 
2283
  # We found a bogon in the path, so make sure we never use it.
 
2284
  set dummy $ac_cv_prog_CC
 
2285
  shift
 
2286
  if test $# != 0; then
 
2287
    # We chose a different compiler from the bogus one.
 
2288
    # However, it has the same basename, so the bogon will be chosen
 
2289
    # first if we set CC to just the basename; use the full file name.
 
2290
    shift
 
2291
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2292
  fi
 
2293
fi
 
2294
fi
 
2295
fi
 
2296
CC=$ac_cv_prog_CC
 
2297
if test -n "$CC"; then
 
2298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2299
$as_echo "$CC" >&6; }
 
2300
else
 
2301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2302
$as_echo "no" >&6; }
 
2303
fi
 
2304
 
 
2305
 
 
2306
fi
 
2307
if test -z "$CC"; then
 
2308
  if test -n "$ac_tool_prefix"; then
 
2309
  for ac_prog in cl.exe
 
2310
  do
 
2311
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2312
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2314
$as_echo_n "checking for $ac_word... " >&6; }
 
2315
if test "${ac_cv_prog_CC+set}" = set; then :
 
2316
  $as_echo_n "(cached) " >&6
 
2317
else
 
2318
  if test -n "$CC"; then
 
2319
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2320
else
 
2321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2322
for as_dir in $PATH
 
2323
do
 
2324
  IFS=$as_save_IFS
 
2325
  test -z "$as_dir" && as_dir=.
 
2326
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2327
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2328
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2329
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2330
    break 2
 
2331
  fi
 
2332
done
 
2333
  done
 
2334
IFS=$as_save_IFS
 
2335
 
 
2336
fi
 
2337
fi
 
2338
CC=$ac_cv_prog_CC
 
2339
if test -n "$CC"; then
 
2340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2341
$as_echo "$CC" >&6; }
 
2342
else
 
2343
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2344
$as_echo "no" >&6; }
 
2345
fi
 
2346
 
 
2347
 
 
2348
    test -n "$CC" && break
 
2349
  done
 
2350
fi
 
2351
if test -z "$CC"; then
 
2352
  ac_ct_CC=$CC
 
2353
  for ac_prog in cl.exe
 
2354
do
 
2355
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2356
set dummy $ac_prog; ac_word=$2
 
2357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2358
$as_echo_n "checking for $ac_word... " >&6; }
 
2359
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2360
  $as_echo_n "(cached) " >&6
 
2361
else
 
2362
  if test -n "$ac_ct_CC"; then
 
2363
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2364
else
 
2365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2366
for as_dir in $PATH
 
2367
do
 
2368
  IFS=$as_save_IFS
 
2369
  test -z "$as_dir" && as_dir=.
 
2370
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2371
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2372
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2373
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2374
    break 2
 
2375
  fi
 
2376
done
 
2377
  done
 
2378
IFS=$as_save_IFS
 
2379
 
 
2380
fi
 
2381
fi
 
2382
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2383
if test -n "$ac_ct_CC"; then
 
2384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2385
$as_echo "$ac_ct_CC" >&6; }
 
2386
else
 
2387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2388
$as_echo "no" >&6; }
 
2389
fi
 
2390
 
 
2391
 
 
2392
  test -n "$ac_ct_CC" && break
 
2393
done
 
2394
 
 
2395
  if test "x$ac_ct_CC" = x; then
 
2396
    CC=""
 
2397
  else
 
2398
    case $cross_compiling:$ac_tool_warned in
 
2399
yes:)
 
2400
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2401
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2402
ac_tool_warned=yes ;;
 
2403
esac
 
2404
    CC=$ac_ct_CC
 
2405
  fi
 
2406
fi
 
2407
 
 
2408
fi
 
2409
 
 
2410
 
 
2411
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2412
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2413
as_fn_error $? "no acceptable C compiler found in \$PATH
 
2414
See \`config.log' for more details" "$LINENO" 5 ; }
 
2415
 
 
2416
# Provide some information about the compiler.
 
2417
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2418
set X $ac_compile
 
2419
ac_compiler=$2
 
2420
for ac_option in --version -v -V -qversion; do
 
2421
  { { ac_try="$ac_compiler $ac_option >&5"
 
2422
case "(($ac_try" in
 
2423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2424
  *) ac_try_echo=$ac_try;;
 
2425
esac
 
2426
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2427
$as_echo "$ac_try_echo"; } >&5
 
2428
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2429
  ac_status=$?
 
2430
  if test -s conftest.err; then
 
2431
    sed '10a\
 
2432
... rest of stderr output deleted ...
 
2433
         10q' conftest.err >conftest.er1
 
2434
    cat conftest.er1 >&5
 
2435
  fi
 
2436
  rm -f conftest.er1 conftest.err
 
2437
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2438
  test $ac_status = 0; }
 
2439
done
 
2440
 
 
2441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2442
/* end confdefs.h.  */
 
2443
 
 
2444
int
 
2445
main ()
 
2446
{
 
2447
 
 
2448
  ;
 
2449
  return 0;
 
2450
}
 
2451
_ACEOF
 
2452
ac_clean_files_save=$ac_clean_files
 
2453
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2454
# Try to create an executable without -o first, disregard a.out.
 
2455
# It will help us diagnose broken compilers, and finding out an intuition
 
2456
# of exeext.
 
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
2458
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2459
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2460
 
 
2461
# The possible output files:
 
2462
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2463
 
 
2464
ac_rmfiles=
 
2465
for ac_file in $ac_files
 
2466
do
 
2467
  case $ac_file in
 
2468
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2469
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2470
  esac
 
2471
done
 
2472
rm -f $ac_rmfiles
 
2473
 
 
2474
if { { ac_try="$ac_link_default"
 
2475
case "(($ac_try" in
 
2476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2477
  *) ac_try_echo=$ac_try;;
 
2478
esac
 
2479
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2480
$as_echo "$ac_try_echo"; } >&5
 
2481
  (eval "$ac_link_default") 2>&5
 
2482
  ac_status=$?
 
2483
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2484
  test $ac_status = 0; }; then :
 
2485
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2486
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2487
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2488
# so that the user can short-circuit this test for compilers unknown to
 
2489
# Autoconf.
 
2490
for ac_file in $ac_files ''
 
2491
do
 
2492
  test -f "$ac_file" || continue
 
2493
  case $ac_file in
 
2494
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2495
        ;;
 
2496
    [ab].out )
 
2497
        # We found the default executable, but exeext='' is most
 
2498
        # certainly right.
 
2499
        break;;
 
2500
    *.* )
 
2501
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2502
        then :; else
 
2503
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2504
        fi
 
2505
        # We set ac_cv_exeext here because the later test for it is not
 
2506
        # safe: cross compilers may not add the suffix if given an `-o'
 
2507
        # argument, so we may need to know it at that point already.
 
2508
        # Even if this section looks crufty: it has the advantage of
 
2509
        # actually working.
 
2510
        break;;
 
2511
    * )
 
2512
        break;;
 
2513
  esac
 
2514
done
 
2515
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2516
 
 
2517
else
 
2518
  ac_file=''
 
2519
fi
 
2520
if test -z "$ac_file"; then :
 
2521
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2522
$as_echo "no" >&6; }
 
2523
$as_echo "$as_me: failed program was:" >&5
 
2524
sed 's/^/| /' conftest.$ac_ext >&5
 
2525
 
 
2526
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2527
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2528
as_fn_error 77 "C compiler cannot create executables
 
2529
See \`config.log' for more details" "$LINENO" 5 ; }
 
2530
else
 
2531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2532
$as_echo "yes" >&6; }
 
2533
fi
 
2534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
2535
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
2537
$as_echo "$ac_file" >&6; }
 
2538
ac_exeext=$ac_cv_exeext
 
2539
 
 
2540
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2541
ac_clean_files=$ac_clean_files_save
 
2542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
2543
$as_echo_n "checking for suffix of executables... " >&6; }
 
2544
if { { ac_try="$ac_link"
 
2545
case "(($ac_try" in
 
2546
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2547
  *) ac_try_echo=$ac_try;;
 
2548
esac
 
2549
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2550
$as_echo "$ac_try_echo"; } >&5
 
2551
  (eval "$ac_link") 2>&5
 
2552
  ac_status=$?
 
2553
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2554
  test $ac_status = 0; }; then :
 
2555
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2556
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2557
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2558
# `rm'.
 
2559
for ac_file in conftest.exe conftest conftest.*; do
 
2560
  test -f "$ac_file" || continue
 
2561
  case $ac_file in
 
2562
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2563
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2564
          break;;
 
2565
    * ) break;;
 
2566
  esac
 
2567
done
 
2568
else
 
2569
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2570
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2571
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
2572
See \`config.log' for more details" "$LINENO" 5 ; }
 
2573
fi
 
2574
rm -f conftest conftest$ac_cv_exeext
 
2575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
2576
$as_echo "$ac_cv_exeext" >&6; }
 
2577
 
 
2578
rm -f conftest.$ac_ext
 
2579
EXEEXT=$ac_cv_exeext
 
2580
ac_exeext=$EXEEXT
 
2581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2582
/* end confdefs.h.  */
 
2583
#include <stdio.h>
 
2584
int
 
2585
main ()
 
2586
{
 
2587
FILE *f = fopen ("conftest.out", "w");
 
2588
 return ferror (f) || fclose (f) != 0;
 
2589
 
 
2590
  ;
 
2591
  return 0;
 
2592
}
 
2593
_ACEOF
 
2594
ac_clean_files="$ac_clean_files conftest.out"
 
2595
# Check that the compiler produces executables we can run.  If not, either
 
2596
# the compiler is broken, or we cross compile.
 
2597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
2598
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2599
if test "$cross_compiling" != yes; then
 
2600
  { { ac_try="$ac_link"
 
2601
case "(($ac_try" in
 
2602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2603
  *) ac_try_echo=$ac_try;;
 
2604
esac
 
2605
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2606
$as_echo "$ac_try_echo"; } >&5
 
2607
  (eval "$ac_link") 2>&5
 
2608
  ac_status=$?
 
2609
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2610
  test $ac_status = 0; }
 
2611
  if { ac_try='./conftest$ac_cv_exeext'
 
2612
  { { case "(($ac_try" in
 
2613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2614
  *) ac_try_echo=$ac_try;;
 
2615
esac
 
2616
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2617
$as_echo "$ac_try_echo"; } >&5
 
2618
  (eval "$ac_try") 2>&5
 
2619
  ac_status=$?
 
2620
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2621
  test $ac_status = 0; }; }; then
 
2622
    cross_compiling=no
 
2623
  else
 
2624
    if test "$cross_compiling" = maybe; then
 
2625
        cross_compiling=yes
 
2626
    else
 
2627
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2628
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2629
as_fn_error $? "cannot run C compiled programs.
 
2630
If you meant to cross compile, use \`--host'.
 
2631
See \`config.log' for more details" "$LINENO" 5 ; }
 
2632
    fi
 
2633
  fi
 
2634
fi
 
2635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
2636
$as_echo "$cross_compiling" >&6; }
 
2637
 
 
2638
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
2639
ac_clean_files=$ac_clean_files_save
 
2640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
2641
$as_echo_n "checking for suffix of object files... " >&6; }
 
2642
if test "${ac_cv_objext+set}" = set; then :
 
2643
  $as_echo_n "(cached) " >&6
 
2644
else
 
2645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2646
/* end confdefs.h.  */
 
2647
 
 
2648
int
 
2649
main ()
 
2650
{
 
2651
 
 
2652
  ;
 
2653
  return 0;
 
2654
}
 
2655
_ACEOF
 
2656
rm -f conftest.o conftest.obj
 
2657
if { { ac_try="$ac_compile"
 
2658
case "(($ac_try" in
 
2659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2660
  *) ac_try_echo=$ac_try;;
 
2661
esac
 
2662
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2663
$as_echo "$ac_try_echo"; } >&5
 
2664
  (eval "$ac_compile") 2>&5
 
2665
  ac_status=$?
 
2666
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2667
  test $ac_status = 0; }; then :
 
2668
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2669
  test -f "$ac_file" || continue;
 
2670
  case $ac_file in
 
2671
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2672
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2673
       break;;
 
2674
  esac
 
2675
done
 
2676
else
 
2677
  $as_echo "$as_me: failed program was:" >&5
 
2678
sed 's/^/| /' conftest.$ac_ext >&5
 
2679
 
 
2680
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2681
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2682
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
2683
See \`config.log' for more details" "$LINENO" 5 ; }
 
2684
fi
 
2685
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2686
fi
 
2687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
2688
$as_echo "$ac_cv_objext" >&6; }
 
2689
OBJEXT=$ac_cv_objext
 
2690
ac_objext=$OBJEXT
 
2691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
2692
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2693
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
2694
  $as_echo_n "(cached) " >&6
 
2695
else
 
2696
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2697
/* end confdefs.h.  */
 
2698
 
 
2699
int
 
2700
main ()
 
2701
{
 
2702
#ifndef __GNUC__
 
2703
       choke me
 
2704
#endif
 
2705
 
 
2706
  ;
 
2707
  return 0;
 
2708
}
 
2709
_ACEOF
 
2710
if ac_fn_c_try_compile "$LINENO"; then :
 
2711
  ac_compiler_gnu=yes
 
2712
else
 
2713
  ac_compiler_gnu=no
 
2714
fi
 
2715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2716
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2717
 
 
2718
fi
 
2719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
2720
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2721
if test $ac_compiler_gnu = yes; then
 
2722
  GCC=yes
 
2723
else
 
2724
  GCC=
 
2725
fi
 
2726
ac_test_CFLAGS=${CFLAGS+set}
 
2727
ac_save_CFLAGS=$CFLAGS
 
2728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
2729
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2730
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
2731
  $as_echo_n "(cached) " >&6
 
2732
else
 
2733
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2734
   ac_c_werror_flag=yes
 
2735
   ac_cv_prog_cc_g=no
 
2736
   CFLAGS="-g"
 
2737
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2738
/* end confdefs.h.  */
 
2739
 
 
2740
int
 
2741
main ()
 
2742
{
 
2743
 
 
2744
  ;
 
2745
  return 0;
 
2746
}
 
2747
_ACEOF
 
2748
if ac_fn_c_try_compile "$LINENO"; then :
 
2749
  ac_cv_prog_cc_g=yes
 
2750
else
 
2751
  CFLAGS=""
 
2752
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2753
/* end confdefs.h.  */
 
2754
 
 
2755
int
 
2756
main ()
 
2757
{
 
2758
 
 
2759
  ;
 
2760
  return 0;
 
2761
}
 
2762
_ACEOF
 
2763
if ac_fn_c_try_compile "$LINENO"; then :
 
2764
 
 
2765
else
 
2766
  ac_c_werror_flag=$ac_save_c_werror_flag
 
2767
         CFLAGS="-g"
 
2768
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2769
/* end confdefs.h.  */
 
2770
 
 
2771
int
 
2772
main ()
 
2773
{
 
2774
 
 
2775
  ;
 
2776
  return 0;
 
2777
}
 
2778
_ACEOF
 
2779
if ac_fn_c_try_compile "$LINENO"; then :
 
2780
  ac_cv_prog_cc_g=yes
 
2781
fi
 
2782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2783
fi
 
2784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2785
fi
 
2786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2787
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2788
fi
 
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
2790
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
2791
if test "$ac_test_CFLAGS" = set; then
 
2792
  CFLAGS=$ac_save_CFLAGS
 
2793
elif test $ac_cv_prog_cc_g = yes; then
 
2794
  if test "$GCC" = yes; then
 
2795
    CFLAGS="-g -O2"
 
2796
  else
 
2797
    CFLAGS="-g"
 
2798
  fi
 
2799
else
 
2800
  if test "$GCC" = yes; then
 
2801
    CFLAGS="-O2"
 
2802
  else
 
2803
    CFLAGS=
 
2804
  fi
 
2805
fi
 
2806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
2807
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
2808
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
2809
  $as_echo_n "(cached) " >&6
 
2810
else
 
2811
  ac_cv_prog_cc_c89=no
 
2812
ac_save_CC=$CC
 
2813
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2814
/* end confdefs.h.  */
 
2815
#include <stdarg.h>
 
2816
#include <stdio.h>
 
2817
#include <sys/types.h>
 
2818
#include <sys/stat.h>
 
2819
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2820
struct buf { int x; };
 
2821
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2822
static char *e (p, i)
 
2823
     char **p;
 
2824
     int i;
 
2825
{
 
2826
  return p[i];
 
2827
}
 
2828
static char *f (char * (*g) (char **, int), char **p, ...)
 
2829
{
 
2830
  char *s;
 
2831
  va_list v;
 
2832
  va_start (v,p);
 
2833
  s = g (p, va_arg (v,int));
 
2834
  va_end (v);
 
2835
  return s;
 
2836
}
 
2837
 
 
2838
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2839
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2840
   These don't provoke an error unfortunately, instead are silently treated
 
2841
   as 'x'.  The following induces an error, until -std is added to get
 
2842
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2843
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2844
   that's true only with -std.  */
 
2845
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2846
 
 
2847
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2848
   inside strings and character constants.  */
 
2849
#define FOO(x) 'x'
 
2850
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2851
 
 
2852
int test (int i, double x);
 
2853
struct s1 {int (*f) (int a);};
 
2854
struct s2 {int (*f) (double a);};
 
2855
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2856
int argc;
 
2857
char **argv;
 
2858
int
 
2859
main ()
 
2860
{
 
2861
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2862
  ;
 
2863
  return 0;
 
2864
}
 
2865
_ACEOF
 
2866
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2867
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2868
do
 
2869
  CC="$ac_save_CC $ac_arg"
 
2870
  if ac_fn_c_try_compile "$LINENO"; then :
 
2871
  ac_cv_prog_cc_c89=$ac_arg
 
2872
fi
 
2873
rm -f core conftest.err conftest.$ac_objext
 
2874
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2875
done
 
2876
rm -f conftest.$ac_ext
 
2877
CC=$ac_save_CC
 
2878
 
 
2879
fi
 
2880
# AC_CACHE_VAL
 
2881
case "x$ac_cv_prog_cc_c89" in
 
2882
  x)
 
2883
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
2884
$as_echo "none needed" >&6; } ;;
 
2885
  xno)
 
2886
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
2887
$as_echo "unsupported" >&6; } ;;
 
2888
  *)
 
2889
    CC="$CC $ac_cv_prog_cc_c89"
 
2890
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
2891
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
2892
esac
 
2893
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
2894
 
 
2895
fi
 
2896
 
 
2897
ac_ext=c
 
2898
ac_cpp='$CPP $CPPFLAGS'
 
2899
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2900
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2901
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2902
 
 
2903
 
 
2904
 
 
2905
 
 
2906
 
 
2907
 
 
2908
 
 
2909
 
 
2910
 
 
2911
 
 
2912
 
 
2913
 
 
2914
 
 
2915
 
 
2916
 
 
2917
 
 
2918
 
 
2919
 
 
2920
 
 
2921
 
 
2922
## store the flags passed to us
 
2923
## is there no way to get the flags without quotes?
 
2924
#CONFIGUREFLAGS=${ac_configure_args}
 
2925
## and is this solution portable? time will show....
 
2926
CONFIGUREFLAGS=$(echo ${ac_configure_args} | sed "s/'//g")
 
2927
 
 
2928
 
 
2929
# Check whether --with-pdversion was given.
 
2930
if test "${with_pdversion+set}" = set; then :
 
2931
  withval=$with_pdversion;
 
2932
fi
 
2933
 
 
2934
 
 
2935
# Check whether --with-version was given.
 
2936
if test "${with_version+set}" = set; then :
 
2937
  withval=$with_version;
 
2938
fi
 
2939
 
 
2940
 
 
2941
# Check whether --with-extension was given.
 
2942
if test "${with_extension+set}" = set; then :
 
2943
  withval=$with_extension;
 
2944
fi
 
2945
 
 
2946
 
 
2947
# Check whether --with-pd was given.
 
2948
if test "${with_pd+set}" = set; then :
 
2949
  withval=$with_pd;
 
2950
fi
 
2951
 
 
2952
# Check whether --enable-PIC was given.
 
2953
if test "${enable_PIC+set}" = set; then :
 
2954
  enableval=$enable_PIC;
 
2955
fi
 
2956
 
 
2957
# Check whether --enable-lpt was given.
 
2958
if test "${enable_lpt+set}" = set; then :
 
2959
  enableval=$enable_lpt;
 
2960
fi
 
2961
 
 
2962
# Check whether --enable-library was given.
 
2963
if test "${enable_library+set}" = set; then :
 
2964
  enableval=$enable_library;
 
2965
fi
 
2966
 
 
2967
 
 
2968
if test "x" = "x${enable_PIC}" ; then
 
2969
 enable_PIC="${with_PIC}"
 
2970
fi
 
2971
 
 
2972
if test "x" = "x${enable_lpt}" ; then
 
2973
 enable_lpt="${with_lpt}"
 
2974
fi
 
2975
 
 
2976
if test "xno" != "x${enable_library}" ; then
 
2977
 BUILDLIBRARY="-DZEXY_LIBRARY"
 
2978
fi
 
2979
 
 
2980
if test $(uname | sed -e 's/^MINGW.*/NT/') = NT ;
 
2981
then
 
2982
  LD=${CC}
 
2983
  EXT=dll
 
2984
fi
 
2985
 
 
2986
if test "x$with_pd" != "x"; then
 
2987
 if test -d "${with_pd}"; then
 
2988
   PDPATH=${with_pd}
 
2989
 fi
 
2990
 
 
2991
 if test -d "${PDPATH}/src"; then
 
2992
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding ${PDPATH}/src to INCLUDES" >&5
 
2993
$as_echo "adding ${PDPATH}/src to INCLUDES" >&6; }
 
2994
  INCLUDES="-I${PDPATH}/src ${INCLUDES}"
 
2995
 
 
2996
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding ${PDPATH}/src to LDFLAGS" >&5
 
2997
$as_echo "adding ${PDPATH}/src to LDFLAGS" >&6; }
 
2998
  LDFLAGS="-L${PDPATH}/src ${LDFLAGS}"
 
2999
 fi
 
3000
 if test -d "${PDPATH}/bin"; then
 
3001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding ${PDPATH}/bin to LDFLAGS" >&5
 
3002
$as_echo "adding ${PDPATH}/bin to LDFLAGS" >&6; }
 
3003
  LDFLAGS="-L${PDPATH}/bin ${LDFLAGS}"
 
3004
 fi
 
3005
fi
 
3006
 
 
3007
if test $includedir
 
3008
then
 
3009
 for id in $includedir
 
3010
 do
 
3011
  if test -d $id; then INCLUDES="-I$id $INCLUDES"; fi
 
3012
 done
 
3013
fi
 
3014
if test $libdir
 
3015
then
 
3016
 for id in $libdir
 
3017
 do
 
3018
  if test -d $id; then LDFLAGS="-L$id $LDFLAGS"; fi
 
3019
 done
 
3020
fi
 
3021
 
 
3022
 
 
3023
CFLAGS="${INCLUDES} ${CFLAGS}"
 
3024
CPPFLAGS="${INCLUDES} ${CPPFLAGS}"
 
3025
INCLUDES=""
 
3026
 
 
3027
 
 
3028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
 
3029
$as_echo_n "checking for main in -lc... " >&6; }
 
3030
if test "${ac_cv_lib_c_main+set}" = set; then :
 
3031
  $as_echo_n "(cached) " >&6
 
3032
else
 
3033
  ac_check_lib_save_LIBS=$LIBS
 
3034
LIBS="-lc  $LIBS"
 
3035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3036
/* end confdefs.h.  */
 
3037
 
 
3038
 
 
3039
int
 
3040
main ()
 
3041
{
 
3042
return main ();
 
3043
  ;
 
3044
  return 0;
 
3045
}
 
3046
_ACEOF
 
3047
if ac_fn_c_try_link "$LINENO"; then :
 
3048
  ac_cv_lib_c_main=yes
 
3049
else
 
3050
  ac_cv_lib_c_main=no
 
3051
fi
 
3052
rm -f core conftest.err conftest.$ac_objext \
 
3053
    conftest$ac_exeext conftest.$ac_ext
 
3054
LIBS=$ac_check_lib_save_LIBS
 
3055
fi
 
3056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
 
3057
$as_echo "$ac_cv_lib_c_main" >&6; }
 
3058
if test "x$ac_cv_lib_c_main" = x""yes; then :
 
3059
  cat >>confdefs.h <<_ACEOF
 
3060
#define HAVE_LIBC 1
 
3061
_ACEOF
 
3062
 
 
3063
  LIBS="-lc $LIBS"
 
3064
 
 
3065
fi
 
3066
 
 
3067
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose in -lcrtdll" >&5
 
3068
$as_echo_n "checking for fclose in -lcrtdll... " >&6; }
 
3069
if test "${ac_cv_lib_crtdll_fclose+set}" = set; then :
 
3070
  $as_echo_n "(cached) " >&6
 
3071
else
 
3072
  ac_check_lib_save_LIBS=$LIBS
 
3073
LIBS="-lcrtdll  $LIBS"
 
3074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3075
/* end confdefs.h.  */
 
3076
 
 
3077
/* Override any GCC internal prototype to avoid an error.
 
3078
   Use char because int might match the return type of a GCC
 
3079
   builtin and then its argument prototype would still apply.  */
 
3080
#ifdef __cplusplus
 
3081
extern "C"
 
3082
#endif
 
3083
char fclose ();
 
3084
int
 
3085
main ()
 
3086
{
 
3087
return fclose ();
 
3088
  ;
 
3089
  return 0;
 
3090
}
 
3091
_ACEOF
 
3092
if ac_fn_c_try_link "$LINENO"; then :
 
3093
  ac_cv_lib_crtdll_fclose=yes
 
3094
else
 
3095
  ac_cv_lib_crtdll_fclose=no
 
3096
fi
 
3097
rm -f core conftest.err conftest.$ac_objext \
 
3098
    conftest$ac_exeext conftest.$ac_ext
 
3099
LIBS=$ac_check_lib_save_LIBS
 
3100
fi
 
3101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crtdll_fclose" >&5
 
3102
$as_echo "$ac_cv_lib_crtdll_fclose" >&6; }
 
3103
if test "x$ac_cv_lib_crtdll_fclose" = x""yes; then :
 
3104
  cat >>confdefs.h <<_ACEOF
 
3105
#define HAVE_LIBCRTDLL 1
 
3106
_ACEOF
 
3107
 
 
3108
  LIBS="-lcrtdll $LIBS"
 
3109
 
 
3110
fi
 
3111
 
 
3112
 
 
3113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lcoldname" >&5
 
3114
$as_echo_n "checking for lseek in -lcoldname... " >&6; }
 
3115
if test "${ac_cv_lib_coldname_lseek+set}" = set; then :
 
3116
  $as_echo_n "(cached) " >&6
 
3117
else
 
3118
  ac_check_lib_save_LIBS=$LIBS
 
3119
LIBS="-lcoldname  $LIBS"
 
3120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3121
/* end confdefs.h.  */
 
3122
 
 
3123
/* Override any GCC internal prototype to avoid an error.
 
3124
   Use char because int might match the return type of a GCC
 
3125
   builtin and then its argument prototype would still apply.  */
 
3126
#ifdef __cplusplus
 
3127
extern "C"
 
3128
#endif
 
3129
char lseek ();
 
3130
int
 
3131
main ()
 
3132
{
 
3133
return lseek ();
 
3134
  ;
 
3135
  return 0;
 
3136
}
 
3137
_ACEOF
 
3138
if ac_fn_c_try_link "$LINENO"; then :
 
3139
  ac_cv_lib_coldname_lseek=yes
 
3140
else
 
3141
  ac_cv_lib_coldname_lseek=no
 
3142
fi
 
3143
rm -f core conftest.err conftest.$ac_objext \
 
3144
    conftest$ac_exeext conftest.$ac_ext
 
3145
LIBS=$ac_check_lib_save_LIBS
 
3146
fi
 
3147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_coldname_lseek" >&5
 
3148
$as_echo "$ac_cv_lib_coldname_lseek" >&6; }
 
3149
if test "x$ac_cv_lib_coldname_lseek" = x""yes; then :
 
3150
  cat >>confdefs.h <<_ACEOF
 
3151
#define HAVE_LIBCOLDNAME 1
 
3152
_ACEOF
 
3153
 
 
3154
  LIBS="-lcoldname $LIBS"
 
3155
 
 
3156
fi
 
3157
 
 
3158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5
 
3159
$as_echo_n "checking for main in -lkernel32... " >&6; }
 
3160
if test "${ac_cv_lib_kernel32_main+set}" = set; then :
 
3161
  $as_echo_n "(cached) " >&6
 
3162
else
 
3163
  ac_check_lib_save_LIBS=$LIBS
 
3164
LIBS="-lkernel32  $LIBS"
 
3165
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3166
/* end confdefs.h.  */
 
3167
 
 
3168
 
 
3169
int
 
3170
main ()
 
3171
{
 
3172
return main ();
 
3173
  ;
 
3174
  return 0;
 
3175
}
 
3176
_ACEOF
 
3177
if ac_fn_c_try_link "$LINENO"; then :
 
3178
  ac_cv_lib_kernel32_main=yes
 
3179
else
 
3180
  ac_cv_lib_kernel32_main=no
 
3181
fi
 
3182
rm -f core conftest.err conftest.$ac_objext \
 
3183
    conftest$ac_exeext conftest.$ac_ext
 
3184
LIBS=$ac_check_lib_save_LIBS
 
3185
fi
 
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5
 
3187
$as_echo "$ac_cv_lib_kernel32_main" >&6; }
 
3188
if test "x$ac_cv_lib_kernel32_main" = x""yes; then :
 
3189
  cat >>confdefs.h <<_ACEOF
 
3190
#define HAVE_LIBKERNEL32 1
 
3191
_ACEOF
 
3192
 
 
3193
  LIBS="-lkernel32 $LIBS"
 
3194
 
 
3195
fi
 
3196
 
 
3197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -luser32" >&5
 
3198
$as_echo_n "checking for main in -luser32... " >&6; }
 
3199
if test "${ac_cv_lib_user32_main+set}" = set; then :
 
3200
  $as_echo_n "(cached) " >&6
 
3201
else
 
3202
  ac_check_lib_save_LIBS=$LIBS
 
3203
LIBS="-luser32  $LIBS"
 
3204
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3205
/* end confdefs.h.  */
 
3206
 
 
3207
 
 
3208
int
 
3209
main ()
 
3210
{
 
3211
return main ();
 
3212
  ;
 
3213
  return 0;
 
3214
}
 
3215
_ACEOF
 
3216
if ac_fn_c_try_link "$LINENO"; then :
 
3217
  ac_cv_lib_user32_main=yes
 
3218
else
 
3219
  ac_cv_lib_user32_main=no
 
3220
fi
 
3221
rm -f core conftest.err conftest.$ac_objext \
 
3222
    conftest$ac_exeext conftest.$ac_ext
 
3223
LIBS=$ac_check_lib_save_LIBS
 
3224
fi
 
3225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_user32_main" >&5
 
3226
$as_echo "$ac_cv_lib_user32_main" >&6; }
 
3227
if test "x$ac_cv_lib_user32_main" = x""yes; then :
 
3228
  cat >>confdefs.h <<_ACEOF
 
3229
#define HAVE_LIBUSER32 1
 
3230
_ACEOF
 
3231
 
 
3232
  LIBS="-luser32 $LIBS"
 
3233
 
 
3234
fi
 
3235
 
 
3236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
 
3237
$as_echo_n "checking for main in -lgdi32... " >&6; }
 
3238
if test "${ac_cv_lib_gdi32_main+set}" = set; then :
 
3239
  $as_echo_n "(cached) " >&6
 
3240
else
 
3241
  ac_check_lib_save_LIBS=$LIBS
 
3242
LIBS="-lgdi32  $LIBS"
 
3243
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3244
/* end confdefs.h.  */
 
3245
 
 
3246
 
 
3247
int
 
3248
main ()
 
3249
{
 
3250
return main ();
 
3251
  ;
 
3252
  return 0;
 
3253
}
 
3254
_ACEOF
 
3255
if ac_fn_c_try_link "$LINENO"; then :
 
3256
  ac_cv_lib_gdi32_main=yes
 
3257
else
 
3258
  ac_cv_lib_gdi32_main=no
 
3259
fi
 
3260
rm -f core conftest.err conftest.$ac_objext \
 
3261
    conftest$ac_exeext conftest.$ac_ext
 
3262
LIBS=$ac_check_lib_save_LIBS
 
3263
fi
 
3264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
 
3265
$as_echo "$ac_cv_lib_gdi32_main" >&6; }
 
3266
if test "x$ac_cv_lib_gdi32_main" = x""yes; then :
 
3267
  cat >>confdefs.h <<_ACEOF
 
3268
#define HAVE_LIBGDI32 1
 
3269
_ACEOF
 
3270
 
 
3271
  LIBS="-lgdi32 $LIBS"
 
3272
 
 
3273
fi
 
3274
 
 
3275
 
 
3276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
 
3277
$as_echo_n "checking for main in -lm... " >&6; }
 
3278
if test "${ac_cv_lib_m_main+set}" = set; then :
 
3279
  $as_echo_n "(cached) " >&6
 
3280
else
 
3281
  ac_check_lib_save_LIBS=$LIBS
 
3282
LIBS="-lm  $LIBS"
 
3283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3284
/* end confdefs.h.  */
 
3285
 
 
3286
 
 
3287
int
 
3288
main ()
 
3289
{
 
3290
return main ();
 
3291
  ;
 
3292
  return 0;
 
3293
}
 
3294
_ACEOF
 
3295
if ac_fn_c_try_link "$LINENO"; then :
 
3296
  ac_cv_lib_m_main=yes
 
3297
else
 
3298
  ac_cv_lib_m_main=no
 
3299
fi
 
3300
rm -f core conftest.err conftest.$ac_objext \
 
3301
    conftest$ac_exeext conftest.$ac_ext
 
3302
LIBS=$ac_check_lib_save_LIBS
 
3303
fi
 
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
 
3305
$as_echo "$ac_cv_lib_m_main" >&6; }
 
3306
if test "x$ac_cv_lib_m_main" = x""yes; then :
 
3307
  cat >>confdefs.h <<_ACEOF
 
3308
#define HAVE_LIBM 1
 
3309
_ACEOF
 
3310
 
 
3311
  LIBS="-lm $LIBS"
 
3312
 
 
3313
fi
 
3314
 
 
3315
 
 
3316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullfn in -lpd" >&5
 
3317
$as_echo_n "checking for nullfn in -lpd... " >&6; }
 
3318
if test "${ac_cv_lib_pd_nullfn+set}" = set; then :
 
3319
  $as_echo_n "(cached) " >&6
 
3320
else
 
3321
  ac_check_lib_save_LIBS=$LIBS
 
3322
LIBS="-lpd  $LIBS"
 
3323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3324
/* end confdefs.h.  */
 
3325
 
 
3326
/* Override any GCC internal prototype to avoid an error.
 
3327
   Use char because int might match the return type of a GCC
 
3328
   builtin and then its argument prototype would still apply.  */
 
3329
#ifdef __cplusplus
 
3330
extern "C"
 
3331
#endif
 
3332
char nullfn ();
 
3333
int
 
3334
main ()
 
3335
{
 
3336
return nullfn ();
 
3337
  ;
 
3338
  return 0;
 
3339
}
 
3340
_ACEOF
 
3341
if ac_fn_c_try_link "$LINENO"; then :
 
3342
  ac_cv_lib_pd_nullfn=yes
 
3343
else
 
3344
  ac_cv_lib_pd_nullfn=no
 
3345
fi
 
3346
rm -f core conftest.err conftest.$ac_objext \
 
3347
    conftest$ac_exeext conftest.$ac_ext
 
3348
LIBS=$ac_check_lib_save_LIBS
 
3349
fi
 
3350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pd_nullfn" >&5
 
3351
$as_echo "$ac_cv_lib_pd_nullfn" >&6; }
 
3352
if test "x$ac_cv_lib_pd_nullfn" = x""yes; then :
 
3353
  cat >>confdefs.h <<_ACEOF
 
3354
#define HAVE_LIBPD 1
 
3355
_ACEOF
 
3356
 
 
3357
  LIBS="-lpd $LIBS"
 
3358
 
 
3359
fi
 
3360
 
 
3361
 
 
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
 
3363
$as_echo_n "checking for regcomp in -lregex... " >&6; }
 
3364
if test "${ac_cv_lib_regex_regcomp+set}" = set; then :
 
3365
  $as_echo_n "(cached) " >&6
 
3366
else
 
3367
  ac_check_lib_save_LIBS=$LIBS
 
3368
LIBS="-lregex  $LIBS"
 
3369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3370
/* end confdefs.h.  */
 
3371
 
 
3372
/* Override any GCC internal prototype to avoid an error.
 
3373
   Use char because int might match the return type of a GCC
 
3374
   builtin and then its argument prototype would still apply.  */
 
3375
#ifdef __cplusplus
 
3376
extern "C"
 
3377
#endif
 
3378
char regcomp ();
 
3379
int
 
3380
main ()
 
3381
{
 
3382
return regcomp ();
 
3383
  ;
 
3384
  return 0;
 
3385
}
 
3386
_ACEOF
 
3387
if ac_fn_c_try_link "$LINENO"; then :
 
3388
  ac_cv_lib_regex_regcomp=yes
 
3389
else
 
3390
  ac_cv_lib_regex_regcomp=no
 
3391
fi
 
3392
rm -f core conftest.err conftest.$ac_objext \
 
3393
    conftest$ac_exeext conftest.$ac_ext
 
3394
LIBS=$ac_check_lib_save_LIBS
 
3395
fi
 
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
 
3397
$as_echo "$ac_cv_lib_regex_regcomp" >&6; }
 
3398
if test "x$ac_cv_lib_regex_regcomp" = x""yes; then :
 
3399
  cat >>confdefs.h <<_ACEOF
 
3400
#define HAVE_LIBREGEX 1
 
3401
_ACEOF
 
3402
 
 
3403
  LIBS="-lregex $LIBS"
 
3404
 
 
3405
fi
 
3406
 
 
3407
 
 
3408
 
 
3409
ac_ext=c
 
3410
ac_cpp='$CPP $CPPFLAGS'
 
3411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3415
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3416
# On Suns, sometimes $CPP names a directory.
 
3417
if test -n "$CPP" && test -d "$CPP"; then
 
3418
  CPP=
 
3419
fi
 
3420
if test -z "$CPP"; then
 
3421
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3422
  $as_echo_n "(cached) " >&6
 
3423
else
 
3424
      # Double quotes because CPP needs to be expanded
 
3425
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3426
    do
 
3427
      ac_preproc_ok=false
 
3428
for ac_c_preproc_warn_flag in '' yes
 
3429
do
 
3430
  # Use a header file that comes with gcc, so configuring glibc
 
3431
  # with a fresh cross-compiler works.
 
3432
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3433
  # <limits.h> exists even on freestanding compilers.
 
3434
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3435
  # not just through cpp. "Syntax error" is here to catch this case.
 
3436
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3437
/* end confdefs.h.  */
 
3438
#ifdef __STDC__
 
3439
# include <limits.h>
 
3440
#else
 
3441
# include <assert.h>
 
3442
#endif
 
3443
                     Syntax error
 
3444
_ACEOF
 
3445
if ac_fn_c_try_cpp "$LINENO"; then :
 
3446
 
 
3447
else
 
3448
  # Broken: fails on valid input.
 
3449
continue
 
3450
fi
 
3451
rm -f conftest.err conftest.i conftest.$ac_ext
 
3452
 
 
3453
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3454
  # can be detected and how.
 
3455
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3456
/* end confdefs.h.  */
 
3457
#include <ac_nonexistent.h>
 
3458
_ACEOF
 
3459
if ac_fn_c_try_cpp "$LINENO"; then :
 
3460
  # Broken: success on invalid input.
 
3461
continue
 
3462
else
 
3463
  # Passes both tests.
 
3464
ac_preproc_ok=:
 
3465
break
 
3466
fi
 
3467
rm -f conftest.err conftest.i conftest.$ac_ext
 
3468
 
 
3469
done
 
3470
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3471
rm -f conftest.i conftest.err conftest.$ac_ext
 
3472
if $ac_preproc_ok; then :
 
3473
  break
 
3474
fi
 
3475
 
 
3476
    done
 
3477
    ac_cv_prog_CPP=$CPP
 
3478
 
 
3479
fi
 
3480
  CPP=$ac_cv_prog_CPP
 
3481
else
 
3482
  ac_cv_prog_CPP=$CPP
 
3483
fi
 
3484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3485
$as_echo "$CPP" >&6; }
 
3486
ac_preproc_ok=false
 
3487
for ac_c_preproc_warn_flag in '' yes
 
3488
do
 
3489
  # Use a header file that comes with gcc, so configuring glibc
 
3490
  # with a fresh cross-compiler works.
 
3491
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3492
  # <limits.h> exists even on freestanding compilers.
 
3493
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3494
  # not just through cpp. "Syntax error" is here to catch this case.
 
3495
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3496
/* end confdefs.h.  */
 
3497
#ifdef __STDC__
 
3498
# include <limits.h>
 
3499
#else
 
3500
# include <assert.h>
 
3501
#endif
 
3502
                     Syntax error
 
3503
_ACEOF
 
3504
if ac_fn_c_try_cpp "$LINENO"; then :
 
3505
 
 
3506
else
 
3507
  # Broken: fails on valid input.
 
3508
continue
 
3509
fi
 
3510
rm -f conftest.err conftest.i conftest.$ac_ext
 
3511
 
 
3512
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3513
  # can be detected and how.
 
3514
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3515
/* end confdefs.h.  */
 
3516
#include <ac_nonexistent.h>
 
3517
_ACEOF
 
3518
if ac_fn_c_try_cpp "$LINENO"; then :
 
3519
  # Broken: success on invalid input.
 
3520
continue
 
3521
else
 
3522
  # Passes both tests.
 
3523
ac_preproc_ok=:
 
3524
break
 
3525
fi
 
3526
rm -f conftest.err conftest.i conftest.$ac_ext
 
3527
 
 
3528
done
 
3529
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3530
rm -f conftest.i conftest.err conftest.$ac_ext
 
3531
if $ac_preproc_ok; then :
 
3532
 
 
3533
else
 
3534
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3535
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3536
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
3537
See \`config.log' for more details" "$LINENO" 5 ; }
 
3538
fi
 
3539
 
 
3540
ac_ext=c
 
3541
ac_cpp='$CPP $CPPFLAGS'
 
3542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3545
 
 
3546
 
 
3547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3548
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3549
if test "${ac_cv_path_GREP+set}" = set; then :
 
3550
  $as_echo_n "(cached) " >&6
 
3551
else
 
3552
  if test -z "$GREP"; then
 
3553
  ac_path_GREP_found=false
 
3554
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3555
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3556
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3557
do
 
3558
  IFS=$as_save_IFS
 
3559
  test -z "$as_dir" && as_dir=.
 
3560
    for ac_prog in grep ggrep; do
 
3561
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3562
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3563
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3564
# Check for GNU ac_path_GREP and select it if it is found.
 
3565
  # Check for GNU $ac_path_GREP
 
3566
case `"$ac_path_GREP" --version 2>&1` in
 
3567
*GNU*)
 
3568
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3569
*)
 
3570
  ac_count=0
 
3571
  $as_echo_n 0123456789 >"conftest.in"
 
3572
  while :
 
3573
  do
 
3574
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3575
    mv "conftest.tmp" "conftest.in"
 
3576
    cp "conftest.in" "conftest.nl"
 
3577
    $as_echo 'GREP' >> "conftest.nl"
 
3578
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3579
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3580
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3581
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3582
      # Best one so far, save it but keep looking for a better one
 
3583
      ac_cv_path_GREP="$ac_path_GREP"
 
3584
      ac_path_GREP_max=$ac_count
 
3585
    fi
 
3586
    # 10*(2^10) chars as input seems more than enough
 
3587
    test $ac_count -gt 10 && break
 
3588
  done
 
3589
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3590
esac
 
3591
 
 
3592
      $ac_path_GREP_found && break 3
 
3593
    done
 
3594
  done
 
3595
  done
 
3596
IFS=$as_save_IFS
 
3597
  if test -z "$ac_cv_path_GREP"; then
 
3598
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3599
  fi
 
3600
else
 
3601
  ac_cv_path_GREP=$GREP
 
3602
fi
 
3603
 
 
3604
fi
 
3605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3606
$as_echo "$ac_cv_path_GREP" >&6; }
 
3607
 GREP="$ac_cv_path_GREP"
 
3608
 
 
3609
 
 
3610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3611
$as_echo_n "checking for egrep... " >&6; }
 
3612
if test "${ac_cv_path_EGREP+set}" = set; then :
 
3613
  $as_echo_n "(cached) " >&6
 
3614
else
 
3615
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3616
   then ac_cv_path_EGREP="$GREP -E"
 
3617
   else
 
3618
     if test -z "$EGREP"; then
 
3619
  ac_path_EGREP_found=false
 
3620
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3621
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3622
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3623
do
 
3624
  IFS=$as_save_IFS
 
3625
  test -z "$as_dir" && as_dir=.
 
3626
    for ac_prog in egrep; do
 
3627
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3628
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3629
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3630
# Check for GNU ac_path_EGREP and select it if it is found.
 
3631
  # Check for GNU $ac_path_EGREP
 
3632
case `"$ac_path_EGREP" --version 2>&1` in
 
3633
*GNU*)
 
3634
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3635
*)
 
3636
  ac_count=0
 
3637
  $as_echo_n 0123456789 >"conftest.in"
 
3638
  while :
 
3639
  do
 
3640
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3641
    mv "conftest.tmp" "conftest.in"
 
3642
    cp "conftest.in" "conftest.nl"
 
3643
    $as_echo 'EGREP' >> "conftest.nl"
 
3644
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3645
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3646
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3647
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3648
      # Best one so far, save it but keep looking for a better one
 
3649
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3650
      ac_path_EGREP_max=$ac_count
 
3651
    fi
 
3652
    # 10*(2^10) chars as input seems more than enough
 
3653
    test $ac_count -gt 10 && break
 
3654
  done
 
3655
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3656
esac
 
3657
 
 
3658
      $ac_path_EGREP_found && break 3
 
3659
    done
 
3660
  done
 
3661
  done
 
3662
IFS=$as_save_IFS
 
3663
  if test -z "$ac_cv_path_EGREP"; then
 
3664
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3665
  fi
 
3666
else
 
3667
  ac_cv_path_EGREP=$EGREP
 
3668
fi
 
3669
 
 
3670
   fi
 
3671
fi
 
3672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
3673
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3674
 EGREP="$ac_cv_path_EGREP"
 
3675
 
 
3676
 
 
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
3678
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3679
if test "${ac_cv_header_stdc+set}" = set; then :
 
3680
  $as_echo_n "(cached) " >&6
 
3681
else
 
3682
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3683
/* end confdefs.h.  */
 
3684
#include <stdlib.h>
 
3685
#include <stdarg.h>
 
3686
#include <string.h>
 
3687
#include <float.h>
 
3688
 
 
3689
int
 
3690
main ()
 
3691
{
 
3692
 
 
3693
  ;
 
3694
  return 0;
 
3695
}
 
3696
_ACEOF
 
3697
if ac_fn_c_try_compile "$LINENO"; then :
 
3698
  ac_cv_header_stdc=yes
 
3699
else
 
3700
  ac_cv_header_stdc=no
 
3701
fi
 
3702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3703
 
 
3704
if test $ac_cv_header_stdc = yes; then
 
3705
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3707
/* end confdefs.h.  */
 
3708
#include <string.h>
 
3709
 
 
3710
_ACEOF
 
3711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3712
  $EGREP "memchr" >/dev/null 2>&1; then :
 
3713
 
 
3714
else
 
3715
  ac_cv_header_stdc=no
 
3716
fi
 
3717
rm -f conftest*
 
3718
 
 
3719
fi
 
3720
 
 
3721
if test $ac_cv_header_stdc = yes; then
 
3722
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3723
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3724
/* end confdefs.h.  */
 
3725
#include <stdlib.h>
 
3726
 
 
3727
_ACEOF
 
3728
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3729
  $EGREP "free" >/dev/null 2>&1; then :
 
3730
 
 
3731
else
 
3732
  ac_cv_header_stdc=no
 
3733
fi
 
3734
rm -f conftest*
 
3735
 
 
3736
fi
 
3737
 
 
3738
if test $ac_cv_header_stdc = yes; then
 
3739
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3740
  if test "$cross_compiling" = yes; then :
 
3741
  :
 
3742
else
 
3743
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3744
/* end confdefs.h.  */
 
3745
#include <ctype.h>
 
3746
#include <stdlib.h>
 
3747
#if ((' ' & 0x0FF) == 0x020)
 
3748
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3749
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3750
#else
 
3751
# define ISLOWER(c) \
 
3752
                   (('a' <= (c) && (c) <= 'i') \
 
3753
                     || ('j' <= (c) && (c) <= 'r') \
 
3754
                     || ('s' <= (c) && (c) <= 'z'))
 
3755
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3756
#endif
 
3757
 
 
3758
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3759
int
 
3760
main ()
 
3761
{
 
3762
  int i;
 
3763
  for (i = 0; i < 256; i++)
 
3764
    if (XOR (islower (i), ISLOWER (i))
 
3765
        || toupper (i) != TOUPPER (i))
 
3766
      return 2;
 
3767
  return 0;
 
3768
}
 
3769
_ACEOF
 
3770
if ac_fn_c_try_run "$LINENO"; then :
 
3771
 
 
3772
else
 
3773
  ac_cv_header_stdc=no
 
3774
fi
 
3775
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
3776
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3777
fi
 
3778
 
 
3779
fi
 
3780
fi
 
3781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
3782
$as_echo "$ac_cv_header_stdc" >&6; }
 
3783
if test $ac_cv_header_stdc = yes; then
 
3784
 
 
3785
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
3786
 
 
3787
fi
 
3788
 
 
3789
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3790
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3791
                  inttypes.h stdint.h unistd.h
 
3792
do :
 
3793
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3794
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
3795
"
 
3796
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
3797
  cat >>confdefs.h <<_ACEOF
 
3798
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3799
_ACEOF
 
3800
 
 
3801
fi
 
3802
 
 
3803
done
 
3804
 
 
3805
 
 
3806
for ac_header in stdlib.h stdio.h string.h math.h time.h sys/time.h regex.h alloca.h
 
3807
do :
 
3808
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3809
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
3810
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
3811
  cat >>confdefs.h <<_ACEOF
 
3812
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3813
_ACEOF
 
3814
 
 
3815
fi
 
3816
 
 
3817
done
 
3818
 
 
3819
 
 
3820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
3821
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
3822
if test "${ac_cv_header_time+set}" = set; then :
 
3823
  $as_echo_n "(cached) " >&6
 
3824
else
 
3825
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3826
/* end confdefs.h.  */
 
3827
#include <sys/types.h>
 
3828
#include <sys/time.h>
 
3829
#include <time.h>
 
3830
 
 
3831
int
 
3832
main ()
 
3833
{
 
3834
if ((struct tm *) 0)
 
3835
return 0;
 
3836
  ;
 
3837
  return 0;
 
3838
}
 
3839
_ACEOF
 
3840
if ac_fn_c_try_compile "$LINENO"; then :
 
3841
  ac_cv_header_time=yes
 
3842
else
 
3843
  ac_cv_header_time=no
 
3844
fi
 
3845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3846
fi
 
3847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
3848
$as_echo "$ac_cv_header_time" >&6; }
 
3849
if test $ac_cv_header_time = yes; then
 
3850
 
 
3851
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 
3852
 
 
3853
fi
 
3854
 
 
3855
 
 
3856
### make-depend flags
 
3857
if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
 
3858
    MAKEDEP_FLAGS="-MM"
 
3859
 
 
3860
else
 
3861
    MAKEDEP_FLAGS="-M"
 
3862
 
 
3863
fi
 
3864
 
 
3865
 
 
3866
 
 
3867
 
 
3868
 
 
3869
  for ac_header in $ac_header_list
 
3870
do :
 
3871
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3872
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
3873
"
 
3874
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
3875
  cat >>confdefs.h <<_ACEOF
 
3876
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3877
_ACEOF
 
3878
 
 
3879
fi
 
3880
 
 
3881
done
 
3882
 
 
3883
 
 
3884
 
 
3885
 
 
3886
 
 
3887
 
 
3888
 
 
3889
 
 
3890
for ac_func in getpagesize
 
3891
do :
 
3892
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 
3893
if test "x$ac_cv_func_getpagesize" = x""yes; then :
 
3894
  cat >>confdefs.h <<_ACEOF
 
3895
#define HAVE_GETPAGESIZE 1
 
3896
_ACEOF
 
3897
 
 
3898
fi
 
3899
done
 
3900
 
 
3901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
 
3902
$as_echo_n "checking for working mmap... " >&6; }
 
3903
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
 
3904
  $as_echo_n "(cached) " >&6
 
3905
else
 
3906
  if test "$cross_compiling" = yes; then :
 
3907
  ac_cv_func_mmap_fixed_mapped=no
 
3908
else
 
3909
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3910
/* end confdefs.h.  */
 
3911
$ac_includes_default
 
3912
/* malloc might have been renamed as rpl_malloc. */
 
3913
#undef malloc
 
3914
 
 
3915
/* Thanks to Mike Haertel and Jim Avera for this test.
 
3916
   Here is a matrix of mmap possibilities:
 
3917
        mmap private not fixed
 
3918
        mmap private fixed at somewhere currently unmapped
 
3919
        mmap private fixed at somewhere already mapped
 
3920
        mmap shared not fixed
 
3921
        mmap shared fixed at somewhere currently unmapped
 
3922
        mmap shared fixed at somewhere already mapped
 
3923
   For private mappings, we should verify that changes cannot be read()
 
3924
   back from the file, nor mmap's back from the file at a different
 
3925
   address.  (There have been systems where private was not correctly
 
3926
   implemented like the infamous i386 svr4.0, and systems where the
 
3927
   VM page cache was not coherent with the file system buffer cache
 
3928
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
3929
   For shared mappings, we should conversely verify that changes get
 
3930
   propagated back to all the places they're supposed to be.
 
3931
 
 
3932
   Grep wants private fixed already mapped.
 
3933
   The main things grep needs to know about mmap are:
 
3934
   * does it exist and is it safe to write into the mmap'd area
 
3935
   * how to use it (BSD variants)  */
 
3936
 
 
3937
#include <fcntl.h>
 
3938
#include <sys/mman.h>
 
3939
 
 
3940
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 
3941
char *malloc ();
 
3942
#endif
 
3943
 
 
3944
/* This mess was copied from the GNU getpagesize.h.  */
 
3945
#ifndef HAVE_GETPAGESIZE
 
3946
# ifdef _SC_PAGESIZE
 
3947
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
3948
# else /* no _SC_PAGESIZE */
 
3949
#  ifdef HAVE_SYS_PARAM_H
 
3950
#   include <sys/param.h>
 
3951
#   ifdef EXEC_PAGESIZE
 
3952
#    define getpagesize() EXEC_PAGESIZE
 
3953
#   else /* no EXEC_PAGESIZE */
 
3954
#    ifdef NBPG
 
3955
#     define getpagesize() NBPG * CLSIZE
 
3956
#     ifndef CLSIZE
 
3957
#      define CLSIZE 1
 
3958
#     endif /* no CLSIZE */
 
3959
#    else /* no NBPG */
 
3960
#     ifdef NBPC
 
3961
#      define getpagesize() NBPC
 
3962
#     else /* no NBPC */
 
3963
#      ifdef PAGESIZE
 
3964
#       define getpagesize() PAGESIZE
 
3965
#      endif /* PAGESIZE */
 
3966
#     endif /* no NBPC */
 
3967
#    endif /* no NBPG */
 
3968
#   endif /* no EXEC_PAGESIZE */
 
3969
#  else /* no HAVE_SYS_PARAM_H */
 
3970
#   define getpagesize() 8192   /* punt totally */
 
3971
#  endif /* no HAVE_SYS_PARAM_H */
 
3972
# endif /* no _SC_PAGESIZE */
 
3973
 
 
3974
#endif /* no HAVE_GETPAGESIZE */
 
3975
 
 
3976
int
 
3977
main ()
 
3978
{
 
3979
  char *data, *data2, *data3;
 
3980
  const char *cdata2;
 
3981
  int i, pagesize;
 
3982
  int fd, fd2;
 
3983
 
 
3984
  pagesize = getpagesize ();
 
3985
 
 
3986
  /* First, make a file with some known garbage in it. */
 
3987
  data = (char *) malloc (pagesize);
 
3988
  if (!data)
 
3989
    return 1;
 
3990
  for (i = 0; i < pagesize; ++i)
 
3991
    *(data + i) = rand ();
 
3992
  umask (0);
 
3993
  fd = creat ("conftest.mmap", 0600);
 
3994
  if (fd < 0)
 
3995
    return 2;
 
3996
  if (write (fd, data, pagesize) != pagesize)
 
3997
    return 3;
 
3998
  close (fd);
 
3999
 
 
4000
  /* Next, check that the tail of a page is zero-filled.  File must have
 
4001
     non-zero length, otherwise we risk SIGBUS for entire page.  */
 
4002
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
 
4003
  if (fd2 < 0)
 
4004
    return 4;
 
4005
  cdata2 = "";
 
4006
  if (write (fd2, cdata2, 1) != 1)
 
4007
    return 5;
 
4008
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
 
4009
  if (data2 == MAP_FAILED)
 
4010
    return 6;
 
4011
  for (i = 0; i < pagesize; ++i)
 
4012
    if (*(data2 + i))
 
4013
      return 7;
 
4014
  close (fd2);
 
4015
  if (munmap (data2, pagesize))
 
4016
    return 8;
 
4017
 
 
4018
  /* Next, try to mmap the file at a fixed address which already has
 
4019
     something else allocated at it.  If we can, also make sure that
 
4020
     we see the same garbage.  */
 
4021
  fd = open ("conftest.mmap", O_RDWR);
 
4022
  if (fd < 0)
 
4023
    return 9;
 
4024
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
4025
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
4026
    return 10;
 
4027
  for (i = 0; i < pagesize; ++i)
 
4028
    if (*(data + i) != *(data2 + i))
 
4029
      return 11;
 
4030
 
 
4031
  /* Finally, make sure that changes to the mapped area do not
 
4032
     percolate back to the file as seen by read().  (This is a bug on
 
4033
     some variants of i386 svr4.0.)  */
 
4034
  for (i = 0; i < pagesize; ++i)
 
4035
    *(data2 + i) = *(data2 + i) + 1;
 
4036
  data3 = (char *) malloc (pagesize);
 
4037
  if (!data3)
 
4038
    return 12;
 
4039
  if (read (fd, data3, pagesize) != pagesize)
 
4040
    return 13;
 
4041
  for (i = 0; i < pagesize; ++i)
 
4042
    if (*(data + i) != *(data3 + i))
 
4043
      return 14;
 
4044
  close (fd);
 
4045
  return 0;
 
4046
}
 
4047
_ACEOF
 
4048
if ac_fn_c_try_run "$LINENO"; then :
 
4049
  ac_cv_func_mmap_fixed_mapped=yes
 
4050
else
 
4051
  ac_cv_func_mmap_fixed_mapped=no
 
4052
fi
 
4053
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4054
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4055
fi
 
4056
 
 
4057
fi
 
4058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
4059
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
 
4060
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
4061
 
 
4062
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
 
4063
 
 
4064
fi
 
4065
rm -f conftest.mmap conftest.txt
 
4066
 
 
4067
for ac_func in select socket strerror
 
4068
do :
 
4069
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4070
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
4071
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
4072
  cat >>confdefs.h <<_ACEOF
 
4073
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4074
_ACEOF
 
4075
 
 
4076
fi
 
4077
done
 
4078
 
 
4079
 
 
4080
 
 
4081
# Check whether --enable-fat-binary was given.
 
4082
if test "${enable_fat_binary+set}" = set; then :
 
4083
  enableval=$enable_fat_binary; fat_binary=$enableval
 
4084
else
 
4085
  fat_binary=no
 
4086
fi
 
4087
 
 
4088
if test "$fat_binary" != no; then
 
4089
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architectures" >&5
 
4090
$as_echo_n "checking target architectures... " >&6; }
 
4091
 
 
4092
    # Respect TARGET_ARCHS setting from environment if available.
 
4093
    if test -z "$TARGET_ARCHS"; then
 
4094
        # Respect ARCH given to --enable-fat-binary if present.
 
4095
     if test "$fat_binary" != yes; then
 
4096
            TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '`
 
4097
     else
 
4098
            # Choose a default set of architectures based upon platform.
 
4099
      TARGET_ARCHS="ppc i386"
 
4100
     fi
 
4101
    fi
 
4102
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ARCHS" >&5
 
4103
$as_echo "$TARGET_ARCHS" >&6; }
 
4104
 
 
4105
 
 
4106
   # /usr/lib/arch_tool -archify_list $TARGET_ARCHS
 
4107
   ARCH_FLAG=""
 
4108
   for archs in $TARGET_ARCHS
 
4109
   do
 
4110
    ARCH_FLAG="$ARCH_FLAG -arch $archs"
 
4111
   done
 
4112
 
 
4113
   if test "x$ARCH_FLAG" != "x"; then
 
4114
 
 
4115
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts \"$ARCH_FLAG\"" >&5
 
4116
$as_echo_n "checking whether $CC accepts \"$ARCH_FLAG\"... " >&6; }
 
4117
cat > conftest.c << EOF
 
4118
int main(){
 
4119
  return 0;
 
4120
}
 
4121
EOF
 
4122
if $CC $CFLAGS $ARCH_FLAG -o conftest.o conftest.c > /dev/null 2>&1
 
4123
then
 
4124
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4125
$as_echo "yes" >&6; }
 
4126
  CFLAGS="${CFLAGS} $ARCH_FLAG"
 
4127
 
 
4128
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CPP accepts \"$ARCH_FLAG\"" >&5
 
4129
$as_echo_n "checking whether $CPP accepts \"$ARCH_FLAG\"... " >&6; }
 
4130
  temp_check_cppflags="${CPPFLAGS}"
 
4131
  CPPFLAGS="$ARCH_FLAG ${CPPFLAGS}"
 
4132
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4133
/* end confdefs.h.  */
 
4134
int main(void){return 0;}
 
4135
_ACEOF
 
4136
if ac_fn_c_try_cpp "$LINENO"; then :
 
4137
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4138
$as_echo "yes" >&6; }
 
4139
else
 
4140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4141
$as_echo "no" >&6; }; CPPFLAGS="${temp_check_cppflags}"
 
4142
fi
 
4143
rm -f conftest.err conftest.i conftest.$ac_ext
 
4144
 
 
4145
 
 
4146
else
 
4147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4148
$as_echo "no" >&6; }
 
4149
  ARCH_FLAG=""
 
4150
fi
 
4151
 
 
4152
   fi
 
4153
 
 
4154
   if test "x$ARCH_FLAG" != "x"; then
 
4155
 
 
4156
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"$ARCH_FLAG\"" >&5
 
4157
$as_echo_n "checking whether linker accepts \"$ARCH_FLAG\"... " >&6; }
 
4158
  temp_check_ldflags_org="${LDFLAGS}"
 
4159
  LDFLAGS="$ARCH_FLAG ${LDFLAGS}"
 
4160
 
 
4161
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4162
/* end confdefs.h.  */
 
4163
 
 
4164
int
 
4165
main ()
 
4166
{
 
4167
 
 
4168
  ;
 
4169
  return 0;
 
4170
}
 
4171
_ACEOF
 
4172
if ac_fn_c_try_link "$LINENO"; then :
 
4173
  temp_check_ldflags_success="yes"
 
4174
else
 
4175
  temp_check_ldflags_success="no"
 
4176
fi
 
4177
rm -f core conftest.err conftest.$ac_objext \
 
4178
    conftest$ac_exeext conftest.$ac_ext
 
4179
 
 
4180
  if test "x$temp_check_ldflags_success" = "xyes"; then
 
4181
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4182
$as_echo "yes" >&6; }
 
4183
 
 
4184
  else
 
4185
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4186
$as_echo "no" >&6; }
 
4187
    LDFLAGS="$temp_check_ldflags_org"
 
4188
    ARCH_FLAG=""
 
4189
  fi
 
4190
 
 
4191
   fi
 
4192
 
 
4193
 
 
4194
fi
 
4195
 
 
4196
 
 
4197
 
 
4198
 
 
4199
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts \"-mms-bitfields\"" >&5
 
4200
$as_echo_n "checking whether $CC accepts \"-mms-bitfields\"... " >&6; }
 
4201
cat > conftest.c << EOF
 
4202
int main(){
 
4203
  return 0;
 
4204
}
 
4205
EOF
 
4206
if $CC $CFLAGS -mms-bitfields -o conftest.o conftest.c > /dev/null 2>&1
 
4207
then
 
4208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4209
$as_echo "yes" >&6; }
 
4210
  CFLAGS="${CFLAGS} -mms-bitfields"
 
4211
 
 
4212
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CPP accepts \"-mms-bitfields\"" >&5
 
4213
$as_echo_n "checking whether $CPP accepts \"-mms-bitfields\"... " >&6; }
 
4214
  temp_check_cppflags="${CPPFLAGS}"
 
4215
  CPPFLAGS="-mms-bitfields ${CPPFLAGS}"
 
4216
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4217
/* end confdefs.h.  */
 
4218
int main(void){return 0;}
 
4219
_ACEOF
 
4220
if ac_fn_c_try_cpp "$LINENO"; then :
 
4221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4222
$as_echo "yes" >&6; }
 
4223
else
 
4224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4225
$as_echo "no" >&6; }; CPPFLAGS="${temp_check_cppflags}"
 
4226
fi
 
4227
rm -f conftest.err conftest.i conftest.$ac_ext
 
4228
 
 
4229
 
 
4230
else
 
4231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4232
$as_echo "no" >&6; }
 
4233
 
 
4234
fi
 
4235
 
 
4236
 
 
4237
if test "x$enable_PIC" != "xno"; then
 
4238
 
 
4239
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts \"-fPIC\"" >&5
 
4240
$as_echo_n "checking whether $CC accepts \"-fPIC\"... " >&6; }
 
4241
cat > conftest.c << EOF
 
4242
int main(){
 
4243
  return 0;
 
4244
}
 
4245
EOF
 
4246
if $CC $CFLAGS -fPIC -o conftest.o conftest.c > /dev/null 2>&1
 
4247
then
 
4248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4249
$as_echo "yes" >&6; }
 
4250
  CFLAGS="${CFLAGS} -fPIC"
 
4251
 
 
4252
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CPP accepts \"-fPIC\"" >&5
 
4253
$as_echo_n "checking whether $CPP accepts \"-fPIC\"... " >&6; }
 
4254
  temp_check_cppflags="${CPPFLAGS}"
 
4255
  CPPFLAGS="-fPIC ${CPPFLAGS}"
 
4256
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4257
/* end confdefs.h.  */
 
4258
int main(void){return 0;}
 
4259
_ACEOF
 
4260
if ac_fn_c_try_cpp "$LINENO"; then :
 
4261
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4262
$as_echo "yes" >&6; }
 
4263
else
 
4264
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4265
$as_echo "no" >&6; }; CPPFLAGS="${temp_check_cppflags}"
 
4266
fi
 
4267
rm -f conftest.err conftest.i conftest.$ac_ext
 
4268
 
 
4269
 
 
4270
else
 
4271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4272
$as_echo "no" >&6; }
 
4273
 
 
4274
fi
 
4275
 
 
4276
fi
 
4277
 
 
4278
 
 
4279
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts \"-mfpmath=sse -msse\"" >&5
 
4280
$as_echo_n "checking whether $CC accepts \"-mfpmath=sse -msse\"... " >&6; }
 
4281
cat > conftest.c << EOF
 
4282
int main(){
 
4283
  return 0;
 
4284
}
 
4285
EOF
 
4286
if $CC $CFLAGS -mfpmath=sse -msse -o conftest.o conftest.c > /dev/null 2>&1
 
4287
then
 
4288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4289
$as_echo "yes" >&6; }
 
4290
  CFLAGS="${CFLAGS} -mfpmath=sse -msse"
 
4291
 
 
4292
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CPP accepts \"-mfpmath=sse -msse\"" >&5
 
4293
$as_echo_n "checking whether $CPP accepts \"-mfpmath=sse -msse\"... " >&6; }
 
4294
  temp_check_cppflags="${CPPFLAGS}"
 
4295
  CPPFLAGS="-mfpmath=sse -msse ${CPPFLAGS}"
 
4296
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4297
/* end confdefs.h.  */
 
4298
int main(void){return 0;}
 
4299
_ACEOF
 
4300
if ac_fn_c_try_cpp "$LINENO"; then :
 
4301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4302
$as_echo "yes" >&6; }
 
4303
else
 
4304
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4305
$as_echo "no" >&6; }; CPPFLAGS="${temp_check_cppflags}"
 
4306
fi
 
4307
rm -f conftest.err conftest.i conftest.$ac_ext
 
4308
 
 
4309
 
 
4310
else
 
4311
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4312
$as_echo "no" >&6; }
 
4313
 
 
4314
fi
 
4315
 
 
4316
 
 
4317
if test "x$LD" = "x"
 
4318
then
 
4319
 if test "x$host" != "x"
 
4320
 then
 
4321
  LD=${host}-ld
 
4322
  if $(which ${LD} > /dev/null)
 
4323
  then
 
4324
    :
 
4325
  else
 
4326
    LD=""
 
4327
  fi
 
4328
 fi
 
4329
fi
 
4330
LD=${LD:=$CC}
 
4331
 
 
4332
 
 
4333
 
 
4334
if test "x$STRIP" = "x"
 
4335
then
 
4336
 if test "x$host" != "x"
 
4337
 then
 
4338
  STRIP=${host}-strip
 
4339
  if $(which ${host}-strip > /dev/null)
 
4340
  then
 
4341
    :
 
4342
  else
 
4343
    STRIP="echo fake strip"
 
4344
  fi
 
4345
 else
 
4346
  STRIP=strip
 
4347
 fi
 
4348
fi
 
4349
 
 
4350
 
 
4351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"pd>=0.37\"" >&5
 
4352
$as_echo_n "checking \"pd>=0.37\"... " >&6; }
 
4353
 
 
4354
if test "$with_pdversion" != ""
 
4355
then
 
4356
  echo -n "($with_pdversion)... "
 
4357
  PD_VERSION="$with_pdversion"
 
4358
else
 
4359
 if test "x$cross_compiling" = "xno"
 
4360
 then
 
4361
 
 
4362
cat > conftest.c << EOF
 
4363
#include <stdio.h>
 
4364
#include "m_pd.h"
 
4365
int main(){
 
4366
  printf("%d.%d\n", PD_MAJOR_VERSION, PD_MINOR_VERSION);
 
4367
  return 0;
 
4368
}
 
4369
EOF
 
4370
  if $CC $CFLAGS -o conftest.o conftest.c > /dev/null 2>&1
 
4371
  then
 
4372
   PD_VERSION=$(./conftest.o)
 
4373
  else
 
4374
   PD_VERSION=""
 
4375
  fi
 
4376
 else
 
4377
    echo -n "(X)..."
 
4378
  PD_VERSION="0.38"
 
4379
 fi
 
4380
fi
 
4381
 
 
4382
let PD_MAJORVERSION=$(echo $PD_VERSION | cut -d"." -f1)+0
 
4383
let PD_MINORVERSION=$(echo $PD_VERSION | cut -d"." -f2)+0
 
4384
 
 
4385
if test "$PD_MAJORVERSION" -gt 0 || test "$PD_MINORVERSION" -ge 37
 
4386
then
 
4387
  REFERENCEPATH=extra/
 
4388
  echo "yes"
 
4389
else
 
4390
  REFERENCEPATH=doc/5.reference/
 
4391
  echo "no"
 
4392
fi
 
4393
 
 
4394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"zexy-version\"" >&5
 
4395
$as_echo_n "checking \"zexy-version\"... " >&6; }
 
4396
 
 
4397
if test "$with_version" != ""
 
4398
then
 
4399
  echo -n "($with_version)...forced "
 
4400
  LIBRARY_VERSION="$with_version"
 
4401
else
 
4402
 if test "x$cross_compiling" = "xno"
 
4403
 then
 
4404
cat > conftest.c << EOF
 
4405
#include <stdio.h>
 
4406
#include "zexy.h"
 
4407
int main(){
 
4408
  printf("%s\n", VERSION);
 
4409
  return 0;
 
4410
}
 
4411
EOF
 
4412
 
 
4413
  if $CC $CFLAGS $LDFLAGS -o conftest.o conftest.c > /dev/null 2>&1
 
4414
  then
 
4415
   LIBRARY_VERSION=$(./conftest.o)
 
4416
   echo "$LIBRARY_VERSION"
 
4417
  else
 
4418
   LIBRARY_VERSION="X"
 
4419
   echo "(unknown)"
 
4420
  fi
 
4421
 else
 
4422
   LIBRARY_VERSION="X"
 
4423
   echo "(X)"
 
4424
 fi
 
4425
fi
 
4426
 
 
4427
 
 
4428
 
 
4429
if test x${KERN} = xLinux;
 
4430
then
 
4431
  EXT=pd_linux
 
4432
  STRIPFLAGS="--strip-unneeded"
 
4433
fi
 
4434
 
 
4435
if test x${KERN} = xDarwin;
 
4436
then
 
4437
  LD=${CC}
 
4438
  EXT=pd_darwin
 
4439
  STRIP="echo faking strip"
 
4440
  STRIPFLAGS=
 
4441
 
 
4442
  if test "$enable_lpt" = "yes"; then
 
4443
    as_fn_error $? "\"lpt not supported on this platform\"" "$LINENO" 5 ;
 
4444
  fi
 
4445
  if test "$enable_lpt" = ""; then
 
4446
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"lpt not supported on this platform - disabling\"" >&5
 
4447
$as_echo "$as_me: WARNING: \"lpt not supported on this platform - disabling\"" >&2;};
 
4448
    enable_lpt="no";
 
4449
  fi
 
4450
fi
 
4451
 
 
4452
# linux
 
4453
 
 
4454
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"-shared -Wl,--export-dynamic\"" >&5
 
4455
$as_echo_n "checking whether linker accepts \"-shared -Wl,--export-dynamic\"... " >&6; }
 
4456
  temp_check_ldflags_org="${LDFLAGS}"
 
4457
  LDFLAGS="-shared -Wl,--export-dynamic ${LDFLAGS}"
 
4458
 
 
4459
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4460
/* end confdefs.h.  */
 
4461
 
 
4462
int
 
4463
main ()
 
4464
{
 
4465
 
 
4466
  ;
 
4467
  return 0;
 
4468
}
 
4469
_ACEOF
 
4470
if ac_fn_c_try_link "$LINENO"; then :
 
4471
  temp_check_ldflags_success="yes"
 
4472
else
 
4473
  temp_check_ldflags_success="no"
 
4474
fi
 
4475
rm -f core conftest.err conftest.$ac_objext \
 
4476
    conftest$ac_exeext conftest.$ac_ext
 
4477
 
 
4478
  if test "x$temp_check_ldflags_success" = "xyes"; then
 
4479
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4480
$as_echo "yes" >&6; }
 
4481
 
 
4482
  else
 
4483
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4484
$as_echo "no" >&6; }
 
4485
    LDFLAGS="$temp_check_ldflags_org"
 
4486
 
 
4487
  fi
 
4488
 
 
4489
 
 
4490
#osx
 
4491
 
 
4492
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"-bundle -mmacosx-version-min=10.3 -undefined dynamic_lookup\"" >&5
 
4493
$as_echo_n "checking whether linker accepts \"-bundle -mmacosx-version-min=10.3 -undefined dynamic_lookup\"... " >&6; }
 
4494
  temp_check_ldflags_org="${LDFLAGS}"
 
4495
  LDFLAGS="-bundle -mmacosx-version-min=10.3 -undefined dynamic_lookup ${LDFLAGS}"
 
4496
 
 
4497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4498
/* end confdefs.h.  */
 
4499
 
 
4500
int
 
4501
main ()
 
4502
{
 
4503
 
 
4504
  ;
 
4505
  return 0;
 
4506
}
 
4507
_ACEOF
 
4508
if ac_fn_c_try_link "$LINENO"; then :
 
4509
  temp_check_ldflags_success="yes"
 
4510
else
 
4511
  temp_check_ldflags_success="no"
 
4512
fi
 
4513
rm -f core conftest.err conftest.$ac_objext \
 
4514
    conftest$ac_exeext conftest.$ac_ext
 
4515
 
 
4516
  if test "x$temp_check_ldflags_success" = "xyes"; then
 
4517
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4518
$as_echo "yes" >&6; }
 
4519
 
 
4520
  else
 
4521
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4522
$as_echo "no" >&6; }
 
4523
    LDFLAGS="$temp_check_ldflags_org"
 
4524
 
 
4525
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"-dynamiclib -mmacosx-version-min=10.3 -undefined dynamic_lookup\"" >&5
 
4526
$as_echo_n "checking whether linker accepts \"-dynamiclib -mmacosx-version-min=10.3 -undefined dynamic_lookup\"... " >&6; }
 
4527
  temp_check_ldflags_org="${LDFLAGS}"
 
4528
  LDFLAGS="-dynamiclib -mmacosx-version-min=10.3 -undefined dynamic_lookup ${LDFLAGS}"
 
4529
 
 
4530
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4531
/* end confdefs.h.  */
 
4532
 
 
4533
int
 
4534
main ()
 
4535
{
 
4536
 
 
4537
  ;
 
4538
  return 0;
 
4539
}
 
4540
_ACEOF
 
4541
if ac_fn_c_try_link "$LINENO"; then :
 
4542
  temp_check_ldflags_success="yes"
 
4543
else
 
4544
  temp_check_ldflags_success="no"
 
4545
fi
 
4546
rm -f core conftest.err conftest.$ac_objext \
 
4547
    conftest$ac_exeext conftest.$ac_ext
 
4548
 
 
4549
  if test "x$temp_check_ldflags_success" = "xyes"; then
 
4550
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4551
$as_echo "yes" >&6; }
 
4552
 
 
4553
  else
 
4554
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4555
$as_echo "no" >&6; }
 
4556
    LDFLAGS="$temp_check_ldflags_org"
 
4557
 
 
4558
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts \"-bundle -undefined suppress -flat_namespace\"" >&5
 
4559
$as_echo_n "checking whether linker accepts \"-bundle -undefined suppress -flat_namespace\"... " >&6; }
 
4560
  temp_check_ldflags_org="${LDFLAGS}"
 
4561
  LDFLAGS="-bundle -undefined suppress -flat_namespace ${LDFLAGS}"
 
4562
 
 
4563
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4564
/* end confdefs.h.  */
 
4565
 
 
4566
int
 
4567
main ()
 
4568
{
 
4569
 
 
4570
  ;
 
4571
  return 0;
 
4572
}
 
4573
_ACEOF
 
4574
if ac_fn_c_try_link "$LINENO"; then :
 
4575
  temp_check_ldflags_success="yes"
 
4576
else
 
4577
  temp_check_ldflags_success="no"
 
4578
fi
 
4579
rm -f core conftest.err conftest.$ac_objext \
 
4580
    conftest$ac_exeext conftest.$ac_ext
 
4581
 
 
4582
  if test "x$temp_check_ldflags_success" = "xyes"; then
 
4583
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4584
$as_echo "yes" >&6; }
 
4585
 
 
4586
  else
 
4587
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4588
$as_echo "no" >&6; }
 
4589
    LDFLAGS="$temp_check_ldflags_org"
 
4590
 
 
4591
  fi
 
4592
 
 
4593
 
 
4594
  fi
 
4595
 
 
4596
 
 
4597
  fi
 
4598
 
 
4599
 
 
4600
 
 
4601
 
 
4602
 
 
4603
if test x${KERN} = xIRIX64; then
 
4604
  LDFLAGS="-n32 -DUNIX -DIRIX -DN32 -woff 1080,1064,1185 \
 
4605
        -OPT:roundoff=3 -OPT:IEEE_arithmetic=3 -OPT:cray_ivdep=true \
 
4606
        -shared -rdata_shared"
 
4607
  EXT=pd_irix6
 
4608
    STRIPFLAGS="--strip-unneeded"
 
4609
  if test "$enable_lpt" = "yes"; then
 
4610
    as_fn_error $? "\"lpt not supported on this platform\"" "$LINENO" 5 ;
 
4611
  fi
 
4612
  if test "$enable_lpt" = ""; then
 
4613
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"lpt not supported on this platform - disabling\"" >&5
 
4614
$as_echo "$as_me: WARNING: \"lpt not supported on this platform - disabling\"" >&2;};
 
4615
    enable_lpt="no";
 
4616
  fi
 
4617
fi
 
4618
 
 
4619
if test x${KERN} = xIRIX32;
 
4620
then
 
4621
  LDFLAGS="-o32 -DUNIX -DIRIX -O2
 
4622
         -shared -rdata_shared"
 
4623
  EXT=pd_irix5
 
4624
    STRIPFLAGS="--strip-unneeded"
 
4625
  if test "$enable_lpt" = "yes"; then
 
4626
    as_fn_error $? "\"lpt not supported on this platform\"" "$LINENO" 5 ;
 
4627
  fi
 
4628
  if test "$enable_lpt" = ""; then
 
4629
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"lpt not supported on this platform - disabling\"" >&5
 
4630
$as_echo "$as_me: WARNING: \"lpt not supported on this platform - disabling\"" >&2;};
 
4631
    enable_lpt="no";
 
4632
  fi
 
4633
fi
 
4634
 
 
4635
 
 
4636
if test "x$with_extension" != "x"
 
4637
then
 
4638
 EXT=$with_extension
 
4639
fi
 
4640
 
 
4641
for ac_header in linux/ppdev.h
 
4642
do :
 
4643
  ac_fn_c_check_header_mongrel "$LINENO" "linux/ppdev.h" "ac_cv_header_linux_ppdev_h" "$ac_includes_default"
 
4644
if test "x$ac_cv_header_linux_ppdev_h" = x""yes; then :
 
4645
  cat >>confdefs.h <<_ACEOF
 
4646
#define HAVE_LINUX_PPDEV_H 1
 
4647
_ACEOF
 
4648
  have_ppdev="yes"
 
4649
else
 
4650
   have_ppdev="no"
 
4651
fi
 
4652
 
 
4653
done
 
4654
 
 
4655
 
 
4656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"parallel-port\"" >&5
 
4657
$as_echo_n "checking \"parallel-port\"... " >&6; }
 
4658
if test "$enable_lpt" != "no"
 
4659
then
 
4660
  if test "$enable_lpt" = "yes"
 
4661
  then
 
4662
    $as_echo "#define Z_WANT_LPT 1" >>confdefs.h
 
4663
 
 
4664
    echo "yes (forced)"
 
4665
  else
 
4666
 
 
4667
cat > conftest.c << EOF
 
4668
# include <sys/io.h>
 
4669
int main(){
 
4670
 ioperm(0x3bc, 8, 1);
 
4671
 outb(0, 0x3bc);
 
4672
 ioperm(0x3bc, 8, 0);
 
4673
 return 0;
 
4674
}
 
4675
EOF
 
4676
 
 
4677
   if $CC $CFLAGS -o conftest.o conftest.c > /dev/null 2>&1
 
4678
   then
 
4679
     $as_echo "#define Z_WANT_LPT 1" >>confdefs.h
 
4680
 
 
4681
     if test "x$have_ppdev" = "xyes"
 
4682
     then
 
4683
       echo "yes (with device-support)"
 
4684
     else
 
4685
       echo "yes"
 
4686
     fi
 
4687
   else
 
4688
     echo "no"
 
4689
   fi
 
4690
  fi
 
4691
else
 
4692
 echo "no (ignored)"
 
4693
fi
 
4694
 
 
4695
 
 
4696
for ac_header in m_pd.h
 
4697
do :
 
4698
  ac_fn_c_check_header_mongrel "$LINENO" "m_pd.h" "ac_cv_header_m_pd_h" "$ac_includes_default"
 
4699
if test "x$ac_cv_header_m_pd_h" = x""yes; then :
 
4700
  cat >>confdefs.h <<_ACEOF
 
4701
#define HAVE_M_PD_H 1
 
4702
_ACEOF
 
4703
 
 
4704
else
 
4705
  as_fn_error $? "m_pd.h is desperately needed!
 
4706
        install pd and/or use
 
4707
        \"--with-pd=</path/to/pd/>\"     or
 
4708
        \"--includedir=</path/to/pd/src/>\"" "$LINENO" 5
 
4709
fi
 
4710
 
 
4711
done
 
4712
 
 
4713
 
 
4714
LFLAGS=${LDFLAGS}
 
4715
ac_config_files="$ac_config_files Make.config"
 
4716
 
 
4717
cat >confcache <<\_ACEOF
 
4718
# This file is a shell script that caches the results of configure
 
4719
# tests run on this system so they can be shared between configure
 
4720
# scripts and configure runs, see configure's option --config-cache.
 
4721
# It is not useful on other systems.  If it contains results you don't
 
4722
# want to keep, you may remove or edit it.
 
4723
#
 
4724
# config.status only pays attention to the cache file if you give it
 
4725
# the --recheck option to rerun configure.
 
4726
#
 
4727
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
4728
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
4729
# following values.
 
4730
 
 
4731
_ACEOF
 
4732
 
 
4733
# The following way of writing the cache mishandles newlines in values,
 
4734
# but we know of no workaround that is simple, portable, and efficient.
 
4735
# So, we kill variables containing newlines.
 
4736
# Ultrix sh set writes to stderr and can't be redirected directly,
 
4737
# and sets the high bit in the cache file unless we assign to the vars.
 
4738
(
 
4739
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
4740
    eval ac_val=\$$ac_var
 
4741
    case $ac_val in #(
 
4742
    *${as_nl}*)
 
4743
      case $ac_var in #(
 
4744
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
4745
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
4746
      esac
 
4747
      case $ac_var in #(
 
4748
      _ | IFS | as_nl) ;; #(
 
4749
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
4750
      *) { eval $ac_var=; unset $ac_var;} ;;
 
4751
      esac ;;
 
4752
    esac
 
4753
  done
 
4754
 
 
4755
  (set) 2>&1 |
 
4756
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
4757
    *${as_nl}ac_space=\ *)
 
4758
      # `set' does not quote correctly, so add quotes: double-quote
 
4759
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
4760
      sed -n \
 
4761
        "s/'/'\\\\''/g;
 
4762
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
4763
      ;; #(
 
4764
    *)
 
4765
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
4766
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
4767
      ;;
 
4768
    esac |
 
4769
    sort
 
4770
) |
 
4771
  sed '
 
4772
     /^ac_cv_env_/b end
 
4773
     t clear
 
4774
     :clear
 
4775
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
4776
     t end
 
4777
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
4778
     :end' >>confcache
 
4779
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
4780
  if test -w "$cache_file"; then
 
4781
    test "x$cache_file" != "x/dev/null" &&
 
4782
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
4783
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
4784
    cat confcache >$cache_file
 
4785
  else
 
4786
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
4787
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
4788
  fi
 
4789
fi
 
4790
rm -f confcache
 
4791
 
 
4792
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
4793
# Let make expand exec_prefix.
 
4794
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
4795
 
 
4796
DEFS=-DHAVE_CONFIG_H
 
4797
 
 
4798
ac_libobjs=
 
4799
ac_ltlibobjs=
 
4800
U=
 
4801
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
4802
  # 1. Remove the extension, and $U if already installed.
 
4803
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
4804
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
4805
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
4806
  #    will be set to the directory where LIBOBJS objects are built.
 
4807
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
4808
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
4809
done
 
4810
LIBOBJS=$ac_libobjs
 
4811
 
 
4812
LTLIBOBJS=$ac_ltlibobjs
 
4813
 
 
4814
 
 
4815
 
 
4816
: ${CONFIG_STATUS=./config.status}
 
4817
ac_write_fail=0
 
4818
ac_clean_files_save=$ac_clean_files
 
4819
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
4820
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
4821
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
4822
as_write_fail=0
 
4823
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
4824
#! $SHELL
 
4825
# Generated by $as_me.
 
4826
# Run this file to recreate the current configuration.
 
4827
# Compiler output produced by configure, useful for debugging
 
4828
# configure, is in config.log if it exists.
 
4829
 
 
4830
debug=false
 
4831
ac_cs_recheck=false
 
4832
ac_cs_silent=false
 
4833
 
 
4834
SHELL=\${CONFIG_SHELL-$SHELL}
 
4835
export SHELL
 
4836
_ASEOF
 
4837
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
4838
## -------------------- ##
 
4839
## M4sh Initialization. ##
 
4840
## -------------------- ##
 
4841
 
 
4842
# Be more Bourne compatible
 
4843
DUALCASE=1; export DUALCASE # for MKS sh
 
4844
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
4845
  emulate sh
 
4846
  NULLCMD=:
 
4847
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
4848
  # is contrary to our usage.  Disable this feature.
 
4849
  alias -g '${1+"$@"}'='"$@"'
 
4850
  setopt NO_GLOB_SUBST
 
4851
else
 
4852
  case `(set -o) 2>/dev/null` in #(
 
4853
  *posix*) :
 
4854
    set -o posix ;; #(
 
4855
  *) :
 
4856
     ;;
 
4857
esac
 
4858
fi
 
4859
 
 
4860
 
 
4861
as_nl='
 
4862
'
 
4863
export as_nl
 
4864
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
4865
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4866
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
4867
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
4868
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
4869
# but without wasting forks for bash or zsh.
 
4870
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
4871
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
4872
  as_echo='print -r --'
 
4873
  as_echo_n='print -rn --'
 
4874
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
4875
  as_echo='printf %s\n'
 
4876
  as_echo_n='printf %s'
 
4877
else
 
4878
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
4879
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
4880
    as_echo_n='/usr/ucb/echo -n'
 
4881
  else
 
4882
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
4883
    as_echo_n_body='eval
 
4884
      arg=$1;
 
4885
      case $arg in #(
 
4886
      *"$as_nl"*)
 
4887
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
4888
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
4889
      esac;
 
4890
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
4891
    '
 
4892
    export as_echo_n_body
 
4893
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
4894
  fi
 
4895
  export as_echo_body
 
4896
  as_echo='sh -c $as_echo_body as_echo'
 
4897
fi
 
4898
 
 
4899
# The user is always right.
 
4900
if test "${PATH_SEPARATOR+set}" != set; then
 
4901
  PATH_SEPARATOR=:
 
4902
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
4903
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
4904
      PATH_SEPARATOR=';'
 
4905
  }
 
4906
fi
 
4907
 
 
4908
 
 
4909
# IFS
 
4910
# We need space, tab and new line, in precisely that order.  Quoting is
 
4911
# there to prevent editors from complaining about space-tab.
 
4912
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
4913
# splitting by setting IFS to empty value.)
 
4914
IFS=" ""        $as_nl"
 
4915
 
 
4916
# Find who we are.  Look in the path if we contain no directory separator.
 
4917
case $0 in #((
 
4918
  *[\\/]* ) as_myself=$0 ;;
 
4919
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4920
for as_dir in $PATH
 
4921
do
 
4922
  IFS=$as_save_IFS
 
4923
  test -z "$as_dir" && as_dir=.
 
4924
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
4925
  done
 
4926
IFS=$as_save_IFS
 
4927
 
 
4928
     ;;
 
4929
esac
 
4930
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
4931
# in which case we are not to be found in the path.
 
4932
if test "x$as_myself" = x; then
 
4933
  as_myself=$0
 
4934
fi
 
4935
if test ! -f "$as_myself"; then
 
4936
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
4937
  exit 1
 
4938
fi
 
4939
 
 
4940
# Unset variables that we do not need and which cause bugs (e.g. in
 
4941
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
4942
# suppresses any "Segmentation fault" message there.  '((' could
 
4943
# trigger a bug in pdksh 5.2.14.
 
4944
for as_var in BASH_ENV ENV MAIL MAILPATH
 
4945
do eval test x\${$as_var+set} = xset \
 
4946
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
4947
done
 
4948
PS1='$ '
 
4949
PS2='> '
 
4950
PS4='+ '
 
4951
 
 
4952
# NLS nuisances.
 
4953
LC_ALL=C
 
4954
export LC_ALL
 
4955
LANGUAGE=C
 
4956
export LANGUAGE
 
4957
 
 
4958
# CDPATH.
 
4959
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
4960
 
 
4961
 
 
4962
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
4963
# ----------------------------------------
 
4964
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
4965
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
4966
# script with STATUS, using 1 if that was 0.
 
4967
as_fn_error ()
 
4968
{
 
4969
  as_status=$1; test $as_status -eq 0 && as_status=1
 
4970
  if test "$4"; then
 
4971
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
4972
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
4973
  fi
 
4974
  $as_echo "$as_me: error: $2" >&2
 
4975
  as_fn_exit $as_status
 
4976
} # as_fn_error
 
4977
 
 
4978
 
 
4979
# as_fn_set_status STATUS
 
4980
# -----------------------
 
4981
# Set $? to STATUS, without forking.
 
4982
as_fn_set_status ()
 
4983
{
 
4984
  return $1
 
4985
} # as_fn_set_status
 
4986
 
 
4987
# as_fn_exit STATUS
 
4988
# -----------------
 
4989
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
4990
as_fn_exit ()
 
4991
{
 
4992
  set +e
 
4993
  as_fn_set_status $1
 
4994
  exit $1
 
4995
} # as_fn_exit
 
4996
 
 
4997
# as_fn_unset VAR
 
4998
# ---------------
 
4999
# Portably unset VAR.
 
5000
as_fn_unset ()
 
5001
{
 
5002
  { eval $1=; unset $1;}
 
5003
}
 
5004
as_unset=as_fn_unset
 
5005
# as_fn_append VAR VALUE
 
5006
# ----------------------
 
5007
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
5008
# advantage of any shell optimizations that allow amortized linear growth over
 
5009
# repeated appends, instead of the typical quadratic growth present in naive
 
5010
# implementations.
 
5011
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
5012
  eval 'as_fn_append ()
 
5013
  {
 
5014
    eval $1+=\$2
 
5015
  }'
 
5016
else
 
5017
  as_fn_append ()
 
5018
  {
 
5019
    eval $1=\$$1\$2
 
5020
  }
 
5021
fi # as_fn_append
 
5022
 
 
5023
# as_fn_arith ARG...
 
5024
# ------------------
 
5025
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
5026
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
5027
# must be portable across $(()) and expr.
 
5028
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
5029
  eval 'as_fn_arith ()
 
5030
  {
 
5031
    as_val=$(( $* ))
 
5032
  }'
 
5033
else
 
5034
  as_fn_arith ()
 
5035
  {
 
5036
    as_val=`expr "$@" || test $? -eq 1`
 
5037
  }
 
5038
fi # as_fn_arith
 
5039
 
 
5040
 
 
5041
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
5042
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
5043
  as_expr=expr
 
5044
else
 
5045
  as_expr=false
 
5046
fi
 
5047
 
 
5048
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
5049
  as_basename=basename
 
5050
else
 
5051
  as_basename=false
 
5052
fi
 
5053
 
 
5054
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
5055
  as_dirname=dirname
 
5056
else
 
5057
  as_dirname=false
 
5058
fi
 
5059
 
 
5060
as_me=`$as_basename -- "$0" ||
 
5061
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
5062
         X"$0" : 'X\(//\)$' \| \
 
5063
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
5064
$as_echo X/"$0" |
 
5065
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
5066
            s//\1/
 
5067
            q
 
5068
          }
 
5069
          /^X\/\(\/\/\)$/{
 
5070
            s//\1/
 
5071
            q
 
5072
          }
 
5073
          /^X\/\(\/\).*/{
 
5074
            s//\1/
 
5075
            q
 
5076
          }
 
5077
          s/.*/./; q'`
 
5078
 
 
5079
# Avoid depending upon Character Ranges.
 
5080
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
5081
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
5082
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
5083
as_cr_digits='0123456789'
 
5084
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
5085
 
 
5086
ECHO_C= ECHO_N= ECHO_T=
 
5087
case `echo -n x` in #(((((
 
5088
-n*)
 
5089
  case `echo 'xy\c'` in
 
5090
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
5091
  xy)  ECHO_C='\c';;
 
5092
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
5093
       ECHO_T=' ';;
 
5094
  esac;;
 
5095
*)
 
5096
  ECHO_N='-n';;
 
5097
esac
 
5098
 
 
5099
rm -f conf$$ conf$$.exe conf$$.file
 
5100
if test -d conf$$.dir; then
 
5101
  rm -f conf$$.dir/conf$$.file
 
5102
else
 
5103
  rm -f conf$$.dir
 
5104
  mkdir conf$$.dir 2>/dev/null
 
5105
fi
 
5106
if (echo >conf$$.file) 2>/dev/null; then
 
5107
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
5108
    as_ln_s='ln -s'
 
5109
    # ... but there are two gotchas:
 
5110
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
5111
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
5112
    # In both cases, we have to default to `cp -p'.
 
5113
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
5114
      as_ln_s='cp -p'
 
5115
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
5116
    as_ln_s=ln
 
5117
  else
 
5118
    as_ln_s='cp -p'
 
5119
  fi
 
5120
else
 
5121
  as_ln_s='cp -p'
 
5122
fi
 
5123
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
5124
rmdir conf$$.dir 2>/dev/null
 
5125
 
 
5126
 
 
5127
# as_fn_mkdir_p
 
5128
# -------------
 
5129
# Create "$as_dir" as a directory, including parents if necessary.
 
5130
as_fn_mkdir_p ()
 
5131
{
 
5132
 
 
5133
  case $as_dir in #(
 
5134
  -*) as_dir=./$as_dir;;
 
5135
  esac
 
5136
  test -d "$as_dir" || eval $as_mkdir_p || {
 
5137
    as_dirs=
 
5138
    while :; do
 
5139
      case $as_dir in #(
 
5140
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
5141
      *) as_qdir=$as_dir;;
 
5142
      esac
 
5143
      as_dirs="'$as_qdir' $as_dirs"
 
5144
      as_dir=`$as_dirname -- "$as_dir" ||
 
5145
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5146
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
5147
         X"$as_dir" : 'X\(//\)$' \| \
 
5148
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
5149
$as_echo X"$as_dir" |
 
5150
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
5151
            s//\1/
 
5152
            q
 
5153
          }
 
5154
          /^X\(\/\/\)[^/].*/{
 
5155
            s//\1/
 
5156
            q
 
5157
          }
 
5158
          /^X\(\/\/\)$/{
 
5159
            s//\1/
 
5160
            q
 
5161
          }
 
5162
          /^X\(\/\).*/{
 
5163
            s//\1/
 
5164
            q
 
5165
          }
 
5166
          s/.*/./; q'`
 
5167
      test -d "$as_dir" && break
 
5168
    done
 
5169
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
5170
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
5171
 
 
5172
 
 
5173
} # as_fn_mkdir_p
 
5174
if mkdir -p . 2>/dev/null; then
 
5175
  as_mkdir_p='mkdir -p "$as_dir"'
 
5176
else
 
5177
  test -d ./-p && rmdir ./-p
 
5178
  as_mkdir_p=false
 
5179
fi
 
5180
 
 
5181
if test -x / >/dev/null 2>&1; then
 
5182
  as_test_x='test -x'
 
5183
else
 
5184
  if ls -dL / >/dev/null 2>&1; then
 
5185
    as_ls_L_option=L
 
5186
  else
 
5187
    as_ls_L_option=
 
5188
  fi
 
5189
  as_test_x='
 
5190
    eval sh -c '\''
 
5191
      if test -d "$1"; then
 
5192
        test -d "$1/.";
 
5193
      else
 
5194
        case $1 in #(
 
5195
        -*)set "./$1";;
 
5196
        esac;
 
5197
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
5198
        ???[sx]*):;;*)false;;esac;fi
 
5199
    '\'' sh
 
5200
  '
 
5201
fi
 
5202
as_executable_p=$as_test_x
 
5203
 
 
5204
# Sed expression to map a string onto a valid CPP name.
 
5205
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
5206
 
 
5207
# Sed expression to map a string onto a valid variable name.
 
5208
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
5209
 
 
5210
 
 
5211
exec 6>&1
 
5212
## ----------------------------------- ##
 
5213
## Main body of $CONFIG_STATUS script. ##
 
5214
## ----------------------------------- ##
 
5215
_ASEOF
 
5216
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
5217
 
 
5218
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5219
# Save the log message, to keep $0 and so on meaningful, and to
 
5220
# report actual input values of CONFIG_FILES etc. instead of their
 
5221
# values after options handling.
 
5222
ac_log="
 
5223
This file was extended by $as_me, which was
 
5224
generated by GNU Autoconf 2.67.  Invocation command line was
 
5225
 
 
5226
  CONFIG_FILES    = $CONFIG_FILES
 
5227
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
5228
  CONFIG_LINKS    = $CONFIG_LINKS
 
5229
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
5230
  $ $0 $@
 
5231
 
 
5232
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
5233
"
 
5234
 
 
5235
_ACEOF
 
5236
 
 
5237
case $ac_config_files in *"
 
5238
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
5239
esac
 
5240
 
 
5241
case $ac_config_headers in *"
 
5242
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
5243
esac
 
5244
 
 
5245
 
 
5246
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5247
# Files that config.status was made for.
 
5248
config_files="$ac_config_files"
 
5249
config_headers="$ac_config_headers"
 
5250
 
 
5251
_ACEOF
 
5252
 
 
5253
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5254
ac_cs_usage="\
 
5255
\`$as_me' instantiates files and other configuration actions
 
5256
from templates according to the current configuration.  Unless the files
 
5257
and actions are specified as TAGs, all are instantiated by default.
 
5258
 
 
5259
Usage: $0 [OPTION]... [TAG]...
 
5260
 
 
5261
  -h, --help       print this help, then exit
 
5262
  -V, --version    print version number and configuration settings, then exit
 
5263
      --config     print configuration, then exit
 
5264
  -q, --quiet, --silent
 
5265
                   do not print progress messages
 
5266
  -d, --debug      don't remove temporary files
 
5267
      --recheck    update $as_me by reconfiguring in the same conditions
 
5268
      --file=FILE[:TEMPLATE]
 
5269
                   instantiate the configuration file FILE
 
5270
      --header=FILE[:TEMPLATE]
 
5271
                   instantiate the configuration header FILE
 
5272
 
 
5273
Configuration files:
 
5274
$config_files
 
5275
 
 
5276
Configuration headers:
 
5277
$config_headers
 
5278
 
 
5279
Report bugs to the package provider."
 
5280
 
 
5281
_ACEOF
 
5282
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5283
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
5284
ac_cs_version="\\
 
5285
config.status
 
5286
configured by $0, generated by GNU Autoconf 2.67,
 
5287
  with options \\"\$ac_cs_config\\"
 
5288
 
 
5289
Copyright (C) 2010 Free Software Foundation, Inc.
 
5290
This config.status script is free software; the Free Software Foundation
 
5291
gives unlimited permission to copy, distribute and modify it."
 
5292
 
 
5293
ac_pwd='$ac_pwd'
 
5294
srcdir='$srcdir'
 
5295
test -n "\$AWK" || AWK=awk
 
5296
_ACEOF
 
5297
 
 
5298
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5299
# The default lists apply if the user does not specify any file.
 
5300
ac_need_defaults=:
 
5301
while test $# != 0
 
5302
do
 
5303
  case $1 in
 
5304
  --*=?*)
 
5305
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
5306
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
5307
    ac_shift=:
 
5308
    ;;
 
5309
  --*=)
 
5310
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
5311
    ac_optarg=
 
5312
    ac_shift=:
 
5313
    ;;
 
5314
  *)
 
5315
    ac_option=$1
 
5316
    ac_optarg=$2
 
5317
    ac_shift=shift
 
5318
    ;;
 
5319
  esac
 
5320
 
 
5321
  case $ac_option in
 
5322
  # Handling of the options.
 
5323
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
5324
    ac_cs_recheck=: ;;
 
5325
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
5326
    $as_echo "$ac_cs_version"; exit ;;
 
5327
  --config | --confi | --conf | --con | --co | --c )
 
5328
    $as_echo "$ac_cs_config"; exit ;;
 
5329
  --debug | --debu | --deb | --de | --d | -d )
 
5330
    debug=: ;;
 
5331
  --file | --fil | --fi | --f )
 
5332
    $ac_shift
 
5333
    case $ac_optarg in
 
5334
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
5335
    '') as_fn_error $? "missing file argument" ;;
 
5336
    esac
 
5337
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
5338
    ac_need_defaults=false;;
 
5339
  --header | --heade | --head | --hea )
 
5340
    $ac_shift
 
5341
    case $ac_optarg in
 
5342
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
5343
    esac
 
5344
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
5345
    ac_need_defaults=false;;
 
5346
  --he | --h)
 
5347
    # Conflict between --help and --header
 
5348
    as_fn_error $? "ambiguous option: \`$1'
 
5349
Try \`$0 --help' for more information.";;
 
5350
  --help | --hel | -h )
 
5351
    $as_echo "$ac_cs_usage"; exit ;;
 
5352
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
5353
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
5354
    ac_cs_silent=: ;;
 
5355
 
 
5356
  # This is an error.
 
5357
  -*) as_fn_error $? "unrecognized option: \`$1'
 
5358
Try \`$0 --help' for more information." ;;
 
5359
 
 
5360
  *) as_fn_append ac_config_targets " $1"
 
5361
     ac_need_defaults=false ;;
 
5362
 
 
5363
  esac
 
5364
  shift
 
5365
done
 
5366
 
 
5367
ac_configure_extra_args=
 
5368
 
 
5369
if $ac_cs_silent; then
 
5370
  exec 6>/dev/null
 
5371
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
5372
fi
 
5373
 
 
5374
_ACEOF
 
5375
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5376
if \$ac_cs_recheck; then
 
5377
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
5378
  shift
 
5379
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
5380
  CONFIG_SHELL='$SHELL'
 
5381
  export CONFIG_SHELL
 
5382
  exec "\$@"
 
5383
fi
 
5384
 
 
5385
_ACEOF
 
5386
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5387
exec 5>>config.log
 
5388
{
 
5389
  echo
 
5390
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
5391
## Running $as_me. ##
 
5392
_ASBOX
 
5393
  $as_echo "$ac_log"
 
5394
} >&5
 
5395
 
 
5396
_ACEOF
 
5397
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5398
_ACEOF
 
5399
 
 
5400
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5401
 
 
5402
# Handling of arguments.
 
5403
for ac_config_target in $ac_config_targets
 
5404
do
 
5405
  case $ac_config_target in
 
5406
    "zexyconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zexyconf.h" ;;
 
5407
    "Make.config") CONFIG_FILES="$CONFIG_FILES Make.config" ;;
 
5408
 
 
5409
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
5410
  esac
 
5411
done
 
5412
 
 
5413
 
 
5414
# If the user did not use the arguments to specify the items to instantiate,
 
5415
# then the envvar interface is used.  Set only those that are not.
 
5416
# We use the long form for the default assignment because of an extremely
 
5417
# bizarre bug on SunOS 4.1.3.
 
5418
if $ac_need_defaults; then
 
5419
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
5420
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
5421
fi
 
5422
 
 
5423
# Have a temporary directory for convenience.  Make it in the build tree
 
5424
# simply because there is no reason against having it here, and in addition,
 
5425
# creating and moving files from /tmp can sometimes cause problems.
 
5426
# Hook for its removal unless debugging.
 
5427
# Note that there is a small window in which the directory will not be cleaned:
 
5428
# after its creation but before its name has been assigned to `$tmp'.
 
5429
$debug ||
 
5430
{
 
5431
  tmp=
 
5432
  trap 'exit_status=$?
 
5433
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
5434
' 0
 
5435
  trap 'as_fn_exit 1' 1 2 13 15
 
5436
}
 
5437
# Create a (secure) tmp directory for tmp files.
 
5438
 
 
5439
{
 
5440
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
5441
  test -n "$tmp" && test -d "$tmp"
 
5442
}  ||
 
5443
{
 
5444
  tmp=./conf$$-$RANDOM
 
5445
  (umask 077 && mkdir "$tmp")
 
5446
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
5447
 
 
5448
# Set up the scripts for CONFIG_FILES section.
 
5449
# No need to generate them if there are no CONFIG_FILES.
 
5450
# This happens for instance with `./config.status config.h'.
 
5451
if test -n "$CONFIG_FILES"; then
 
5452
 
 
5453
 
 
5454
ac_cr=`echo X | tr X '\015'`
 
5455
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
5456
# But we know of no other shell where ac_cr would be empty at this
 
5457
# point, so we can use a bashism as a fallback.
 
5458
if test "x$ac_cr" = x; then
 
5459
  eval ac_cr=\$\'\\r\'
 
5460
fi
 
5461
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
5462
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
5463
  ac_cs_awk_cr='\\r'
 
5464
else
 
5465
  ac_cs_awk_cr=$ac_cr
 
5466
fi
 
5467
 
 
5468
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
5469
_ACEOF
 
5470
 
 
5471
 
 
5472
{
 
5473
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
5474
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
5475
  echo "_ACEOF"
 
5476
} >conf$$subs.sh ||
 
5477
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
5478
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
5479
ac_delim='%!_!# '
 
5480
for ac_last_try in false false false false false :; do
 
5481
  . ./conf$$subs.sh ||
 
5482
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
5483
 
 
5484
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
5485
  if test $ac_delim_n = $ac_delim_num; then
 
5486
    break
 
5487
  elif $ac_last_try; then
 
5488
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
5489
  else
 
5490
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
5491
  fi
 
5492
done
 
5493
rm -f conf$$subs.sh
 
5494
 
 
5495
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5496
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
5497
_ACEOF
 
5498
sed -n '
 
5499
h
 
5500
s/^/S["/; s/!.*/"]=/
 
5501
p
 
5502
g
 
5503
s/^[^!]*!//
 
5504
:repl
 
5505
t repl
 
5506
s/'"$ac_delim"'$//
 
5507
t delim
 
5508
:nl
 
5509
h
 
5510
s/\(.\{148\}\)..*/\1/
 
5511
t more1
 
5512
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
5513
p
 
5514
n
 
5515
b repl
 
5516
:more1
 
5517
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5518
p
 
5519
g
 
5520
s/.\{148\}//
 
5521
t nl
 
5522
:delim
 
5523
h
 
5524
s/\(.\{148\}\)..*/\1/
 
5525
t more2
 
5526
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
5527
p
 
5528
b
 
5529
:more2
 
5530
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5531
p
 
5532
g
 
5533
s/.\{148\}//
 
5534
t delim
 
5535
' <conf$$subs.awk | sed '
 
5536
/^[^""]/{
 
5537
  N
 
5538
  s/\n//
 
5539
}
 
5540
' >>$CONFIG_STATUS || ac_write_fail=1
 
5541
rm -f conf$$subs.awk
 
5542
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5543
_ACAWK
 
5544
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
5545
  for (key in S) S_is_set[key] = 1
 
5546
  FS = ""
 
5547
 
 
5548
}
 
5549
{
 
5550
  line = $ 0
 
5551
  nfields = split(line, field, "@")
 
5552
  substed = 0
 
5553
  len = length(field[1])
 
5554
  for (i = 2; i < nfields; i++) {
 
5555
    key = field[i]
 
5556
    keylen = length(key)
 
5557
    if (S_is_set[key]) {
 
5558
      value = S[key]
 
5559
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
5560
      len += length(value) + length(field[++i])
 
5561
      substed = 1
 
5562
    } else
 
5563
      len += 1 + keylen
 
5564
  }
 
5565
 
 
5566
  print line
 
5567
}
 
5568
 
 
5569
_ACAWK
 
5570
_ACEOF
 
5571
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5572
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
5573
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
5574
else
 
5575
  cat
 
5576
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
5577
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
5578
_ACEOF
 
5579
 
 
5580
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
5581
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
5582
# trailing colons and then remove the whole line if VPATH becomes empty
 
5583
# (actually we leave an empty line to preserve line numbers).
 
5584
if test "x$srcdir" = x.; then
 
5585
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
5586
h
 
5587
s///
 
5588
s/^/:/
 
5589
s/[      ]*$/:/
 
5590
s/:\$(srcdir):/:/g
 
5591
s/:\${srcdir}:/:/g
 
5592
s/:@srcdir@:/:/g
 
5593
s/^:*//
 
5594
s/:*$//
 
5595
x
 
5596
s/\(=[   ]*\).*/\1/
 
5597
G
 
5598
s/\n//
 
5599
s/^[^=]*=[       ]*$//
 
5600
}'
 
5601
fi
 
5602
 
 
5603
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5604
fi # test -n "$CONFIG_FILES"
 
5605
 
 
5606
# Set up the scripts for CONFIG_HEADERS section.
 
5607
# No need to generate them if there are no CONFIG_HEADERS.
 
5608
# This happens for instance with `./config.status Makefile'.
 
5609
if test -n "$CONFIG_HEADERS"; then
 
5610
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
5611
BEGIN {
 
5612
_ACEOF
 
5613
 
 
5614
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
5615
# here-document in config.status, that substitutes the proper values into
 
5616
# config.h.in to produce config.h.
 
5617
 
 
5618
# Create a delimiter string that does not exist in confdefs.h, to ease
 
5619
# handling of long lines.
 
5620
ac_delim='%!_!# '
 
5621
for ac_last_try in false false :; do
 
5622
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
5623
  if test -z "$ac_t"; then
 
5624
    break
 
5625
  elif $ac_last_try; then
 
5626
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
5627
  else
 
5628
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
5629
  fi
 
5630
done
 
5631
 
 
5632
# For the awk script, D is an array of macro values keyed by name,
 
5633
# likewise P contains macro parameters if any.  Preserve backslash
 
5634
# newline sequences.
 
5635
 
 
5636
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
5637
sed -n '
 
5638
s/.\{148\}/&'"$ac_delim"'/g
 
5639
t rset
 
5640
:rset
 
5641
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
5642
t def
 
5643
d
 
5644
:def
 
5645
s/\\$//
 
5646
t bsnl
 
5647
s/["\\]/\\&/g
 
5648
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
5649
D["\1"]=" \3"/p
 
5650
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
5651
d
 
5652
:bsnl
 
5653
s/["\\]/\\&/g
 
5654
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
5655
D["\1"]=" \3\\\\\\n"\\/p
 
5656
t cont
 
5657
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
5658
t cont
 
5659
d
 
5660
:cont
 
5661
n
 
5662
s/.\{148\}/&'"$ac_delim"'/g
 
5663
t clear
 
5664
:clear
 
5665
s/\\$//
 
5666
t bsnlc
 
5667
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
5668
d
 
5669
:bsnlc
 
5670
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
5671
b cont
 
5672
' <confdefs.h | sed '
 
5673
s/'"$ac_delim"'/"\\\
 
5674
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
5675
 
 
5676
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5677
  for (key in D) D_is_set[key] = 1
 
5678
  FS = ""
 
5679
}
 
5680
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
5681
  line = \$ 0
 
5682
  split(line, arg, " ")
 
5683
  if (arg[1] == "#") {
 
5684
    defundef = arg[2]
 
5685
    mac1 = arg[3]
 
5686
  } else {
 
5687
    defundef = substr(arg[1], 2)
 
5688
    mac1 = arg[2]
 
5689
  }
 
5690
  split(mac1, mac2, "(") #)
 
5691
  macro = mac2[1]
 
5692
  prefix = substr(line, 1, index(line, defundef) - 1)
 
5693
  if (D_is_set[macro]) {
 
5694
    # Preserve the white space surrounding the "#".
 
5695
    print prefix "define", macro P[macro] D[macro]
 
5696
    next
 
5697
  } else {
 
5698
    # Replace #undef with comments.  This is necessary, for example,
 
5699
    # in the case of _POSIX_SOURCE, which is predefined and required
 
5700
    # on some systems where configure will not decide to define it.
 
5701
    if (defundef == "undef") {
 
5702
      print "/*", prefix defundef, macro, "*/"
 
5703
      next
 
5704
    }
 
5705
  }
 
5706
}
 
5707
{ print }
 
5708
_ACAWK
 
5709
_ACEOF
 
5710
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5711
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
5712
fi # test -n "$CONFIG_HEADERS"
 
5713
 
 
5714
 
 
5715
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 
5716
shift
 
5717
for ac_tag
 
5718
do
 
5719
  case $ac_tag in
 
5720
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
5721
  esac
 
5722
  case $ac_mode$ac_tag in
 
5723
  :[FHL]*:*);;
 
5724
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
5725
  :[FH]-) ac_tag=-:-;;
 
5726
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
5727
  esac
 
5728
  ac_save_IFS=$IFS
 
5729
  IFS=:
 
5730
  set x $ac_tag
 
5731
  IFS=$ac_save_IFS
 
5732
  shift
 
5733
  ac_file=$1
 
5734
  shift
 
5735
 
 
5736
  case $ac_mode in
 
5737
  :L) ac_source=$1;;
 
5738
  :[FH])
 
5739
    ac_file_inputs=
 
5740
    for ac_f
 
5741
    do
 
5742
      case $ac_f in
 
5743
      -) ac_f="$tmp/stdin";;
 
5744
      *) # Look for the file first in the build tree, then in the source tree
 
5745
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
5746
         # because $ac_f cannot contain `:'.
 
5747
         test -f "$ac_f" ||
 
5748
           case $ac_f in
 
5749
           [\\/$]*) false;;
 
5750
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
5751
           esac ||
 
5752
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
5753
      esac
 
5754
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
5755
      as_fn_append ac_file_inputs " '$ac_f'"
 
5756
    done
 
5757
 
 
5758
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
5759
    # use $as_me), people would be surprised to read:
 
5760
    #    /* config.h.  Generated by config.status.  */
 
5761
    configure_input='Generated from '`
 
5762
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
5763
        `' by configure.'
 
5764
    if test x"$ac_file" != x-; then
 
5765
      configure_input="$ac_file.  $configure_input"
 
5766
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
5767
$as_echo "$as_me: creating $ac_file" >&6;}
 
5768
    fi
 
5769
    # Neutralize special characters interpreted by sed in replacement strings.
 
5770
    case $configure_input in #(
 
5771
    *\&* | *\|* | *\\* )
 
5772
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
5773
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
5774
    *) ac_sed_conf_input=$configure_input;;
 
5775
    esac
 
5776
 
 
5777
    case $ac_tag in
 
5778
    *:-:* | *:-) cat >"$tmp/stdin" \
 
5779
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
5780
    esac
 
5781
    ;;
 
5782
  esac
 
5783
 
 
5784
  ac_dir=`$as_dirname -- "$ac_file" ||
 
5785
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5786
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
5787
         X"$ac_file" : 'X\(//\)$' \| \
 
5788
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
5789
$as_echo X"$ac_file" |
 
5790
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
5791
            s//\1/
 
5792
            q
 
5793
          }
 
5794
          /^X\(\/\/\)[^/].*/{
 
5795
            s//\1/
 
5796
            q
 
5797
          }
 
5798
          /^X\(\/\/\)$/{
 
5799
            s//\1/
 
5800
            q
 
5801
          }
 
5802
          /^X\(\/\).*/{
 
5803
            s//\1/
 
5804
            q
 
5805
          }
 
5806
          s/.*/./; q'`
 
5807
  as_dir="$ac_dir"; as_fn_mkdir_p
 
5808
  ac_builddir=.
 
5809
 
 
5810
case "$ac_dir" in
 
5811
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
5812
*)
 
5813
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
5814
  # A ".." for each directory in $ac_dir_suffix.
 
5815
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
5816
  case $ac_top_builddir_sub in
 
5817
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
5818
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
5819
  esac ;;
 
5820
esac
 
5821
ac_abs_top_builddir=$ac_pwd
 
5822
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
5823
# for backward compatibility:
 
5824
ac_top_builddir=$ac_top_build_prefix
 
5825
 
 
5826
case $srcdir in
 
5827
  .)  # We are building in place.
 
5828
    ac_srcdir=.
 
5829
    ac_top_srcdir=$ac_top_builddir_sub
 
5830
    ac_abs_top_srcdir=$ac_pwd ;;
 
5831
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
5832
    ac_srcdir=$srcdir$ac_dir_suffix;
 
5833
    ac_top_srcdir=$srcdir
 
5834
    ac_abs_top_srcdir=$srcdir ;;
 
5835
  *) # Relative name.
 
5836
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
5837
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
5838
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
5839
esac
 
5840
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
5841
 
 
5842
 
 
5843
  case $ac_mode in
 
5844
  :F)
 
5845
  #
 
5846
  # CONFIG_FILE
 
5847
  #
 
5848
 
 
5849
_ACEOF
 
5850
 
 
5851
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5852
# If the template does not know about datarootdir, expand it.
 
5853
# FIXME: This hack should be removed a few years after 2.60.
 
5854
ac_datarootdir_hack=; ac_datarootdir_seen=
 
5855
ac_sed_dataroot='
 
5856
/datarootdir/ {
 
5857
  p
 
5858
  q
 
5859
}
 
5860
/@datadir@/p
 
5861
/@docdir@/p
 
5862
/@infodir@/p
 
5863
/@localedir@/p
 
5864
/@mandir@/p'
 
5865
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
5866
*datarootdir*) ac_datarootdir_seen=yes;;
 
5867
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
5868
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
5869
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
5870
_ACEOF
 
5871
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5872
  ac_datarootdir_hack='
 
5873
  s&@datadir@&$datadir&g
 
5874
  s&@docdir@&$docdir&g
 
5875
  s&@infodir@&$infodir&g
 
5876
  s&@localedir@&$localedir&g
 
5877
  s&@mandir@&$mandir&g
 
5878
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
5879
esac
 
5880
_ACEOF
 
5881
 
 
5882
# Neutralize VPATH when `$srcdir' = `.'.
 
5883
# Shell code in configure.ac might set extrasub.
 
5884
# FIXME: do we really want to maintain this feature?
 
5885
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5886
ac_sed_extra="$ac_vpsub
 
5887
$extrasub
 
5888
_ACEOF
 
5889
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5890
:t
 
5891
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
5892
s|@configure_input@|$ac_sed_conf_input|;t t
 
5893
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
5894
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
5895
s&@srcdir@&$ac_srcdir&;t t
 
5896
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
5897
s&@top_srcdir@&$ac_top_srcdir&;t t
 
5898
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
5899
s&@builddir@&$ac_builddir&;t t
 
5900
s&@abs_builddir@&$ac_abs_builddir&;t t
 
5901
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
5902
$ac_datarootdir_hack
 
5903
"
 
5904
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
5905
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
5906
 
 
5907
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
5908
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
5909
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
5910
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
5911
which seems to be undefined.  Please make sure it is defined" >&5
 
5912
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
5913
which seems to be undefined.  Please make sure it is defined" >&2;}
 
5914
 
 
5915
  rm -f "$tmp/stdin"
 
5916
  case $ac_file in
 
5917
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
5918
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
5919
  esac \
 
5920
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
5921
 ;;
 
5922
  :H)
 
5923
  #
 
5924
  # CONFIG_HEADER
 
5925
  #
 
5926
  if test x"$ac_file" != x-; then
 
5927
    {
 
5928
      $as_echo "/* $configure_input  */" \
 
5929
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
5930
    } >"$tmp/config.h" \
 
5931
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
5932
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
5933
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
5934
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
5935
    else
 
5936
      rm -f "$ac_file"
 
5937
      mv "$tmp/config.h" "$ac_file" \
 
5938
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
5939
    fi
 
5940
  else
 
5941
    $as_echo "/* $configure_input  */" \
 
5942
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
5943
      || as_fn_error $? "could not create -" "$LINENO" 5
 
5944
  fi
 
5945
 ;;
 
5946
 
 
5947
 
 
5948
  esac
 
5949
 
 
5950
done # for ac_tag
 
5951
 
 
5952
 
 
5953
as_fn_exit 0
 
5954
_ACEOF
 
5955
ac_clean_files=$ac_clean_files_save
 
5956
 
 
5957
test $ac_write_fail = 0 ||
 
5958
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
5959
 
 
5960
 
 
5961
# configure is writing to config.log, and then calls config.status.
 
5962
# config.status does its own redirection, appending to config.log.
 
5963
# Unfortunately, on DOS this fails, as config.log is still kept open
 
5964
# by configure, so config.status won't be able to write to it; its
 
5965
# output is simply discarded.  So we exec the FD to /dev/null,
 
5966
# effectively closing config.log, so it can be properly (re)opened and
 
5967
# appended to by config.status.  When coming back to configure, we
 
5968
# need to make the FD available again.
 
5969
if test "$no_create" != yes; then
 
5970
  ac_cs_success=:
 
5971
  ac_config_status_args=
 
5972
  test "$silent" = yes &&
 
5973
    ac_config_status_args="$ac_config_status_args --quiet"
 
5974
  exec 5>/dev/null
 
5975
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
5976
  exec 5>>config.log
 
5977
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
5978
  # would make configure fail if this is the last instruction.
 
5979
  $ac_cs_success || as_fn_exit 1
 
5980
fi
 
5981
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
5982
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
5983
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
5984
fi
 
5985
 
 
5986
 
 
5987
## hmm, some dependencies seem to be wrong, resulting in running configure everytime if we don't touch zexyconf.h here
 
5988
touch zexyconf.h
 
5989
 
 
5990
#rm -f conftest.*