summaryrefslogtreecommitdiffstats
path: root/testpar
Commit message (Expand)AuthorAgeFilesLines
* [svn-r21804] Update CMake Required version in all folders to match current st...Allen Byrne2011-12-051-1/+1
* [svn-r21710] CMake FindMPI module changed to look for fortran libs. Cmake fil...Allen Byrne2011-11-031-2/+2
* [svn-r21667] Update FOLDER solution option for target properties. Added OPTIO...Allen Byrne2011-10-251-1/+2
* [svn-r21613] Ported express test tunings and a minor edit back to John Mainzer2011-10-191-3/+3
* [svn-r21442] Description:Quincey Koziol2011-10-013-1/+567
* [svn-r21334] HDFFV-7687: add HD macro prefrix to functions and use h5_stat_t ...Allen Byrne2011-08-303-5/+5
* [svn-r21260] Refactored shape same tests heavily, and added code to skip a co...John Mainzer2011-08-181-2536/+2765
* [svn-r21249] Description: Part II of F2003 branch merge into the trunk.Scot Breitenfeld2011-08-181-0/+3
* [svn-r21228] Added #ifdefs around #include unistd.h and created windows getlo...Allen Byrne2011-08-152-0/+5
* [svn-r21201] Prepend test folder name to perform and testpar cmake testsAllen Byrne2011-08-091-5/+9
* [svn-r21101] HDFFV-7639Mike McGreevy2011-07-141-159/+102
* [svn-r21074] Remove incorrect -p option from test macro. Discovered from publ...Allen Byrne2011-07-081-1/+1
* [svn-r20627] Add dependency of t_pflush2 on t_pflush1Allen Byrne2011-04-251-0/+2
* [svn-r20504] Purpose:Mike McGreevy2011-04-141-1/+4
* [svn-r20502] Purpose:Mike McGreevy2011-04-141-19/+39
* [svn-r20475] Purpose:Mike McGreevy2011-04-111-0/+2
* [svn-r20171] Add HDF5_USING_MEMCHECKER guards around script mode ADD_TEST. Th...Allen Byrne2011-03-011-13/+15
* [svn-r20153] Move ext lib handling for ext project building to a common macro...Allen Byrne2011-02-241-2/+2
* [svn-r20119] Description:Quincey Koziol2011-02-172-179/+176
* [svn-r20025] remove t_rank_projection file from list of sourcesAllen Byrne2011-01-311-2/+2
* [svn-r19978] Patched in a temporary fix so that:Albert Cheng2011-01-211-8/+11
* [svn-r19965] Purpose:Albert Cheng2011-01-181-14/+59
* [svn-r19961] Purpose:Albert Cheng2011-01-162-21/+76
* [svn-r19959] Bug: the VRFY macro, for some reason, called MPI_Finalize() when...Albert Cheng2011-01-165-14/+57
* [svn-r19956] Removed since its code has been copied to t_shapesame.c.Albert Cheng2011-01-141-4433/+0
* [svn-r19947] Bug fix: testph5.in failed to run the 't_shapesame -p' by claimi...Albert Cheng2011-01-121-3/+2
* [svn-r19941] Purpose:Albert Cheng2011-01-125-21/+4864
* [svn-r19907] Windows: Correct how fortran links in CRT library. Also correct ...Allen Byrne2011-01-041-2/+2
* [svn-r19895] Remove use of /MT compile flag for building static libs and prog...Allen Byrne2010-12-291-2/+0
* [svn-r19839] Updated to libtool v 2.4, autoconf 2.68 and m4-1.4.15.Larry Knox2010-11-231-0/+3
* [svn-r19825] John Mainzer2010-11-181-10/+38
* [svn-r19743] Description:Quincey Koziol2010-11-082-194/+42
* [svn-r19722] Bug fix for failure in the round robin metadata write ojbect headerJohn Mainzer2010-11-031-0/+3
* [svn-r19706] Added VFD test options.Allen Byrne2010-11-011-0/+43
* [svn-r19682] Bug 2054: Round Robin code caused H5FFlush to corrupt a file.Albert Cheng2010-10-282-113/+493
* [svn-r19646] John Mainzer2010-10-191-6/+6
* [svn-r19632] John Mainzer2010-10-181-1/+1
* [svn-r19622] Port of fix for the round robin parallel flush bug caused by the...John Mainzer2010-10-173-0/+520
* [svn-r19506] Bring changes from revisions 19408, 19421, and 19442 from branch...Larry Knox2010-10-041-5/+15
* [svn-r19412] Modified shape same tests to deal with the performance problem o...John Mainzer2010-09-171-48/+570
* [svn-r19366] Updated autoconf to version 2.6.7, libtool to version 2.2.10, an...Larry Knox2010-09-101-1/+1
* [svn-r19361] Move Windows specific compile and link flags to macrosAllen Byrne2010-09-091-20/+2
* [svn-r19348] Description:Quincey Koziol2010-09-031-25/+20
* [svn-r19325] Added parallel build commands.Allen Byrne2010-08-311-3/+6
* [svn-r19235] Description:Quincey Koziol2010-08-121-56/+62
* [svn-r19168] Description:Quincey Koziol2010-08-042-3/+3
* [svn-r19130] Description:Quincey Koziol2010-07-261-2/+2
* [svn-r19127] Description:Quincey Koziol2010-07-231-1/+1
* [svn-r19114] Description:Quincey Koziol2010-07-201-12/+11
* [svn-r19096] Description:Quincey Koziol2010-07-191-301/+1903
n284'>284 285 286 287 288 289 290 291 292 293 294
#! /bin/bash -norc
# This file is an input file used by the GNU "autoconf" program to
# generate the file "configure", which is run during Tk installation
# to configure the system for the local environment.

