Changeset 31861


Ignore:
Timestamp:
Jun 27, 2008, 9:48:11 AM (16 years ago)
Author:
glynn
Message:

Add LOC_CHECK_LINK to allow checking Windows (stdcall) libraries
Change GDAL ODBC checks to handle stdcall

Location:
grass/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/aclocal.m4

    r31318 r31861  
    7676], $4))
    7777CPPFLAGS=$ac_save_cppflags
     78])
     79
     80dnl $1  = library
     81dnl $2  = header
     82dnl $3  = function call
     83dnl $4  = descriptive name
     84dnl $5  = LDFLAGS initialiser
     85dnl $6  = result variable
     86dnl $7  = mandatory dependencies (not added to $5)
     87dnl $8  = mandatory dependencies (added to $5)
     88dnl $9  = ACTION-IF-NOT-FOUND
     89
     90define(LOC_CHECK_LINK,[
     91ac_save_ldflags="$LDFLAGS"
     92ac_save_libs="$LIBS"
     93AC_MSG_CHECKING(for $4 library)
     94LDFLAGS="$5 $LDFLAGS"
     95LIBS="-l$1 $7 $8"
     96AC_TRY_LINK([$2],[$3],[
     97AC_MSG_RESULT(found)
     98$6="$$6 -l$1 $8"
     99],[
     100ifelse($9,[],[
     101    AC_MSG_ERROR([*** Unable to locate $4 library.])
     102],$9)
     103])
     104LIBS=${ac_save_libs}
     105LDFLAGS=${ac_save_ldflags}
    78106])
    79107
  • grass/trunk/configure

    r31806 r31861  
    76667666  ac_save_libs="$LIBS"
    76677667  LIBS="$LIBS $GDAL_LIBS"
    7668   echo $ac_n "checking for GDALOpen""... $ac_c" 1>&6
    7669 echo "configure:7670: checking for GDALOpen" >&5
    7670 
    7671 cat > conftest.$ac_ext <<EOF
    7672 #line 7673 "configure"
    7673 #include "confdefs.h"
    7674 /* System header to define __stub macros and hopefully few prototypes,
    7675     which can conflict with char GDALOpen(); below.  */
    7676 #include <assert.h>
    7677 /* Override any gcc2 internal prototype to avoid an error.  */
    7678 /* We use char because int might match the return type of a gcc2
    7679     builtin and then its argument prototype would still apply.  */
    7680 char GDALOpen();
    7681 
    7682 int main() {
    7683 
    7684 /* The GNU C library defines this for functions which it implements
    7685     to always fail with ENOSYS.  Some functions are actually named
    7686     something starting with __ and the normal name is an alias.  */
    7687 #if defined (__stub_GDALOpen) || defined (__stub___GDALOpen)
    7688 choke me
    7689 #else
    7690 GDALOpen();
    7691 #endif
    7692 
    7693 ; return 0; }
    7694 EOF
    7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    7696   rm -rf conftest*
    7697   eval "ac_cv_func_GDALOpen=yes"
    7698 else
    7699   echo "configure: failed program was:" >&5
    7700   cat conftest.$ac_ext >&5
    7701   rm -rf conftest*
    7702   eval "ac_cv_func_GDALOpen=no"
    7703 fi
    7704 rm -f conftest*
    7705 
    7706 if eval "test \"`echo '$ac_cv_func_'GDALOpen`\" = yes"; then
    7707   echo "$ac_t""yes" 1>&6
     7668  cat > conftest.$ac_ext <<EOF
     7669#line 7670 "configure"
     7670#include "confdefs.h"
     7671#include <gdal.h>
     7672int main() {
     7673GDALOpen("foo", GA_ReadOnly);
     7674; return 0; }
     7675EOF
     7676if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    77087677  :
    77097678else
    7710   echo "$ac_t""no" 1>&6
    7711 
     7679  echo "configure: failed program was:" >&5
     7680  cat conftest.$ac_ext >&5
     7681  rm -rf conftest*
     7682 
    77127683  LIBS="$LIBS $GDAL_DEP_LIBS"
    7713   echo $ac_n "checking for GDALOpen""... $ac_c" 1>&6
    7714 echo "configure:7715: checking for GDALOpen" >&5
    7715 
    7716 cat > conftest.$ac_ext <<EOF
    7717 #line 7718 "configure"
    7718 #include "confdefs.h"
    7719 /* System header to define __stub macros and hopefully few prototypes,
    7720     which can conflict with char GDALOpen(); below.  */
    7721 #include <assert.h>
    7722 /* Override any gcc2 internal prototype to avoid an error.  */
    7723 /* We use char because int might match the return type of a gcc2
    7724     builtin and then its argument prototype would still apply.  */
    7725 char GDALOpen();
    7726 
    7727 int main() {
    7728 
    7729 /* The GNU C library defines this for functions which it implements
    7730     to always fail with ENOSYS.  Some functions are actually named
    7731     something starting with __ and the normal name is an alias.  */
    7732 #if defined (__stub_GDALOpen) || defined (__stub___GDALOpen)
    7733 choke me
    7734 #else
    7735 GDALOpen();
    7736 #endif
    7737 
    7738 ; return 0; }
    7739 EOF
    7740 if { (eval echo configure:7741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    7741   rm -rf conftest*
    7742   eval "ac_cv_func_GDALOpen=yes"
    7743 else
    7744   echo "configure: failed program was:" >&5
    7745   cat conftest.$ac_ext >&5
    7746   rm -rf conftest*
    7747   eval "ac_cv_func_GDALOpen=no"
    7748 fi
    7749 rm -f conftest*
    7750 
    7751 if eval "test \"`echo '$ac_cv_func_'GDALOpen`\" = yes"; then
    7752   echo "$ac_t""yes" 1>&6
     7684  cat > conftest.$ac_ext <<EOF
     7685#line 7686 "configure"
     7686#include "confdefs.h"
     7687#include <gdal.h>
     7688int main() {
     7689GDALOpen("foo", GA_ReadOnly);
     7690; return 0; }
     7691EOF
     7692if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     7693  rm -rf conftest*
    77537694  GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
    77547695else
    7755   echo "$ac_t""no" 1>&6
    7756 
    7757   { echo "configure: error: *** couldn't find GDAL" 1>&2; exit 1; }
     7696  echo "configure: failed program was:" >&5
     7697  cat conftest.$ac_ext >&5
     7698  rm -rf conftest*
    77587699 
    7759 fi
    7760 
     7700  { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
    77617701 
    77627702fi
    7763 
     7703rm -f conftest*
     7704 
     7705fi
     7706rm -f conftest*
    77647707  LIBS=${ac_save_libs}
    77657708
     
    77747717
    77757718echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
    7776 echo "configure:7777: checking whether to use TIFF" >&5
     7719echo "configure:7720: checking whether to use TIFF" >&5
    77777720echo "$ac_t"""$with_tiff"" 1>&6
    77787721case "$with_tiff" in
     
    77947737
    77957738echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
    7796 echo "configure:7797: checking for location of TIFF includes" >&5
     7739echo "configure:7740: checking for location of TIFF includes" >&5
    77977740case "$with_tiff_includes" in
    77987741y | ye | yes | n | no)
     
    78207763ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    78217764echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    7822 echo "configure:7823: checking for $ac_hdr" >&5
    7823 
    7824 cat > conftest.$ac_ext <<EOF
    7825 #line 7826 "configure"
     7765echo "configure:7766: checking for $ac_hdr" >&5
     7766
     7767cat > conftest.$ac_ext <<EOF
     7768#line 7769 "configure"
    78267769#include "confdefs.h"
    78277770#include <$ac_hdr>
    78287771EOF
    78297772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    7830 { (eval echo configure:7831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     7773{ (eval echo configure:7774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    78317774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    78327775if test -z "$ac_err"; then
     
    78627805
    78637806echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
    7864 echo "configure:7865: checking for location of TIFF library" >&5
     7807echo "configure:7808: checking for location of TIFF library" >&5
    78657808case "$with_tiff_libs" in
    78667809y | ye | yes | n | no)
     
    78937836
    78947837echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    7895 echo "configure:7896: checking for TIFFOpen in -ltiff" >&5
     7838echo "configure:7839: checking for TIFFOpen in -ltiff" >&5
    78967839ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    78977840
     
    78997842LIBS="-ltiff  $LIBS"
    79007843cat > conftest.$ac_ext <<EOF
    7901 #line 7902 "configure"
     7844#line 7845 "configure"
    79027845#include "confdefs.h"
    79037846/* Override any gcc2 internal prototype to avoid an error.  */
     
    79107853; return 0; }
    79117854EOF
    7912 if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     7855if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    79137856  rm -rf conftest*
    79147857  eval "ac_cv_lib_$ac_lib_var=yes"
     
    79297872
    79307873echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    7931 echo "configure:7932: checking for TIFFOpen in -ltiff" >&5
     7874echo "configure:7875: checking for TIFFOpen in -ltiff" >&5
    79327875ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    79337876
     
    79357878LIBS="-ltiff $MATHLIB $LIBS"
    79367879cat > conftest.$ac_ext <<EOF
    7937 #line 7938 "configure"
     7880#line 7881 "configure"
    79387881#include "confdefs.h"
    79397882/* Override any gcc2 internal prototype to avoid an error.  */
     
    79467889; return 0; }
    79477890EOF
    7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     7891if { (eval echo configure:7892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    79497892  rm -rf conftest*
    79507893  eval "ac_cv_lib_$ac_lib_var=yes"
     
    79657908
    79667909echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    7967 echo "configure:7968: checking for TIFFOpen in -ltiff" >&5
     7910echo "configure:7911: checking for TIFFOpen in -ltiff" >&5
    79687911ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    79697912
     
    79717914LIBS="-ltiff $ZLIB $LIBS"
    79727915cat > conftest.$ac_ext <<EOF
    7973 #line 7974 "configure"
     7916#line 7917 "configure"
    79747917#include "confdefs.h"
    79757918/* Override any gcc2 internal prototype to avoid an error.  */
     
    79827925; return 0; }
    79837926EOF
    7984 if { (eval echo configure:7985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     7927if { (eval echo configure:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    79857928  rm -rf conftest*
    79867929  eval "ac_cv_lib_$ac_lib_var=yes"
     
    80017944
    80027945echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    8003 echo "configure:8004: checking for TIFFOpen in -ltiff" >&5
     7946echo "configure:7947: checking for TIFFOpen in -ltiff" >&5
    80047947ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    80057948
     
    80077950LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
    80087951cat > conftest.$ac_ext <<EOF
    8009 #line 8010 "configure"
     7952#line 7953 "configure"
    80107953#include "confdefs.h"
    80117954/* Override any gcc2 internal prototype to avoid an error.  */
     
    80187961; return 0; }
    80197962EOF
    8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     7963if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    80217964  rm -rf conftest*
    80227965  eval "ac_cv_lib_$ac_lib_var=yes"
     
    80377980
    80387981echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    8039 echo "configure:8040: checking for TIFFOpen in -ltiff" >&5
     7982echo "configure:7983: checking for TIFFOpen in -ltiff" >&5
    80407983ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    80417984
     
    80437986LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $LIBS"
    80447987cat > conftest.$ac_ext <<EOF
    8045 #line 8046 "configure"
     7988#line 7989 "configure"
    80467989#include "confdefs.h"
    80477990/* Override any gcc2 internal prototype to avoid an error.  */
     
    80547997; return 0; }
    80557998EOF
    8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     7999if { (eval echo configure:8000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    80578000  rm -rf conftest*
    80588001  eval "ac_cv_lib_$ac_lib_var=yes"
     
    80738016
    80748017echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    8075 echo "configure:8076: checking for TIFFOpen in -ltiff" >&5
     8018echo "configure:8019: checking for TIFFOpen in -ltiff" >&5
    80768019ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    80778020
     
    80798022LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB $LIBS"
    80808023cat > conftest.$ac_ext <<EOF
    8081 #line 8082 "configure"
     8024#line 8025 "configure"
    80828025#include "confdefs.h"
    80838026/* Override any gcc2 internal prototype to avoid an error.  */
     
    80908033; return 0; }
    80918034EOF
    8092 if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8035if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    80938036  rm -rf conftest*
    80948037  eval "ac_cv_lib_$ac_lib_var=yes"
     
    81098052
    81108053echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    8111 echo "configure:8112: checking for TIFFOpen in -ltiff" >&5
     8054echo "configure:8055: checking for TIFFOpen in -ltiff" >&5
    81128055ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    81138056
     
    81158058LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $LIBS"
    81168059cat > conftest.$ac_ext <<EOF
    8117 #line 8118 "configure"
     8060#line 8061 "configure"
    81188061#include "confdefs.h"
    81198062/* Override any gcc2 internal prototype to avoid an error.  */
     
    81268069; return 0; }
    81278070EOF
    8128 if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8071if { (eval echo configure:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    81298072  rm -rf conftest*
    81308073  eval "ac_cv_lib_$ac_lib_var=yes"
     
    81458088
    81468089echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
    8147 echo "configure:8148: checking for TIFFOpen in -ltiff" >&5
     8090echo "configure:8091: checking for TIFFOpen in -ltiff" >&5
    81488091ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
    81498092
     
    81518094LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB $LIBS"
    81528095cat > conftest.$ac_ext <<EOF
    8153 #line 8154 "configure"
     8096#line 8097 "configure"
    81548097#include "confdefs.h"
    81558098/* Override any gcc2 internal prototype to avoid an error.  */
     
    81628105; return 0; }
    81638106EOF
    8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8107if { (eval echo configure:8108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    81658108  rm -rf conftest*
    81668109  eval "ac_cv_lib_$ac_lib_var=yes"
     
    82608203
    82618204echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
    8262 echo "configure:8263: checking whether to use PNG" >&5
     8205echo "configure:8206: checking whether to use PNG" >&5
    82638206echo "$ac_t"""$with_png"" 1>&6
    82648207case "$with_png" in
     
    82798222
    82808223echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
    8281 echo "configure:8282: checking for location of PNG includes" >&5
     8224echo "configure:8225: checking for location of PNG includes" >&5
    82828225case "$with_png_includes" in
    82838226y | ye | yes | n | no)
     
    83058248ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    83068249echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    8307 echo "configure:8308: checking for $ac_hdr" >&5
    8308 
    8309 cat > conftest.$ac_ext <<EOF
    8310 #line 8311 "configure"
     8250echo "configure:8251: checking for $ac_hdr" >&5
     8251
     8252cat > conftest.$ac_ext <<EOF
     8253#line 8254 "configure"
    83118254#include "confdefs.h"
    83128255#include <$ac_hdr>
    83138256EOF
    83148257ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    8315 { (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     8258{ (eval echo configure:8259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    83168259ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    83178260if test -z "$ac_err"; then
     
    83478290
    83488291echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
    8349 echo "configure:8350: checking for location of PNG library" >&5
     8292echo "configure:8293: checking for location of PNG library" >&5
    83508293case "$with_png_libs" in
    83518294y | ye | yes | n | no)
     
    83728315
    83738316echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
    8374 echo "configure:8375: checking for png_read_image in -lpng" >&5
     8317echo "configure:8318: checking for png_read_image in -lpng" >&5
    83758318ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
    83768319
     
    83788321LIBS="-lpng $ZLIB $MATHLIB $LIBS"
    83798322cat > conftest.$ac_ext <<EOF
    8380 #line 8381 "configure"
     8323#line 8324 "configure"
    83818324#include "confdefs.h"
    83828325/* Override any gcc2 internal prototype to avoid an error.  */
     
    83898332; return 0; }
    83908333EOF
    8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8334if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    83928335  rm -rf conftest*
    83938336  eval "ac_cv_lib_$ac_lib_var=yes"
     
    84318374
    84328375echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
    8433 echo "configure:8434: checking whether to use Tcl/Tk" >&5
     8376echo "configure:8377: checking whether to use Tcl/Tk" >&5
    84348377echo "$ac_t"""$with_tcltk"" 1>&6
    84358378case "$with_tcltk" in
     
    84518394
    84528395echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
    8453 echo "configure:8454: checking for location of Tcl/Tk includes" >&5
     8396echo "configure:8397: checking for location of Tcl/Tk includes" >&5
    84548397case "$with_tcltk_includes" in
    84558398y | ye | yes | n | no)
     
    84778420ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    84788421echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    8479 echo "configure:8480: checking for $ac_hdr" >&5
    8480 
    8481 cat > conftest.$ac_ext <<EOF
    8482 #line 8483 "configure"
     8422echo "configure:8423: checking for $ac_hdr" >&5
     8423
     8424cat > conftest.$ac_ext <<EOF
     8425#line 8426 "configure"
    84838426#include "confdefs.h"
    84848427#include <$ac_hdr>
    84858428EOF
    84868429ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    8487 { (eval echo configure:8488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     8430{ (eval echo configure:8431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    84888431ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    84898432if test -z "$ac_err"; then
     
    85228465ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    85238466echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    8524 echo "configure:8525: checking for $ac_hdr" >&5
    8525 
    8526 cat > conftest.$ac_ext <<EOF
    8527 #line 8528 "configure"
     8467echo "configure:8468: checking for $ac_hdr" >&5
     8468
     8469cat > conftest.$ac_ext <<EOF
     8470#line 8471 "configure"
    85288471#include "confdefs.h"
    85298472#include <$ac_hdr>
    85308473EOF
    85318474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    8532 { (eval echo configure:8533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     8475{ (eval echo configure:8476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    85338476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    85348477if test -z "$ac_err"; then
     
    85648507
    85658508echo $ac_n "checking Tcl version""... $ac_c" 1>&6
    8566 echo "configure:8567: checking Tcl version" >&5
     8509echo "configure:8510: checking Tcl version" >&5
    85678510ac_save_cppflags="$CPPFLAGS"
    85688511CPPFLAGS="$TCLINCDIR $CPPFLAGS"
     
    85728515else
    85738516  cat > conftest.$ac_ext <<EOF
    8574 #line 8575 "configure"
     8517#line 8518 "configure"
    85758518#include "confdefs.h"
    85768519
     
    85848527
    85858528EOF
    8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     8529if { (eval echo configure:8530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    85878530then
    85888531     tcl_ver=`cat conftestdata`
     
    86028545
    86038546echo $ac_n "checking Tk version""... $ac_c" 1>&6
    8604 echo "configure:8605: checking Tk version" >&5
     8547echo "configure:8548: checking Tk version" >&5
    86058548ac_save_cppflags="$CPPFLAGS"
    86068549CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
     
    86108553else
    86118554  cat > conftest.$ac_ext <<EOF
    8612 #line 8613 "configure"
     8555#line 8556 "configure"
    86138556#include "confdefs.h"
    86148557
     
    86228565
    86238566EOF
    8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     8567if { (eval echo configure:8568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    86258568then
    86268569     tk_ver=`cat conftestdata`
     
    86518594
    86528595echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
    8653 echo "configure:8654: checking for location of Tcl/Tk library" >&5
     8596echo "configure:8597: checking for location of Tcl/Tk library" >&5
    86548597case "$with_tcltk_libs" in
    86558598y | ye | yes | n | no)
     
    86818624
    86828625echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
    8683 echo "configure:8684: checking for Tcl_Init in -ltcl" >&5
     8626echo "configure:8627: checking for Tcl_Init in -ltcl" >&5
    86848627ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
    86858628
     
    86878630LIBS="-ltcl $MATHLIB $LIBS"
    86888631cat > conftest.$ac_ext <<EOF
    8689 #line 8690 "configure"
     8632#line 8633 "configure"
    86908633#include "confdefs.h"
    86918634/* Override any gcc2 internal prototype to avoid an error.  */
     
    86988641; return 0; }
    86998642EOF
    8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8643if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    87018644  rm -rf conftest*
    87028645  eval "ac_cv_lib_$ac_lib_var=yes"
     
    87178660
    87188661echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
    8719 echo "configure:8720: checking for Tcl_Init in -ltcl" >&5
     8662echo "configure:8663: checking for Tcl_Init in -ltcl" >&5
    87208663ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
    87218664
     
    87238666LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
    87248667cat > conftest.$ac_ext <<EOF
    8725 #line 8726 "configure"
     8668#line 8669 "configure"
    87268669#include "confdefs.h"
    87278670/* Override any gcc2 internal prototype to avoid an error.  */
     
    87348677; return 0; }
    87358678EOF
    8736 if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8679if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    87378680  rm -rf conftest*
    87388681  eval "ac_cv_lib_$ac_lib_var=yes"
     
    87618704
    87628705echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
    8763 echo "configure:8764: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
     8706echo "configure:8707: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
    87648707ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
    87658708
     
    87678710LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
    87688711cat > conftest.$ac_ext <<EOF
    8769 #line 8770 "configure"
     8712#line 8713 "configure"
    87708713#include "confdefs.h"
    87718714/* Override any gcc2 internal prototype to avoid an error.  */
     
    87788721; return 0; }
    87798722EOF
    8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8723if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    87818724  rm -rf conftest*
    87828725  eval "ac_cv_lib_$ac_lib_var=yes"
     
    87978740
    87988741echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
    8799 echo "configure:8800: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
     8742echo "configure:8743: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
    88008743ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
    88018744
     
    88038746LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
    88048747cat > conftest.$ac_ext <<EOF
    8805 #line 8806 "configure"
     8748#line 8749 "configure"
    88068749#include "confdefs.h"
    88078750/* Override any gcc2 internal prototype to avoid an error.  */
     
    88148757; return 0; }
    88158758EOF
    8816 if { (eval echo configure:8817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8759if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    88178760  rm -rf conftest*
    88188761  eval "ac_cv_lib_$ac_lib_var=yes"
     
    88418784
    88428785echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
    8843 echo "configure:8844: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
     8786echo "configure:8787: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
    88448787ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
    88458788
     
    88478790LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
    88488791cat > conftest.$ac_ext <<EOF
    8849 #line 8850 "configure"
     8792#line 8793 "configure"
    88508793#include "confdefs.h"
    88518794/* Override any gcc2 internal prototype to avoid an error.  */
     
    88588801; return 0; }
    88598802EOF
    8860 if { (eval echo configure:8861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8803if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    88618804  rm -rf conftest*
    88628805  eval "ac_cv_lib_$ac_lib_var=yes"
     
    88778820
    88788821echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
    8879 echo "configure:8880: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
     8822echo "configure:8823: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
    88808823ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
    88818824
     
    88838826LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
    88848827cat > conftest.$ac_ext <<EOF
    8885 #line 8886 "configure"
     8828#line 8829 "configure"
    88868829#include "confdefs.h"
    88878830/* Override any gcc2 internal prototype to avoid an error.  */
     
    88948837; return 0; }
    88958838EOF
    8896 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8839if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    88978840  rm -rf conftest*
    88988841  eval "ac_cv_lib_$ac_lib_var=yes"
     
    89728915
    89738916echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
    8974 echo "configure:8975: checking for Tk_MainWindow in -ltk" >&5
     8917echo "configure:8918: checking for Tk_MainWindow in -ltk" >&5
    89758918ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    89768919
     
    89788921LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
    89798922cat > conftest.$ac_ext <<EOF
    8980 #line 8981 "configure"
     8923#line 8924 "configure"
    89818924#include "confdefs.h"
    89828925/* Override any gcc2 internal prototype to avoid an error.  */
     
    89898932; return 0; }
    89908933EOF
    8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8934if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    89928935  rm -rf conftest*
    89938936  eval "ac_cv_lib_$ac_lib_var=yes"
     
    90088951
    90098952echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
    9010 echo "configure:9011: checking for Tk_MainWindow in -ltk" >&5
     8953echo "configure:8954: checking for Tk_MainWindow in -ltk" >&5
    90118954ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    90128955
     
    90148957LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
    90158958cat > conftest.$ac_ext <<EOF
    9016 #line 9017 "configure"
     8959#line 8960 "configure"
    90178960#include "confdefs.h"
    90188961/* Override any gcc2 internal prototype to avoid an error.  */
     
    90258968; return 0; }
    90268969EOF
    9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     8970if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    90288971  rm -rf conftest*
    90298972  eval "ac_cv_lib_$ac_lib_var=yes"
     
    90528995
    90538996echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
    9054 echo "configure:9055: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
     8997echo "configure:8998: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
    90558998ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    90568999
     
    90589001LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
    90599002cat > conftest.$ac_ext <<EOF
    9060 #line 9061 "configure"
     9003#line 9004 "configure"
    90619004#include "confdefs.h"
    90629005/* Override any gcc2 internal prototype to avoid an error.  */
     
    90699012; return 0; }
    90709013EOF
    9071 if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9014if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    90729015  rm -rf conftest*
    90739016  eval "ac_cv_lib_$ac_lib_var=yes"
     
    90889031
    90899032echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
    9090 echo "configure:9091: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
     9033echo "configure:9034: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
    90919034ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    90929035
     
    90949037LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
    90959038cat > conftest.$ac_ext <<EOF
    9096 #line 9097 "configure"
     9039#line 9040 "configure"
    90979040#include "confdefs.h"
    90989041/* Override any gcc2 internal prototype to avoid an error.  */
     
    91059048; return 0; }
    91069049EOF
    9107 if { (eval echo configure:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9050if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    91089051  rm -rf conftest*
    91099052  eval "ac_cv_lib_$ac_lib_var=yes"
     
    91329075
    91339076echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
    9134 echo "configure:9135: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
     9077echo "configure:9078: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
    91359078ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    91369079
     
    91389081LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
    91399082cat > conftest.$ac_ext <<EOF
    9140 #line 9141 "configure"
     9083#line 9084 "configure"
    91419084#include "confdefs.h"
    91429085/* Override any gcc2 internal prototype to avoid an error.  */
     
    91499092; return 0; }
    91509093EOF
    9151 if { (eval echo configure:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9094if { (eval echo configure:9095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    91529095  rm -rf conftest*
    91539096  eval "ac_cv_lib_$ac_lib_var=yes"
     
    91689111
    91699112echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
    9170 echo "configure:9171: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
     9113echo "configure:9114: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
    91719114ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
    91729115
     
    91749117LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
    91759118cat > conftest.$ac_ext <<EOF
    9176 #line 9177 "configure"
     9119#line 9120 "configure"
    91779120#include "confdefs.h"
    91789121/* Override any gcc2 internal prototype to avoid an error.  */
     
    91859128; return 0; }
    91869129EOF
    9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9130if { (eval echo configure:9131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    91889131  rm -rf conftest*
    91899132  eval "ac_cv_lib_$ac_lib_var=yes"
     
    92779220
    92789221echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
    9279 echo "configure:9280: checking whether to use PostgreSQL" >&5
     9222echo "configure:9223: checking whether to use PostgreSQL" >&5
    92809223echo "$ac_t"""$with_postgres"" 1>&6
    92819224case "$with_postgres" in
     
    93049247
    93059248echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
    9306 echo "configure:9307: checking for location of PostgreSQL includes" >&5
     9249echo "configure:9250: checking for location of PostgreSQL includes" >&5
    93079250case "$with_postgres_includes" in
    93089251y | ye | yes | n | no)
     
    93309273ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    93319274echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    9332 echo "configure:9333: checking for $ac_hdr" >&5
    9333 
    9334 cat > conftest.$ac_ext <<EOF
    9335 #line 9336 "configure"
     9275echo "configure:9276: checking for $ac_hdr" >&5
     9276
     9277cat > conftest.$ac_ext <<EOF
     9278#line 9279 "configure"
    93369279#include "confdefs.h"
    93379280#include <$ac_hdr>
    93389281EOF
    93399282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    9340 { (eval echo configure:9341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     9283{ (eval echo configure:9284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    93419284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    93429285if test -z "$ac_err"; then
     
    93769319
    93779320echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
    9378 echo "configure:9379: checking for location of PostgreSQL library" >&5
     9321echo "configure:9322: checking for location of PostgreSQL library" >&5
    93799322case "$with_postgres_libs" in
    93809323y | ye | yes | n | no)
     
    94059348
    94069349echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9407 echo "configure:9408: checking for PQsetdbLogin in -lpq" >&5
     9350echo "configure:9351: checking for PQsetdbLogin in -lpq" >&5
    94089351ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    94099352
     
    94119354LIBS="-lpq  $LIBS"
    94129355cat > conftest.$ac_ext <<EOF
    9413 #line 9414 "configure"
     9356#line 9357 "configure"
    94149357#include "confdefs.h"
    94159358/* Override any gcc2 internal prototype to avoid an error.  */
     
    94229365; return 0; }
    94239366EOF
    9424 if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9367if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    94259368  rm -rf conftest*
    94269369  eval "ac_cv_lib_$ac_lib_var=yes"
     
    94419384
    94429385echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9443 echo "configure:9444: checking for PQsetdbLogin in -lpq" >&5
     9386echo "configure:9387: checking for PQsetdbLogin in -lpq" >&5
    94449387ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    94459388
     
    94479390LIBS="-lpq -lssl -lcrypto $LIBS"
    94489391cat > conftest.$ac_ext <<EOF
    9449 #line 9450 "configure"
     9392#line 9393 "configure"
    94509393#include "confdefs.h"
    94519394/* Override any gcc2 internal prototype to avoid an error.  */
     
    94589401; return 0; }
    94599402EOF
    9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9403if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    94619404  rm -rf conftest*
    94629405  eval "ac_cv_lib_$ac_lib_var=yes"
     
    94779420
    94789421echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9479 echo "configure:9480: checking for PQsetdbLogin in -lpq" >&5
     9422echo "configure:9423: checking for PQsetdbLogin in -lpq" >&5
    94809423ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    94819424
     
    94839426LIBS="-lpq -lcrypt $LIBS"
    94849427cat > conftest.$ac_ext <<EOF
    9485 #line 9486 "configure"
     9428#line 9429 "configure"
    94869429#include "confdefs.h"
    94879430/* Override any gcc2 internal prototype to avoid an error.  */
     
    94949437; return 0; }
    94959438EOF
    9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9439if { (eval echo configure:9440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    94979440  rm -rf conftest*
    94989441  eval "ac_cv_lib_$ac_lib_var=yes"
     
    95139456
    95149457echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
    9515 echo "configure:9516: checking for PQsetdbLogin in -lpq" >&5
     9458echo "configure:9459: checking for PQsetdbLogin in -lpq" >&5
    95169459ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
    95179460
     
    95199462LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
    95209463cat > conftest.$ac_ext <<EOF
    9521 #line 9522 "configure"
     9464#line 9465 "configure"
    95229465#include "confdefs.h"
    95239466/* Override any gcc2 internal prototype to avoid an error.  */
     
    95309473; return 0; }
    95319474EOF
    9532 if { (eval echo configure:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9475if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    95339476  rm -rf conftest*
    95349477  eval "ac_cv_lib_$ac_lib_var=yes"
     
    95879530LDFLAGS="$LDFLAGS $PQLIBPATH"
    95889531echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
    9589 echo "configure:9590: checking for PQcmdTuples in -lpq" >&5
     9532echo "configure:9533: checking for PQcmdTuples in -lpq" >&5
    95909533ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
    95919534
     
    95939536LIBS="-lpq  $LIBS"
    95949537cat > conftest.$ac_ext <<EOF
    9595 #line 9596 "configure"
     9538#line 9539 "configure"
    95969539#include "confdefs.h"
    95979540/* Override any gcc2 internal prototype to avoid an error.  */
     
    96049547; return 0; }
    96059548EOF
    9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9549if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    96079550  rm -rf conftest*
    96089551  eval "ac_cv_lib_$ac_lib_var=yes"
     
    96269569
    96279570echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
    9628 echo "configure:9629: checking for PQcmdTuples in -lpq" >&5
     9571echo "configure:9572: checking for PQcmdTuples in -lpq" >&5
    96299572ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
    96309573
     
    96329575LIBS="-lpq -lcrypt $LIBS"
    96339576cat > conftest.$ac_ext <<EOF
    9634 #line 9635 "configure"
     9577#line 9578 "configure"
    96359578#include "confdefs.h"
    96369579/* Override any gcc2 internal prototype to avoid an error.  */
     
    96439586; return 0; }
    96449587EOF
    9645 if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9588if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    96469589  rm -rf conftest*
    96479590  eval "ac_cv_lib_$ac_lib_var=yes"
     
    96869629
    96879630echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
    9688 echo "configure:9689: checking whether to use MySQL" >&5
     9631echo "configure:9632: checking whether to use MySQL" >&5
    96899632echo "$ac_t"""$with_mysql"" 1>&6
    96909633case "$with_mysql" in
     
    97069649
    97079650echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
    9708 echo "configure:9709: checking for location of MySQL includes" >&5
     9651echo "configure:9652: checking for location of MySQL includes" >&5
    97099652case "$with_mysql_includes" in
    97109653y | ye | yes | n | no)
     
    97329675ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    97339676echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    9734 echo "configure:9735: checking for $ac_hdr" >&5
    9735 
    9736 cat > conftest.$ac_ext <<EOF
    9737 #line 9738 "configure"
     9677echo "configure:9678: checking for $ac_hdr" >&5
     9678
     9679cat > conftest.$ac_ext <<EOF
     9680#line 9681 "configure"
    97389681#include "confdefs.h"
    97399682#include <$ac_hdr>
    97409683EOF
    97419684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    9742 { (eval echo configure:9743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     9685{ (eval echo configure:9686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    97439686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    97449687if test -z "$ac_err"; then
     
    97779720 
    97789721echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
    9779 echo "configure:9780: checking for location of MySQL library" >&5
     9722echo "configure:9723: checking for location of MySQL library" >&5
    97809723case "$with_mysql_libs" in
    97819724y | ye | yes | n | no)
     
    98089751
    98099752echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    9810 echo "configure:9811: checking for mysql_query in -lmysqlclient" >&5
     9753echo "configure:9754: checking for mysql_query in -lmysqlclient" >&5
    98119754ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    98129755
     
    98149757LIBS="-lmysqlclient  $LIBS"
    98159758cat > conftest.$ac_ext <<EOF
    9816 #line 9817 "configure"
     9759#line 9760 "configure"
    98179760#include "confdefs.h"
    98189761/* Override any gcc2 internal prototype to avoid an error.  */
     
    98259768; return 0; }
    98269769EOF
    9827 if { (eval echo configure:9828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9770if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    98289771  rm -rf conftest*
    98299772  eval "ac_cv_lib_$ac_lib_var=yes"
     
    98449787
    98459788echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    9846 echo "configure:9847: checking for mysql_query in -lmysqlclient" >&5
     9789echo "configure:9790: checking for mysql_query in -lmysqlclient" >&5
    98479790ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    98489791
     
    98509793LIBS="-lmysqlclient $MATHLIB $LIBS"
    98519794cat > conftest.$ac_ext <<EOF
    9852 #line 9853 "configure"
     9795#line 9796 "configure"
    98539796#include "confdefs.h"
    98549797/* Override any gcc2 internal prototype to avoid an error.  */
     
    98619804; return 0; }
    98629805EOF
    9863 if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9806if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    98649807  rm -rf conftest*
    98659808  eval "ac_cv_lib_$ac_lib_var=yes"
     
    98809823
    98819824echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    9882 echo "configure:9883: checking for mysql_query in -lmysqlclient" >&5
     9825echo "configure:9826: checking for mysql_query in -lmysqlclient" >&5
    98839826ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    98849827
     
    98869829LIBS="-lmysqlclient $SOCKLIB $LIBS"
    98879830cat > conftest.$ac_ext <<EOF
    9888 #line 9889 "configure"
     9831#line 9832 "configure"
    98899832#include "confdefs.h"
    98909833/* Override any gcc2 internal prototype to avoid an error.  */
     
    98979840; return 0; }
    98989841EOF
    9899 if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9842if { (eval echo configure:9843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    99009843  rm -rf conftest*
    99019844  eval "ac_cv_lib_$ac_lib_var=yes"
     
    99169859
    99179860echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    9918 echo "configure:9919: checking for mysql_query in -lmysqlclient" >&5
     9861echo "configure:9862: checking for mysql_query in -lmysqlclient" >&5
    99199862ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    99209863
     
    99229865LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
    99239866cat > conftest.$ac_ext <<EOF
    9924 #line 9925 "configure"
     9867#line 9868 "configure"
    99259868#include "confdefs.h"
    99269869/* Override any gcc2 internal prototype to avoid an error.  */
     
    99339876; return 0; }
    99349877EOF
    9935 if { (eval echo configure:9936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9878if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    99369879  rm -rf conftest*
    99379880  eval "ac_cv_lib_$ac_lib_var=yes"
     
    99529895
    99539896echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    9954 echo "configure:9955: checking for mysql_query in -lmysqlclient" >&5
     9897echo "configure:9898: checking for mysql_query in -lmysqlclient" >&5
    99559898ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    99569899
     
    99589901LIBS="-lmysqlclient $ZLIB $LIBS"
    99599902cat > conftest.$ac_ext <<EOF
    9960 #line 9961 "configure"
     9903#line 9904 "configure"
    99619904#include "confdefs.h"
    99629905/* Override any gcc2 internal prototype to avoid an error.  */
     
    99699912; return 0; }
    99709913EOF
    9971 if { (eval echo configure:9972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9914if { (eval echo configure:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    99729915  rm -rf conftest*
    99739916  eval "ac_cv_lib_$ac_lib_var=yes"
     
    99889931
    99899932echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    9990 echo "configure:9991: checking for mysql_query in -lmysqlclient" >&5
     9933echo "configure:9934: checking for mysql_query in -lmysqlclient" >&5
    99919934ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    99929935
     
    99949937LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
    99959938cat > conftest.$ac_ext <<EOF
    9996 #line 9997 "configure"
     9939#line 9940 "configure"
    99979940#include "confdefs.h"
    99989941/* Override any gcc2 internal prototype to avoid an error.  */
     
    100059948; return 0; }
    100069949EOF
    10007 if { (eval echo configure:10008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9950if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    100089951  rm -rf conftest*
    100099952  eval "ac_cv_lib_$ac_lib_var=yes"
     
    100249967
    100259968echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10026 echo "configure:10027: checking for mysql_query in -lmysqlclient" >&5
     9969echo "configure:9970: checking for mysql_query in -lmysqlclient" >&5
    100279970ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    100289971
     
    100309973LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
    100319974cat > conftest.$ac_ext <<EOF
    10032 #line 10033 "configure"
     9975#line 9976 "configure"
    100339976#include "confdefs.h"
    100349977/* Override any gcc2 internal prototype to avoid an error.  */
     
    100419984; return 0; }
    100429985EOF
    10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     9986if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    100449987  rm -rf conftest*
    100459988  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1006010003
    1006110004echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
    10062 echo "configure:10063: checking for mysql_query in -lmysqlclient" >&5
     10005echo "configure:10006: checking for mysql_query in -lmysqlclient" >&5
    1006310006ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
    1006410007
     
    1006610009LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
    1006710010cat > conftest.$ac_ext <<EOF
    10068 #line 10069 "configure"
     10011#line 10012 "configure"
    1006910012#include "confdefs.h"
    1007010013/* Override any gcc2 internal prototype to avoid an error.  */
     
    1007710020; return 0; }
    1007810021EOF
    10079 if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10022if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1008010023  rm -rf conftest*
    1008110024  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1016710110set dummy mysql_config; ac_word=$2
    1016810111echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    10169 echo "configure:10170: checking for $ac_word" >&5
     10112echo "configure:10113: checking for $ac_word" >&5
    1017010113
    1017110114case "$MYSQLD_CONFIG" in
     
    1020810151    LIBS="$MYSQLDLIB $LIBS"
    1020910152    echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
    10210 echo "configure:10211: checking for mysql_server_init" >&5
    10211 
    10212 cat > conftest.$ac_ext <<EOF
    10213 #line 10214 "configure"
     10153echo "configure:10154: checking for mysql_server_init" >&5
     10154
     10155cat > conftest.$ac_ext <<EOF
     10156#line 10157 "configure"
    1021410157#include "confdefs.h"
    1021510158/* System header to define __stub macros and hopefully few prototypes,
     
    1023410177; return 0; }
    1023510178EOF
    10236 if { (eval echo configure:10237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10179if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1023710180  rm -rf conftest*
    1023810181  eval "ac_cv_func_mysql_server_init=yes"
     
    1027210215
    1027310216echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
    10274 echo "configure:10275: checking whether to use SQLite" >&5
     10217echo "configure:10218: checking whether to use SQLite" >&5
    1027510218echo "$ac_t"""$with_sqlite"" 1>&6
    1027610219case "$with_sqlite" in
     
    1029210235
    1029310236echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
    10294 echo "configure:10295: checking for location of SQLite includes" >&5
     10237echo "configure:10238: checking for location of SQLite includes" >&5
    1029510238case "$with_sqlite_includes" in
    1029610239y | ye | yes | n | no)
     
    1031810261ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1031910262echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10320 echo "configure:10321: checking for $ac_hdr" >&5
    10321 
    10322 cat > conftest.$ac_ext <<EOF
    10323 #line 10324 "configure"
     10263echo "configure:10264: checking for $ac_hdr" >&5
     10264
     10265cat > conftest.$ac_ext <<EOF
     10266#line 10267 "configure"
    1032410267#include "confdefs.h"
    1032510268#include <$ac_hdr>
    1032610269EOF
    1032710270ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    10328 { (eval echo configure:10329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10271{ (eval echo configure:10272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1032910272ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1033010273if test -z "$ac_err"; then
     
    1036910312
    1037010313echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
    10371 echo "configure:10372: checking for location of SQLite library" >&5
     10314echo "configure:10315: checking for location of SQLite library" >&5
    1037210315case "$with_sqlite_libs" in
    1037310316y | ye | yes | n | no)
     
    1039610339
    1039710340echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
    10398 echo "configure:10399: checking for sqlite3_open in -lsqlite3" >&5
     10341echo "configure:10342: checking for sqlite3_open in -lsqlite3" >&5
    1039910342ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
    1040010343
     
    1040210345LIBS="-lsqlite3  $LIBS"
    1040310346cat > conftest.$ac_ext <<EOF
    10404 #line 10405 "configure"
     10347#line 10348 "configure"
    1040510348#include "confdefs.h"
    1040610349/* Override any gcc2 internal prototype to avoid an error.  */
     
    1041310356; return 0; }
    1041410357EOF
    10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10358if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1041610359  rm -rf conftest*
    1041710360  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1043210375
    1043310376echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
    10434 echo "configure:10435: checking for sqlite3_open in -lsqlite3" >&5
     10377echo "configure:10378: checking for sqlite3_open in -lsqlite3" >&5
    1043510378ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
    1043610379
     
    1043810381LIBS="-lsqlite3 $MATHLIB $LIBS"
    1043910382cat > conftest.$ac_ext <<EOF
    10440 #line 10441 "configure"
     10383#line 10384 "configure"
    1044110384#include "confdefs.h"
    1044210385/* Override any gcc2 internal prototype to avoid an error.  */
     
    1044910392; return 0; }
    1045010393EOF
    10451 if { (eval echo configure:10452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10394if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1045210395  rm -rf conftest*
    1045310396  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1050210445
    1050310446echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
    10504 echo "configure:10505: checking whether to use FFMPEG" >&5
     10447echo "configure:10448: checking whether to use FFMPEG" >&5
    1050510448echo "$ac_t"""$with_ffmpeg"" 1>&6
    1050610449case "$with_ffmpeg" in
     
    1052210465
    1052310466echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
    10524 echo "configure:10525: checking for location of FFMPEG includes" >&5
     10467echo "configure:10468: checking for location of FFMPEG includes" >&5
    1052510468case "$with_ffmpeg_includes" in
    1052610469y | ye | yes | n | no)
     
    1054810491ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1054910492echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10550 echo "configure:10551: checking for $ac_hdr" >&5
    10551 
    10552 cat > conftest.$ac_ext <<EOF
    10553 #line 10554 "configure"
     10493echo "configure:10494: checking for $ac_hdr" >&5
     10494
     10495cat > conftest.$ac_ext <<EOF
     10496#line 10497 "configure"
    1055410497#include "confdefs.h"
    1055510498#include <$ac_hdr>
    1055610499EOF
    1055710500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    10558 { (eval echo configure:10559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10501{ (eval echo configure:10502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1055910502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1056010503if test -z "$ac_err"; then
     
    1059210535ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1059310536echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10594 echo "configure:10595: checking for $ac_hdr" >&5
    10595 
    10596 cat > conftest.$ac_ext <<EOF
    10597 #line 10598 "configure"
     10537echo "configure:10538: checking for $ac_hdr" >&5
     10538
     10539cat > conftest.$ac_ext <<EOF
     10540#line 10541 "configure"
    1059810541#include "confdefs.h"
    1059910542#include <$ac_hdr>
    1060010543EOF
    1060110544ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10545{ (eval echo configure:10546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1060310546ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1060410547if test -z "$ac_err"; then
     
    1063610579ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1063710580echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    10638 echo "configure:10639: checking for $ac_hdr" >&5
    10639 
    10640 cat > conftest.$ac_ext <<EOF
    10641 #line 10642 "configure"
     10581echo "configure:10582: checking for $ac_hdr" >&5
     10582
     10583cat > conftest.$ac_ext <<EOF
     10584#line 10585 "configure"
    1064210585#include "confdefs.h"
    1064310586#include <$ac_hdr>
    1064410587EOF
    1064510588ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    10646 { (eval echo configure:10647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     10589{ (eval echo configure:10590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1064710590ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1064810591if test -z "$ac_err"; then
     
    1068710630
    1068810631echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
    10689 echo "configure:10690: checking for location of FFMPEG library" >&5
     10632echo "configure:10633: checking for location of FFMPEG library" >&5
    1069010633case "$with_ffmpeg_libs" in
    1069110634y | ye | yes | n | no)
     
    1071410657
    1071510658echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
    10716 echo "configure:10717: checking for av_free in -lavutil" >&5
     10659echo "configure:10660: checking for av_free in -lavutil" >&5
    1071710660ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
    1071810661
     
    1072010663LIBS="-lavutil  $LIBS"
    1072110664cat > conftest.$ac_ext <<EOF
    10722 #line 10723 "configure"
     10665#line 10666 "configure"
    1072310666#include "confdefs.h"
    1072410667/* Override any gcc2 internal prototype to avoid an error.  */
     
    1073110674; return 0; }
    1073210675EOF
    10733 if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10676if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1073410677  rm -rf conftest*
    1073510678  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1075010693
    1075110694echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
    10752 echo "configure:10753: checking for av_free in -lavutil" >&5
     10695echo "configure:10696: checking for av_free in -lavutil" >&5
    1075310696ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
    1075410697
     
    1075610699LIBS="-lavutil $MATHLIB $LIBS"
    1075710700cat > conftest.$ac_ext <<EOF
    10758 #line 10759 "configure"
     10701#line 10702 "configure"
    1075910702#include "confdefs.h"
    1076010703/* Override any gcc2 internal prototype to avoid an error.  */
     
    1076710710; return 0; }
    1076810711EOF
    10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10712if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1077010713  rm -rf conftest*
    1077110714  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1081210755
    1081310756echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
    10814 echo "configure:10815: checking for avcodec_init in -lavcodec" >&5
     10757echo "configure:10758: checking for avcodec_init in -lavcodec" >&5
    1081510758ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
    1081610759
     
    1081810761LIBS="-lavcodec $FFMPEGLIB  $LIBS"
    1081910762cat > conftest.$ac_ext <<EOF
    10820 #line 10821 "configure"
     10763#line 10764 "configure"
    1082110764#include "confdefs.h"
    1082210765/* Override any gcc2 internal prototype to avoid an error.  */
     
    1082910772; return 0; }
    1083010773EOF
    10831 if { (eval echo configure:10832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10774if { (eval echo configure:10775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1083210775  rm -rf conftest*
    1083310776  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1084810791
    1084910792echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
    10850 echo "configure:10851: checking for avcodec_init in -lavcodec" >&5
     10793echo "configure:10794: checking for avcodec_init in -lavcodec" >&5
    1085110794ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
    1085210795
     
    1085410797LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
    1085510798cat > conftest.$ac_ext <<EOF
    10856 #line 10857 "configure"
     10799#line 10800 "configure"
    1085710800#include "confdefs.h"
    1085810801/* Override any gcc2 internal prototype to avoid an error.  */
     
    1086510808; return 0; }
    1086610809EOF
    10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10810if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1086810811  rm -rf conftest*
    1086910812  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1091010853
    1091110854echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
    10912 echo "configure:10913: checking for av_set_parameters in -lavformat" >&5
     10855echo "configure:10856: checking for av_set_parameters in -lavformat" >&5
    1091310856ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
    1091410857
     
    1091610859LIBS="-lavformat $FFMPEGLIB  $LIBS"
    1091710860cat > conftest.$ac_ext <<EOF
    10918 #line 10919 "configure"
     10861#line 10862 "configure"
    1091910862#include "confdefs.h"
    1092010863/* Override any gcc2 internal prototype to avoid an error.  */
     
    1092710870; return 0; }
    1092810871EOF
    10929 if { (eval echo configure:10930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10872if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1093010873  rm -rf conftest*
    1093110874  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1094610889
    1094710890echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
    10948 echo "configure:10949: checking for av_set_parameters in -lavformat" >&5
     10891echo "configure:10892: checking for av_set_parameters in -lavformat" >&5
    1094910892ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
    1095010893
     
    1095210895LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
    1095310896cat > conftest.$ac_ext <<EOF
    10954 #line 10955 "configure"
     10897#line 10898 "configure"
    1095510898#include "confdefs.h"
    1095610899/* Override any gcc2 internal prototype to avoid an error.  */
     
    1096310906; return 0; }
    1096410907EOF
    10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     10908if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1096610909  rm -rf conftest*
    1096710910  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1102310966
    1102410967echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
    11025 echo "configure:11026: checking whether to use OpenGL" >&5
     10968echo "configure:10969: checking whether to use OpenGL" >&5
    1102610969echo "$ac_t"""$with_opengl"" 1>&6
    1102710970case "$with_opengl" in
     
    1105711000
    1105811001echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
    11059 echo "configure:11060: checking for location of OpenGL includes" >&5
     11002echo "configure:11003: checking for location of OpenGL includes" >&5
    1106011003case "$with_opengl_includes" in
    1106111004y | ye | yes | n | no)
     
    1108311026ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1108411027echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    11085 echo "configure:11086: checking for $ac_hdr" >&5
    11086 
    11087 cat > conftest.$ac_ext <<EOF
    11088 #line 11089 "configure"
     11028echo "configure:11029: checking for $ac_hdr" >&5
     11029
     11030cat > conftest.$ac_ext <<EOF
     11031#line 11032 "configure"
    1108911032#include "confdefs.h"
    1109011033#include <$ac_hdr>
    1109111034EOF
    1109211035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11093 { (eval echo configure:11094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11036{ (eval echo configure:11037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1109411037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1109511038if test -z "$ac_err"; then
     
    1112511068
    1112611069echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
    11127 echo "configure:11128: checking for location of OpenGL library" >&5
     11070echo "configure:11071: checking for location of OpenGL library" >&5
    1112811071case "$with_opengl_libs" in
    1112911072y | ye | yes | n | no)
     
    1115411097
    1115511098echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11156 echo "configure:11157: checking for glBegin in -lGL" >&5
     11099echo "configure:11100: checking for glBegin in -lGL" >&5
    1115711100ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1115811101
     
    1116011103LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1116111104cat > conftest.$ac_ext <<EOF
    11162 #line 11163 "configure"
     11105#line 11106 "configure"
    1116311106#include "confdefs.h"
    1116411107/* Override any gcc2 internal prototype to avoid an error.  */
     
    1117111114; return 0; }
    1117211115EOF
    11173 if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11116if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1117411117  rm -rf conftest*
    1117511118  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1119011133
    1119111134echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11192 echo "configure:11193: checking for glBegin in -lGL" >&5
     11135echo "configure:11136: checking for glBegin in -lGL" >&5
    1119311136ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1119411137
     
    1119611139LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
    1119711140cat > conftest.$ac_ext <<EOF
    11198 #line 11199 "configure"
     11141#line 11142 "configure"
    1119911142#include "confdefs.h"
    1120011143/* Override any gcc2 internal prototype to avoid an error.  */
     
    1120711150; return 0; }
    1120811151EOF
    11209 if { (eval echo configure:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11152if { (eval echo configure:11153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1121011153  rm -rf conftest*
    1121111154  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1122611169
    1122711170echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11228 echo "configure:11229: checking for glBegin in -lGL" >&5
     11171echo "configure:11172: checking for glBegin in -lGL" >&5
    1122911172ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1123011173
     
    1123211175LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
    1123311176cat > conftest.$ac_ext <<EOF
    11234 #line 11235 "configure"
     11177#line 11178 "configure"
    1123511178#include "confdefs.h"
    1123611179/* Override any gcc2 internal prototype to avoid an error.  */
     
    1124311186; return 0; }
    1124411187EOF
    11245 if { (eval echo configure:11246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11188if { (eval echo configure:11189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1124611189  rm -rf conftest*
    1124711190  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1126211205
    1126311206echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
    11264 echo "configure:11265: checking for glBegin in -lGL" >&5
     11207echo "configure:11208: checking for glBegin in -lGL" >&5
    1126511208ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
    1126611209
     
    1126811211LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
    1126911212cat > conftest.$ac_ext <<EOF
    11270 #line 11271 "configure"
     11213#line 11214 "configure"
    1127111214#include "confdefs.h"
    1127211215/* Override any gcc2 internal prototype to avoid an error.  */
     
    1127911222; return 0; }
    1128011223EOF
    11281 if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11224if { (eval echo configure:11225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1128211225  rm -rf conftest*
    1128311226  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1134111284
    1134211285echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
    11343 echo "configure:11344: checking for gluBeginCurve in -lGLU" >&5
     11286echo "configure:11287: checking for gluBeginCurve in -lGLU" >&5
    1134411287ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
    1134511288
     
    1134711290LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1134811291cat > conftest.$ac_ext <<EOF
    11349 #line 11350 "configure"
     11292#line 11293 "configure"
    1135011293#include "confdefs.h"
    1135111294/* Override any gcc2 internal prototype to avoid an error.  */
     
    1135811301; return 0; }
    1135911302EOF
    11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11303if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1136111304  rm -rf conftest*
    1136211305  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1137711320
    1137811321echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
    11379 echo "configure:11380: checking for gluBeginCurve in -lGLU" >&5
     11322echo "configure:11323: checking for gluBeginCurve in -lGLU" >&5
    1138011323ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
    1138111324
     
    1138311326LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
    1138411327cat > conftest.$ac_ext <<EOF
    11385 #line 11386 "configure"
     11328#line 11329 "configure"
    1138611329#include "confdefs.h"
    1138711330/* Override any gcc2 internal prototype to avoid an error.  */
     
    1139411337; return 0; }
    1139511338EOF
    11396 if { (eval echo configure:11397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11339if { (eval echo configure:11340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1139711340  rm -rf conftest*
    1139811341  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1143811381LDFLAGS="$LDFLAGS $OPENGLLIB"
    1143911382echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
    11440 echo "configure:11441: checking for glXCreatePbuffer" >&5
    11441 
    11442 cat > conftest.$ac_ext <<EOF
    11443 #line 11444 "configure"
     11383echo "configure:11384: checking for glXCreatePbuffer" >&5
     11384
     11385cat > conftest.$ac_ext <<EOF
     11386#line 11387 "configure"
    1144411387#include "confdefs.h"
    1144511388/* System header to define __stub macros and hopefully few prototypes,
     
    1146411407; return 0; }
    1146511408EOF
    11466 if { (eval echo configure:11467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11409if { (eval echo configure:11410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1146711410  rm -rf conftest*
    1146811411  eval "ac_cv_func_glXCreatePbuffer=yes"
     
    1148611429
    1148711430echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
    11488 echo "configure:11489: checking for glXCreateGLXPixmap" >&5
    11489 
    11490 cat > conftest.$ac_ext <<EOF
    11491 #line 11492 "configure"
     11431echo "configure:11432: checking for glXCreateGLXPixmap" >&5
     11432
     11433cat > conftest.$ac_ext <<EOF
     11434#line 11435 "configure"
    1149211435#include "confdefs.h"
    1149311436/* System header to define __stub macros and hopefully few prototypes,
     
    1151211455; return 0; }
    1151311456EOF
    11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11457if { (eval echo configure:11458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1151511458  rm -rf conftest*
    1151611459  eval "ac_cv_func_glXCreateGLXPixmap=yes"
     
    1155111494
    1155211495echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
    11553 echo "configure:11554: checking for location of OpenGL includes" >&5
     11496echo "configure:11497: checking for location of OpenGL includes" >&5
    1155411497case "$with_opengl_includes" in
    1155511498y | ye | yes | n | no)
     
    1157711520ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1157811521echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    11579 echo "configure:11580: checking for $ac_hdr" >&5
    11580 
    11581 cat > conftest.$ac_ext <<EOF
    11582 #line 11583 "configure"
     11522echo "configure:11523: checking for $ac_hdr" >&5
     11523
     11524cat > conftest.$ac_ext <<EOF
     11525#line 11526 "configure"
    1158311526#include "confdefs.h"
    1158411527#include <$ac_hdr>
    1158511528EOF
    1158611529ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11587 { (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11530{ (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1158811531ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1158911532if test -z "$ac_err"; then
     
    1162011563LDFLAGS="$with_opengl_libs $LDFLAGS"
    1162111564echo $ac_n "checking for glBegin""... $ac_c" 1>&6
    11622 echo "configure:11623: checking for glBegin" >&5
    11623 
    11624 cat > conftest.$ac_ext <<EOF
    11625 #line 11626 "configure"
     11565echo "configure:11566: checking for glBegin" >&5
     11566
     11567cat > conftest.$ac_ext <<EOF
     11568#line 11569 "configure"
    1162611569#include "confdefs.h"
    1162711570/* System header to define __stub macros and hopefully few prototypes,
     
    1164611589; return 0; }
    1164711590EOF
    11648 if { (eval echo configure:11649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11591if { (eval echo configure:11592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1164911592  rm -rf conftest*
    1165011593  eval "ac_cv_func_glBegin=yes"
     
    1166111604 
    1166211605echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
    11663 echo "configure:11664: checking for gluBeginCurve" >&5
    11664 
    11665 cat > conftest.$ac_ext <<EOF
    11666 #line 11667 "configure"
     11606echo "configure:11607: checking for gluBeginCurve" >&5
     11607
     11608cat > conftest.$ac_ext <<EOF
     11609#line 11610 "configure"
    1166711610#include "confdefs.h"
    1166811611/* System header to define __stub macros and hopefully few prototypes,
     
    1168711630; return 0; }
    1168811631EOF
    11689 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11632if { (eval echo configure:11633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1169011633  rm -rf conftest*
    1169111634  eval "ac_cv_func_gluBeginCurve=yes"
     
    1173311676
    1173411677echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
    11735 echo "configure:11736: checking for location of OpenGL includes" >&5
     11678echo "configure:11679: checking for location of OpenGL includes" >&5
    1173611679case "$with_opengl_includes" in
    1173711680y | ye | yes | n | no)
     
    1175911702ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1176011703echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    11761 echo "configure:11762: checking for $ac_hdr" >&5
    11762 
    11763 cat > conftest.$ac_ext <<EOF
    11764 #line 11765 "configure"
     11704echo "configure:11705: checking for $ac_hdr" >&5
     11705
     11706cat > conftest.$ac_ext <<EOF
     11707#line 11708 "configure"
    1176511708#include "confdefs.h"
    1176611709#include <$ac_hdr>
    1176711710EOF
    1176811711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11769 { (eval echo configure:11770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11712{ (eval echo configure:11713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1177011713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1177111714if test -z "$ac_err"; then
     
    1180111744
    1180211745echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
    11803 echo "configure:11804: checking for location of OpenGL library" >&5
     11746echo "configure:11747: checking for location of OpenGL library" >&5
    1180411747case "$with_opengl_libs" in
    1180511748y | ye | yes | n | no)
     
    1182011763
    1182111764
     11765
    1182211766ac_save_ldflags="$LDFLAGS"
    1182311767ac_save_libs="$LIBS"
     11768echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
     11769echo "configure:11770: checking for OpenGL library" >&5
    1182411770LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
    11825 echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
    11826 echo "configure:11827: checking for OpenGL library" >&5
    11827 LIBS="-lopengl32"
    11828 cat > conftest.$ac_ext <<EOF
    11829 #line 11830 "configure"
     11771LIBS="-lopengl32  "
     11772cat > conftest.$ac_ext <<EOF
     11773#line 11774 "configure"
    1183011774#include "confdefs.h"
    1183111775#include <GL/gl.h>
     
    1183411778; return 0; }
    1183511779EOF
    11836 if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11780if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1183711781  rm -rf conftest*
    1183811782 
    1183911783echo "$ac_t""found" 1>&6
    11840 OPENGLLIB=-lopengl32
     11784OPENGLLIB="$OPENGLLIB -lopengl32 "
     11785
     11786else
     11787  echo "configure: failed program was:" >&5
     11788  cat conftest.$ac_ext >&5
     11789  rm -rf conftest*
     11790 
     11791
     11792    { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
     11793
     11794
     11795fi
     11796rm -f conftest*
     11797LIBS=${ac_save_libs}
     11798LDFLAGS=${ac_save_ldflags}
     11799
     11800
     11801ac_save_ldflags="$LDFLAGS"
     11802ac_save_libs="$LIBS"
    1184111803echo $ac_n "checking for GLU library""... $ac_c" 1>&6
    11842 echo "configure:11843: checking for GLU library" >&5
    11843 LIBS="-lglu32 $OPENGLLIB"
    11844 cat > conftest.$ac_ext <<EOF
    11845 #line 11846 "configure"
     11804echo "configure:11805: checking for GLU library" >&5
     11805LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
     11806LIBS="-lglu32 $OPENGLLIB "
     11807cat > conftest.$ac_ext <<EOF
     11808#line 11809 "configure"
    1184611809#include "confdefs.h"
    1184711810#include <GL/glu.h>
     
    1185011813; return 0; }
    1185111814EOF
    11852 if { (eval echo configure:11853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11815if { (eval echo configure:11816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1185311816  rm -rf conftest*
    1185411817 
    1185511818echo "$ac_t""found" 1>&6
    11856 OPENGLULIB=-lglu32
    11857 
    11858 else
    11859   echo "configure: failed program was:" >&5
    11860   cat conftest.$ac_ext >&5
    11861   rm -rf conftest*
    11862   { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
    11863 fi
    11864 rm -f conftest*
    11865 
    11866 else
    11867   echo "configure: failed program was:" >&5
    11868   cat conftest.$ac_ext >&5
    11869   rm -rf conftest*
    11870   { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
     11819OPENGLULIB="$OPENGLULIB -lglu32 "
     11820
     11821else
     11822  echo "configure: failed program was:" >&5
     11823  cat conftest.$ac_ext >&5
     11824  rm -rf conftest*
     11825 
     11826
     11827    { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
     11828
     11829
    1187111830fi
    1187211831rm -f conftest*
     
    1187411833LDFLAGS=${ac_save_ldflags}
    1187511834
     11835
    1187611836OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
    1187711837OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
     
    1190111861
    1190211862echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
    11903 echo "configure:11904: checking whether to use ODBC" >&5
     11863echo "configure:11864: checking whether to use ODBC" >&5
    1190411864echo "$ac_t"""$with_odbc"" 1>&6
    1190511865case "$with_odbc" in
     
    1192011880
    1192111881echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
    11922 echo "configure:11923: checking for location of ODBC includes" >&5
     11882echo "configure:11883: checking for location of ODBC includes" >&5
    1192311883case "$with_odbc_includes" in
    1192411884y | ye | yes | n | no)
     
    1194611906ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1194711907echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    11948 echo "configure:11949: checking for $ac_hdr" >&5
    11949 
    11950 cat > conftest.$ac_ext <<EOF
    11951 #line 11952 "configure"
     11908echo "configure:11909: checking for $ac_hdr" >&5
     11909
     11910cat > conftest.$ac_ext <<EOF
     11911#line 11912 "configure"
    1195211912#include "confdefs.h"
    1195311913#include <$ac_hdr>
    1195411914EOF
    1195511915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    11956 { (eval echo configure:11957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     11916{ (eval echo configure:11917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1195711917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1195811918if test -z "$ac_err"; then
     
    1198811948
    1198911949echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
    11990 echo "configure:11991: checking for location of ODBC library" >&5
     11950echo "configure:11951: checking for location of ODBC library" >&5
    1199111951case "$with_odbc_libs" in
    1199211952y | ye | yes | n | no)
     
    1201311973
    1201411974echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
    12015 echo "configure:12016: checking for SQLConnect in -lodbc" >&5
     11975echo "configure:11976: checking for SQLConnect in -lodbc" >&5
    1201611976ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
    1201711977
     
    1201911979LIBS="-lodbc $ICONVLIB  $LIBS"
    1202011980cat > conftest.$ac_ext <<EOF
    12021 #line 12022 "configure"
     11981#line 11982 "configure"
    1202211982#include "confdefs.h"
    1202311983/* Override any gcc2 internal prototype to avoid an error.  */
     
    1203011990; return 0; }
    1203111991EOF
    12032 if { (eval echo configure:12033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     11992if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1203311993  rm -rf conftest*
    1203411994  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1205512015
    1205612016echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
    12057 echo "configure:12058: checking for SQLConnect in -liodbc" >&5
     12017echo "configure:12018: checking for SQLConnect in -liodbc" >&5
    1205812018ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
    1205912019
     
    1206112021LIBS="-liodbc  $LIBS"
    1206212022cat > conftest.$ac_ext <<EOF
    12063 #line 12064 "configure"
     12023#line 12024 "configure"
    1206412024#include "confdefs.h"
    1206512025/* Override any gcc2 internal prototype to avoid an error.  */
     
    1207212032; return 0; }
    1207312033EOF
    12074 if { (eval echo configure:12075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12034if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1207512035  rm -rf conftest*
    1207612036  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1209212052LDFLAGS=${ac_save_ldflags}
    1209312053
     12054ac_save_ldflags="$LDFLAGS"
     12055ac_save_libs="$LIBS"
     12056echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
     12057echo "configure:12058: checking for ODBC library" >&5
     12058LDFLAGS="$ODBCLIB $LDFLAGS"
     12059LIBS="-lodbc32  "
     12060cat > conftest.$ac_ext <<EOF
     12061#line 12062 "configure"
     12062#include "confdefs.h"
     12063#include <windows.h>
     12064#include <sql.h>
     12065int main() {
     12066SQLAllocEnv((SQLHENV *)0);
     12067; return 0; }
     12068EOF
     12069if { (eval echo configure:12070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12070  rm -rf conftest*
     12071 
     12072echo "$ac_t""found" 1>&6
     12073ODBCLIB="$ODBCLIB -lodbc32 "
     12074
     12075else
     12076  echo "configure: failed program was:" >&5
     12077  cat conftest.$ac_ext >&5
     12078  rm -rf conftest*
     12079 
     12080
    1209412081    { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
    1209512082
    1209612083
    1209712084fi
    12098 
    12099 
    12100 
     12085rm -f conftest*
     12086LIBS=${ac_save_libs}
    1210112087LDFLAGS=${ac_save_ldflags}
    1210212088
     
    1211012096
    1211112097
     12098
     12099fi
     12100
     12101
     12102
     12103LDFLAGS=${ac_save_ldflags}
     12104
     12105
    1211212106fi # $USE_ODBC
    1211312107
     
    1212112115
    1212212116echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
    12123 echo "configure:12124: checking whether to use FFTW" >&5
     12117echo "configure:12118: checking whether to use FFTW" >&5
    1212412118echo "$ac_t"""$with_fftw"" 1>&6
    1212512119case "$with_fftw" in
     
    1214012134
    1214112135echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
    12142 echo "configure:12143: checking for location of FFTW includes" >&5
     12136echo "configure:12137: checking for location of FFTW includes" >&5
    1214312137case "$with_fftw_includes" in
    1214412138y | ye | yes | n | no)
     
    1216612160ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1216712161echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12168 echo "configure:12169: checking for $ac_hdr" >&5
    12169 
    12170 cat > conftest.$ac_ext <<EOF
    12171 #line 12172 "configure"
     12162echo "configure:12163: checking for $ac_hdr" >&5
     12163
     12164cat > conftest.$ac_ext <<EOF
     12165#line 12166 "configure"
    1217212166#include "confdefs.h"
    1217312167#include <$ac_hdr>
    1217412168EOF
    1217512169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12176 { (eval echo configure:12177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12170{ (eval echo configure:12171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1217712171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1217812172if test -z "$ac_err"; then
     
    1220212196ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1220312197echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12204 echo "configure:12205: checking for $ac_hdr" >&5
    12205 
    12206 cat > conftest.$ac_ext <<EOF
    12207 #line 12208 "configure"
     12198echo "configure:12199: checking for $ac_hdr" >&5
     12199
     12200cat > conftest.$ac_ext <<EOF
     12201#line 12202 "configure"
    1220812202#include "confdefs.h"
    1220912203#include <$ac_hdr>
    1221012204EOF
    1221112205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12212 { (eval echo configure:12213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12206{ (eval echo configure:12207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1221312207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1221412208if test -z "$ac_err"; then
     
    1223812232ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1223912233echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12240 echo "configure:12241: checking for $ac_hdr" >&5
    12241 
    12242 cat > conftest.$ac_ext <<EOF
    12243 #line 12244 "configure"
     12234echo "configure:12235: checking for $ac_hdr" >&5
     12235
     12236cat > conftest.$ac_ext <<EOF
     12237#line 12238 "configure"
    1224412238#include "confdefs.h"
    1224512239#include <$ac_hdr>
    1224612240EOF
    1224712241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12248 { (eval echo configure:12249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12242{ (eval echo configure:12243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1224912243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1225012244if test -z "$ac_err"; then
     
    1229212286
    1229312287echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
    12294 echo "configure:12295: checking for location of FFTW library" >&5
     12288echo "configure:12289: checking for location of FFTW library" >&5
    1229512289case "$with_fftw_libs" in
    1229612290y | ye | yes | n | no)
     
    1231712311
    1231812312echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
    12319 echo "configure:12320: checking for fftw_execute in -lfftw3" >&5
     12313echo "configure:12314: checking for fftw_execute in -lfftw3" >&5
    1232012314ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
    1232112315
     
    1232312317LIBS="-lfftw3 $MATHLIB $LIBS"
    1232412318cat > conftest.$ac_ext <<EOF
    12325 #line 12326 "configure"
     12319#line 12320 "configure"
    1232612320#include "confdefs.h"
    1232712321/* Override any gcc2 internal prototype to avoid an error.  */
     
    1233412328; return 0; }
    1233512329EOF
    12336 if { (eval echo configure:12337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12330if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1233712331  rm -rf conftest*
    1233812332  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1235912353
    1236012354echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
    12361 echo "configure:12362: checking for fftwnd_one in -lfftw" >&5
     12355echo "configure:12356: checking for fftwnd_one in -lfftw" >&5
    1236212356ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
    1236312357
     
    1236512359LIBS="-lfftw $MATHLIB $LIBS"
    1236612360cat > conftest.$ac_ext <<EOF
    12367 #line 12368 "configure"
     12361#line 12362 "configure"
    1236812362#include "confdefs.h"
    1236912363/* Override any gcc2 internal prototype to avoid an error.  */
     
    1237612370; return 0; }
    1237712371EOF
    12378 if { (eval echo configure:12379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12372if { (eval echo configure:12373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1237912373  rm -rf conftest*
    1238012374  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1240112395
    1240212396echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
    12403 echo "configure:12404: checking for fftwnd_one in -ldfftw" >&5
     12397echo "configure:12398: checking for fftwnd_one in -ldfftw" >&5
    1240412398ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
    1240512399
     
    1240712401LIBS="-ldfftw $MATHLIB $LIBS"
    1240812402cat > conftest.$ac_ext <<EOF
    12409 #line 12410 "configure"
     12403#line 12404 "configure"
    1241012404#include "confdefs.h"
    1241112405/* Override any gcc2 internal prototype to avoid an error.  */
     
    1241812412; return 0; }
    1241912413EOF
    12420 if { (eval echo configure:12421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12414if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1242112415  rm -rf conftest*
    1242212416  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1247512469
    1247612470echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
    12477 echo "configure:12478: checking whether to use BLAS" >&5
     12471echo "configure:12472: checking whether to use BLAS" >&5
    1247812472echo "$ac_t"""$with_blas"" 1>&6
    1247912473case "$with_blas" in
     
    1249612490
    1249712491echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
    12498 echo "configure:12499: checking for location of BLAS includes" >&5
     12492echo "configure:12493: checking for location of BLAS includes" >&5
    1249912493case "$with_blas_includes" in
    1250012494y | ye | yes | n | no)
     
    1251612510
    1251712511echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
    12518 echo "configure:12519: checking for location of BLAS library" >&5
     12512echo "configure:12513: checking for location of BLAS library" >&5
    1251912513case "$with_blas_libs" in
    1252012514y | ye | yes | n | no)
     
    1254212536ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1254312537echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    12544 echo "configure:12545: checking for $ac_hdr" >&5
    12545 
    12546 cat > conftest.$ac_ext <<EOF
    12547 #line 12548 "configure"
     12538echo "configure:12539: checking for $ac_hdr" >&5
     12539
     12540cat > conftest.$ac_ext <<EOF
     12541#line 12542 "configure"
    1254812542#include "confdefs.h"
    1254912543#include <$ac_hdr>
    1255012544EOF
    1255112545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    12552 { (eval echo configure:12553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     12546{ (eval echo configure:12547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1255312547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1255412548if test -z "$ac_err"; then
     
    1258512579
    1258612580echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
    12587 echo "configure:12588: checking for dnrm2_ in -lblas" >&5
     12581echo "configure:12582: checking for dnrm2_ in -lblas" >&5
    1258812582ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
    1258912583
     
    1259112585LIBS="-lblas $MATHLIB  $LIBS"
    1259212586cat > conftest.$ac_ext <<EOF
    12593 #line 12594 "configure"
     12587#line 12588 "configure"
    1259412588#include "confdefs.h"
    1259512589/* Override any gcc2 internal prototype to avoid an error.  */
     
    1260212596; return 0; }
    1260312597EOF
    12604 if { (eval echo configure:12605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12598if { (eval echo configure:12599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1260512599  rm -rf conftest*
    1260612600  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1262112615
    1262212616echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
    12623 echo "configure:12624: checking for dnrm2_ in -lblas" >&5
     12617echo "configure:12618: checking for dnrm2_ in -lblas" >&5
    1262412618ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
    1262512619
     
    1262712621LIBS="-lblas $MATHLIB -lg2c $LIBS"
    1262812622cat > conftest.$ac_ext <<EOF
    12629 #line 12630 "configure"
     12623#line 12624 "configure"
    1263012624#include "confdefs.h"
    1263112625/* Override any gcc2 internal prototype to avoid an error.  */
     
    1263812632; return 0; }
    1263912633EOF
    12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12634if { (eval echo configure:12635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1264112635  rm -rf conftest*
    1264212636  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1268212676LDFLAGS="$BLASLIB $LDFLAGS"
    1268312677echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
    12684 echo "configure:12685: checking for ATL_xerbla in -latlas" >&5
     12678echo "configure:12679: checking for ATL_xerbla in -latlas" >&5
    1268512679ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
    1268612680
     
    1268812682LIBS="-latlas  $LIBS"
    1268912683cat > conftest.$ac_ext <<EOF
    12690 #line 12691 "configure"
     12684#line 12685 "configure"
    1269112685#include "confdefs.h"
    1269212686/* Override any gcc2 internal prototype to avoid an error.  */
     
    1269912693; return 0; }
    1270012694EOF
    12701 if { (eval echo configure:12702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12695if { (eval echo configure:12696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1270212696  rm -rf conftest*
    1270312697  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1271412708  echo "$ac_t""yes" 1>&6
    1271512709  echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
    12716 echo "configure:12717: checking for sgemm_ in -lf77blas" >&5
     12710echo "configure:12711: checking for sgemm_ in -lf77blas" >&5
    1271712711ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
    1271812712
     
    1272012714LIBS="-lf77blas -latlas $LIBS"
    1272112715cat > conftest.$ac_ext <<EOF
    12722 #line 12723 "configure"
     12716#line 12717 "configure"
    1272312717#include "confdefs.h"
    1272412718/* Override any gcc2 internal prototype to avoid an error.  */
     
    1273112725; return 0; }
    1273212726EOF
    12733 if { (eval echo configure:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12727if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1273412728  rm -rf conftest*
    1273512729  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1274612740  echo "$ac_t""yes" 1>&6
    1274712741  echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
    12748 echo "configure:12749: checking for cblas_dgemm in -lcblas" >&5
     12742echo "configure:12743: checking for cblas_dgemm in -lcblas" >&5
    1274912743ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
    1275012744
     
    1275212746LIBS="-lcblas -lf77blas -latlas $LIBS"
    1275312747cat > conftest.$ac_ext <<EOF
    12754 #line 12755 "configure"
     12748#line 12749 "configure"
    1275512749#include "confdefs.h"
    1275612750/* Override any gcc2 internal prototype to avoid an error.  */
     
    1276312757; return 0; }
    1276412758EOF
    12765 if { (eval echo configure:12766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12759if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1276612760  rm -rf conftest*
    1276712761  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1280812802        LIBS="$vlib_flags $LIBS"
    1280912803        echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
    12810 echo "configure:12811: checking for sgemm in $vlib_flags" >&5
     12804echo "configure:12805: checking for sgemm in $vlib_flags" >&5
    1281112805        cat > conftest.$ac_ext <<EOF
    12812 #line 12813 "configure"
     12806#line 12807 "configure"
    1281312807#include "confdefs.h"
    1281412808
     
    1281712811; return 0; }
    1281812812EOF
    12819 if { (eval echo configure:12820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12813if { (eval echo configure:12814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1282012814  rm -rf conftest*
    1282112815  blas_ok=yes; BLASLIB="$vlib_flags"
     
    1283512829if test $blas_ok = no; then
    1283612830        echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
    12837 echo "configure:12838: checking for sgemm_ in -lblas" >&5
     12831echo "configure:12832: checking for sgemm_ in -lblas" >&5
    1283812832ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
    1283912833
     
    1284112835LIBS="-lblas  $LIBS"
    1284212836cat > conftest.$ac_ext <<EOF
    12843 #line 12844 "configure"
     12837#line 12838 "configure"
    1284412838#include "confdefs.h"
    1284512839/* Override any gcc2 internal prototype to avoid an error.  */
     
    1285212846; return 0; }
    1285312847EOF
    12854 if { (eval echo configure:12855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12848if { (eval echo configure:12849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1285512849  rm -rf conftest*
    1285612850  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1286712861  echo "$ac_t""yes" 1>&6
    1286812862  echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
    12869 echo "configure:12870: checking for dgemm_ in -ldgemm" >&5
     12863echo "configure:12864: checking for dgemm_ in -ldgemm" >&5
    1287012864ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
    1287112865
     
    1287312867LIBS="-ldgemm -lblas $LIBS"
    1287412868cat > conftest.$ac_ext <<EOF
    12875 #line 12876 "configure"
     12869#line 12870 "configure"
    1287612870#include "confdefs.h"
    1287712871/* Override any gcc2 internal prototype to avoid an error.  */
     
    1288412878; return 0; }
    1288512879EOF
    12886 if { (eval echo configure:12887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12880if { (eval echo configure:12881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1288712881  rm -rf conftest*
    1288812882  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1289912893  echo "$ac_t""yes" 1>&6
    1290012894  echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
    12901 echo "configure:12902: checking for sgemm_ in -lsgemm" >&5
     12895echo "configure:12896: checking for sgemm_ in -lsgemm" >&5
    1290212896ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
    1290312897
     
    1290512899LIBS="-lsgemm -lblas $LIBS"
    1290612900cat > conftest.$ac_ext <<EOF
    12907 #line 12908 "configure"
     12901#line 12902 "configure"
    1290812902#include "confdefs.h"
    1290912903/* Override any gcc2 internal prototype to avoid an error.  */
     
    1291612910; return 0; }
    1291712911EOF
    12918 if { (eval echo configure:12919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12912if { (eval echo configure:12913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1291912913  rm -rf conftest*
    1292012914  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1295012944        if test "x$GCC" != xyes; then # only works with Sun CC
    1295112945                echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
    12952 echo "configure:12953: checking for acosp in -lsunmath" >&5
     12946echo "configure:12947: checking for acosp in -lsunmath" >&5
    1295312947ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
    1295412948
     
    1295612950LIBS="-lsunmath  $LIBS"
    1295712951cat > conftest.$ac_ext <<EOF
    12958 #line 12959 "configure"
     12952#line 12953 "configure"
    1295912953#include "confdefs.h"
    1296012954/* Override any gcc2 internal prototype to avoid an error.  */
     
    1296712961; return 0; }
    1296812962EOF
    12969 if { (eval echo configure:12970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12963if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1297012964  rm -rf conftest*
    1297112965  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1298212976  echo "$ac_t""yes" 1>&6
    1298312977  echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
    12984 echo "configure:12985: checking for sgemm_ in -lsunperf" >&5
     12978echo "configure:12979: checking for sgemm_ in -lsunperf" >&5
    1298512979ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
    1298612980
     
    1298812982LIBS="-lsunperf -lsunmath $LIBS"
    1298912983cat > conftest.$ac_ext <<EOF
    12990 #line 12991 "configure"
     12984#line 12985 "configure"
    1299112985#include "confdefs.h"
    1299212986/* Override any gcc2 internal prototype to avoid an error.  */
     
    1299912993; return 0; }
    1300012994EOF
    13001 if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     12995if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1300212996  rm -rf conftest*
    1300312997  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1302913023if test $blas_ok = no; then
    1303013024        echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
    13031 echo "configure:13032: checking for sgemm_ in -lblas" >&5
     13025echo "configure:13026: checking for sgemm_ in -lblas" >&5
    1303213026ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
    1303313027
     
    1303513029LIBS="-lblas  $LIBS"
    1303613030cat > conftest.$ac_ext <<EOF
    13037 #line 13038 "configure"
     13031#line 13032 "configure"
    1303813032#include "confdefs.h"
    1303913033/* Override any gcc2 internal prototype to avoid an error.  */
     
    1304613040; return 0; }
    1304713041EOF
    13048 if { (eval echo configure:13049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13042if { (eval echo configure:13043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1304913043  rm -rf conftest*
    1305013044  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1308513079
    1308613080echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
    13087 echo "configure:13088: checking whether to use LAPACK" >&5
     13081echo "configure:13082: checking whether to use LAPACK" >&5
    1308813082echo "$ac_t"""$with_lapack"" 1>&6
    1308913083case "$with_lapack" in
     
    1311013104
    1311113105echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
    13112 echo "configure:13113: checking for location of LAPACK includes" >&5
     13106echo "configure:13107: checking for location of LAPACK includes" >&5
    1311313107case "$with_lapack_includes" in
    1311413108y | ye | yes | n | no)
     
    1313013124
    1313113125echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
    13132 echo "configure:13133: checking for location of LAPACK library" >&5
     13126echo "configure:13127: checking for location of LAPACK library" >&5
    1313313127case "$with_lapack_libs" in
    1313413128y | ye | yes | n | no)
     
    1315613150ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1315713151echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13158 echo "configure:13159: checking for $ac_hdr" >&5
    13159 
    13160 cat > conftest.$ac_ext <<EOF
    13161 #line 13162 "configure"
     13152echo "configure:13153: checking for $ac_hdr" >&5
     13153
     13154cat > conftest.$ac_ext <<EOF
     13155#line 13156 "configure"
    1316213156#include "confdefs.h"
    1316313157#include <$ac_hdr>
    1316413158EOF
    1316513159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13166 { (eval echo configure:13167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13160{ (eval echo configure:13161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1316713161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1316813162if test -z "$ac_err"; then
     
    1319613190        save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
    1319713191        echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
    13198 echo "configure:13199: checking for dsegv_" >&5
    13199 
    13200 cat > conftest.$ac_ext <<EOF
    13201 #line 13202 "configure"
     13192echo "configure:13193: checking for dsegv_" >&5
     13193
     13194cat > conftest.$ac_ext <<EOF
     13195#line 13196 "configure"
    1320213196#include "confdefs.h"
    1320313197/* System header to define __stub macros and hopefully few prototypes,
     
    1322213216; return 0; }
    1322313217EOF
    13224 if { (eval echo configure:13225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13218if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1322513219  rm -rf conftest*
    1322613220  eval "ac_cv_func_dsegv_=yes"
     
    1324913243        save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
    1325013244        echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
    13251 echo "configure:13252: checking for desgv_ in -llapack" >&5
     13245echo "configure:13246: checking for desgv_ in -llapack" >&5
    1325213246ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
    1325313247
     
    1325513249LIBS="-llapack $FLIBS $LIBS"
    1325613250cat > conftest.$ac_ext <<EOF
    13257 #line 13258 "configure"
     13251#line 13252 "configure"
    1325813252#include "confdefs.h"
    1325913253/* Override any gcc2 internal prototype to avoid an error.  */
     
    1326613260; return 0; }
    1326713261EOF
    13268 if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13262if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1326913263  rm -rf conftest*
    1327013264  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1329813292
    1329913293echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
    13300 echo "configure:13301: checking for dgesv_ in -llapack" >&5
     13294echo "configure:13295: checking for dgesv_ in -llapack" >&5
    1330113295ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
    1330213296
     
    1330413298LIBS="-llapack $BLASLIB $MATHLIB  $LIBS"
    1330513299cat > conftest.$ac_ext <<EOF
    13306 #line 13307 "configure"
     13300#line 13301 "configure"
    1330713301#include "confdefs.h"
    1330813302/* Override any gcc2 internal prototype to avoid an error.  */
     
    1331513309; return 0; }
    1331613310EOF
    13317 if { (eval echo configure:13318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13311if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1331813312  rm -rf conftest*
    1331913313  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1333413328
    1333513329echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
    13336 echo "configure:13337: checking for dgesv_ in -llapack" >&5
     13330echo "configure:13331: checking for dgesv_ in -llapack" >&5
    1333713331ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
    1333813332
     
    1334013334LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
    1334113335cat > conftest.$ac_ext <<EOF
    13342 #line 13343 "configure"
     13336#line 13337 "configure"
    1334313337#include "confdefs.h"
    1334413338/* Override any gcc2 internal prototype to avoid an error.  */
     
    1335113345; return 0; }
    1335213346EOF
    13353 if { (eval echo configure:13354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13347if { (eval echo configure:13348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1335413348  rm -rf conftest*
    1335513349  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1340713401
    1340813402echo $ac_n "checking whether to use Motif""... $ac_c" 1>&6
    13409 echo "configure:13410: checking whether to use Motif" >&5
     13403echo "configure:13404: checking whether to use Motif" >&5
    1341013404echo "$ac_t"""$with_motif"" 1>&6
    1341113405case "$with_motif" in
     
    1342613420
    1342713421echo $ac_n "checking for location of Motif includes""... $ac_c" 1>&6
    13428 echo "configure:13429: checking for location of Motif includes" >&5
     13422echo "configure:13423: checking for location of Motif includes" >&5
    1342913423case "$with_motif_includes" in
    1343013424y | ye | yes | n | no)
     
    1345213446ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1345313447echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13454 echo "configure:13455: checking for $ac_hdr" >&5
    13455 
    13456 cat > conftest.$ac_ext <<EOF
    13457 #line 13458 "configure"
     13448echo "configure:13449: checking for $ac_hdr" >&5
     13449
     13450cat > conftest.$ac_ext <<EOF
     13451#line 13452 "configure"
    1345813452#include "confdefs.h"
    1345913453#include <$ac_hdr>
    1346013454EOF
    1346113455ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13462 { (eval echo configure:13463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13456{ (eval echo configure:13457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1346313457ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1346413458if test -z "$ac_err"; then
     
    1349413488
    1349513489echo $ac_n "checking for location of Motif library""... $ac_c" 1>&6
    13496 echo "configure:13497: checking for location of Motif library" >&5
     13490echo "configure:13491: checking for location of Motif library" >&5
    1349713491case "$with_motif_libs" in
    1349813492y | ye | yes | n | no)
     
    1351913513
    1352013514echo $ac_n "checking for XmStringCreate in -lXm""... $ac_c" 1>&6
    13521 echo "configure:13522: checking for XmStringCreate in -lXm" >&5
     13515echo "configure:13516: checking for XmStringCreate in -lXm" >&5
    1352213516ac_lib_var=`echo Xm'_'XmStringCreate | sed 'y%./+-%__p_%'`
    1352313517
     
    1352513519LIBS="-lXm $X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS  $LIBS"
    1352613520cat > conftest.$ac_ext <<EOF
    13527 #line 13528 "configure"
     13521#line 13522 "configure"
    1352813522#include "confdefs.h"
    1352913523/* Override any gcc2 internal prototype to avoid an error.  */
     
    1353613530; return 0; }
    1353713531EOF
    13538 if { (eval echo configure:13539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13532if { (eval echo configure:13533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1353913533  rm -rf conftest*
    1354013534  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1357713571
    1357813572echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
    13579 echo "configure:13580: checking whether to use Cairo" >&5
     13573echo "configure:13574: checking whether to use Cairo" >&5
    1358013574echo "$ac_t"""$with_cairo"" 1>&6
    1358113575case "$with_cairo" in
     
    1360313597ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1360413598echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13605 echo "configure:13606: checking for $ac_hdr" >&5
    13606 
    13607 cat > conftest.$ac_ext <<EOF
    13608 #line 13609 "configure"
     13599echo "configure:13600: checking for $ac_hdr" >&5
     13600
     13601cat > conftest.$ac_ext <<EOF
     13602#line 13603 "configure"
    1360913603#include "confdefs.h"
    1361013604#include <$ac_hdr>
    1361113605EOF
    1361213606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13613 { (eval echo configure:13614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13607{ (eval echo configure:13608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1361413608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1361513609if test -z "$ac_err"; then
     
    1364813642LDFLAGS="$LDFLAGS $CAIROLIB"
    1364913643echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
    13650 echo "configure:13651: checking for cairo_create" >&5
    13651 
    13652 cat > conftest.$ac_ext <<EOF
    13653 #line 13654 "configure"
     13644echo "configure:13645: checking for cairo_create" >&5
     13645
     13646cat > conftest.$ac_ext <<EOF
     13647#line 13648 "configure"
    1365413648#include "confdefs.h"
    1365513649/* System header to define __stub macros and hopefully few prototypes,
     
    1367413668; return 0; }
    1367513669EOF
    13676 if { (eval echo configure:13677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13670if { (eval echo configure:13671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1367713671  rm -rf conftest*
    1367813672  eval "ac_cv_func_cairo_create=yes"
     
    1370913703
    1371013704echo $ac_n "checking whether to use GLw""... $ac_c" 1>&6
    13711 echo "configure:13712: checking whether to use GLw" >&5
     13705echo "configure:13706: checking whether to use GLw" >&5
    1371213706echo "$ac_t"""$with_glw"" 1>&6
    1371313707case "$with_glw" in
     
    1372813722
    1372913723echo $ac_n "checking for location of GLw includes""... $ac_c" 1>&6
    13730 echo "configure:13731: checking for location of GLw includes" >&5
     13724echo "configure:13725: checking for location of GLw includes" >&5
    1373113725case "$with_glw_includes" in
    1373213726y | ye | yes | n | no)
     
    1375413748ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1375513749echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13756 echo "configure:13757: checking for $ac_hdr" >&5
    13757 
    13758 cat > conftest.$ac_ext <<EOF
    13759 #line 13760 "configure"
     13750echo "configure:13751: checking for $ac_hdr" >&5
     13751
     13752cat > conftest.$ac_ext <<EOF
     13753#line 13754 "configure"
    1376013754#include "confdefs.h"
    1376113755#include <$ac_hdr>
    1376213756EOF
    1376313757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13764 { (eval echo configure:13765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13758{ (eval echo configure:13759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1376513759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1376613760if test -z "$ac_err"; then
     
    1379013784ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1379113785echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    13792 echo "configure:13793: checking for $ac_hdr" >&5
    13793 
    13794 cat > conftest.$ac_ext <<EOF
    13795 #line 13796 "configure"
     13786echo "configure:13787: checking for $ac_hdr" >&5
     13787
     13788cat > conftest.$ac_ext <<EOF
     13789#line 13790 "configure"
    1379613790#include "confdefs.h"
    1379713791#include <$ac_hdr>
    1379813792EOF
    1379913793ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    13800 { (eval echo configure:13801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     13794{ (eval echo configure:13795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1380113795ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1380213796if test -z "$ac_err"; then
     
    1383813832
    1383913833echo $ac_n "checking for location of GLw library""... $ac_c" 1>&6
    13840 echo "configure:13841: checking for location of GLw library" >&5
     13834echo "configure:13835: checking for location of GLw library" >&5
    1384113835case "$with_glw_libs" in
    1384213836y | ye | yes | n | no)
     
    1386313857
    1386413858echo $ac_n "checking for GLwCreateMDrawingArea in -lGLw""... $ac_c" 1>&6
    13865 echo "configure:13866: checking for GLwCreateMDrawingArea in -lGLw" >&5
     13859echo "configure:13860: checking for GLwCreateMDrawingArea in -lGLw" >&5
    1386613860ac_lib_var=`echo GLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1386713861
     
    1386913863LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1387013864cat > conftest.$ac_ext <<EOF
    13871 #line 13872 "configure"
     13865#line 13866 "configure"
    1387213866#include "confdefs.h"
    1387313867/* Override any gcc2 internal prototype to avoid an error.  */
     
    1388013874; return 0; }
    1388113875EOF
    13882 if { (eval echo configure:13883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13876if { (eval echo configure:13877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1388313877  rm -rf conftest*
    1388413878  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1390513899
    1390613900echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLw""... $ac_c" 1>&6
    13907 echo "configure:13908: checking for GLwCreateM1DrawingArea in -lGLw" >&5
     13901echo "configure:13902: checking for GLwCreateM1DrawingArea in -lGLw" >&5
    1390813902ac_lib_var=`echo GLw'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
    1390913903
     
    1391113905LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1391213906cat > conftest.$ac_ext <<EOF
    13913 #line 13914 "configure"
     13907#line 13908 "configure"
    1391413908#include "confdefs.h"
    1391513909/* Override any gcc2 internal prototype to avoid an error.  */
     
    1392213916; return 0; }
    1392313917EOF
    13924 if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13918if { (eval echo configure:13919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1392513919  rm -rf conftest*
    1392613920  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1394713941
    1394813942echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLw""... $ac_c" 1>&6
    13949 echo "configure:13950: checking for GLwCreateM2DrawingArea in -lGLw" >&5
     13943echo "configure:13944: checking for GLwCreateM2DrawingArea in -lGLw" >&5
    1395013944ac_lib_var=`echo GLw'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
    1395113945
     
    1395313947LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1395413948cat > conftest.$ac_ext <<EOF
    13955 #line 13956 "configure"
     13949#line 13950 "configure"
    1395613950#include "confdefs.h"
    1395713951/* Override any gcc2 internal prototype to avoid an error.  */
     
    1396413958; return 0; }
    1396513959EOF
    13966 if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     13960if { (eval echo configure:13961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1396713961  rm -rf conftest*
    1396813962  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1398913983
    1399013984echo $ac_n "checking for GLwCreateMDrawingArea in -lGLwM""... $ac_c" 1>&6
    13991 echo "configure:13992: checking for GLwCreateMDrawingArea in -lGLwM" >&5
     13985echo "configure:13986: checking for GLwCreateMDrawingArea in -lGLwM" >&5
    1399213986ac_lib_var=`echo GLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1399313987
     
    1399513989LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1399613990cat > conftest.$ac_ext <<EOF
    13997 #line 13998 "configure"
     13991#line 13992 "configure"
    1399813992#include "confdefs.h"
    1399913993/* Override any gcc2 internal prototype to avoid an error.  */
     
    1400614000; return 0; }
    1400714001EOF
    14008 if { (eval echo configure:14009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14002if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1400914003  rm -rf conftest*
    1401014004  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1403114025
    1403214026echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLwM""... $ac_c" 1>&6
    14033 echo "configure:14034: checking for GLwCreateM1DrawingArea in -lGLwM" >&5
     14027echo "configure:14028: checking for GLwCreateM1DrawingArea in -lGLwM" >&5
    1403414028ac_lib_var=`echo GLwM'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
    1403514029
     
    1403714031LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1403814032cat > conftest.$ac_ext <<EOF
    14039 #line 14040 "configure"
     14033#line 14034 "configure"
    1404014034#include "confdefs.h"
    1404114035/* Override any gcc2 internal prototype to avoid an error.  */
     
    1404814042; return 0; }
    1404914043EOF
    14050 if { (eval echo configure:14051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14044if { (eval echo configure:14045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1405114045  rm -rf conftest*
    1405214046  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1407314067
    1407414068echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLwM""... $ac_c" 1>&6
    14075 echo "configure:14076: checking for GLwCreateM2DrawingArea in -lGLwM" >&5
     14069echo "configure:14070: checking for GLwCreateM2DrawingArea in -lGLwM" >&5
    1407614070ac_lib_var=`echo GLwM'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
    1407714071
     
    1407914073LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1408014074cat > conftest.$ac_ext <<EOF
    14081 #line 14082 "configure"
     14075#line 14076 "configure"
    1408214076#include "confdefs.h"
    1408314077/* Override any gcc2 internal prototype to avoid an error.  */
     
    1409014084; return 0; }
    1409114085EOF
    14092 if { (eval echo configure:14093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14086if { (eval echo configure:14087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1409314087  rm -rf conftest*
    1409414088  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1411714111
    1411814112echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
    14119 echo "configure:14120: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
     14113echo "configure:14114: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
    1412014114ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1412114115
     
    1412314117LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1412414118cat > conftest.$ac_ext <<EOF
    14125 #line 14126 "configure"
     14119#line 14120 "configure"
    1412614120#include "confdefs.h"
    1412714121/* Override any gcc2 internal prototype to avoid an error.  */
     
    1413414128; return 0; }
    1413514129EOF
    14136 if { (eval echo configure:14137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14130if { (eval echo configure:14131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1413714131  rm -rf conftest*
    1413814132  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1415314147
    1415414148echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
    14155 echo "configure:14156: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
     14149echo "configure:14150: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
    1415614150ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1415714151
     
    1415914153LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
    1416014154cat > conftest.$ac_ext <<EOF
    14161 #line 14162 "configure"
     14155#line 14156 "configure"
    1416214156#include "confdefs.h"
    1416314157/* Override any gcc2 internal prototype to avoid an error.  */
     
    1417014164; return 0; }
    1417114165EOF
    14172 if { (eval echo configure:14173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14166if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1417314167  rm -rf conftest*
    1417414168  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1419714191
    1419814192echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
    14199 echo "configure:14200: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
     14193echo "configure:14194: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
    1420014194ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1420114195
     
    1420314197LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
    1420414198cat > conftest.$ac_ext <<EOF
    14205 #line 14206 "configure"
     14199#line 14200 "configure"
    1420614200#include "confdefs.h"
    1420714201/* Override any gcc2 internal prototype to avoid an error.  */
     
    1421414208; return 0; }
    1421514209EOF
    14216 if { (eval echo configure:14217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14210if { (eval echo configure:14211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1421714211  rm -rf conftest*
    1421814212  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1423314227
    1423414228echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
    14235 echo "configure:14236: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
     14229echo "configure:14230: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
    1423614230ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
    1423714231
     
    1423914233LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
    1424014234cat > conftest.$ac_ext <<EOF
    14241 #line 14242 "configure"
     14235#line 14236 "configure"
    1424214236#include "confdefs.h"
    1424314237/* Override any gcc2 internal prototype to avoid an error.  */
     
    1425014244; return 0; }
    1425114245EOF
    14252 if { (eval echo configure:14253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14246if { (eval echo configure:14247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1425314247  rm -rf conftest*
    1425414248  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1436314357
    1436414358echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
    14365 echo "configure:14366: checking whether to use FreeType" >&5
     14359echo "configure:14360: checking whether to use FreeType" >&5
    1436614360echo "$ac_t"""$with_freetype"" 1>&6
    1436714361case "$with_freetype" in
     
    1438214376
    1438314377echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
    14384 echo "configure:14385: checking for location of FreeType includes" >&5
     14378echo "configure:14379: checking for location of FreeType includes" >&5
    1438514379case "$with_freetype_includes" in
    1438614380y | ye | yes | n | no)
     
    1440814402ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1440914403echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    14410 echo "configure:14411: checking for $ac_hdr" >&5
    14411 
    14412 cat > conftest.$ac_ext <<EOF
    14413 #line 14414 "configure"
     14404echo "configure:14405: checking for $ac_hdr" >&5
     14405
     14406cat > conftest.$ac_ext <<EOF
     14407#line 14408 "configure"
    1441414408#include "confdefs.h"
    1441514409#include <$ac_hdr>
    1441614410EOF
    1441714411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    14418 { (eval echo configure:14419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     14412{ (eval echo configure:14413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1441914413ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1442014414if test -z "$ac_err"; then
     
    1445014444
    1445114445echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
    14452 echo "configure:14453: checking for location of FreeType library" >&5
     14446echo "configure:14447: checking for location of FreeType library" >&5
    1445314447case "$with_freetype_libs" in
    1445414448y | ye | yes | n | no)
     
    1447514469
    1447614470echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
    14477 echo "configure:14478: checking for FT_Init_FreeType in -lfreetype" >&5
     14471echo "configure:14472: checking for FT_Init_FreeType in -lfreetype" >&5
    1447814472ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
    1447914473
     
    1448114475LIBS="-lfreetype  $LIBS"
    1448214476cat > conftest.$ac_ext <<EOF
    14483 #line 14484 "configure"
     14477#line 14478 "configure"
    1448414478#include "confdefs.h"
    1448514479/* Override any gcc2 internal prototype to avoid an error.  */
     
    1449214486; return 0; }
    1449314487EOF
    14494 if { (eval echo configure:14495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14488if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1449514489  rm -rf conftest*
    1449614490  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1453314527
    1453414528echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
    14535 echo "configure:14536: checking whether to use NLS" >&5
     14529echo "configure:14530: checking whether to use NLS" >&5
    1453614530echo "$ac_t"""$with_nls"" 1>&6
    1453714531case "$with_nls" in
     
    1455314547
    1455414548echo $ac_n "checking for gettext""... $ac_c" 1>&6
    14555 echo "configure:14556: checking for gettext" >&5
    14556 
    14557 cat > conftest.$ac_ext <<EOF
    14558 #line 14559 "configure"
     14549echo "configure:14550: checking for gettext" >&5
     14550
     14551cat > conftest.$ac_ext <<EOF
     14552#line 14553 "configure"
    1455914553#include "confdefs.h"
    1456014554/* System header to define __stub macros and hopefully few prototypes,
     
    1457914573; return 0; }
    1458014574EOF
    14581 if { (eval echo configure:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14575if { (eval echo configure:14576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1458214576  rm -rf conftest*
    1458314577  eval "ac_cv_func_gettext=yes"
     
    1459714591
    1459814592echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
    14599 echo "configure:14600: checking for gettext in -lintl" >&5
     14593echo "configure:14594: checking for gettext in -lintl" >&5
    1460014594ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
    1460114595
     
    1460314597LIBS="-lintl  $LIBS"
    1460414598cat > conftest.$ac_ext <<EOF
    14605 #line 14606 "configure"
     14599#line 14600 "configure"
    1460614600#include "confdefs.h"
    1460714601/* Override any gcc2 internal prototype to avoid an error.  */
     
    1461414608; return 0; }
    1461514609EOF
    14616 if { (eval echo configure:14617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14610if { (eval echo configure:14611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1461714611  rm -rf conftest*
    1461814612  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1464914643
    1465014644echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
    14651 echo "configure:14652: checking whether to use C++" >&5
     14645echo "configure:14646: checking whether to use C++" >&5
    1465214646echo "$ac_t"""$with_cxx"" 1>&6
    1465314647case "$with_cxx" in
     
    1466514659set dummy $ac_prog; ac_word=$2
    1466614660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    14667 echo "configure:14668: checking for $ac_word" >&5
     14661echo "configure:14662: checking for $ac_word" >&5
    1466814662
    1466914663if test -n "$CXX"; then
     
    1469414688
    1469514689echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    14696 echo "configure:14697: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     14690echo "configure:14691: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    1469714691
    1469814692ac_ext=C
     
    1470514699cat > conftest.$ac_ext << EOF
    1470614700
    14707 #line 14708 "configure"
     14701#line 14702 "configure"
    1470814702#include "confdefs.h"
    1470914703
    1471014704int main(){return(0);}
    1471114705EOF
    14712 if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     14706if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1471314707  ac_cv_prog_cxx_works=yes
    1471414708  # If we can't run a trivial program, we are probably using a cross compiler.
     
    1473614730fi
    1473714731echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    14738 echo "configure:14739: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     14732echo "configure:14733: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    1473914733echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    1474014734cross_compiling=$ac_cv_prog_cxx_cross
    1474114735
    1474214736echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    14743 echo "configure:14744: checking whether we are using GNU C++" >&5
     14737echo "configure:14738: checking whether we are using GNU C++" >&5
    1474414738
    1474514739cat > conftest.C <<EOF
     
    1474814742#endif
    1474914743EOF
    14750 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:14751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     14744if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:14745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    1475114745  ac_cv_prog_gxx=yes
    1475214746else
     
    1476614760CXXFLAGS=
    1476714761echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    14768 echo "configure:14769: checking whether ${CXX-g++} accepts -g" >&5
     14762echo "configure:14763: checking whether ${CXX-g++} accepts -g" >&5
    1476914763
    1477014764echo 'void f(){}' > conftest.cc
     
    1480714801
    1480814802echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
    14809 echo "configure:14810: checking whether to use openDWG" >&5
     14803echo "configure:14804: checking whether to use openDWG" >&5
    1481014804echo "$ac_t"""$with_opendwg"" 1>&6
    1481114805case "$with_opendwg" in
     
    1482714821
    1482814822echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
    14829 echo "configure:14830: checking for location of openDGW includes" >&5
     14823echo "configure:14824: checking for location of openDGW includes" >&5
    1483014824case "$with_opendwg_includes" in
    1483114825y | ye | yes | n | no)
     
    1485314847ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1485414848echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    14855 echo "configure:14856: checking for $ac_hdr" >&5
    14856 
    14857 cat > conftest.$ac_ext <<EOF
    14858 #line 14859 "configure"
     14849echo "configure:14850: checking for $ac_hdr" >&5
     14850
     14851cat > conftest.$ac_ext <<EOF
     14852#line 14853 "configure"
    1485914853#include "confdefs.h"
    1486014854#include <$ac_hdr>
    1486114855EOF
    1486214856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    14863 { (eval echo configure:14864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     14857{ (eval echo configure:14858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1486414858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1486514859if test -z "$ac_err"; then
     
    1489514889
    1489614890echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
    14897 echo "configure:14898: checking for location of openDWG library" >&5
     14891echo "configure:14892: checking for location of openDWG library" >&5
    1489814892case "$with_opendwg_libs" in
    1489914893y | ye | yes | n | no)
     
    1494214936
    1494314937     echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
    14944 echo "configure:14945: checking for special C compiler options needed for large files" >&5
     14938echo "configure:14939: checking for special C compiler options needed for large files" >&5
    1494514939
    1494614940ac_cv_sys_largefile_CC=no
     
    1495014944          # so use the C compiler's -n32 option if that helps.
    1495114945          cat > conftest.$ac_ext <<EOF
    14952 #line 14953 "configure"
     14946#line 14947 "configure"
    1495314947#include "confdefs.h"
    1495414948#include <sys/types.h>
     
    1496614960; return 0; }
    1496714961EOF
    14968 if { (eval echo configure:14969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     14962if { (eval echo configure:14963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1496914963  :
    1497014964else
     
    1497514969             CC="$CC -n32"
    1497614970             cat > conftest.$ac_ext <<EOF
    14977 #line 14978 "configure"
     14971#line 14972 "configure"
    1497814972#include "confdefs.h"
    1497914973#include <sys/types.h>
     
    1499114985; return 0; }
    1499214986EOF
    14993 if { (eval echo configure:14994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     14987if { (eval echo configure:14988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1499414988  rm -rf conftest*
    1499514989  ac_cv_sys_largefile_CC=' -n32'
     
    1501115005
    1501215006     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
    15013 echo "configure:15014: checking for _FILE_OFFSET_BITS value needed for large files" >&5
     15007echo "configure:15008: checking for _FILE_OFFSET_BITS value needed for large files" >&5
    1501415008
    1501515009ac_cv_sys_file_offset_bits=no
    1501615010      cat > conftest.$ac_ext <<EOF
    15017 #line 15018 "configure"
     15011#line 15012 "configure"
    1501815012#include "confdefs.h"
    1501915013#include <sys/types.h>
     
    1503115025; return 0; }
    1503215026EOF
    15033 if { (eval echo configure:15034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15027if { (eval echo configure:15028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1503415028  :
    1503515029else
     
    1503815032  rm -rf conftest*
    1503915033  cat > conftest.$ac_ext <<EOF
    15040 #line 15041 "configure"
     15034#line 15035 "configure"
    1504115035#include "confdefs.h"
    1504215036#define _FILE_OFFSET_BITS 64
     
    1505615050; return 0; }
    1505715051EOF
    15058 if { (eval echo configure:15059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15052if { (eval echo configure:15053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1505915053  rm -rf conftest*
    1506015054  ac_cv_sys_file_offset_bits=64
     
    1507515069   fi
    1507615070     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
    15077 echo "configure:15078: checking for _LARGE_FILES value needed for large files" >&5
     15071echo "configure:15072: checking for _LARGE_FILES value needed for large files" >&5
    1507815072
    1507915073ac_cv_sys_large_files=no
    1508015074      cat > conftest.$ac_ext <<EOF
    15081 #line 15082 "configure"
     15075#line 15076 "configure"
    1508215076#include "confdefs.h"
    1508315077#include <sys/types.h>
     
    1509515089; return 0; }
    1509615090EOF
    15097 if { (eval echo configure:15098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15091if { (eval echo configure:15092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1509815092  :
    1509915093else
     
    1510215096  rm -rf conftest*
    1510315097  cat > conftest.$ac_ext <<EOF
    15104 #line 15105 "configure"
     15098#line 15099 "configure"
    1510515099#include "confdefs.h"
    1510615100#define _LARGE_FILES 1
     
    1512015114; return 0; }
    1512115115EOF
    15122 if { (eval echo configure:15123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15116if { (eval echo configure:15117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1512315117  rm -rf conftest*
    1512415118  ac_cv_sys_large_files=1
     
    1513915133   fi
    1514015134     echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
    15141 echo "configure:15142: checking for _LARGEFILE_SOURCE value needed for large files" >&5
     15135echo "configure:15136: checking for _LARGEFILE_SOURCE value needed for large files" >&5
    1514215136
    1514315137ac_cv_sys_largefile_source=no
    1514415138      cat > conftest.$ac_ext <<EOF
    15145 #line 15146 "configure"
     15139#line 15140 "configure"
    1514615140#include "confdefs.h"
    1514715141#include <stdio.h>
     
    1515015144; return 0; }
    1515115145EOF
    15152 if { (eval echo configure:15153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15146if { (eval echo configure:15147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1515315147  :
    1515415148else
     
    1515715151  rm -rf conftest*
    1515815152  cat > conftest.$ac_ext <<EOF
    15159 #line 15160 "configure"
     15153#line 15154 "configure"
    1516015154#include "confdefs.h"
    1516115155#define _LARGEFILE_SOURCE 1
     
    1516615160; return 0; }
    1516715161EOF
    15168 if { (eval echo configure:15169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15162if { (eval echo configure:15163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1516915163  rm -rf conftest*
    1517015164  ac_cv_sys_largefile_source=1
     
    1518715181 
    1518815182echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
    15189 echo "configure:15190: checking if system supports Large Files at all" >&5
    15190 
    15191 cat > conftest.$ac_ext <<EOF
    15192 #line 15193 "configure"
     15183echo "configure:15184: checking if system supports Large Files at all" >&5
     15184
     15185cat > conftest.$ac_ext <<EOF
     15186#line 15187 "configure"
    1519315187#include "confdefs.h"
    1519415188#include <stdio.h>
     
    1522215216; return 0; }
    1522315217EOF
    15224 if { (eval echo configure:15225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     15218if { (eval echo configure:15219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1522515219  rm -rf conftest*
    1522615220  ac_cv_largefiles=yes
     
    1525115245
    1525215246echo $ac_n "checking whether to use Python""... $ac_c" 1>&6
    15253 echo "configure:15254: checking whether to use Python" >&5
     15247echo "configure:15248: checking whether to use Python" >&5
    1525415248
    1525515249PYTHONINC=
     
    1527115265set dummy python-config; ac_word=$2
    1527215266echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    15273 echo "configure:15274: checking for $ac_word" >&5
     15267echo "configure:15268: checking for $ac_word" >&5
    1527415268
    1527515269case "$PY_CONFIG" in
     
    1531615310ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1531715311echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    15318 echo "configure:15319: checking for $ac_hdr" >&5
    15319 
    15320 cat > conftest.$ac_ext <<EOF
    15321 #line 15322 "configure"
     15312echo "configure:15313: checking for $ac_hdr" >&5
     15313
     15314cat > conftest.$ac_ext <<EOF
     15315#line 15316 "configure"
    1532215316#include "confdefs.h"
    1532315317#include <$ac_hdr>
    1532415318EOF
    1532515319ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    15326 { (eval echo configure:15327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     15320{ (eval echo configure:15321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1532715321ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1532815322if test -z "$ac_err"; then
     
    1536415358set dummy swig; ac_word=$2
    1536515359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    15366 echo "configure:15367: checking for $ac_word" >&5
     15360echo "configure:15361: checking for $ac_word" >&5
    1536715361
    1536815362case "$SWIG" in
     
    1541015404
    1541115405echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
    15412 echo "configure:15413: checking whether to use wxWidgets" >&5
     15406echo "configure:15407: checking whether to use wxWidgets" >&5
    1541315407
    1541415408WXVERSION=
     
    1543015424set dummy wx-config; ac_word=$2
    1543115425echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    15432 echo "configure:15433: checking for $ac_word" >&5
     15426echo "configure:15427: checking for $ac_word" >&5
    1543315427
    1543415428case "$WX_CONFIG" in
     
    1547815472
    1547915473 echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
    15480 echo "configure:15481: checking wxWidgets version" >&5
     15474echo "configure:15475: checking wxWidgets version" >&5
    1548115475 if WXVERSION=`"$WX_CONFIG" --version`; then
    1548215476   echo "$ac_t""$WXVERSION" 1>&6
     
    1550115495ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1550215496echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    15503 echo "configure:15504: checking for $ac_hdr" >&5
    15504 
    15505 cat > conftest.$ac_ext <<EOF
    15506 #line 15507 "configure"
     15497echo "configure:15498: checking for $ac_hdr" >&5
     15498
     15499cat > conftest.$ac_ext <<EOF
     15500#line 15501 "configure"
    1550715501#include "confdefs.h"
    1550815502#include <$ac_hdr>
    1550915503EOF
    1551015504ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    15511 { (eval echo configure:15512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     15505{ (eval echo configure:15506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1551215506ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1551315507if test -z "$ac_err"; then
     
    1554515539ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1554615540echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    15547 echo "configure:15548: checking for $ac_hdr" >&5
    15548 
    15549 cat > conftest.$ac_ext <<EOF
    15550 #line 15551 "configure"
     15541echo "configure:15542: checking for $ac_hdr" >&5
     15542
     15543cat > conftest.$ac_ext <<EOF
     15544#line 15545 "configure"
    1555115545#include "confdefs.h"
    1555215546#include <$ac_hdr>
    1555315547EOF
    1555415548ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    15555 { (eval echo configure:15556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     15549{ (eval echo configure:15550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1555615550ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1555715551if test -z "$ac_err"; then
  • grass/trunk/configure.in

    r31806 r31861  
    709709  ac_save_libs="$LIBS"
    710710  LIBS="$LIBS $GDAL_LIBS"
    711   AC_CHECK_FUNC(GDALOpen, , [
     711  AC_TRY_LINK([#include <gdal.h>],[GDALOpen("foo", GA_ReadOnly);],,[
    712712  LIBS="$LIBS $GDAL_DEP_LIBS"
    713   AC_CHECK_FUNC(GDALOpen, GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS", [
    714   AC_MSG_ERROR([*** couldn't find GDAL])
     713  AC_TRY_LINK([#include <gdal.h>],[GDALOpen("foo", GA_ReadOnly);],GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS",[
     714  AC_MSG_ERROR([*** Unable to locate GDAL library.])
    715715  ])
    716716  ])
     
    11431143LOC_CHECK_LIB_PATH(opengl,OpenGL,OPENGL_LIB_PATH)
    11441144
    1145 ac_save_ldflags="$LDFLAGS"
    1146 ac_save_libs="$LIBS"
    1147 LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
    1148 AC_MSG_CHECKING(for OpenGL library)
    1149 LIBS="-lopengl32"
    1150 AC_TRY_LINK([#include <GL/gl.h>],[glEnd();],[
    1151 AC_MSG_RESULT(found)
    1152 OPENGLLIB=-lopengl32
    1153 AC_MSG_CHECKING(for GLU library)
    1154 LIBS="-lglu32 $OPENGLLIB"
    1155 AC_TRY_LINK([#include <GL/glu.h>],[gluNewQuadric();],[
    1156 AC_MSG_RESULT(found)
    1157 OPENGLULIB=-lglu32
    1158 ],[AC_MSG_ERROR([*** Unable to locate GLU library.])])
    1159 ],[AC_MSG_ERROR([*** Unable to locate OpenGL library.])])
    1160 LIBS=${ac_save_libs}
    1161 LDFLAGS=${ac_save_ldflags}
     1145LOC_CHECK_LINK(opengl32,[#include <GL/gl.h>],[glEnd();],OpenGL,$OPENGL_LIB_PATH,OPENGLLIB)
     1146LOC_CHECK_LINK(glu32,[#include <GL/glu.h>],[gluNewQuadric();],GLU,$OPENGL_LIB_PATH,OPENGLULIB,$OPENGLLIB)
    11621147
    11631148OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
     
    12011186
    12021187LOC_CHECK_LIBS(odbc,SQLConnect,ODBC,$ODBCLIB,ODBCLIB,$ICONVLIB,,[
    1203 LOC_CHECK_LIBS(iodbc,SQLConnect,ODBC,$ODBCLIB,ODBCLIB,,,)
     1188LOC_CHECK_LIBS(iodbc,SQLConnect,ODBC,$ODBCLIB,ODBCLIB,,,[
     1189LOC_CHECK_LINK(odbc32,[#include <windows.h>
     1190#include <sql.h>],[SQLAllocEnv((SQLHENV *)0);],ODBC,$ODBCLIB,ODBCLIB)
     1191])
    12041192])
    12051193
Note: See TracChangeset for help on using the changeset viewer.