#! /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 --without-jpeg Disable JPEG support. --with-jpeg[=DIR] Include JPEG support (DIR is LibJPEG's install dir)." ac_help="$ac_help --with-gd[=[static,]DIR] Specify which version of GD to use (DIR is GD's install dir)." ac_help="$ac_help --with-freetype=DIR Specify where FreeType is installed (DIR is path to FreeType 2.x freetype-config program or FreeType 1.x/2.x install dir)." ac_help="$ac_help --enable-force-freetype1 Use this to force detection of freetype1 over freetype2 on systems which have both versions installed in system libs such as RH7.1 (By default, freetype2 is detected first)" ac_help="$ac_help --with-zlib=DIR Specify where zlib is installed (DIR is path to zlib install dir)." ac_help="$ac_help --with-png=DIR Specify where PNG is installed (DIR is path to PNG install dir)." ac_help="$ac_help --without-pdf Disable PDF support. --with-pdf[=DIR] Include PDF support (DIR is PDFlib'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-eppl Disable EPPL7 support. --with-eppl Include EPPL7 support." ac_help="$ac_help --with-proj[=DIR] Include PROJ.4 support (DIR is PROJ.4's install dir)." ac_help="$ac_help --with-threads[=linkopt]Include thread safe support" ac_help="$ac_help --with-sde[=DIR] Include ESRI SDE support (DIR is SDE's install dir)." ac_help="$ac_help --with-sde-version[=VERSION NUMBER] Set ESRI SDE verion number (Default is 80)." 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 --with-gdal[=PATH] Include GDAL support (PATH is path to gdal-config" ac_help="$ac_help --with-postgis[=ARG] Include PostGIS Support (ARG=yes/path to pg_config)" ac_help="$ac_help --with-oraclespatial[=ARG] Include OracleSpatial Support (ARG=yes/path to Oracle home)" ac_help="$ac_help --without-wms Disable OGC WMS Compatibility (enabled by default)." ac_help="$ac_help --with-wmsclient Enable OGC WMS Client Connections (PROJ4 and libwww required)." ac_help="$ac_help --disable-rxposix-conflict-error Do not produce any configure error about potential regex vs rxposix conflicts. See MapServer bug 82" 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 and enable msDebug() output to stderr (i.e. server log file). --disable-debug Do not include "-g" in CFLAGS and disable msDebug() output (the default)." ac_help="$ac_help --with-php=DIR Specify directory where PHP4 source tree is installed. Required in order to compile the PHP/MapScript module." ac_help="$ac_help --enable-internal-ld-detect (applies to --with-php only) Use internal configure macro to figure the command to use to link php_mapscript.so instead of using perl -V which is the default and may not work well on some systems such as FreeBSD." ac_help="$ac_help --with-apxs[=FILE] (CURRENTLY DISABLED) 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 (CURRENTLY DISABLED) 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:620: 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:650: 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:701: 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:733: 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 744 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:749: \"$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:775: 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:780: 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:808: 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:844: 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:876: 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 887 "configure" #include "confdefs.h" int main(){return(0);} EOF if { (eval echo configure:892: \"$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:918: 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:923: 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:951: 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 for ac_declaration in \ ''\ '#include ' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat > conftest.$ac_ext < $ac_declaration int main() { exit (42); ; return 0; } EOF if { (eval echo configure:1000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* continue fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h 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:1036: 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:1066: 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:1100: 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:1146: 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:1178: 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:1213: 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:1249: 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:1291: 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 echo $ac_n "checking for exp in -lstdc++""... $ac_c" 1>&6 echo "configure:1331: checking for exp in -lstdc++" >&5 ac_lib_var=`echo stdc++'_'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="-lstdc++ $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 -lstdc++" 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:1375: 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:1396: \"$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:1413: \"$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:1430: \"$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:1455: 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:1468: \"$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:1535: \"$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:1560: 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:1588: \"$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:1609: 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:1637: \"$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:1658: 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:1686: \"$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_jpeg_jpeg_read_header echo "checking whether we should include JPEG support..." 1>&6 echo "configure:1713: 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 -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" test -f $JPEG_DIR/lib/libjpeg.so -o -f $JPEG_DIR/lib/libjpeg.sl && JPEG_LIBDIR="$JPEG_DIR/lib" test -f $JPEG_DIR/libjpeg.so -o -f $JPEG_DIR/libjpeg.sl && JPEG_LIBDIR="$JPEG_DIR" if test -n "$JPEG_INCLUDE" -a -n "$JPEG_LIBDIR" ; then JPEG_ENABLED="-DUSE_JPEG" 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 if test "$with_jpeg" != "no" ; then echo "$ac_t"""Could not find jpeglib.h or libjpeg.a/libjpeg.so in $JPEG_DIR."" 1>&6 fi fi if test "$with_jpeg" = "no" ; then echo "$ac_t"" disabled by --without-jpeg" 1>&6 else JPEG_ENABLED="-DUSE_JPEG" fi if test -z "$JPEG_LIB" ; then echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 echo "configure:1783: 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_LIB="-ljpeg" else echo "$ac_t""no" 1>&6 fi if test -n "$JPEG_LIB" ; 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, possibly needed for GD." 1>&6 fi else echo "$ac_t"" using libjpeg from system $JPEG_LIB" 1>&6 fi else echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 echo "configure:1836: 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, possibly needed for GD." 1>&6 fi fi ALL_ENABLED="$JPEG_ENABLED $ALL_ENABLED" ALL_INC="$JPEG_INC $ALL_INC" ALL_LIB="$JPEG_LIB $ALL_LIB" ms_saved_LIBS="$LIBS" unset ac_cv_lib_gd_gdImageCreate unset ac_cv_lib_gd_gdImageString16 unset ac_cv_lib_gd_gdImageGif unset ac_cv_lib_gd_gdImagePng unset ac_cv_lib_gd_gdImageJpeg unset ac_cv_lib_gd_gdImageWBMP unset ac_cv_lib_gd_gdImageStringTTF unset ac_cv_lib_gd_gdImageStringFT unset ac_cv_lib_gd_gdImageGifPtr unset ac_cv_lib_c_gdImageCreate unset ac_cv_lib_c_gdImageString16 unset ac_cv_lib_c_gdImageGif unset ac_cv_lib_c_gdImagePng unset ac_cv_lib_c_gdImageJpeg unset ac_cv_lib_c_gdImageWBMP unset ac_cv_lib_c_gdImageStringTTF unset ac_cv_lib_c_gdImageStringFT unset ac_cv_lib_c_gdImageGifPtr echo "checking which version of GD to use..." 1>&6 echo "configure:1918: 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 echo "$with_gd" | grep '^static,' >/dev/null ; then GD_DIR=`echo "$with_gd" | sed "s/^static,//"` GD_STATIC=yes else GD_DIR=$with_gd GD_STATIC=no fi if test -z "$GD_DIR" || echo "$GD_DIR" | grep '^/' >/dev/null ; then GD_DIR="$GD_DIR" else GD_DIR="`pwd`/$GD_DIR" 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" test -f $GD_DIR/lib/libgd.so -o -f $GD_DIR/lib/libgd.sl && GD_LIBDIR="$GD_DIR/lib" test -f $GD_DIR/.libs/libgd.so -o -f $GD_DIR/.libs/libgd.sl && GD_LIBDIR="$GD_DIR/.libs" test -f $GD_DIR/_libs/libgd.so -o -f $GD_DIR/_libs/libgd.sl && GD_LIBDIR="$GD_DIR/_libs" test -f $GD_DIR/libgd.so -o -f $GD_DIR/libgd.sl && 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" echo "$ac_t"" using libgd from $GD_LIB" 1>&6 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/libgd.so in $GD_DIR. Make sure gd is compiled before calling configure."" 1>&2; exit 1; } fi else for GD_DIR in /usr /usr/local do test -f $GD_DIR/include/gd.h && GD_INCLUDE="$GD_DIR/include" test -f $GD_DIR/lib/libgd.a && GD_LIBDIR="$GD_DIR/lib" test -f $GD_DIR/lib/libgd.so -o -f $GD_DIR/lib/libgd.sl && GD_LIBDIR="$GD_DIR/lib" if test -n "$GD_INCLUDE" -a -n "$GD_LIBDIR" ; then GD_INC=-I$GD_INCLUDE GD_LIB="-L$GD_LIBDIR -lgd" echo "$ac_t"" using libgd from system libs." 1>&6 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 break fi done fi unset ac_cv_lib_freetype_FT_Init_FreeType unset ac_cv_lib_ttf_TT_Init_FreeType # Check whether --with-freetype or --without-freetype was given. if test "${with_freetype+set}" = set; then withval="$with_freetype" FT_DIR=$withval else FT_DIR='' fi # Check whether --enable-force-freetype1 or --disable-force-freetype1 was given. if test "${enable_force_freetype1+set}" = set; then enableval="$enable_force_freetype1" : fi if test -z "$FT_DIR" || echo "$FT_DIR" | grep '^/' >/dev/null ; then FT_DIR="$FT_DIR" else FT_DIR="`pwd`/$FT_DIR" fi echo "checking where FreeType is installed..." 1>&6 echo "configure:2061: checking where FreeType is installed..." >&5 FT_LIB='' FT_BIN='' FT_TYPE='' test -x "$FT_DIR" -a "freetype-config" = "`basename $FT_DIR ''`" && FT_BIN="$FT_DIR" test -x "$FT_DIR/freetype-config" && FT_BIN="$FT_DIR/freetype-config" test -x "$FT_DIR/bin/freetype-config" && FT_BIN="$FT_DIR/bin/freetype-config" if test "$with_freetype" = "yes" ; then # Extract the first word of "freetype-config", so it can be a program name with args. set dummy freetype-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2074: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_FT_BIN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$FT_BIN" in /*) ac_cv_path_FT_BIN="$FT_BIN" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_FT_BIN="$FT_BIN" # Let the user override the test with a dos path. ;; *) 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_path_FT_BIN="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_FT_BIN" && ac_cv_path_FT_BIN="no" ;; esac fi FT_BIN="$ac_cv_path_FT_BIN" if test -n "$FT_BIN"; then echo "$ac_t""$FT_BIN" 1>&6 else echo "$ac_t""no" 1>&6 fi fi if test -n "$FT_BIN" ; then FT_LIB=`$FT_BIN --libs` FT_LIBDIR="`$FT_BIN --exec-prefix`/lib" echo "$ac_t"" using libfreetype from $FT_LIB" 1>&6 if test ""$FT_LIBDIR"" != "/usr/lib"; then if test -z ""$FT_LIBDIR"" || echo ""$FT_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$FT_LIBDIR"" else ai_p="`pwd`/"$FT_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 test -f $FT_DIR/lib/libfreetype.a -o -f $FT_DIR/lib/libfreetype.so -o -f $FT_DIR/lib/libfreetype.sl && FT_LIBDIR="$FT_DIR/lib" test -f $FT_DIR/libfreetype.a -o -f $FT_DIR/libfreetype.so -o -f $FT_DIR/libfreetype.sl && FT_LIBDIR="$FT_DIR" if test -n "$FT_LIBDIR" ; then FT_TYPE="-lfreetype" else test -f $FT_DIR/lib/libttf.a -o -f $FT_DIR/lib/libttf.so -o -f $FT_DIR/lib/libttf.sl && FT_LIBDIR="$FT_DIR/lib" test -f $FT_DIR/libttf.a -o -f $FT_DIR/libttf.so -o -f $FT_DIR/libttf.sl && FT_LIBDIR="$FT_DIR" if test -n "$FT_LIBDIR" ; then FT_TYPE="-lttf" fi fi fi if test -n "$FT_LIBDIR" -a -z "$FT_BIN" ; then FT_LIB="-L$FT_LIBDIR $FT_TYPE" echo "$ac_t"" using libfreetype from $FT_LIB" 1>&6 if test ""$FT_LIBDIR"" != "/usr/lib"; then if test -z ""$FT_LIBDIR"" || echo ""$FT_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$FT_LIBDIR"" else ai_p="`pwd`/"$FT_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 if test "$enable_force_freetype1" = "yes" ; then echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6 echo "configure:2185: 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 FT_LIB="-lttf" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6 echo "configure:2223: checking for FT_Init_FreeType in -lfreetype" >&5 ac_lib_var=`echo freetype'_'FT_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="-lfreetype $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 FT_LIB="-lfreetype" else echo "$ac_t""no" 1>&6 fi fi else echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6 echo "configure:2266: checking for FT_Init_FreeType in -lfreetype" >&5 ac_lib_var=`echo freetype'_'FT_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="-lfreetype $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 FT_LIB="-lfreetype" else echo "$ac_t""no" 1>&6 echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6 echo "configure:2304: 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 FT_LIB="-lttf" else echo "$ac_t""no" 1>&6 fi fi fi if test -n "$FT_LIB" ; then echo "$ac_t"" using libfreetype $FT_LIB from system libs." 1>&6 else echo "$ac_t"" freetype-config or libfreetype cannot be found, possibly needed for GD" 1>&6 fi fi unset ac_cv_lib_z_zlibVersion # Check whether --with-zlib or --without-zlib was given. if test "${with_zlib+set}" = set; then withval="$with_zlib" ZL_DIR=$withval else ZL_DIR='' fi if test -z "$ZL_DIR" || echo "$ZL_DIR" | grep '^/' >/dev/null ; then ZL_DIR="$ZL_DIR" else ZL_DIR="`pwd`/$ZL_DIR" fi echo "checking where Zlib is installed..." 1>&6 echo "configure:2376: checking where Zlib is installed..." >&5 ZL_LIB='' test -f $ZL_DIR/lib/libz.a -o -f $ZL_DIR/lib/libz.so -o -f $ZL_DIR/lib/libz.sl && ZL_LIBDIR="$ZL_DIR/lib" test -f $ZL_DIR/libz.a -o -f $ZL_DIR/libz.so -o -f $ZL_DIR/libz.sl && ZL_LIBDIR="$ZL_DIR" if test -n "$ZL_LIBDIR" ; then ZL_LIB="-L$ZL_LIBDIR -lz" echo "$ac_t"" using libz from $ZL_LIB" 1>&6 if test ""$ZL_DIR"" != "/usr/lib"; then if test -z ""$ZL_DIR"" || echo ""$ZL_DIR"" | grep '^/' >/dev/null ; then ai_p=""$ZL_DIR"" else ai_p="`pwd`/"$ZL_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 else echo $ac_n "checking for zlibVersion in -lz""... $ac_c" 1>&6 echo "configure:2413: checking for zlibVersion in -lz" >&5 ac_lib_var=`echo z'_'zlibVersion | 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="-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 ZL_LIB="-lz" else echo "$ac_t""no" 1>&6 fi if test -n "$ZL_LIB" ; then echo "$ac_t"" using libz from system libs." 1>&6 else echo "$ac_t"" Zlib (libz) library cannot be found, possibly needed for GD" 1>&6 fi fi unset ac_cv_lib_png_png_init_io # Check whether --with-png or --without-png was given. if test "${with_png+set}" = set; then withval="$with_png" PNG_DIR=$withval else PNG_DIR='' fi if test -z "$PNG_DIR" || echo "$PNG_DIR" | grep '^/' >/dev/null ; then PNG_DIR="$PNG_DIR" else PNG_DIR="`pwd`/$PNG_DIR" fi echo "checking where PNG is installed..." 1>&6 echo "configure:2482: checking where PNG is installed..." >&5 PNG_LIB='' test -f $PNG_DIR/lib/libpng.a -o -f $PNG_DIR/lib/libpng.so -o -f $PNG_DIR/lib/libpng.sl && PNG_LIBDIR="$PNG_DIR/lib" test -f $PNG_DIR/libpng.a -o -f $PNG_DIR/libpng.so -o -f $PNG_DIR/libpng.sl && PNG_LIBDIR="$PNG_DIR" if test -n "$PNG_LIBDIR" ; then PNG_LIB="-L$PNG_LIBDIR -lpng" echo "$ac_t"" using libpng from $PNG_LIB" 1>&6 if test ""$PNG_LIBDIR"" != "/usr/lib"; then if test -z ""$PNG_LIBDIR"" || echo ""$PNG_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$PNG_LIBDIR"" else ai_p="`pwd`/"$PNG_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 $ac_n "checking for png_init_io in -lpng""... $ac_c" 1>&6 echo "configure:2519: checking for png_init_io in -lpng" >&5 ac_lib_var=`echo png'_'png_init_io | 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="-lpng $ZL_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 PNG_LIB="-lpng" else echo "$ac_t""no" 1>&6 fi if test -n "$PNG_LIB" ; then echo "$ac_t"" using libpng from system libs." 1>&6 else echo "$ac_t"" PNG (libpng) library cannot be found, possibly needed for GD" 1>&6 fi fi GD_XTRA_LIBS="$JPEG_LIB $FT_LIB $PNG_LIB $ZL_LIB" if test -n "$with_gd" -a "$with_gd" != "yes" ; then if test "$GD_STATIC" = "yes" ; then GD_CHECKLIB=c GD_LIB="" GD_STATIC=$GD_LIBDIR/libgd.a echo "$ac_t""static linkage of $GD_STATIC requested... testing supported formats..." 1>&6 else GD_CHECKLIB=c # GD_LIB was already set above GD_STATIC="" fi echo $ac_n "checking for gdImageGif in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2587: checking for gdImageGif in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'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="-l$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_GIF" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImagePng in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2627: checking for gdImagePng in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'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="-l$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_PNG" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageJpeg in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2667: checking for gdImageJpeg in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'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="-l$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_JPEG" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageWBMP in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2707: checking for gdImageWBMP in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'gdImageWBMP | 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$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_WBMP" else echo "$ac_t""no" 1>&6 fi GD_FT_FOUND=no echo $ac_n "checking for gdImageStringFT in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2749: checking for gdImageStringFT in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'gdImageStringFT | 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$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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_FT_FOUND="yes";GD_DEF="$GD_DEF -DUSE_GD_FT" else echo "$ac_t""no" 1>&6 fi if test "$GD_FT_FOUND" = "no" ; then echo $ac_n "checking for gdImageStringTTF in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2791: checking for gdImageStringTTF in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'gdImageStringTTF | 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$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_TTF" else echo "$ac_t""no" 1>&6 fi fi echo $ac_n "checking for gdImageString16 in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2833: checking for gdImageString16 in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'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="-l$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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 ac_tr_lib=HAVE_LIB`echo $GD_CHECKLIB | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 GD_DEF="$GD_DEF -DUSE_GD_SWAP_XY" fi echo $ac_n "checking for gdImageGifPtr in -l$GD_CHECKLIB""... $ac_c" 1>&6 echo "configure:2882: checking for gdImageGifPtr in -l$GD_CHECKLIB" >&5 ac_lib_var=`echo $GD_CHECKLIB'_'gdImageGifPtr | 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$GD_CHECKLIB $GD_STATIC $GD_LIB $GD_XTRA_LIBS $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="$GD_DEF -DGD_HAS_GDIMAGEGIFPTR" 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 gdImageCreate in -lgd""... $ac_c" 1>&6 echo "configure:2928: checking for gdImageCreate in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageCreate | 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_XTRA_LIBS $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_FOUND=yes else echo "$ac_t""no" 1>&6 fi if test -z "$GD_FOUND" ; then { echo "configure: error: GD is required but was not found... use --with-gd=DIR to specify its location." 1>&2; exit 1; } fi echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6 echo "configure:2972: 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 $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_GIF" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6 echo "configure:3012: 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 $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_PNG" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6 echo "configure:3052: 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 $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_JPEG" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for gdImageWBMP in -lgd""... $ac_c" 1>&6 echo "configure:3092: checking for gdImageWBMP in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageWBMP | 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 $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_WBMP" else echo "$ac_t""no" 1>&6 fi GD_FT_FOUND=no echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6 echo "configure:3134: checking for gdImageStringFT in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageStringFT | 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 $GD_XTRA_LIBS $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_FT_FOUND="yes";GD_DEF="$GD_DEF -DUSE_GD_FT" else echo "$ac_t""no" 1>&6 fi if test "$GD_FT_FOUND" = "no" ; then echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6 echo "configure:3176: checking for gdImageStringTTF in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageStringTTF | 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 $GD_XTRA_LIBS $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="$GD_DEF -DUSE_GD_TTF" else echo "$ac_t""no" 1>&6 fi fi echo $ac_n "checking for gdImageString16 in -lgd""... $ac_c" 1>&6 echo "configure:3218: 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 $GD_XTRA_LIBS $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 ac_tr_lib=HAVE_LIB`echo gd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <&6 GD_DEF="$GD_DEF -DUSE_GD_SWAP_XY" fi echo $ac_n "checking for gdImageGifPtr in -lgd""... $ac_c" 1>&6 echo "configure:3267: checking for gdImageGifPtr in -lgd" >&5 ac_lib_var=`echo gd'_'gdImageGifPtr | 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 $GD_XTRA_LIBS $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="$GD_DEF -DGD_HAS_GDIMAGEGIFPTR" else echo "$ac_t""no" 1>&6 fi if test -n "$GD_DEF" ; then GD_LIB="-lgd $GD_LIB" echo "$ac_t"" using GD ($GD_DEF) from system libs." 1>&6 fi fi GD_LIB="$GD_LIB $GD_XTRA_LIBS" ALL_ENABLED="$GD_DEF $ALL_ENABLED" ALL_INC="$GD_INC $ALL_INC" ALL_LIB="$GD_LIB $ALL_LIB" ALL_STATIC_LIB="$GD_STATIC $ALL_STATIC_LIB" LIBS="$ms_saved_LIBS" ms_saved_LIBS="$LIBS" unset ac_cv_lib_pdf_PDF_setlinewidth unset ac_cv_lib_pdf_PDF_setrgbcolor unset ac_cv_lib_pdf_PDF_moveto unset ac_cv_lib_pdf_PDF_curveto echo "checking whether we should include PDF support..." 1>&6 echo "configure:3340: checking whether we should include PDF support..." >&5 # Check whether --with-pdf or --without-pdf was given. if test "${with_pdf+set}" = set; then withval="$with_pdf" : fi if test "$with_pdf" = "no" ; then echo "$ac_t"" disabled by --without-pdf" 1>&6 elif test -n "$with_pdf" -a "$with_pdf" != "yes" ; then if test -z "$with_pdf" || echo "$with_pdf" | grep '^/' >/dev/null ; then PDF_DIR="$with_pdf" else PDF_DIR="`pwd`/$with_pdf" fi test -f $PDF_DIR/include/pdflib.h && PDF_INCLUDE="$PDF_DIR/include" test -f $PDF_DIR/libpdf/pdflib.h && PDF_INCLUDE="$PDF_DIR/libpdf" test -f $PDF_DIR/include/libpdf/pdflib.h && PDF_INCLUDE="$PDF_DIR/include/libpdf" test -f $PDF_DIR/pdflib.h && PDF_INCLUDE="$PDF_DIR" test -f $PDF_DIR/lib/libpdf.a && PDF_LIBDIR="$PDF_DIR/lib" test -f $PDF_DIR/libpdf/libpdf.a && PDF_LIBDIR="$PDF_DIR/libpdf" test -f $PDF_DIR/libpdf.a && PDF_LIBDIR="$PDF_DIR" test -f $PDF_DIR/lib/libpdf.so -o $PDF_DIR/lib/libpdf.sl && PDF_LIBDIR="$PDF_DIR/lib" test -f $PDF_DIR/libpdf/libpdf.so -o -f $PDF_DIR/libpdf/libpdf.sl && PDF_LIBDIR="$PDF_DIR/libpdf" test -f $PDF_DIR/libpdf.so -o -f $PDF_DIR/libpdf.sl && PDF_LIBDIR="$PDF_DIR" if test -n "$PDF_INCLUDE" -a -n "$PDF_LIBDIR" ; then PDF_LIB="-L$PDF_LIBDIR -lPDF" PDF_INC=-I$PDF_INCLUDE if test ""$PDF_LIBDIR"" != "/usr/lib"; then if test -z ""$PDF_LIBDIR"" || echo ""$PDF_LIBDIR"" | grep '^/' >/dev/null ; then ai_p=""$PDF_LIBDIR"" else ai_p="`pwd`/"$PDF_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 pdflib.h or libpdf.a/libpdf.so in $PDF_DIR."" 1>&2; exit 1; } fi PDF_ENABLED="-DUSE_PDF" echo "$ac_t"" using libpdf from $PDF_LIB." 1>&6 else echo $ac_n "checking for PDF_setlinewidth in -lpdf""... $ac_c" 1>&6 echo "configure:3407: checking for PDF_setlinewidth in -lpdf" >&5 ac_lib_var=`echo pdf'_'PDF_setlinewidth | 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="-lpdf $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 PDF_LIB="-lpdf" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for PDF_setrgbcolor in -lpdf""... $ac_c" 1>&6 echo "configure:3447: checking for PDF_setrgbcolor in -lpdf" >&5 ac_lib_var=`echo pdf'_'PDF_setrgbcolor | 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="-lpdf $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 PDF_LIB="-lpdf" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for PDF_moveto in -lpdf""... $ac_c" 1>&6 echo "configure:3487: checking for PDF_moveto in -lpdf" >&5 ac_lib_var=`echo pdf'_'PDF_moveto | 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="-lpdf $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 PDF_LIB="-lpdf" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for PDF_curveto in -lpdf""... $ac_c" 1>&6 echo "configure:3527: checking for PDF_curveto in -lpdf" >&5 ac_lib_var=`echo pdf'_'PDF_curveto | 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="-lpdf $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 PDF_LIB="-lpdf" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for PDF_show_xy in -lpdf""... $ac_c" 1>&6 echo "configure:3567: checking for PDF_show_xy in -lpdf" >&5 ac_lib_var=`echo pdf'_'PDF_show_xy | 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="-lpdf $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 PDF_LIB="-lpdf" else echo "$ac_t""no" 1>&6 fi if test -n "$PDF_LIB" ; then PDF_ENABLED=-DUSE_PDF PDF_OBJ="mappdf.o" echo "$ac_t"" using libpdf from system libs." 1>&6 else echo "$ac_t"" libpdf not found... PDF support not included." 1>&6 fi fi PDF_LIB="$PDF_LIB" ALL_ENABLED="$PDF_ENABLED $ALL_ENABLED" ALL_INC="$PDF_INC $ALL_INC" ALL_LIB="$PDF_LIB $ALL_LIB" unset ac_cv_lib_tiff_TIFFOpen echo "checking whether we should include TIFF support..." 1>&6 echo "configure:3631: 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" test -f $TIFF_DIR/lib/libtiff.so -o $TIFF_DIR/lib/libtiff.sl && TIFF_LIBDIR="$TIFF_DIR/lib" test -f $TIFF_DIR/libtiff/libtiff.so -o -f $TIFF_DIR/libtiff/libtiff.sl && TIFF_LIBDIR="$TIFF_DIR/libtiff" test -f $TIFF_DIR/libtiff.so -o -f $TIFF_DIR/libtiff.sl && TIFF_LIBDIR="$TIFF_DIR" if test -n "$TIFF_INCLUDE" -a -n "$TIFF_LIBDIR" ; then TIFF_LIB="-L$TIFF_LIBDIR -ltiff" 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/libtiff.so in $TIFF_DIR."" 1>&2; exit 1; } fi TIFF_ENABLED="-DUSE_TIFF" echo "$ac_t"" using libtiff from $TIFF_LIB." 1>&6 else echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6 echo "configure:3698: 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 $GD_XTRA_LIBS $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 -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 TIFF_LIB="$TIFF_LIB $GD_XTRA_LIBS" ALL_ENABLED="$TIFF_ENABLED $ALL_ENABLED" ALL_INC="$TIFF_INC $ALL_INC" ALL_LIB="$TIFF_LIB $ALL_LIB" echo "checking whether we should include EPPL7 support..." 1>&6 echo "configure:3758: 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_proj_pj_init unset ac_cv_lib_proj_pj_transform unset ac_cv_lib_proj_pj_latlong_from_proj echo "checking whether we should include PROJ.4 support..." 1>&6 echo "configure:3787: 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:3798: 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 echo $ac_n "checking for pj_transform in -lproj""... $ac_c" 1>&6 echo "configure:3838: checking for pj_transform in -lproj" >&5 ac_lib_var=`echo proj'_'pj_transform | 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 PJ_TRANSFORM=yes else echo "$ac_t""no" 1>&6 PJ_TRANSFORM=no fi echo $ac_n "checking for pj_latlong_from_proj in -lproj""... $ac_c" 1>&6 echo "configure:3879: checking for pj_latlong_from_proj in -lproj" >&5 ac_lib_var=`echo proj'_'pj_latlong_from_proj | 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_API=yes else echo "$ac_t""no" 1>&6 PROJ_API=no fi if test -n "$PROJ_ENABLED" -a "$PJ_TRANSFORM" = "no"; then { echo "configure: error: This version of PROJ is too old. PROJ4.4.2 or later is required." 1>&2; exit 1; } elif test -n "$PROJ_ENABLED" -a "$PJ_TRANSFORM" = "yes"; 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" test -f $PROJ_DIR/src/.libs/libproj.so -o -f $PROJ_DIR/src/.libs/libproj.sl && PROJ_LIBDIR="$PROJ_DIR/src/.libs" test -f $PROJ_DIR/lib/libproj.so -o -f $PROJ_DIR/lib/libproj.sl && PROJ_LIBDIR="$PROJ_DIR/lib" test -f $PROJ_DIR/libproj.so -o -f $PROJ_DIR/libproj.sl && 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/libproj.so in $PROJ_DIR."" 1>&2; exit 1; } fi echo $ac_n "checking for pj_transform in -lproj""... $ac_c" 1>&6 echo "configure:3981: checking for pj_transform in -lproj" >&5 ac_lib_var=`echo proj'_'pj_transform | 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 $PROJ_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 PJ_TRANSFORM=yes else echo "$ac_t""no" 1>&6 PJ_TRANSFORM=no fi echo $ac_n "checking for pj_latlong_from_proj in -lproj""... $ac_c" 1>&6 echo "configure:4022: checking for pj_latlong_from_proj in -lproj" >&5 ac_lib_var=`echo proj'_'pj_latlong_from_proj | 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 $PROJ_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 PROJ_API=yes else echo "$ac_t""no" 1>&6 PROJ_API=no fi if test "$PJ_TRANSFORM" = "no"; then { echo "configure: error: This version of PROJ is too old. PROJ4.4.2 or later is required." 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 if test "x$PROJ_API" = "xyes" ; then PROJ_ENABLED="$PROJ_ENABLED -DUSE_PROJ_API_H" fi ALL_ENABLED="$PROJ_ENABLED $ALL_ENABLED" ALL_INC="$PROJ_INC $ALL_INC" ALL_LIB="$PROJ_LIB $ALL_LIB" THREAD_LIB="" THREAD_FLAG="" echo "checking whether we should include thread safe support..." 1>&6 echo "configure:4091: checking whether we should include thread safe support..." >&5 # Check whether --with-threads or --without-threads was given. if test "${with_threads+set}" = set; then withval="$with_threads" : fi if test "$with_threads" = "yes" ; then echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 echo "configure:4102: checking for pthread_create in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_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="-lpthread $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 THREAD_FLAG=-DUSE_THREAD else echo "$ac_t""no" 1>&6 fi if test -n "$THREAD_FLAG" ; then THREAD_LIB="-lpthread" echo "$ac_t"" using -lpthread from system libs." 1>&6 else { echo "configure: error: -lpthread not found, use --with-thread=" 1>&2; exit 1; } fi elif test -n "$with_threads" -a "$with_threads" != "no" ; then THREAD_FLAG=-DUSE_THREAD THREAD_LIB="$with_threads" echo "$ac_t"" using threads with link options "$THREAD_LIB"." 1>&6 else echo "$ac_t"" thread safe support disabled." 1>&6 fi ALL_ENABLED="$THREAD_FLAG $ALL_ENABLED" ALL_LIB="$THREAD_LIB $ALL_LIB" echo "checking whether we should include ESRI SDE support..." 1>&6 echo "configure:4168: 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 # Check whether --with-sde-version or --without-sde-version was given. if test "${with_sde_version+set}" = set; then withval="$with_sde_version" SDE_VERSION=$with_sde_version else SDE_VERSION=80 fi if test "$with_sde" = "yes" ; then echo $ac_n "checking for SE_connection_create in -lsde$SDE_VERSION""... $ac_c" 1>&6 echo "configure:4188: checking for SE_connection_create in -lsde$SDE_VERSION" >&5 ac_lib_var=`echo sde$SDE_VERSION'_'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="-lsde$SDE_VERSION $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="-lsde$SDE_VERSION -lpe$SDE_VERSION -lsg$SDE_VERSION" echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6 echo "configure:4231: checking for main in -lpthread" >&5 ac_lib_var=`echo pthread'_'main | 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="-lpthread $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_LIB="$SDE_LIB -lpthread" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 echo "configure:4267: checking for main in -lsocket" >&5 ac_lib_var=`echo socket'_'main | 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="-lsocket $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_LIB="$SDE_LIB -lsocket" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6 echo "configure:4303: checking for main in -ldl" >&5 ac_lib_var=`echo dl'_'main | 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="-ldl $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_LIB="$SDE_LIB -ldl" else echo "$ac_t""no" 1>&6 fi 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/libsde$SDE_VERSION.a && SDE_LIBDIR="$SDE_DIR/lib" test -f $SDE_DIR/libsde$SDE_VERSION.a && SDE_LIBDIR="$SDE_DIR" test -f $SDE_DIR/lib/libsde$SDE_VERSION.so -o -f $SDE_DIR/lib/libsde$SDE_VERSION.sl && SDE_LIBDIR="$SDE_DIR/lib" test -f $SDE_DIR/libsde$SDE_VERSION.so -o -f $SDE_DIR/libsde$SDE_VERSION.sl && SDE_LIBDIR="$SDE_DIR" if test -n "$SDE_INCDIR" -a -n "$SDE_LIBDIR" ; then SDE_INC=-I$SDE_INCDIR SDE_LIB="-L$SDE_LIBDIR -lsde$SDE_VERSION -lpe$SDE_VERSION -lsg$SDE_VERSION" echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6 echo "configure:4367: checking for main in -lpthread" >&5 ac_lib_var=`echo pthread'_'main | 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="-lpthread $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_LIB="$SDE_LIB -lpthread" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 echo "configure:4403: checking for main in -lsocket" >&5 ac_lib_var=`echo socket'_'main | 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="-lsocket $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_LIB="$SDE_LIB -lsocket" else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6 echo "configure:4439: checking for main in -ldl" >&5 ac_lib_var=`echo dl'_'main | 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="-ldl $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_LIB="$SDE_LIB -ldl" else echo "$ac_t""no" 1>&6 fi 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 libsde$SDE_VERSION.a/libsde$SDE_VERSION.so 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:4518: 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:4528: 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 -o -f $MPATROL_DIR/libmpatrol.sl && MPATROL_LIBDIR="$MPATROL_DIR" test -f $MPATROL_DIR/lib/libmpatrol.so -o -f $MPATROL_DIR/lib/libmpatrol.sl && 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:4638: 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 "`basename xx/$with_ogr`" = "gdal-config" ; then GDAL_CONFIG="$with_ogr" fi if test "$with_ogr" = "yes" ; then # Extract the first word of "gdal-config", so it can be a program name with args. set dummy gdal-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4654: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GDAL_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$GDAL_CONFIG" in /*) ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path. ;; *) 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_path_GDAL_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no" ;; esac fi GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG" if test -n "$GDAL_CONFIG"; then echo "$ac_t""$GDAL_CONFIG" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$GDAL_CONFIG" = "no" ; then { echo "configure: error: couldn't find gdal-config" 1>&2; exit 1; } fi fi if test -n "$GDAL_CONFIG" ; then saved_LIBS="$LIBS" LIBS="$LIBS `$GDAL_CONFIG --libs`" echo $ac_n "checking for OGRRegisterAll in -lgdal.1.1""... $ac_c" 1>&6 echo "configure:4698: 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 LIBS="$saved_LIBS" HAVE_GDAL_LIB=yes if test -n "$OGR_ENABLED" ; then OGR_LIB="`$GDAL_CONFIG --libs`" OGR_INC="`$GDAL_CONFIG --cflags`" 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_STATIC="$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 ogr_feature.h, ogrsf_fmrts.h, cpl_conv.h, !!! !!! ogr.a, ogrsf_frmts.a, or cpl.a in $OGR_DIR . !!! Either this is not the location of a recent GDAL/OGR source tree, !!! !!! or OGR has not been compiled yet. Please make sure you compile !!! !!! OGR before calling configure. !!!" 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" ALL_STATIC_LIB="$OGR_STATIC $ALL_STATIC_LIB" echo $ac_n "checking if GDAL support requested""... $ac_c" 1>&6 echo "configure:4832: checking if GDAL support requested" >&5 # Check whether --with-gdal or --without-gdal was given. if test "${with_gdal+set}" = set; then withval="$with_gdal" : fi if test "$with_gdal" = "yes" ; then echo "$ac_t""yes" 1>&6 if test -z "$GDAL_CONFIG" ; then # Extract the first word of "gdal-config", so it can be a program name with args. set dummy gdal-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4849: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GDAL_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$GDAL_CONFIG" in /*) ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path. ;; *) 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_path_GDAL_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no" ;; esac fi GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG" if test -n "$GDAL_CONFIG"; then echo "$ac_t""$GDAL_CONFIG" 1>&6 else echo "$ac_t""no" 1>&6 fi fi if test "$GDAL_CONFIG" = "no" ; then { echo "configure: error: couldn't find gdal-config" 1>&2; exit 1; } fi elif test -n "$with_gdal" -a "$with_gdal" != "no" ; then GDAL_CONFIG=$with_gdal if test -f "$GDAL_CONFIG" -a -x "$GDAL_CONFIG" ; then echo "$ac_t""yes, user supplied gdal-config ($GDAL_CONFIG)" 1>&6 else { echo "configure: error: '$GDAL_CONFIG' is not an executable. Make sure you use --with-gdal=/path/to/gdal-config" 1>&2; exit 1; } fi else echo "$ac_t""no" 1>&6 fi if test -n "$GDAL_CONFIG" ; then if test "$HAVE_GDAL_LIB" != "yes" ; then GDAL_LIB=`$GDAL_CONFIG --libs` fi GDAL_INC=`$GDAL_CONFIG --cflags` GDAL_ENABLED=-DUSE_GDAL fi ALL_ENABLED="$GDAL_ENABLED $ALL_ENABLED" ALL_INC="$GDAL_INC $ALL_INC" ALL_LIB="$GDAL_LIB $ALL_LIB" echo $ac_n "checking if PostGIS support requested""... $ac_c" 1>&6 echo "configure:4925: checking if PostGIS support requested" >&5 # Check whether --with-postgis or --without-postgis was given. if test "${with_postgis+set}" = set; then withval="$with_postgis" : fi if test "$with_postgis" = "no" -o "$with_postgis" = "" ; then echo "$ac_t""no" 1>&6 PG_CONFIG="no" elif test "$with_postgis" = "yes" ; then echo "$ac_t""yes" 1>&6 # Extract the first word of "pg_config", so it can be a program name with args. set dummy pg_config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4942: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PG_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PG_CONFIG" in /*) ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a dos path. ;; *) 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_path_PG_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_PG_CONFIG" && ac_cv_path_PG_CONFIG="no" ;; esac fi PG_CONFIG="$ac_cv_path_PG_CONFIG" if test -n "$PG_CONFIG"; then echo "$ac_t""$PG_CONFIG" 1>&6 else echo "$ac_t""no" 1>&6 fi else PG_CONFIG=$with_postgis fi if test "$PG_CONFIG" = "no" ; then POSTGIS_ENABLED= POSTGIS_INC= POSTGIS_LIB= else echo "$ac_t""yes, user supplied pg_config" 1>&6 POSTGIS_ENABLED=-DUSE_POSTGIS POSTGIS_LIB="-L`$PG_CONFIG --libdir` -lpq" POSTGIS_INC="-I`$PG_CONFIG --includedir`" fi ALL_ENABLED="$POSTGIS_ENABLED $ALL_ENABLED" ALL_INC="$POSTGIS_INC $ALL_INC" ALL_LIB="$POSTGIS_LIB $ALL_LIB" echo $ac_n "checking if OracleSpatial support requested""... $ac_c" 1>&6 echo "configure:5000: checking if OracleSpatial support requested" >&5 # Check whether --with-oraclespatial or --without-oraclespatial was given. if test "${with_oraclespatial+set}" = set; then withval="$with_oraclespatial" : fi if test "$with_oraclespatial" = "no" -o "$with_oraclespatial" = ""; then echo "$ac_t""no" 1>&6 ORA_HOME="no" elif test "$with_oraclespatial" = "yes"; then if test -d "$ORACLE_HOME"; then echo "$ac_t""yes, set from ORACLE_HOME environment variable" 1>&6 ORA_HOME="$ORACLE_HOME" else ORA_HOME="no" { echo "configure: error: ORACLE_HOME variable is not properly set" 1>&2; exit 1; } fi else echo "$ac_t""yes, user supplied ORACLE_HOME" 1>&6 ORA_HOME=$with_oraclespatial fi if test "$ORA_HOME" = "no" ; then ORACLESPATIAL_ENABLED= ORACLESPATIAL_INC= ORACLESPATIAL_LIB= else ORACLESPATIAL_ENABLED=-DUSE_ORACLESPATIAL ORACLESPATIAL_LIB="-L$ORA_HOME/lib -lclntsh" ORACLESPATIAL_INC="-I$ORA_HOME/rdbms/demo -I$ORA_HOME/rdbms/public" fi echo "checking whether we should include WMS support..." 1>&6 echo "configure:5040: checking whether we should include WMS support..." >&5 # Check whether --with-wms or --without-wms was given. if test "${with_wms+set}" = set; then withval="$with_wms" : fi if test "$with_wms" = "no" ; then echo "$ac_t"" OGC WMS Compatibility disabled by --without-wms." 1>&6 elif test -z "$PROJ_ENABLED" ; then echo "$ac_t"" OGC WMS Compatibility not enabled (PROJ.4 is required for WMS)." 1>&6 else WMS_ENABLED="-DUSE_WMS" echo "$ac_t"" OGC WMS compatibility enabled ($WMS_ENABLED)." 1>&6 fi ALL_ENABLED="$WMS_ENABLED $ALL_ENABLED" echo "checking whether we should include WMS Client Connections support..." 1>&6 echo "configure:5070: checking whether we should include WMS Client Connections support..." >&5 # Check whether --with-wms or --without-wms was given. if test "${with_wms+set}" = set; then withval="$with_wms" : fi if test "$with_wmsclient" = "no" ; then echo "$ac_t"" OGC WMS Client Layers disabled by --without-wmsclient." 1>&6 elif test -z "$PROJ_ENABLED" ; then echo "$ac_t"" OGC WMS Client Connections not enabled (PROJ.4 and libwww required)." 1>&6 elif test "$with_wmsclient" = "yes" ; then # Extract the first word of "libwww-config", so it can be a program name with args. set dummy libwww-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5091: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_LIBWWW_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$LIBWWW_CONFIG" in /*) ac_cv_path_LIBWWW_CONFIG="$LIBWWW_CONFIG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_LIBWWW_CONFIG="$LIBWWW_CONFIG" # Let the user override the test with a dos path. ;; *) 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_path_LIBWWW_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_LIBWWW_CONFIG" && ac_cv_path_LIBWWW_CONFIG="no" ;; esac fi LIBWWW_CONFIG="$ac_cv_path_LIBWWW_CONFIG" if test -n "$LIBWWW_CONFIG"; then echo "$ac_t""$LIBWWW_CONFIG" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$LIBWWW_CONFIG" = "no" ; then { echo "configure: error: couldn't find libwww-config" 1>&2; exit 1; } fi WWW_VER=`$LIBWWW_CONFIG --version` echo "$ac_t"" found libwww version $WWW_VER" 1>&6 if test -z "$WWW_VER" -o `expr "$WWW_VER" \< "5.3.2"` = 1; then { echo "configure: error: libwww version 5.3.2 or more recent is required." 1>&2; exit 1; } fi WMS_LYR_ENABLED="-DUSE_WMS_LYR" WWW_INC=`$LIBWWW_CONFIG --cflags` WWW_LIB=`$LIBWWW_CONFIG --libs` echo "$ac_t"" OGC WMS Client Connections enabled ($WMS_LYR_ENABLED)." 1>&6 echo "checking for potential conflict between system regex and rxposix..." 1>&6 echo "configure:5146: checking for potential conflict between system regex and rxposix..." >&5 echo $ac_n "checking for regexec in -lrx""... $ac_c" 1>&6 echo "configure:5148: checking for regexec in -lrx" >&5 ac_lib_var=`echo rx'_'regexec | 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="-lrx $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 RXPOSIX=yes else echo "$ac_t""no" 1>&6 fi # Check whether --enable-rxposix-conflict-error or --disable-rxposix-conflict-error was given. if test "${enable_rxposix_conflict_error+set}" = set; then enableval="$enable_rxposix_conflict_error" : fi if test "$RXPOSIX" = "yes" -a "$enable_rxposix_conflict_error" != "no" ; then { echo "configure: error: !!! Your system seems to have the 'rxposix' regex library installed !!! !!! which could cause conflicts with the system regex if it gets !!! !!! picked by libwww. !!! !!! See MapServer bug#82 for more details and possible solutions at !!! !!! http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=82 !!! !!! !!! !!! If you have dealt with this problem already then you may use !!! !!! --disable-rxposix-conflict-error to disable this error !!! |!! message and let configure complete without error. !!!" 1>&2; exit 1; } fi fi ALL_ENABLED="$WMS_LYR_ENABLED $ALL_ENABLED" ALL_INC="$WWW_INC $ALL_INC" ALL_LIB="$WWW_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 echo "checking whether we should enable debug features..." 1>&6 echo "configure:5267: checking whether we should enable debug features..." >&5 # 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 DEBUG_FLAGS="-DENABLE_STDERR_DEBUG" echo "$ac_t"" Enabling debug features: -g in CFLAGS and msDebug() to stderr." 1>&6 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 ALL_ENABLED="$DEBUG_FLAGS $ALL_ENABLED" echo "checking for PHP/MapScript module options..." 1>&6 echo "configure:5336: 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 # Check whether --enable-internal-ld-detect or --disable-internal-ld-detect was given. if test "${enable_internal_ld_detect+set}" = set; then enableval="$enable_internal_ld_detect" : 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 if test "$enable_internal_ld_detect" = "yes" ; then echo "$ac_t""Using internal macro to figure ld command to link php_mapscript.so" 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" else echo $ac_n "checking whether 'perl -V' works""... $ac_c" 1>&6 echo "configure:5442: 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 | grep -v undef`" PERL_OPT="`grep ' optimize=' perl.out | cut -d, -f2 | cut -d\' -f2 | grep -v undef`" PERL_CCFLAGS="`grep ' ccflags' perl.out | cut -d, -f1 | grep cflags | cut -d\' -f2 | grep -v undef` `grep ' ccflags' perl.out | cut -d, -f2 | grep ccflags | cut -d\' -f2 | grep -v undef`" PERL_LD="`grep ' ld=' perl.out | cut -d, -f1 | cut -d\' -f2 | grep -v undef`" PERL_LFLAGS="`grep ' cccdlflags=' perl.out | cut -d, -f1 | cut -d\' -f2 | grep -v undef`" PERL_CCDLFLAGS="`grep ' ccdlflags=' perl.out | cut -d, -f4 | cut -d\' -f2 | sed 's, ,,' | grep -v undef`" PERL_LDDLFLAGS=`grep ' lddlflags' perl.out | cut -d, -f2 | cut -d\' -f2 | grep -v undef` #-------- #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 fi echo $ac_n "checking for location of config.h or php_config.h""... $ac_c" 1>&6 echo "configure:5584: 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:5597: 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" { echo "configure: error: !!! PHP MapScript now requires PHP 4.1.2 or more recent. !!! !!! Support for PHP3 has been dropped after MapServer version 3.5. !!!" 1>&2; exit 1; } 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:5609: 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-regex=system !!! !!! 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 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 "configure: error: !!! The current version of PHP MapScript requires PHP4 configured as !!! !!! a CGI and cannot be used with PHP4 configured as an Apache module,!!! !!! so you cannot use the --with-apxs option. !!! !!! See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI !!!" 1>&2; exit 1; } echo $ac_n "checking for location of Apache headers using apxs""... $ac_c" 1>&6 echo "configure:5671: 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 "configure: error: !!! The current version of PHP MapScript requires PHP4 configured as !!! !!! a CGI and cannot be used with PHP4 configured as an Apache module,!!! !!! so you cannot use the --with-apache option. !!! !!! See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI !!!" 1>&2; exit 1; } echo $ac_n "checking for location of Apache headers""... $ac_c" 1>&6 echo "configure:5704: 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 $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%@JPEG_ENABLED@%$JPEG_ENABLED%g s%@JPEG_INC@%$JPEG_INC%g s%@JPEG_LIB@%$JPEG_LIB%g s%@FT_BIN@%$FT_BIN%g s%@GD_DEF@%$GD_DEF%g s%@GD_INC@%$GD_INC%g s%@GD_LIB@%$GD_LIB%g s%@GD_STATIC@%$GD_STATIC%g s%@MAKE_GD@%$MAKE_GD%g s%@MAKE_GD_CLEAN@%$MAKE_GD_CLEAN%g s%@PDF_ENABLED@%$PDF_ENABLED%g s%@PDF_INC@%$PDF_INC%g s%@PDF_LIB@%$PDF_LIB%g s%@PDF_OBJ@%$PDF_OBJ%g s%@TIFF_ENABLED@%$TIFF_ENABLED%g s%@TIFF_INC@%$TIFF_INC%g s%@TIFF_LIB@%$TIFF_LIB%g s%@EPPL_ENABLED@%$EPPL_ENABLED%g s%@EPPL_OBJ@%$EPPL_OBJ%g s%@PROJ_ENABLED@%$PROJ_ENABLED%g s%@PROJ_INC@%$PROJ_INC%g s%@PROJ_LIB@%$PROJ_LIB%g s%@THREAD_FLAG@%$THREAD_FLAG%g s%@THREAD_LIB@%$THREAD_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%@GDAL_CONFIG@%$GDAL_CONFIG%g s%@OGR_ENABLED@%$OGR_ENABLED%g s%@OGR_INC@%$OGR_INC%g s%@OGR_LIB@%$OGR_LIB%g s%@OGR_STATIC@%$OGR_STATIC%g s%@GDAL_ENABLED@%$GDAL_ENABLED%g s%@GDAL_INC@%$GDAL_INC%g s%@GDAL_LIB@%$GDAL_LIB%g s%@PG_CONFIG@%$PG_CONFIG%g s%@POSTGIS_ENABLED@%$POSTGIS_ENABLED%g s%@POSTGIS_INC@%$POSTGIS_INC%g s%@POSTGIS_LIB@%$POSTGIS_LIB%g s%@ORACLESPATIAL_ENABLED@%$ORACLESPATIAL_ENABLED%g s%@ORACLESPATIAL_INC@%$ORACLESPATIAL_INC%g s%@ORACLESPATIAL_LIB@%$ORACLESPATIAL_LIB%g s%@WMS_ENABLED@%$WMS_ENABLED%g s%@LIBWWW_CONFIG@%$LIBWWW_CONFIG%g s%@WMS_LYR_ENABLED@%$WMS_LYR_ENABLED%g s%@WWW_INC@%$WWW_INC%g s%@WWW_LIB@%$WWW_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%@DEBUG_FLAGS@%$DEBUG_FLAGS%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%@ALL_STATIC_LIB@%$ALL_STATIC_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