root/configure @ 10

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