#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help --with-gd[=DIR] Specify which version of GD to use (DIR is GD's install dir)." ac_help="$ac_help --without-tiff Disable TIFF support. --with-tiff[=DIR] Include TIFF support (DIR is LibTIFF's install dir)." ac_help="$ac_help --without-jpeg Disable JPEG support. --with-jpeg[=DIR] Include JPEG support (DIR is LibJPEG's install dir)." ac_help="$ac_help --without-eppl Disable EPPL7 support. --with-eppl Include EPPL7 support." ac_help="$ac_help --without-ttf Disable Freetype (TTF) support. --with-ttf[=DIR] Include Freetype (TTF) support (DIR is Freetype's install dir)." ac_help="$ac_help --with-proj[=DIR] Include PROJ.4 support (DIR is PROJ.4's install dir)." ac_help="$ac_help --with-sde[=DIR] Include ESRI SDE support (DIR is SDE's install dir)." ac_help="$ac_help --with-mpatrol[=DIR] Include MPATROL support (DIR is MPATROL's install dir)." ac_help="$ac_help --with-ogr[=DIR] Include OGR support (DIR is OGR's install dir)." ac_help="$ac_help --enable-ignore-missing-data Ignore missing data file errors at runtime (enabled by default). --disable-ignore-missing-data Report all missing data files." ac_help="$ac_help --enable-debug Include "-g" in CFLAGS for debugging. --disable-debug Do not include "-g" in CFLAGS (the default)." ac_help="$ac_help --with-php=DIR Specify directory where PHP3/PHP4 source tree is installed. Required in order to compile the PHP/MapScript module." ac_help="$ac_help --with-apxs[=FILE] Use this option only if building the PHP MapScript on a system where PHP was built as a shared Apache module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs." ac_help="$ac_help --with-apache=DIR Use this option only if building the PHP MapScript on a system where PHP was built as an Apache module statically linked into the httpd executable. DIR is the path to the apache include files." ac_help="$ac_help --enable-runpath Include runtime library path flags (-Wl,-R) in link. Required on *BSD systems. --disable-runpath Do not link with runtime lib path (the default)." # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=Makefile.in # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:578: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:608: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then case "`uname -s`" in *win32* | *WIN32*) # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:659: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="cl" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; esac fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF #line 702 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:738: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:766: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:802: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:834: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF #line 845 "configure" #include "confdefs.h" int main(){return(0);} EOF if { (eval echo configure:850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cxx_cross=no else ac_cv_prog_cxx_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:876: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 echo "configure:881: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no fi fi echo "$ac_t""$ac_cv_prog_gxx" 1>&6 if test $ac_cv_prog_gxx = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 echo "configure:909: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.cc if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yes else ac_cv_prog_cxx_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS="$ac_save_CXXFLAGS" elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:943: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "flex", so it can be a program name with args. set dummy flex; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:973: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_LEX="flex" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" fi fi LEX="$ac_cv_prog_LEX" if test -n "$LEX"; then echo "$ac_t""$LEX" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$LEXLIB" then case "$LEX" in flex*) ac_lib=fl ;; *) ac_lib=l ;; esac echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 echo "configure:1007: checking for yywrap in -l$ac_lib" >&5 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-l$ac_lib $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LEXLIB="-l$ac_lib" else echo "$ac_t""no" 1>&6 fi fi for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1053: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_YACC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi YACC="$ac_cv_prog_YACC" if test -n "$YACC"; then echo "$ac_t""$YACC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" echo $ac_n "checking if compiler supports -R""... $ac_c" 1>&6 echo "configure:1085: checking if compiler supports -R" >&5 if eval "test \"`echo '$''{'php_cv_cc_dashr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else SAVE_LIBS="${LIBS}" LIBS="-R /usr/lib ${LIBS}" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* php_cv_cc_dashr=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* php_cv_cc_dashr=no fi rm -f conftest* LIBS="${SAVE_LIBS}" fi echo "$ac_t""$php_cv_cc_dashr" 1>&6 if test $php_cv_cc_dashr = "yes"; then ld_runpath_switch="-R" apxs_runpath_switch="-Wl,-R'" fi if test -z "$ld_runpath_switch" ; then echo $ac_n "checking if compiler supports -Wl,-rpath,""... $ac_c" 1>&6 echo "configure:1120: checking if compiler supports -Wl,-rpath," >&5 if eval "test \"`echo '$''{'php_cv_cc_rpath'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else SAVE_LIBS="${LIBS}" LIBS="-Wl,-rpath,/usr/lib ${LIBS}" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* php_cv_cc_rpath=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* php_cv_cc_rpath=no fi rm -f conftest* LIBS="${SAVE_LIBS}" fi echo "$ac_t""$php_cv_cc_rpath" 1>&6 if test $php_cv_cc_rpath = "yes"; then ld_runpath_switch="-Wl,-rpath," apxs_runpath_switch="-Wl,'-rpath " fi fi if test -z "$ld_runpath_switch" ; then echo $ac_n "checking if compiler supports -Wl,-R""... $ac_c" 1>&6 echo "configure:1156: checking if compiler supports -Wl,-R" >&5 if eval "test \"`echo '$''{'php_cv_cc_dashwlr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else SAVE_LIBS="${LIBS}" LIBS="-Wl,-R/usr/lib ${LIBS}" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* php_cv_cc_dashwlr=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* php_cv_cc_dashwlr=no fi rm -f conftest* LIBS="${SAVE_LIBS}" fi echo "$ac_t""$php_cv_cc_dashwlr" 1>&6 if test $php_cv_cc_rpath = "yes"; then ld_runpath_switch="-Wl,-R" apxs_runpath_switch="-Wl,-R'" fi fi if test -z "$ld_runpath_switch" ; then ld_runpath_switch="-L" apxs_runpath_switch="-L'" fi echo $ac_n "checking for exp in -lm""... $ac_c" 1>&6 echo "configure:1198: checking for exp in -lm" >&5 ac_lib_var=`echo m'_'exp | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 XTRALIBS="$XTRALIBS -lm" else echo "$ac_t""no" 1>&6 fi LIBS="$XTRALIBS $LIBS" echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:1242: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo "configure:1322: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6 echo "configure:1427: checking for strcasecmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strcasecmp(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) choke me #else strcasecmp(); #endif ; return 0; } EOF if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_strcasecmp=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_strcasecmp=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 STRINGS="-DNEED_STRCASECMP $STRINGS" fi echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6 echo "configure:1476: checking for strncasecmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_strncasecmp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strncasecmp(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp) choke me #else strncasecmp(); #endif ; return 0; } EOF if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_strncasecmp=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_strncasecmp=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'strncasecmp`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 STRINGS="-DNEED_STRNCASECMP $STRINGS" fi echo $ac_n "checking for strdup""... $ac_c" 1>&6 echo "configure:1525: checking for strdup" >&5 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strdup(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strdup) || defined (__stub___strdup) choke me #else strdup(); #endif ; return 0; } EOF if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_strdup=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_strdup=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 STRINGS="-DNEED_STRDUP $STRINGS" fi unset ac_cv_lib_gd_gdImageGif unset ac_cv_lib_gd_gdImageString16 unset ac_cv_lib_gd_gdImageJpeg unset ac_cv_lib_gd_gdImagePng echo "checking which version of GD to use..." 1>&6 echo "configure:1583: checking which version of GD to use..." >&5 # Check whether --with-gd or --without-gd was given. if test "${with_gd+set}" = set; then withval="$with_gd" : fi if test "$with_gd" = "no" ; then { echo "configure: error: gd library cannot be disabled" 1>&2; exit 1; } elif test -n "$with_gd" -a "$with_gd" != "yes" ; then if test -z "$with_gd" || echo "$with_gd" | grep '^/' >/dev/null ; then GD_DIR="$with_gd" else GD_DIR="`pwd`/$with_gd" fi test -f $GD_DIR/include/gd.h && GD_INCLUDE="$GD_DIR/include" test -f $GD_DIR/include/gd/gd.h && GD_INCLUDE="$GD_DIR/include/gd" test -f $GD_DIR/gd.h && GD_INCLUDE="$GD_DIR" test -f $GD_DIR/lib/libgd.a && GD_LIBDIR="$GD_DIR/lib" test -f $GD_DIR/.libs/libgd.a && GD_LIBDIR="$GD_DIR/.libs" test -f $GD_DIR/_libs/libgd.a && GD_LIBDIR="$GD_DIR/_libs" test -f $GD_DIR/libgd.a && GD_LIBDIR="$GD_DIR" if test -n "$GD_INCLUDE" -a -n "$GD_LIBDIR" ; then GD_INC=-I$GD_INCLUDE GD_LIB="-L$GD_LIBDIR -lgd" if test ""$GD_LIBDIR"" != "/usr/lib"; then if test -z ""$GD_LIBDIR"" || echo ""$GD_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$GD_LIBDIR"" else ai_p="`pwd`/"$GD_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi else { echo "configure: error: "Could not find gd.h or libgd.a in $GD_DIR. Make sure gd is compiled before calling configure."" 1>&2; exit 1; } fi echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6 echo "configure:1641: checking for gdImageGif in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd $GD_LIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_2 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageString16 in -lgd""... $ac_c" 1>&6 echo "configure:1681: checking for gdImageString16 in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageString16 | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd $GD_LIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_3 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6 echo "configure:1721: checking for gdImagePng in -lgd" >&5 ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd $GD_LIB -lpng -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6 echo "configure:1761: checking for gdImageJpeg in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd $GD_LIB -ljpeg -lpng -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_8 else echo "$ac_t""no" 1>&6 fi echo "$ac_t"" using GD ($GD_DEF) from $GD_DIR." 1>&6 else echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6 echo "configure:1806: checking for gdImageGif in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_2 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageString16 in -lgd""... $ac_c" 1>&6 echo "configure:1846: checking for gdImageString16 in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageString16 | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_3 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6 echo "configure:1886: checking for gdImagePng in -lgd" >&5 ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd -lpng -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6 echo "configure:1926: checking for gdImageJpeg in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgd -ljpeg -lpng -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 GD_DEF=-DUSE_GD_1_8 else echo "$ac_t""no" 1>&6 fi if test -n "$GD_DEF" ; then GD_LIB="-lgd" echo "$ac_t"" using GD ($GD_DEF) from system libs." 1>&6 else GD_DEF=-DUSE_GD_1_2 MAKE_GD=gd MAKE_GD_CLEAN=gd_clean if test -z "gd-1.2" || echo "gd-1.2" | grep '^/' >/dev/null ; then GD_DIR="gd-1.2" else GD_DIR="`pwd`/gd-1.2" fi GD_INC=-I$GD_DIR GD_LIB="-L$GD_DIR -lgd" if test ""$GD_DIR"" != "/usr/lib"; then if test -z ""$GD_DIR"" || echo ""$GD_DIR"" | grep '^/' >/dev/null ; then ai_p=""$GD_DIR"" else ai_p="`pwd`/"$GD_DIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi test -f $GD_DIR/Makefile.in && GD_MAKEFILE="$GD_DIR/Makefile" echo "$ac_t"" using GD ($GD_DEF) from $GD_DIR." 1>&6 fi fi if test "$ac_cv_lib_gd_gdImagePng" = "yes"; then GD_LIB="$GD_LIB -lpng -lz" fi ALL_ENABLED="$GD_DEF $ALL_ENABLED" ALL_INC="$GD_INC $ALL_INC" ALL_LIB="$GD_LIB $ALL_LIB" unset ac_cv_lib_tiff_TIFFOpen echo "checking whether we should include TIFF support..." 1>&6 echo "configure:2027: checking whether we should include TIFF support..." >&5 # Check whether --with-tiff or --without-tiff was given. if test "${with_tiff+set}" = set; then withval="$with_tiff" : fi if test "$with_tiff" = "no" ; then echo "$ac_t"" disabled by --without-tiff" 1>&6 elif test -n "$with_tiff" -a "$with_tiff" != "yes" ; then if test -z "$with_tiff" || echo "$with_tiff" | grep '^/' >/dev/null ; then TIFF_DIR="$with_tiff" else TIFF_DIR="`pwd`/$with_tiff" fi test -f $TIFF_DIR/include/tiffio.h && TIFF_INCLUDE="$TIFF_DIR/include" test -f $TIFF_DIR/libtiff/tiffio.h && TIFF_INCLUDE="$TIFF_DIR/libtiff" test -f $TIFF_DIR/include/libtiff/tiffio.h && TIFF_INCLUDE="$TIFF_DIR/include/libtiff" test -f $TIFF_DIR/tiffio.h && TIFF_INCLUDE="$TIFF_DIR" test -f $TIFF_DIR/lib/libtiff.a && TIFF_LIBDIR="$TIFF_DIR/lib" test -f $TIFF_DIR/libtiff/libtiff.a && TIFF_LIBDIR="$TIFF_DIR/libtiff" test -f $TIFF_DIR/libtiff.a && TIFF_LIBDIR="$TIFF_DIR" if test -n "$TIFF_INCLUDE" -a -n "$TIFF_LIBDIR" ; then TMP_LIB="-L$TIFF_LIBDIR -ltiff" echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6 echo "configure:2056: checking for TIFFOpen in -ltiff" >&5 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ltiff $TMP_LIB $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 TIFF_LIB=$TMP_LIB else echo "$ac_t""no" 1>&6 fi if test -z "$TIFF_LIB" ; then echo "checking whether libtiff works with zlib (-lz)..." 1>&6 echo "configure:2098: checking whether libtiff works with zlib (-lz)..." >&5 unset ac_cv_lib_tiff_TIFFOpen echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6 echo "configure:2101: checking for TIFFOpen in -ltiff" >&5 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ltiff $TMP_LIB -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 TIFF_LIB="$TMP_LIB -lz" else echo "$ac_t""no" 1>&6 fi fi if test -z "$TIFF_LIB" ; then { echo "configure: error: "Unable to link against libtiff using $TMP_LIB"" 1>&2; exit 1; } fi TIFF_INC=-I$TIFF_INCLUDE if test ""$TIFF_LIBDIR"" != "/usr/lib"; then if test -z ""$TIFF_LIBDIR"" || echo ""$TIFF_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$TIFF_LIBDIR"" else ai_p="`pwd`/"$TIFF_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi else { echo "configure: error: "Could not find tiffio.h or libtiff.a in $TIFF_DIR."" 1>&2; exit 1; } fi TIFF_ENABLED="-DUSE_TIFF" echo "$ac_t"" using libtiff ($TIFF_LIB)." 1>&6 else echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6 echo "configure:2178: checking for TIFFOpen in -ltiff" >&5 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ltiff $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 TIFF_LIB=-ltiff else echo "$ac_t""no" 1>&6 fi if test -z "$TIFF_LIB" ; then echo "checking whether libtiff works with zlib (-lz)..." 1>&6 echo "configure:2219: checking whether libtiff works with zlib (-lz)..." >&5 unset ac_cv_lib_tiff_TIFFOpen echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6 echo "configure:2222: checking for TIFFOpen in -ltiff" >&5 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ltiff -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 TIFF_LIB="-ltiff -lz" else echo "$ac_t""no" 1>&6 fi fi if test -n "$TIFF_LIB" ; then TIFF_ENABLED=-DUSE_TIFF echo "$ac_t"" using libtiff from system libs." 1>&6 else echo "$ac_t"" libtiff not found... TIFF support not included." 1>&6 fi fi ALL_ENABLED="$TIFF_ENABLED $ALL_ENABLED" ALL_INC="$TIFF_INC $ALL_INC" ALL_LIB="$TIFF_LIB $ALL_LIB" unset ac_cv_lib_jpeg_jpeg_read_header echo "checking whether we should include JPEG support..." 1>&6 echo "configure:2283: checking whether we should include JPEG support..." >&5 # Check whether --with-jpeg or --without-jpeg was given. if test "${with_jpeg+set}" = set; then withval="$with_jpeg" : fi if test "$with_jpeg" = "no" ; then echo "$ac_t"" disabled by --without-jpeg" 1>&6 elif test -n "$with_jpeg" -a "$with_jpeg" != "yes" ; then if test -z "$with_jpeg" || echo "$with_jpeg" | grep '^/' >/dev/null ; then JPEG_DIR="$with_jpeg" else JPEG_DIR="`pwd`/$with_jpeg" fi test -f $JPEG_DIR/include/jpeg/jpeglib.h && JPEG_INCLUDE="$JPEG_DIR/include/jpeg" test -f $JPEG_DIR/include/jpeglib.h && JPEG_INCLUDE="$JPEG_DIR/include" test -f $JPEG_DIR/lib/jpeglib.h && JPEG_INCLUDE="$JPEG_DIR/lib" test -f $JPEG_DIR/jpeglib.h && JPEG_INCLUDE="$JPEG_DIR" test -f $JPEG_DIR/lib/libjpeg.a && JPEG_LIBDIR="$JPEG_DIR/lib" test -f $JPEG_DIR/libjpeg.a && JPEG_LIBDIR="$JPEG_DIR" if test -n "$JPEG_INCLUDE" -a -n "$JPEG_LIBDIR" ; then JPEG_INC=-I$JPEG_INCLUDE JPEG_LIB="-L$JPEG_LIBDIR -ljpeg" if test ""$JPEG_LIBDIR"" != "/usr/lib"; then if test -z ""$JPEG_LIBDIR"" || echo ""$JPEG_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$JPEG_LIBDIR"" else ai_p="`pwd`/"$JPEG_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi else { echo "configure: error: "Could not find jpeglib.h.h or libjpeg.a in $JPEG_DIR."" 1>&2; exit 1; } fi JPEG_ENABLED="-DUSE_JPEG" echo "$ac_t"" using libjpeg from $JPEG_DIR." 1>&6 else echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 echo "configure:2342: checking for jpeg_read_header in -ljpeg" >&5 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ljpeg $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 JPEG_ENABLED=-DUSE_JPEG else echo "$ac_t""no" 1>&6 fi if test -n "$JPEG_ENABLED" ; then JPEG_LIB="-ljpeg" echo "$ac_t"" using libjpeg from system libs." 1>&6 else echo "$ac_t"" libjpeg not found... JPEG support not included." 1>&6 fi fi ALL_ENABLED="$JPEG_ENABLED $ALL_ENABLED" ALL_INC="$JPEG_INC $ALL_INC" ALL_LIB="$JPEG_LIB $ALL_LIB" echo "checking whether we should include EPPL7 support..." 1>&6 echo "configure:2401: checking whether we should include EPPL7 support..." >&5 # Check whether --with-eppl or --without-eppl was given. if test "${with_eppl+set}" = set; then withval="$with_eppl" : fi if test "$with_eppl" = "no" ; then echo "$ac_t"" disabled by --without-eppl" 1>&6 else EPPL_OBJ="epplib.o" EPPL_ENABLED="-DUSE_EPPL" echo "$ac_t"" including EPPL7 support." 1>&6 fi ALL_ENABLED="$EPPL_ENABLED $ALL_ENABLED" unset ac_cv_lib_ttf_TT_Init_FreeType echo "checking whether we should include Freetype (TTF) support..." 1>&6 echo "configure:2429: checking whether we should include Freetype (TTF) support..." >&5 # Check whether --with-ttf or --without-ttf was given. if test "${with_ttf+set}" = set; then withval="$with_ttf" : fi if test "$with_ttf" = "no" ; then echo "$ac_t"" disabled by --without-ttf" 1>&6 elif test -n "$with_ttf" -a "$with_ttf" != "yes" ; then if test -z "$with_ttf" || echo "$with_ttf" | grep '^/' >/dev/null ; then TTF_DIR="$with_ttf" else TTF_DIR="`pwd`/$with_ttf" fi test -f $TTF_DIR/include/freetype/freetype.h && TTF_INCLUDE="$TTF_DIR/include/freetype" test -f $TTF_DIR/include/freetype.h && TTF_INCLUDE="$TTF_DIR/include" test -f $TTF_DIR/lib/freetype.h && TTF_INCLUDE="$TTF_DIR/lib" test -f $TTF_DIR/freetype.h && TTF_INCLUDE="$TTF_DIR" test -f $TTF_DIR/lib/.libs/libttf.a && TTF_LIBDIR="$TTF_DIR/lib/.libs" test -f $TTF_DIR/lib/libttf.a && TTF_LIBDIR="$TTF_DIR/lib" test -f $TTF_DIR/libttf.a && TTF_LIBDIR="$TTF_DIR" test -f $TTF_DIR/lib/.libs/libttf.so && TTF_LIBDIR="$TTF_DIR/lib/.libs" test -f $TTF_DIR/lib/libttf.so && TTF_LIBDIR="$TTF_DIR/lib" test -f $TTF_DIR/libttf.so && TTF_LIBDIR="$TTF_DIR" if test -n "$TTF_INCLUDE" -a -n "$TTF_LIBDIR" ; then TTF_INC=-I$TTF_INCLUDE TTF_LIB="-L$TTF_LIBDIR -lttf" if test ""$TTF_LIBDIR"" != "/usr/lib"; then if test -z ""$TTF_LIBDIR"" || echo ""$TTF_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$TTF_LIBDIR"" else ai_p="`pwd`/"$TTF_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi else { echo "configure: error: "Could not find freetype.h or libttf.so/libttf.a in $TTF_DIR."" 1>&2; exit 1; } fi TTF_ENABLED="-DUSE_TTF" echo "$ac_t"" using ttf from $TTF_DIR." 1>&6 else echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6 echo "configure:2493: checking for TT_Init_FreeType in -lttf" >&5 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lttf $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 TTF_FOUND_LIB=yes else echo "$ac_t""no" 1>&6 fi ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 echo "configure:2534: checking for freetype.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 TTF_FOUND_HDR=yes else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6 echo "configure:2567: checking for TT_Init_FreeType in -lttf" >&5 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lttf $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 TTF_ENABLED=-DUSE_TTF else echo "$ac_t""no" 1>&6 fi if test -n "$TTF_FOUND_LIB" -a -z "$TTF_FOUND_HDR" ; then echo $ac_n "checking for the location of freetype.h""... $ac_c" 1>&6 echo "configure:2610: checking for the location of freetype.h" >&5 for dirname in /usr /usr/lib /usr/local /usr/local/lib \ /usr/pkg /pkg/lib do for subdirname in include include/freetype do if test -f "$dirname/$subdirname/freetype.h" ; then TTF_INC="-I$dirname/$subdirname" TTF_FOUND_HDR=yes echo "$ac_t""$dirname/$subdirname/freetype.h" 1>&6 fi done done if test -z "$TTF_FOUND_HDR" ; then echo "$ac_t""not found" 1>&6 echo "$ac_t"" found libttf in system libs, but freetype.h was not found..." 1>&6 fi fi if test -n "$TTF_FOUND_LIB" -a -n "$TTF_FOUND_HDR" ; then TTF_ENABLED=-DUSE_TTF TTF_LIB="-lttf" echo "$ac_t"" using libttf from system libs." 1>&6 else echo "$ac_t"" Freetype support not included." 1>&6 fi fi if test -n "$TTF_ENABLED" ; then if test -z "gdft" || echo "gdft" | grep '^/' >/dev/null ; then GDFT_DIR="gdft" else GDFT_DIR="`pwd`/gdft" fi TTF_LIB="-L$GDFT_DIR -lgdft $TTF_LIB" if test ""$GDFT_DIR"" != "/usr/lib"; then if test -z ""$GDFT_DIR"" || echo ""$GDFT_DIR"" | grep '^/' >/dev/null ; then ai_p=""$GDFT_DIR"" else ai_p="`pwd`/"$GDFT_DIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi TTF_INC="-I$GDFT_DIR $TTF_INC" MAKE_GDFT="gdft" MAKE_GDFT_CLEAN="gdft_clean" fi ALL_ENABLED="$TTF_ENABLED $ALL_ENABLED" ALL_INC="$TTF_INC $ALL_INC" ALL_LIB="$TTF_LIB $ALL_LIB" unset ac_cv_lib_proj_pj_init echo "checking whether we should include PROJ.4 support..." 1>&6 echo "configure:2691: checking whether we should include PROJ.4 support..." >&5 # Check whether --with-proj or --without-proj was given. if test "${with_proj+set}" = set; then withval="$with_proj" : fi if test "$with_proj" = "yes" ; then echo $ac_n "checking for pj_init in -lproj""... $ac_c" 1>&6 echo "configure:2702: checking for pj_init in -lproj" >&5 ac_lib_var=`echo proj'_'pj_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lproj $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 PROJ_ENABLED=-DUSE_PROJ else echo "$ac_t""no" 1>&6 fi if test -n "$PROJ_ENABLED" ; then PROJ_LIB="-lproj" echo "$ac_t"" using PROJ.4 from system libs." 1>&6 else echo "configure: warning: PROJ.4 not found in system libs... use --with-proj=DIR." 1>&2 fi elif test -n "$with_proj" -a "$with_proj" != "no" ; then if test -z "$with_proj" || echo "$with_proj" | grep '^/' >/dev/null ; then PROJ_DIR="$with_proj" else PROJ_DIR="`pwd`/$with_proj" fi test -f $PROJ_DIR/include/projects.h && PROJ_INCLUDE="$PROJ_DIR/include" test -f $PROJ_DIR/include/proj/projects.h && PROJ_INCLUDE="$PROJ_DIR/include/proj" test -f $PROJ_DIR/src/projects.h && PROJ_INCLUDE="$PROJ_DIR/src" test -f $PROJ_DIR/projects.h && PROJ_INCLUDE="$PROJ_DIR" test -f $PROJ_DIR/src/.libs/libproj.a && PROJ_LIBDIR="$PROJ_DIR/src/.libs" test -f $PROJ_DIR/lib/libproj.a && PROJ_LIBDIR="$PROJ_DIR/lib" test -f $PROJ_DIR/libproj.a && PROJ_LIBDIR="$PROJ_DIR" if test -n "$PROJ_INCLUDE" -a -n "$PROJ_LIBDIR" ; then PROJ_INC=-I$PROJ_INCLUDE PROJ_LIB="-L$PROJ_LIBDIR -lproj" if test ""$PROJ_LIBDIR"" != "/usr/lib"; then if test -z ""$PROJ_LIBDIR"" || echo ""$PROJ_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$PROJ_LIBDIR"" else ai_p="`pwd`/"$PROJ_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi else { echo "configure: error: "Could not find projects.h or libproj.a in $PROJ_DIR."" 1>&2; exit 1; } fi PROJ_ENABLED=-DUSE_PROJ echo "$ac_t"" using PROJ.4 from $PROJ_DIR." 1>&6 else echo "$ac_t"" PROJ.4 support not requested." 1>&6 fi ALL_ENABLED="$PROJ_ENABLED $ALL_ENABLED" ALL_INC="$PROJ_INC $ALL_INC" ALL_LIB="$PROJ_LIB $ALL_LIB" echo "checking whether we should include ESRI SDE support..." 1>&6 echo "configure:2812: checking whether we should include ESRI SDE support..." >&5 # Check whether --with-sde or --without-sde was given. if test "${with_sde+set}" = set; then withval="$with_sde" : fi if test "$with_sde" = "yes" ; then echo $ac_n "checking for SE_connection_create in -lsde80""... $ac_c" 1>&6 echo "configure:2823: checking for SE_connection_create in -lsde80" >&5 ac_lib_var=`echo sde80'_'SE_connection_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lsde80 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 SDE_ENABLED=-DUSE_SDE else echo "$ac_t""no" 1>&6 fi if test -n "$SDE_ENABLED" ; then SDE_LIB="-lsde80 -lpe -lsg -lpthread -lsocket" echo "$ac_t"" using ESRI SDE from system libs." 1>&6 else echo "configure: warning: ESRI SDE not found in system libs... use --with-sde=DIR." 1>&2 fi elif test -n "$with_sde" -a "$with_sde" != "no" ; then if test -z "$with_sde" || echo "$with_sde" | grep '^/' >/dev/null ; then SDE_DIR="$with_sde" else SDE_DIR="`pwd`/$with_sde" fi test -f $SDE_DIR/arcsde/coverages/include/sdetype.h && SDE_INCDIR="$SDE_DIR/arcsde/coverages/include" test -f $SDE_DIR/include/sdetype.h && SDE_INCDIR="$SDE_DIR/include" test -f $SDE_DIR/sdetype.h && SDE_INCDIR="$SDE_DIR" test -f $SDE_DIR/lib/libsde80.a && SDE_LIBDIR="$SDE_DIR/lib" test -f $SDE_DIR/libsde80.a && SDE_LIBDIR="$SDE_DIR" if test -n "$SDE_INCDIR" -a -n "$SDE_LIBDIR" ; then SDE_INC=-I$SDE_INCDIR SDE_LIB="-L$SDE_LIBDIR -lsde80 -lpe80 -lsg80 -lpthread -lsocket" if test ""$SDE_LIBDIR"" != "/usr/lib"; then if test -z ""$SDE_LIBDIR"" || echo ""$SDE_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$SDE_LIBDIR"" else ai_p="`pwd`/"$SDE_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi else { echo "configure: error: "Could not find sdetype.h or libsde80.a in $SDE_DIR."" 1>&2; exit 1; } fi SDE_ENABLED=-DUSE_SDE echo "$ac_t"" using ESRI SDE from $SDE_DIR." 1>&6 else echo "$ac_t"" ESRI SDE support not requested." 1>&6 fi ALL_ENABLED="$SDE_ENABLED $ALL_ENABLED" ALL_INC="$SDE_INC $ALL_INC" ALL_LIB="$SDE_LIB $ALL_LIB" echo "checking whether we should compile in MPATROL support..." 1>&6 echo "configure:2933: checking whether we should compile in MPATROL support..." >&5 # Check whether --with-mpatrol or --without-mpatrol was given. if test "${with_mpatrol+set}" = set; then withval="$with_mpatrol" : fi if test "$with_mpatrol" = "yes" ; then echo $ac_n "checking for __mp_free in -lmpatrol""... $ac_c" 1>&6 echo "configure:2943: checking for __mp_free in -lmpatrol" >&5 ac_lib_var=`echo mpatrol'_'__mp_free | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lmpatrol $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPATROL_ENABLED=-DUSE_MPATROL else echo "$ac_t""no" 1>&6 fi if test -n "$MPATROL_ENABLED" ; then MPATROL_LIB="-lbfd -liberty -lmpatrol" echo "$ac_t"" using MPATROL from system libs." 1>&6 else echo "configure: warning: MPATROL not found in system libs... use --with-mpatrol=DIR." 1>&2 fi elif test -n "$with_mpatrol" -a "$with_patrol" != "no" ; then if test -z "$with_mpatrol" || echo "$with_mpatrol" | grep '^/' >/dev/null ; then MPATROL_DIR="$with_mpatrol" else MPATROL_DIR="`pwd`/$with_mpatrol" fi test -f $MPATROL_DIR/mpatrol.h && MPATROL_INCDIR="$MPATROL_DIR" test -f $MPATROL_DIR/include/mpatrol.h && MPATROL_INCDIR="$MPATROL_DIR/include" test -f $MPATROL_DIR/libmpatrol.a && MPATROL_LIBDIR="$MPATROL_DIR" test -f $MPATROL_DIR/lib/libmpatrol.a && MPATROL_LIBDIR="$MPATROL_DIR/lib" test -f $MPATROL_DIR/libmpatrol.so && MPATROL_LIBDIR="$MPATROL_DIR" test -f $MPATROL_DIR/lib/libmpatrol.so && MPATROL_LIBDIR="$MPATROL_DIR/lib" if test -n "$MPATROL_INCDIR" -a -n "$MPATROL_LIBDIR" ; then MPATROL_INC=-I$MPATROL_INCDIR MPATROL_LIB="-L$MPATROL_LIBDIR -lbfd -liberty -lmpatrol" if test ""$MPATROL_LIBDIR"" != "/usr/lib"; then if test -z ""$MPATROL_LIBDIR"" || echo ""$MPATROL_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$MPATROL_LIBDIR"" else ai_p="`pwd`/"$MPATROL_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi else { echo "configure: error: "Could not find mpatrol.h or libmpatrol.a/libmpatrol.so in $MPATROL_DIR."" 1>&2; exit 1; } fi MPATROL_ENABLED=-DUSE_MPATROL echo "$ac_t"" using MPATROL from $MPATROL_DIR." 1>&6 else echo "$ac_t"" MPATROL support not requested." 1>&6 fi ALL_ENABLED="$MPATROL_ENABLED $ALL_ENABLED" ALL_INC="$MPATROL_INC $ALL_INC" ALL_LIB="$MPATROL_LIB $ALL_LIB" echo "checking whether we should include OGR support..." 1>&6 echo "configure:3052: checking whether we should include OGR support..." >&5 # Check whether --with-ogr or --without-ogr was given. if test "${with_ogr+set}" = set; then withval="$with_ogr" : fi if test "$with_ogr" = "yes" ; then echo $ac_n "checking for OGRRegisterAll in -lgdal.1.1""... $ac_c" 1>&6 echo "configure:3063: checking for OGRRegisterAll in -lgdal.1.1" >&5 ac_lib_var=`echo gdal.1.1'_'OGRRegisterAll | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lgdal.1.1 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 OGR_ENABLED=-DUSE_OGR else echo "$ac_t""no" 1>&6 fi if test -n "$OGR_ENABLED" ; then OGR_LIB="-lgdal.1.1 -ljpeg -lpng -ldl -logdi -lzlib" echo "$ac_t"" using OGR from system libs." 1>&6 else echo "configure: warning: OGR not found in system libs... use --with-ogr=DIR." 1>&2 fi elif test -n "$with_ogr" -a "$with_ogr " != "no" ; then if test -z "$with_ogr" || echo "$with_ogr" | grep '^/' >/dev/null ; then OGR_DIR="$with_ogr" else OGR_DIR="`pwd`/$with_ogr" fi test -f $OGR_DIR/ogr/ogr_feature.h && OGR_DIR="$OGR_DIR/ogr" test -f $OGR_DIR/ogr_feature.h && OGR_INCDIR="$OGR_DIR" test -f $OGR_DIR/ogrsf_frmts/ogrsf_frmts.h && OGR_FRMTSDIR="$OGR_DIR/ogrsf_frmts" test -f $OGR_DIR/../port/cpl_conv.h && OGR_CPLDIR="$OGR_DIR/../port" test -f $OGR_DIR/port/cpl_conv.h && OGR_CPLDIR="$OGR_DIR/port" test -f $OGR_DIR/ogr.a && OGR_OGRLIB="$OGR_DIR/ogr.a" test -f $OGR_DIR/ogrsf_frmts/ogrsf_frmts.a && OGR_FRMTSLIB="$OGR_DIR/ogrsf_frmts/ogrsf_frmts.a" test -f $OGR_DIR/../port/cpl.a && OGR_CPLLIB="$OGR_DIR/../port/cpl.a" test -f $OGR_DIR/port/cpl.a && OGR_CPLLIB="$OGR_DIR/port/cpl.a" if test -n "$OGR_INCDIR" -a -n "$OGR_FRMTSDIR" -a -n "$OGR_CPLDIR" -a \ -n "$OGR_OGRLIB" -a -n "$OGR_FRMTSLIB" -a -n "$OGR_CPLLIB" ; then OGR_INC="-I$OGR_FRMTSDIR -I$OGR_INCDIR -I$OGR_CPLDIR" OGR_LIB="$OGR_FRMTSLIB $OGR_OGRLIB $OGR_CPLLIB" if test -n "$TOPDIR" -a -n "$TARGET" ; then OGDI_LIBDIR="$TOPDIR/bin/$TARGET" OGR_LIB="$OGR_LIB -L$TOPDIR/bin/$TARGET -logdi -lzlib -ldl" if test ""$OGDI_LIBDIR"" != "/usr/lib"; then if test -z ""$OGDI_LIBDIR"" || echo ""$OGDI_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$OGDI_LIBDIR"" else ai_p="`pwd`/"$OGDI_LIBDIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi fi else { echo "configure: error: Could not find one of ogr_feature.h, ogrsf_fmrts.h, cpl_conv.h, ogr.a, ogrsf_frmts.a, or cpl.a in $OGR_DIR." 1>&2; exit 1; } fi OGR_ENABLED=-DUSE_OGR echo "$ac_t"" using OGR from $OGR_DIR." 1>&6 else echo "$ac_t"" OGR support not requested." 1>&6 fi ALL_ENABLED="$OGR_ENABLED $ALL_ENABLED" ALL_INC="$OGR_INC $ALL_INC" ALL_LIB="$OGR_LIB $ALL_LIB" MS_DIR="`pwd`" MS_INC="-I$MS_DIR" MS_LIB="-L$MS_DIR -lmap" if test ""$MS_DIR"" != "/usr/lib"; then if test -z ""$MS_DIR"" || echo ""$MS_DIR"" | grep '^/' >/dev/null ; then ai_p=""$MS_DIR"" else ai_p="`pwd`/"$MS_DIR"" fi unique=`echo $ac_n "$ai_p$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi fi # Check whether --enable-ignore-missing-data or --disable-ignore-missing-data was given. if test "${enable_ignore_missing_data+set}" = set; then enableval="$enable_ignore_missing_data" : fi if test "enable_ignore_missing_data" != "no" ; then IGNORE_MISSING_DATA="-DIGNORE_MISSING_DATA" echo "$ac_t""Compiling with -DIGNORE_MISSING_DATA." 1>&6 fi # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" : fi if test "$enable_debug" = "yes" ; then # -g should already be in compile flags. # check for GNU compiler, and add -Wall if test "$GCC" = "yes"; then C_WFLAGS="-Wall" CFLAGS="$CFLAGS -Wall" cat >> confdefs.h <<\EOF #define USE_GNUCC 1 EOF fi if test "$GXX" = "yes"; then CXX_WFLAGS="-Wall" CXXFLAGS="$CXXFLAGS -Wall" cat >> confdefs.h <<\EOF #define USE_GNUCC 1 EOF fi else # Remove -g from compile flags, we will add via CFG variable if # we need it. CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-g //"` CFLAGS=`echo "$CFLAGS " | sed "s/-g //"` # check for GNU compiler, and use -Wall if test "$GCC" = "yes"; then C_WFLAGS="-Wall" CFLAGS="$CFLAGS -Wall" cat >> confdefs.h <<\EOF #define USE_GNUCC 1 EOF fi if test "$GXX" = "yes"; then CXX_WFLAGS="-Wall" CXXFLAGS="$CXXFLAGS -Wall" cat >> confdefs.h <<\EOF #define USE_GNUCC 1 EOF fi fi echo "checking for PHP/MapScript module options..." 1>&6 echo "configure:3290: checking for PHP/MapScript module options..." >&5 # Check whether --with-php or --without-php was given. if test "${with_php+set}" = set; then withval="$with_php" : fi if test -n "$with_php" -a -d "$with_php" ; then if test -z "$with_php" || echo "$with_php" | grep '^/' >/dev/null ; then PHP_SRC_DIR="$with_php" else PHP_SRC_DIR="`pwd`/$with_php" fi echo $ac_n "checking whether 'perl -V' works""... $ac_c" 1>&6 echo "configure:3307: checking whether 'perl -V' works" >&5 if (perl -V > /dev/null 2>&1) ; then echo "$ac_t""yes" 1>&6 # # The following is a massive hack. It tries to steal the # mechanism for build a dynamic library from Perl's -V output # If this script fails on this machine, try running 'perl -V' # manually and pick out the setting for: # # cc, optimize, ccflags, ld, cccdlflags and lddlflags # # Replace the below definitions with the output you see. # if test ! -r "perl.out"; then perl -V > perl.out fi # if the greps and cuts don't do the job, set these manually PERL_CC="`grep ' cc=' perl.out | cut -d, -f1 | cut -d\' -f2`" PERL_OPT="`grep ' optimize=' perl.out | cut -d, -f2 | cut -d\' -f2`" PERL_CCFLAGS="`grep ' ccflags' perl.out | cut -d, -f1 | cut -d\' -f2`" PERL_LD="`grep ' ld=' perl.out | cut -d, -f1 | cut -d\' -f2`" PERL_LFLAGS="`grep ' cccdlflags=' perl.out | cut -d, -f1 | cut -d\' -f2`" PERL_CCDLFLAGS="`grep ' ccdlflags=' perl.out | cut -d, -f4 | cut -d\' -f2 | sed 's, ,,'`" PERL_LDDLFLAGS=`grep ' lddlflags' perl.out | cut -d, -f2 | cut -d\' -f2` #-------- if test -n "$PERL_CCDLFLAGS" ; then echo "-------------------------" echo "----- IMPORTANT !!! -----" echo "-------------------------" echo "To use PHP extensions on your OS, you will need to recompile " echo "PHP. " echo "You need to edit the Makefile in the php3 directory and add " echo "$PERL_CCDLFLAGS to the start of the LDFLAGS line at the top " echo "of the Makefile. Then type: 'make clean; make' " echo "You can still go ahead and build the extensions now by typing" echo "'make' in this directory. They just won't work correctly " echo "until you recompile your PHP. " echo "If you are compiling php as a module, you should also add " echo "$PERL_CCDLFLAGS to the start of the EXTRA_LDFLAGS in Apache " echo "Configuration file. Note that if you are using the APACI " echo "build mechanism you should make this change in the " echo "Configuration.tmpl file instead. " echo "-------------------------" echo "-------------------------" echo "-------------------------" fi PERL_CC="$PERL_CC $PERL_OPT $PERL_CCFLAGS -I. -I.. $PERL_LFLAGS" PERL_LD="$PERL_LD $PERL_LDDLFLAGS $PERL_CCDLFLAGS" rm -f perl.out PHP_CC="$PERL_CC" PHP_LD="$PERL_LD" else echo "$ac_t""no" 1>&6 echo 'void f(){}' > conftest.c if test -z "`${CC} -fPIC -c conftest.c 2>&1`"; then C_PIC=-fPIC else C_PIC= fi rm -f conftest* echo 'void g(); int main(){ g(); return 0; }' > conftest1.c echo 'void g(); void g(){}' > conftest2.c ${CC} ${C_PIC} -c conftest2.c LD_SHARED="/bin/true" if test "`uname -s`" = "SunOS" \ -a -z "`ld -G conftest2.o -o libconftest.so 2>&1`" ; then if test -z "`${CC} conftest1.c libconftest.so -o conftest1 2>&1`"; then LD_LIBRARY_PATH_OLD="$LD_LIBRARY_PATH" LD_LIBRARY_PATH="`pwd`" export LD_LIBRARY_PATH if test -z "`./conftest1 2>&1`" ; then echo "checking for ld -G ... yes" LD_SHARED="ld -G" fi LD_LIBRARY_PATH="$LD_LIBRARY_PATH_OLD" fi fi if test "$LD_SHARED" = "/bin/true" ; then if test -z "`${CC} -shared conftest2.o -o libconftest.so 2>&1`" ; then if test -z "`${CC} conftest1.c libconftest.so -o conftest1 2>&1`"; then LD_LIBRARY_PATH_OLD="$LD_LIBRARY_PATH" LD_LIBRARY_PATH="`pwd`" export LD_LIBRARY_PATH if test -z "`./conftest1 2>&1`" ; then echo "checking for ${CC} -shared ... yes" LD_SHARED="${CC} -shared" else echo "checking for ${CC} -shared ... no(3)" fi LD_LIBRARY_PATH="$LD_LIBRARY_PATH_OLD" else echo "checking for ${CC} -shared ... no(2)" fi else echo "checking for ${CC} -shared ... no(1)" fi fi if test "$LD_SHARED" = "/bin/true" \ -a -z "`ld -shared conftest2.o -o libconftest.so 2>&1`" ; then if test -z "`${CC} conftest1.c libconftest.so -o conftest1 2>&1`"; then LD_LIBRARY_PATH_OLD="$LD_LIBRARY_PATH" LD_LIBRARY_PATH="`pwd`" export LD_LIBRARY_PATH if test -z "`./conftest1 2>&1`" ; then echo "checking for ld -shared ... yes" LD_SHARED="ld -shared" fi LD_LIBRARY_PATH="$LD_LIBRARY_PATH_OLD" fi fi if test "$LD_SHARED" = "/bin/true" ; then echo "checking for ld -shared ... no" fi rm -f conftest* libconftest* PHP_CC="$CC $C_PIC" PHP_LD="$LD_SHARED" fi echo $ac_n "checking for location of config.h or php_config.h""... $ac_c" 1>&6 echo "configure:3448: checking for location of config.h or php_config.h" >&5 test -f "$PHP_SRC_DIR/config.h" && PHP_CONFIG_H="$PHP_SRC_DIR/config.h" test -f "$PHP_SRC_DIR/php_config.h" && PHP_CONFIG_H="$PHP_SRC_DIR/php_config.h" test -f "$PHP_SRC_DIR/main/php_config.h" && PHP_CONFIG_H="$PHP_SRC_DIR/main/php_config.h" if test -n "$PHP_CONFIG_H" ; then echo "$ac_t""$PHP_CONFIG_H" 1>&6 else { echo "configure: error: !!! Could not find config.h or php_config.h in $PHP_SRC_DIR. !!! !!! Has PHP been configured yet? !!!" 1>&2; exit 1; } fi echo $ac_n "checking whether we have PHP3 or PHP4""... $ac_c" 1>&6 echo "configure:3461: checking whether we have PHP3 or PHP4" >&5 if test -n "`grep 'ZEND_API' $PHP_CONFIG_H`" ; then PHP_VERSION_FLAG="-DPHP4" else PHP_VERSION_FLAG="-DPHP3" fi echo "$ac_t""$PHP_VERSION_FLAG" 1>&6 echo $ac_n "checking whether we should use PHP's regex""... $ac_c" 1>&6 echo "configure:3470: checking whether we should use PHP's regex" >&5 if test -n "`grep 'define REGEX 1' $PHP_CONFIG_H`" ; then echo "$ac_t""yes" 1>&6 if test "$PHP_VERSION_FLAG" = "-DPHP4" ; then { echo "configure: error: !!! The current version of PHP MapScript has some problems with !!! !!! PHP4's bundled regex. Until we figure the solution to the !!! !!! problem, the workaround is to compile PHP4 with the system regex !!! !!! Please re-configure and re-compile PHP4 with --with-system-regex !!! !!! and then re-configure and re-compile MapServer. !!!" 1>&2; exit 1; } fi PHP_REGEX_DIR="$PHP_SRC_DIR/regex" PHP_REGEX_INC="-I$PHP_REGEX_DIR" PHP_REGEX_OBJ="$PHP_REGEX_DIR/regcomp.o $PHP_REGEX_DIR/regerror.o \ $PHP_REGEX_DIR/regexec.o $PHP_REGEX_DIR/regfree.o" ALL_INC="$PHP_REGEX_INC $ALL_INC" else echo "$ac_t""no" 1>&6 fi if test -n "$TTF_ENABLED" -a "$PHP_VERSION_FLAG" = "-DPHP4" ; then echo $ac_n "checking whether PHP4 was compiled with TTF support""... $ac_c" 1>&6 echo "configure:3494: checking whether PHP4 was compiled with TTF support" >&5 if test -n "`grep 'define HAVE_LIBTTF 1' $PHP_CONFIG_H`" ; then echo "$ac_t""yes" 1>&6 { echo "configure: error: !!! Cannot have both PHP4 and MapScript compiled with Freetype support. !!! !!! You have to configure either PHP or MapServer using the --without-ttf !!! !!! switch to avoid conflicts at runtime. !!!" 1>&2; exit 1; } else echo "$ac_t""no" 1>&6 fi fi PHPMS_MAKEFILE=mapscript/php3/Makefile MAKE_PHPMS=php3_mapscript MAKE_PHPMS_CLEAN=php3_mapscript_clean echo "$ac_t"" PHP/MapScript module configured." 1>&6 elif test -n "$with_php" -a "$with_php" != "no" ; then { echo "configure: error: Missing or invalid PHP source directory in --with-php=DIR." 1>&2; exit 1; } else echo "$ac_t"" PHP/MapScript module not configured." 1>&6 fi # Check whether --with-apxs or --without-apxs was given. if test "${with_apxs+set}" = set; then withval="$with_apxs" : fi if test -n "$with_apxs" -a "$with_apxs" != "no" ; then echo $ac_n "checking for location of Apache headers using apxs""... $ac_c" 1>&6 echo "configure:3539: checking for location of Apache headers using apxs" >&5 if test -z "$MAKE_PHPMS" ; then { echo "configure: error: --with-apxs applies only if --with-php is used." 1>&2; exit 1; } elif test "$with_apxs" = "yes" ; then APXS=apxs else APXS="$with_apxs" fi APACHE_INC=-I`$APXS -q INCLUDEDIR` echo "$ac_t""$APACHE_INC" 1>&6 fi # Check whether --with-apache or --without-apache was given. if test "${with_apache+set}" = set; then withval="$with_apache" : fi if test -n "$with_apache" -a "$with_apache" != "no" ; then echo $ac_n "checking for location of Apache headers""... $ac_c" 1>&6 echo "configure:3566: checking for location of Apache headers" >&5 if test -z "$MAKE_PHPMS" ; then { echo "configure: error: --with-apache applies only if --with-php is used." 1>&2; exit 1; } fi if test -z "$with_apache" || echo "$with_apache" | grep '^/' >/dev/null ; then APACHE_DIR="$with_apache" else APACHE_DIR="`pwd`/$with_apache" fi test -f $APACHE_DIR/httpd.h && APACHE_INC_DIR="$APACHE_DIR" test -f $APACHE_DIR/include/httpd.h && APACHE_INC_DIR="$APACHE_DIR/include" test -f $APACHE_DIR/src/include/httpd.h && APACHE_INC_DIR="$APACHE_DIR/src/include" if test -n "$APACHE_INC_DIR" ; then APACHE_INC="-I$APACHE_INC_DIR $APACHE_INC" echo "$ac_t"""-I$APACHE_INC_DIR"" 1>&6 else { echo "configure: error: "Could not find httpd.h in $APACHE_DIR."" 1>&2; exit 1; } fi fi # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" : fi if test "$enable_runpath" != "yes" ; then RPATHS="" fi trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. cat > conftest.defs <<\EOF s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g s%\[%\\&%g s%\]%\\&%g s%\$%$$%g EOF DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` rm -f conftest.defs # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir trap 'rm -fr `echo "Makefile $GD_MAKEFILE gdft/Makefile $PHPMS_MAKEFILE" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@CC@%$CC%g s%@CXX@%$CXX%g s%@RANLIB@%$RANLIB%g s%@LEX@%$LEX%g s%@LEXLIB@%$LEXLIB%g s%@YACC@%$YACC%g s%@XTRALIBS@%$XTRALIBS%g s%@CPP@%$CPP%g s%@STRINGS@%$STRINGS%g s%@GD_DEF@%$GD_DEF%g s%@GD_INC@%$GD_INC%g s%@GD_LIB@%$GD_LIB%g s%@MAKE_GD@%$MAKE_GD%g s%@MAKE_GD_CLEAN@%$MAKE_GD_CLEAN%g s%@TIFF_ENABLED@%$TIFF_ENABLED%g s%@TIFF_INC@%$TIFF_INC%g s%@TIFF_LIB@%$TIFF_LIB%g s%@JPEG_ENABLED@%$JPEG_ENABLED%g s%@JPEG_INC@%$JPEG_INC%g s%@JPEG_LIB@%$JPEG_LIB%g s%@EPPL_ENABLED@%$EPPL_ENABLED%g s%@EPPL_OBJ@%$EPPL_OBJ%g s%@TTF_ENABLED@%$TTF_ENABLED%g s%@TTF_INC@%$TTF_INC%g s%@TTF_LIB@%$TTF_LIB%g s%@MAKE_GDFT@%$MAKE_GDFT%g s%@MAKE_GDFT_CLEAN@%$MAKE_GDFT_CLEAN%g s%@PROJ_ENABLED@%$PROJ_ENABLED%g s%@PROJ_INC@%$PROJ_INC%g s%@PROJ_LIB@%$PROJ_LIB%g s%@SDE_ENABLED@%$SDE_ENABLED%g s%@SDE_INC@%$SDE_INC%g s%@SDE_LIB@%$SDE_LIB%g s%@MPATROL_ENABLED@%$MPATROL_ENABLED%g s%@MPATROL_INC@%$MPATROL_INC%g s%@MPATROL_LIB@%$MPATROL_LIB%g s%@OGR_ENABLED@%$OGR_ENABLED%g s%@OGR_INC@%$OGR_INC%g s%@OGR_LIB@%$OGR_LIB%g s%@MS_INC@%$MS_INC%g s%@MS_LIB@%$MS_LIB%g s%@IGNORE_MISSING_DATA@%$IGNORE_MISSING_DATA%g s%@CXX_WFLAGS@%$CXX_WFLAGS%g s%@C_WFLAGS@%$C_WFLAGS%g s%@C_PIC@%$C_PIC%g s%@LD_SHARED@%$LD_SHARED%g s%@PHP_VERSION_FLAG@%$PHP_VERSION_FLAG%g s%@PHP_SRC_DIR@%$PHP_SRC_DIR%g s%@PHP_CC@%$PHP_CC%g s%@PHP_LD@%$PHP_LD%g s%@PHP_REGEX_INC@%$PHP_REGEX_INC%g s%@PHP_REGEX_OBJ@%$PHP_REGEX_OBJ%g s%@MAKE_PHPMS@%$MAKE_PHPMS%g s%@MAKE_PHPMS_CLEAN@%$MAKE_PHPMS_CLEAN%g s%@APACHE_INC@%$APACHE_INC%g s%@ALL_ENABLED@%$ALL_ENABLED%g s%@ALL_INC@%$ALL_INC%g s%@ALL_LIB@%$ALL_LIB%g s%@RPATHS@%$RPATHS%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1