Changeset 5908 for branches/1.5/gui/configure.in
- Timestamp:
- Oct 9, 2015, 2:20:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/gui/configure.in
r5862 r5908 2 2 AC_INIT([RapptureGUI],[1.4],[rappture@nanohub.org]) 3 3 AC_CONFIG_AUX_DIR(cf) 4 4 5 #------------------------------------------------------------------------ 5 6 # Handle the --prefix=... option … … 13 14 fi 14 15 15 if test "${libdir}" != "${prefix}/lib"; then 16 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" 17 else 18 LIB_SEARCH_DIRS="-L${libdir}" 19 fi 20 AC_CANONICAL_TARGET 21 AC_SUBST(LIB_SEARCH_DIRS) 16 if test -r ${exec_prefix}/lib/rapptureConfig.sh; then 17 . ${exec_prefix}/lib/rapptureConfig.sh 18 PACKAGE_VERSION=$RAPPTURE_VERSION 19 fi 22 20 23 21 AC_PROG_INSTALL 24 AC_PROG_INSTALL25 AC_PROG_RANLIB26 22 AC_PROG_LN_S 27 23 AC_PROG_MKDIR_P 28 24 AC_PROG_MAKE_SET 29 AC_PROG_CC30 31 #SC_CONFIG_CFLAGS32 #SC_ENABLE_SHARED33 34 gui_with_tcl=""35 36 make_command=""37 for m in "$MAKE" make gmake gnumake ; do38 if test "x${m}" != "x" ; then39 if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then40 make_command=$m; break;41 fi42 fi43 done44 if test "x${make_command}" = "x" ; then45 AC_MSG_ERROR([Requires GNU make. You can specify a version with \$MAKE])46 fi47 AC_SUBST(MAKE, ${make_command})48 49 AC_ARG_ENABLE(50 [gui],51 [AS_HELP_STRING([--enable-gui], [build code related to the graphical user interface @<:@default=yes@:>@])],52 [],53 [enable_gui=yes])54 55 ENABLE_GUI=56 if test "$enable_gui" != "no" ; then57 ENABLE_GUI="yes"58 fi59 AC_SUBST(ENABLE_GUI)60 61 with_tclsh="yes"62 AC_ARG_WITH(63 [tclsh],64 [AS_HELP_STRING([--with-tclsh[=DIR]],65 [location of tclsh @<:@default=yes@:>@])],66 [],67 [with_tclsh=yes])68 69 TCLSH=70 # -----------------------------------------------------------------------71 #72 # Find the Tcl build configuration file "tclConfig.sh"73 #74 # -----------------------------------------------------------------------75 76 AC_MSG_CHECKING([for tclConfig.sh])77 tcl_config_sh=""78 if test "x$gui_with_tcl" != "x" ; then79 80 # Verify that a tclConfig.sh file exists in the directory specified81 # by --with-tcl.82 83 for dir in \84 $gui_with_tcl85 do86 if test -r "$dir/tclConfig.sh" ; then87 tcl_config_sh="$dir/tclConfig.sh"88 break89 elif test -r "$dir/lib/tclConfig.sh" ; then90 tcl_config_sh="$dir/lib/tclConfig.sh"91 break92 fi93 done94 else95 96 # Otherwise, search for Tcl configuration file.97 98 # 1. Search previously named locations.99 100 for dir in \101 $prefix \102 $exec_prefix \103 $gui_cv_tcl_lib104 do105 if test -r "$dir/tclConfig.sh" ; then106 tcl_config_sh="$dir/tclConfig.sh"107 break108 elif test -r "$dir/lib/tclConfig.sh" ; then109 tcl_config_sh="$dir/lib/tclConfig.sh"110 break111 fi112 done113 fi114 115 AC_MSG_RESULT([${tcl_config_sh}])116 117 if test "x$tcl_config_sh" = "x" ; then118 echo "can't find Tcl configuration script \"tclConfig.sh\""119 exit 1120 fi121 . ${tcl_config_sh}122 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"123 124 case $target in125 *-*-cygwin*|*-*-mingw*)126 gui_platform="win"127 TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}128 ;;129 *-*-darwin*)130 gui_platform="macosx"131 TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}132 ;;133 *)134 blt_platform="unix"135 TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}136 ;;137 esac138 139 AC_MSG_RESULT([${TCLSH}])140 AC_SUBST(TCLSH)141 142 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then143 . ${exec_prefix}/lib/tclConfig.sh144 fi145 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then146 . ${exec_prefix}/lib/tkConfig.sh147 fi148 AC_SUBST(TCL_INC_SPEC)149 AC_SUBST(TCL_LIB_SPEC)150 AC_SUBST(TCL_VERSION)151 AC_SUBST(TK_INC_SPEC)152 AC_SUBST(TK_LIB_SPEC)153 AC_SUBST(TK_XLIBSW)154 AC_SUBST(TK_VERSION)155 AC_SUBST(TCL_CFLAGS_DEBUG)156 AC_SUBST(TCL_CFLAGS_OPTIMIZE)157 AC_SUBST(TCL_STLIB_LD)158 AC_SUBST(TCL_SHLIB_LD)159 AC_SUBST(TCL_SHLIB_CFLAGS)160 AC_SUBST(TCL_SHLIB_LDFLAGS)161 AC_SUBST(TCL_SHLIB_SUFFIX)162 163 25 164 26 AC_CONFIG_FILES([ 165 27 Makefile 166 28 pkgIndex.tcl 167 apps/Makefile168 apps/about169 apps/encodedata170 apps/rappture171 apps/rappture-csh.env172 apps/rappture.env173 apps/rappture.use174 apps/rerun175 apps/simsim176 apps/xmldiff177 29 scripts/Makefile 178 src/Makefile179 30 ]) 180 31 AC_OUTPUT
Note: See TracChangeset
for help on using the changeset viewer.