AC_INIT(../generic/tk.h)
AC_PREREQ(2.59)

# The following define is needed when building with Cygwin since newer
# versions of autoconf incorrectly set SHELL to /bin/bash instead of
# /bin/sh. The bash shell seems to suffer from some strange failures.
SHELL=/bin/sh

TK_VERSION=8.5
TK_MAJOR_VERSION=8
TK_MINOR_VERSION=5
TK_PATCH_LEVEL=".18"
VER=$TK_MAJOR_VERSION$TK_MINOR_VERSION

#------------------------------------------------------------------------
# Handle the --prefix=... option
#------------------------------------------------------------------------

if test "${prefix}" = "NONE"; then
    prefix=/usr/local
fi
if test "${exec_prefix}" = "NONE"; then
    exec_prefix=$prefix
fi
# libdir must be a fully qualified path (not ${exec_prefix}/lib)
eval libdir="$libdir"

#------------------------------------------------------------------------
# Standard compiler checks
#------------------------------------------------------------------------

# If the user did not set CFLAGS, set it now to keep
# the AC_PROG_CC macro from adding "-g -O2".
if test "${CFLAGS+set}" != "set" ; then
    CFLAGS=""
fi

AC_PROG_CC
AC_C_INLINE
AC_HEADER_STDC

AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib)
AC_CHECK_TOOL(RC, windres)

#--------------------------------------------------------------------
# Checks to see if the make program sets the $MAKE variable.
#--------------------------------------------------------------------

AC_PROG_MAKE_SET

#--------------------------------------------------------------------
# Determines the correct binary file extension (.o, .obj, .exe etc.)
#--------------------------------------------------------------------

AC_OBJEXT
AC_EXEEXT

#--------------------------------------------------------------------
# Check whether --enable-threads or --disable-threads was given.
#--------------------------------------------------------------------

SC_ENABLE_THREADS

#--------------------------------------------------------------------
# The statements below define a collection of symbols related to
# building libtk as a shared library instead of a static library.
#--------------------------------------------------------------------

SC_ENABLE_SHARED

#--------------------------------------------------------------------
# Locate and source the tclConfig.sh file.
#--------------------------------------------------------------------

SC_PATH_TCLCONFIG($TK_PATCH_LEVEL)
SC_LOAD_TCLCONFIG

#--------------------------------------------------------------------
# The statements below define a collection of compile flags.  This
# macro depends on the value of SHARED_BUILD, and should be called
# after SC_ENABLE_SHARED checks the configure switches.
#--------------------------------------------------------------------

SC_CONFIG_CFLAGS

#--------------------------------------------------------------------
# man2tcl needs this so that it can use errno.h
#--------------------------------------------------------------------

AC_CHECK_HEADER(errno.h, , MAN2TCLFLAGS="-DNO_ERRNO_H")
AC_SUBST(MAN2TCLFLAGS)

#-------------------------------------------
#     Check for _strtoi64
#-------------------------------------------

