/[ascend]/trunk/base/autotools/configure
ViewVC logotype

Diff of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 410 by johnpye, Tue Mar 14 05:04:06 2006 UTC revision 411 by ben.allan, Sun Apr 2 07:05:54 2006 UTC
# Line 309  ac_includes_default="\ Line 309  ac_includes_default="\
309  # include <unistd.h>  # include <unistd.h>
310  #endif"  #endif"
311    
312  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP DEBUG_LIBS EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE TCLLIB TCLDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX TK_LIB TK_HDR TKTABLE_LIB ASC_TK_LIBRARY ASC_TCL_LIBRARY HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LTLIBOBJS'  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP DEBUG_LIBS EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE NOTCLCONFIG TCLCONFIG TCLLIB TCLDYNAMICLINKING TKINCLUDE TKLIB TKDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX TK_LIB TK_HDR TKTABLE_LIB ASC_TK_LIBRARY ASC_TCL_LIBRARY HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LTLIBOBJS'
313  ac_subst_files=''  ac_subst_files=''
314    
315  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 867  Optional Packages: Line 867  Optional Packages:
867    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
868    --with-x                use the X Window System    --with-x                use the X Window System
869    --without-tcl           Disable Tcl    --without-tcl           Disable Tcl
870    --with-tclconfig=path   Set location of tclConfig.sh    --with-tclconfig=path   Set directory location of tclConfig.sh
871    --with-tcl=path         Set location of Tcl package    --with-tcl=path         Set location of Tcl package
872    --with-tclincl=path     Set location of Tcl include directory    --with-tclincl=path     Set location of Tcl include directory
873    --with-tcllib=path      Set location of Tcl library directory    --with-tcllib=path      Set location of Tcl library directory
874      --without-tk            Disable Tk
875      --with-tkconfig=path    Set directory location of tkConfig.sh
876      --with-tk=path         Set location of Tk package
877      --with-tkincl=path     Set location of Tk include directory
878      --with-tklib=path      Set location of Tk library directory
879  Fortran compiler and libraries:  Fortran compiler and libraries:
880    --with-fortran=F77,F77LIBS    --with-fortran=F77,F77LIBS
881                            The location of your Fortran compiler and its                            The location of your Fortran compiler and its
# Line 6129  esac Line 6134  esac
6134  # Look for Tcl/Tk  # Look for Tcl/Tk
6135  #--------------------------------------------------------------------  #--------------------------------------------------------------------
6136    
6137    # moved to config, acsite setup
6138    # find tcl
6139    TCLINCLUDE=
6140    TCLLIB=
6141    TCLPACKAGE=
6142    
6143    #--------------------------------------------------------------------
6144    # Look for Tcl
6145    #--------------------------------------------------------------------
6146    
6147  TCLINCLUDE=  TCLINCLUDE=
6148  TCLLIB=  TCLLIB=
6149  TCLPACKAGE=  TCLPACKAGE=
# Line 6308  case $host in Line 6323  case $host in
6323  esac  esac
6324  fi  fi
6325    
6326    NOTCLCONFIG=
6327    if test x"${TCLCONFIG}" = x ; then
6328    NOTCLCONFIG="# tclConfig.sh dir not found"
6329    fi
6330    
6331    
6332    
6333    
6334    
6335    
6336    
6337    # find tk
6338    TKINCLUDE=
6339    TKLIB=
6340    TKPACKAGE=
6341    
6342    #--------------------------------------------------------------------
6343    # Look for Tk
6344    #--------------------------------------------------------------------
6345    
6346    TKINCLUDE=
6347    TKLIB=
6348    TKPACKAGE=
6349    
6350    
6351    # Check whether --with-tkconfig or --without-tkconfig was given.
6352    if test "${with_tkconfig+set}" = set; then
6353      withval="$with_tkconfig"
6354      with_tkconfig="$withval"
6355    else
6356      with_tkconfig=
6357    fi;
6358    
6359    # Check whether --with-tk or --without-tk was given.
6360    if test "${with_tk+set}" = set; then
6361      withval="$with_tk"
6362    
6363        TKPACKAGE="$withval"
6364    else
6365      TKPACKAGE=yes
6366    fi;
6367    
6368    # Check whether --with-tkincl or --without-tkincl was given.
6369    if test "${with_tkincl+set}" = set; then
6370      withval="$with_tkincl"
6371    
6372        TKINCLUDE="$ISYSTEM$withval"
6373    else
6374      TKINCLUDE=
6375    fi;
6376    
6377    # Check whether --with-tklib or --without-tklib was given.
6378    if test "${with_tklib+set}" = set; then
6379      withval="$with_tklib"
6380    
6381        TKLIB="-L$withval"
6382    else
6383      TKLIB=
6384    fi;
6385    
6386    # First, check for "--without-tk" or "--with-tk=no".
6387    if test x"${TKPACKAGE}" = xno -o x"${with_alllang}" = xno; then
6388    { echo "$as_me:$LINENO: Disabling Tk" >&5
6389    echo "$as_me: Disabling Tk" >&6;}
6390    else
6391    echo "$as_me:$LINENO: checking for Tk configuration" >&5
6392    echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
6393    # First check to see if --with-tkconfig was specified.
6394    if test x"${with_tkconfig}" != x ; then
6395       if test -f "${with_tkconfig}/tkConfig.sh" ; then
6396          TKCONFIG=`(cd ${with_tkconfig}; pwd)`
6397       else
6398          { { echo "$as_me:$LINENO: error: ${with_tk} directory doesn't contain tkConfig.sh" >&5
6399    echo "$as_me: error: ${with_tk} directory doesn't contain tkConfig.sh" >&2;}
6400       { (exit 1); exit 1; }; }
6401       fi
6402    fi
6403    # check in a few common install locations
6404    if test x"${TKCONFIG}" = x ; then
6405        for i in `ls -d /usr/lib 2>/dev/null` \
6406            `ls -d /usr/local/lib 2>/dev/null` ; do
6407        if test -f "$i/tkConfig.sh" ; then
6408            TKCONFIG=`(cd $i; pwd)`
6409            break
6410        fi
6411        done
6412    fi
6413    if test x"${TKCONFIG}" = x ; then
6414        echo "$as_me:$LINENO: result: no" >&5
6415    echo "${ECHO_T}no" >&6
6416    else
6417        echo "$as_me:$LINENO: result: found $TKCONFIG/tkConfig.sh" >&5
6418    echo "${ECHO_T}found $TKCONFIG/tkConfig.sh" >&6
6419        . $TKCONFIG/tkConfig.sh
6420        if test -z "$TKINCLUDE"; then
6421            TKINCLUDE=$ISYSTEM$TK_PREFIX/include
6422        fi
6423        if test -z "$TKLIB"; then
6424            TKLIB=$TK_LIB_SPEC
6425        fi
6426    fi
6427    
6428    if test -z "$TKINCLUDE"; then
6429       if test "x$TKPACKAGE" != xyes; then
6430        TKINCLUDE="$ISYSTEM$TKPACKAGE/include"
6431       fi
6432    fi
6433    
6434    if test -z "$TKLIB"; then
6435       if test "x$TKPACKAGE" != xyes; then
6436        TKLIB="-L$TKPACKAGE/lib -ltk"
6437       fi
6438    fi
6439    
6440    echo "$as_me:$LINENO: checking for Tk header files" >&5
6441    echo $ECHO_N "checking for Tk header files... $ECHO_C" >&6
6442    if test -z "$TKINCLUDE"; then
6443    cat >conftest.$ac_ext <<_ACEOF
6444    /* confdefs.h.  */
6445    _ACEOF
6446    cat confdefs.h >>conftest.$ac_ext
6447    cat >>conftest.$ac_ext <<_ACEOF
6448    /* end confdefs.h.  */
6449    #include <tk.h>
6450    _ACEOF
6451    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6452      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453      ac_status=$?
6454      grep -v '^ *+' conftest.er1 >conftest.err
6455      rm -f conftest.er1
6456      cat conftest.err >&5
6457      echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458      (exit $ac_status); } >/dev/null; then
6459      if test -s conftest.err; then
6460        ac_cpp_err=$ac_c_preproc_warn_flag
6461        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6462      else
6463        ac_cpp_err=
6464      fi
6465    else
6466      ac_cpp_err=yes
6467    fi
6468    if test -z "$ac_cpp_err"; then
6469      :
6470    else
6471      echo "$as_me: failed program was:" >&5
6472    sed 's/^/| /' conftest.$ac_ext >&5
6473    
6474      TKINCLUDE=""
6475    fi
6476    rm -f conftest.err conftest.$ac_ext
6477    if test -z "$TKINCLUDE"; then
6478        dirs="/usr/local/include /usr/include /opt/local/include"
6479        for i in $dirs ; do
6480            if test -r $i/tk.h; then
6481                echo "$as_me:$LINENO: result: $i" >&5
6482    echo "${ECHO_T}$i" >&6
6483                TKINCLUDE="$ISYSTEM$i"
6484                break
6485            fi
6486        done
6487    fi
6488    if test -z "$TKINCLUDE"; then
6489            echo "$as_me:$LINENO: result: not found" >&5
6490    echo "${ECHO_T}not found" >&6
6491    fi
6492    else
6493            echo "$as_me:$LINENO: result: $TKINCLUDE" >&5
6494    echo "${ECHO_T}$TKINCLUDE" >&6
6495    fi
6496    
6497    echo "$as_me:$LINENO: checking for Tk library" >&5
6498    echo $ECHO_N "checking for Tk library... $ECHO_C" >&6
6499    if test -z "$TKLIB"; then
6500    dirs="/usr/local/lib /usr/lib /opt/local/lib"
6501    for i in $dirs ; do
6502        if test -r $i/libtk.a; then
6503            echo "$as_me:$LINENO: result: $i" >&5
6504    echo "${ECHO_T}$i" >&6
6505            TKLIB="-L$i -ltk"
6506            break
6507        fi
6508    done
6509    if test -z "$TKLIB"; then
6510        echo "$as_me:$LINENO: result: not found" >&5
6511    echo "${ECHO_T}not found" >&6
6512    fi
6513    else
6514    echo "$as_me:$LINENO: result: $TKLIB" >&5
6515    echo "${ECHO_T}$TKLIB" >&6
6516    fi
6517    
6518    # Cygwin (Windows) needs the library for dynamic linking
6519    case $host in
6520        *-*-cygwin* | *-*-mingw*) TKDYNAMICLINKING="$TKLIB";;
6521        *)TKDYNAMICLINKING="";;
6522    esac
6523    fi
6524    
6525    
6526    
6527    
6528    
6529    
# Line 8608  _ACEOF Line 8824  _ACEOF
8824  else  else
8825      echo "$as_me:$LINENO: result: STATIC" >&5      echo "$as_me:$LINENO: result: STATIC" >&5
8826  echo "${ECHO_T}STATIC" >&6  echo "${ECHO_T}STATIC" >&6
8827        cat >>confdefs.h <<\_ACEOF
8828    #define STATIC_PACKAGES 1
8829    _ACEOF
8830    
8831  fi  fi
8832    
8833  #-----------------------------------------------  #-----------------------------------------------
# Line 9372  s,@LEXLIB@,$LEXLIB,;t t Line 9592  s,@LEXLIB@,$LEXLIB,;t t
9592  s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t  s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9593  s,@LIBOBJS@,$LIBOBJS,;t t  s,@LIBOBJS@,$LIBOBJS,;t t
9594  s,@TCLINCLUDE@,$TCLINCLUDE,;t t  s,@TCLINCLUDE@,$TCLINCLUDE,;t t
9595    s,@NOTCLCONFIG@,$NOTCLCONFIG,;t t
9596    s,@TCLCONFIG@,$TCLCONFIG,;t t
9597  s,@TCLLIB@,$TCLLIB,;t t  s,@TCLLIB@,$TCLLIB,;t t
9598  s,@TCLDYNAMICLINKING@,$TCLDYNAMICLINKING,;t t  s,@TCLDYNAMICLINKING@,$TCLDYNAMICLINKING,;t t
9599    s,@TKINCLUDE@,$TKINCLUDE,;t t
9600    s,@TKLIB@,$TKLIB,;t t
9601    s,@TKDYNAMICLINKING@,$TKDYNAMICLINKING,;t t
9602  s,@F77@,$F77,;t t  s,@F77@,$F77,;t t
9603  s,@BLASLIB@,$BLASLIB,;t t  s,@BLASLIB@,$BLASLIB,;t t
9604  s,@LPAKLIB@,$LPAKLIB,;t t  s,@LPAKLIB@,$LPAKLIB,;t t

Legend:
Removed from v.410  
changed lines
  Added in v.411

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22