AC_CACHE_CHECK([availability of _strtoi64], tcl_cv_strtoi64, [
    AC_TRY_LINK([#include <stdlib.h>],
	    [_strtoi64(0,0,0)],
	    tcl_cv_strtoi64=yes, tcl_cv_strtoi64=no)])
if test $tcl_cv_strtoi64 = no; then
    AC_DEFINE(NO_STRTOI64, 1, [Is _strtoi64 function available?])
fi

#--------------------------------------------------------------------
# Windows XP theme engine header for Ttk
#--------------------------------------------------------------------

AC_CHECK_HEADER([uxtheme.h], [AC_DEFINE(HAVE_UXTHEME_H)],
	[AC_MSG_NOTICE([xpnative theme will be unavailable])],
	[#include <windows.h>])

#--------------------------------------------------------------------
# Set the default compiler switches based on the --enable-symbols
# option.  This macro depends on C flags, and should be called
# after SC_CONFIG_CFLAGS macro is called.
#--------------------------------------------------------------------

SC_ENABLE_SYMBOLS

TK_DBGX=${DBGX}

#--------------------------------------------------------------------
# Embed the manifest if we can determine how
#--------------------------------------------------------------------

SC_EMBED_MANIFEST(wish.exe.manifest)

SC_BUILD_TCLSH
SC_PROG_TCLSH

#------------------------------------------------------------------------
# tkConfig.sh refers to this by a different name
#------------------------------------------------------------------------

TK_SHARED_BUILD=${SHARED_BUILD}

#--------------------------------------------------------------------
# Perform final evaluations of variables with possible substitutions.
#--------------------------------------------------------------------

TK_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}"
TK_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
TK_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"

eval "TK_SRC_DIR=\"`cd $srcdir/..; pwd`\""

eval "TK_DLL_FILE=tk$VER${DLLSUFFIX}"
eval "TK_LIB_FILE=${LIBPREFIX}tk$VER${LIBSUFFIX}"

eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${VER}${LIBSUFFIX}"
# FIXME: All of this var junk needs to be done in tcl.m4 !!!!
# I left out the other vars that also need to get defined here.
# we also need to double check about spaces in path names
eval "TK_LIB_FLAG=\"-ltk${VER}${LIBFLAGSUFFIX}\""
TK_LIB_SPEC="-L${libdir} ${TK_LIB_FLAG}"
TK_BUILD_LIB_SPEC="-L`pwd` ${TK_LIB_FLAG}"

eval "TK_STUB_LIB_FLAG=\"-ltkstub${VER}${LIBFLAGSUFFIX}\""
TK_BUILD_STUB_LIB_SPEC="-L`pwd` ${TK_STUB_LIB_FLAG}"

TK_STUB_LIB_SPEC="-L${libdir} ${TK_STUB_LIB_FLAG}"
TK_STUB_LIB_PATH="${libdir}/${TK_STUB_LIB_FILE}"
TK_BUILD_STUB_LIB_PATH="`pwd`/${TK_STUB_LIB_FILE}"

eval "DLLSUFFIX=${DLLSUFFIX}"
eval "LIBPREFIX=${LIBPREFIX}"
eval "LIBSUFFIX=${LIBSUFFIX}"
eval "EXESUFFIX=${EXESUFFIX}"

CFG_TK_SHARED_LIB_SUFFIX=${TK_SHARED_LIB_SUFFIX}
CFG_TK_UNSHARED_LIB_SUFFIX=${TK_UNSHARED_LIB_SUFFIX}
CFG_TK_EXPORT_FILE_SUFFIX=${TK_EXPORT_FILE_SUFFIX}

#--------------------------------------------------------------------
# Adjust the defines for how the resources are built depending
# on symbols and static vs. shared.
#--------------------------------------------------------------------

if test ${SHARED_BUILD} = 0 -o "$TCL_NEEDS_EXP_FILE" = 0; then
    if test "${DBGX}" = "d"; then
        RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG"
    else
        RC_DEFINES="${RC_DEFINE} STATIC_BUILD"
    fi
    TK_RES=""
else
    if test "${DBGX}" = "d"; then
        RC_DEFINES="${RC_DEFINE} DEBUG"
    else
        RC_DEFINES=""
    fi
    TK_RES='tk.$(RES)'
fi

# The wish.exe.manifest requires these
# TK_WIN_VERSION is the 4 dotted pair Windows version format which needs
# the release level, and must account for interim release versioning
case "$TK_PATCH_LEVEL" in
     *a*) TK_RELEASE_LEVEL=0 ;;
     *b*) TK_RELEASE_LEVEL=1 ;;
     *)   TK_RELEASE_LEVEL=2 ;;
esac
TK_WIN_VERSION="$TK_VERSION.$TK_RELEASE_LEVEL.`echo $TK_PATCH_LEVEL | tr -d ab.`"
AC_SUBST(TK_WIN_VERSION)
# X86|AMD64|IA64 for manifest
AC_SUBST(MACHINE)

AC_SUBST(TK_VERSION)
AC_SUBST(TK_MAJOR_VERSION)
AC_SUBST(TK_MINOR_VERSION)
AC_SUBST(TK_PATCH_LEVEL)
AC_SUBST(TK_DBGX)
AC_SUBST(TK_LIB_FILE)
AC_SUBST(TK_DLL_FILE)
AC_SUBST(TK_STUB_LIB_FILE)
AC_SUBST(TK_STUB_LIB_FLAG)
AC_SUBST(TK_BUILD_STUB_LIB_SPEC)
AC_SUBST(TK_SRC_DIR)
AC_SUBST(TK_BIN_DIR)

AC_SUBST(TCL_VERSION)
AC_SUBST(TCL_MAJOR_VERSION)
AC_SUBST(TCL_MINOR_VERSION)
AC_SUBST(TCL_PATCH_LEVEL)
AC_SUBST(TCL_SRC_DIR)
AC_SUBST(TCL_BIN_DIR)
AC_SUBST(TCL_DBGX)
AC_SUBST(CFG_TK_SHARED_LIB_SUFFIX)
AC_SUBST(CFG_TK_UNSHARED_LIB_SUFFIX)
AC_SUBST(CFG_TK_EXPORT_FILE_SUFFIX)
AC_SUBST(TK_SHARED_BUILD)

AC_SUBST(CYGPATH)
AC_SUBST(DEPARG)
AC_SUBST(CFLAGS_DEFAULT)
AC_SUBST(EXTRA_CFLAGS)
AC_SUBST(STLIB_LD)
AC_SUBST(SHLIB_LD)
AC_SUBST(SHLIB_LD_LIBS)
AC_SUBST(SHLIB_CFLAGS)
AC_SUBST(SHLIB_SUFFIX)
AC_SUBST(CC_OBJNAME)
AC_SUBST(CC_EXENAME)
AC_SUBST(LDFLAGS_DEFAULT)
AC_SUBST(LDFLAGS_DEBUG)
AC_SUBST(LDFLAGS_OPTIMIZE)
AC_SUBST(LDFLAGS_CONSOLE)
AC_SUBST(LDFLAGS_WINDOW)
AC_SUBST(AR)
AC_SUBST(RANLIB)
AC_SUBST(RC)
AC_SUBST(RC_OUT)
AC_SUBST(RC_TYPE)
AC_SUBST(RC_INCLUDE)
AC_SUBST(RC_DEFINE)
AC_SUBST(RC_DEFINES)
AC_SUBST(TK_RES)
AC_SUBST(RES)
AC_SUBST(LIBS)
AC_SUBST(LIBS_GUI)
AC_SUBST(DLLSUFFIX)
AC_SUBST(LIBPREFIX)
AC_SUBST(LIBSUFFIX)
AC_SUBST(EXESUFFIX)
AC_SUBST(LIBRARIES)
AC_SUBST(MAKE_LIB)
AC_SUBST(MAKE_STUB_LIB)
AC_SUBST(POST_MAKE_LIB)
AC_SUBST(MAKE_DLL)
AC_SUBST(MAKE_EXE)

AC_SUBST(TK_LIB_FLAG)
AC_SUBST(TK_LIB_SPEC)
AC_SUBST(TK_BUILD_LIB_SPEC)
AC_SUBST(TK_STUB_LIB_SPEC)
AC_SUBST(TK_STUB_LIB_PATH)
AC_SUBST(TK_BUILD_STUB_LIB_PATH)

# undefined at this point for win
AC_SUBST(TK_CC_SEARCH_FLAGS)
AC_SUBST(TK_LD_SEARCH_FLAGS)

AC_OUTPUT([Makefile tkConfig.sh wish.exe.manifest])

dnl Local Variables:
dnl mode: autoconf;
dnl End: