Changeset 1018 for trunk/configure.in


Ignore:
Timestamp:
Jun 8, 2008, 6:24:34 PM (16 years ago)
Author:
gah
Message:

Massive changes: New directory/file layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r942 r1018  
    1 AC_INIT(Rappture Core and Bindings, 1.1, rappture@nanohub.org)
    2 
    3 VERSION=0.0.1
    4 AC_SUBST(VERSION)
     1AC_INIT([Rappture], [1.1], [rappture@nanohub.org])
    52
    63#------------------------------------------------------------------------
     
    2926AC_PROG_CC
    3027AC_LANG_C
     28
     29AC_PROG_INSTALL
     30AC_PROG_RANLIB
     31AC_PROG_LN_S
    3132
    3233AC_HEADER_STDC
     
    4243AC_CHECK_HEADERS(vector,,AC_MSG_WARN(STL classes missing ?))
    4344
    44 AC_PROG_F77([g77 f77 fort77 f90 xlf xlf90 fl32])
    45 
    46 
    47 
     45AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32])
     46
     47SC_CONFIG_GCC
     48SC_CONFIG_CFLAGS
     49SC_MAKE_LIB
    4850
    4951AC_ARG_ENABLE(
     
    6870dnl AC_SUBST(BUILD_TCL)
    6971
     72with_tclsh="check"
    7073AC_ARG_WITH(
    7174    [tclsh],
     
    377380AC_SUBST(PYTHON_SITE_PACKAGES)
    378381
     382AC_ARG_WITH(
     383    [ruby],
     384    [AS_HELP_STRING([--with-ruby[=DIR]], [location of ruby @<:@default=check@:>@])],
     385    [],
     386    [with_ruby=check])
     387
     388RUBY=""
     389if test "$with_ruby" != "no" ; then
     390    AC_MSG_CHECKING([for ruby])
     391    if test -x "$with_ruby/bin/ruby"
     392    then
     393        echo Found perl in $with_ruby/bin/ruby
     394        PERL="$with_ruby/bin/ruby"
     395    else
     396        if test -x "$with_ruby"
     397        then
     398            echo Found ruby in $with_ruby
     399            PERL="$with_ruby"
     400        else
     401            AC_PATH_PROG(RUBY, ruby)
     402        fi
     403    fi
     404fi
     405AC_MSG_RESULT([${RUBY}])
     406AC_SUBST(RUBY)
    379407
    380408RP_BASE=`pwd`
    381409AC_SUBST(RP_BASE)
    382410
    383 if test "$ENABLE_GUI" == "yes" ; then
    384     AC_CONFIG_SUBDIRS( gui )
    385 fi
    386 
    387 if test "$TCLSH" != "" ; then
    388     AC_CONFIG_SUBDIRS( src/tcl )
    389 fi
    390 
    391 ls
    392 AC_CONFIG_SUBDIRS( [optimizer/src] )
     411SC_ENABLE_SHARED
     412
     413#--------------------------------------------------------------------
     414# This macro figures out what flags to use with the compiler/linker
     415# when building shared/static debug/optimized objects.  This information
     416# is all taken from the tclConfig.sh file.
     417#--------------------------------------------------------------------
     418
     419AC_SUBST(CFLAGS_DEBUG)
     420AC_SUBST(CFLAGS_OPTIMIZE)
     421AC_SUBST(STLIB_LD)
     422AC_SUBST(SHLIB_LD)
     423AC_SUBST(SHLIB_CFLAGS)
     424AC_SUBST(SHLIB_LDFLAGS)
     425AC_SUBST(SHLIB_SUFFIX)
     426
     427#--------------------------------------------------------------------
     428# Set the default compiler switches based on the --enable-symbols
     429# option.
     430#--------------------------------------------------------------------
     431
     432SC_ENABLE_SYMBOLS
     433
     434if test "${SHARED_BUILD}" = "1" ; then
     435    CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}'
     436else
     437    CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING}'
     438fi
     439
     440AC_CONFIG_SUBDIRS( [packages/optimizer/src] )
    393441
    394442dnl read Makefile.in and write Makefile
    395 AC_OUTPUT(  Makefile \
    396             examples/demo.bash
    397             examples/app-fermi/cee/Makefile \
    398             examples/app-fermi/fortran/Makefile \
    399             examples/app-fermi/wrapper/cee/Makefile \
    400             examples/c-example/Makefile \
    401             optimizer/src/Makefile \
    402             perl/Makefile.PL \
    403             python/setup.py \
    404             src/Makefile \
    405             src/matlab/Makefile \
    406             src/octave/Makefile \
    407             src2/core/Makefile \
    408             test/Makefile \
    409             gui/apps/simsim \
    410             gui/apps/rappture \
    411             gui/apps/rappture.env   )
     443AC_OUTPUT( [
     444        Makefile
     445        packages/Makefile
     446        src/Makefile
     447        src/core/Makefile
     448        src/core2/Makefile
     449        src/objects/Makefile
     450        gui/Makefile
     451        gui/apps/Makefile
     452        gui/apps/rappture
     453        gui/apps/rappture.env
     454        gui/apps/simsim
     455        gui/pkgIndex.tcl
     456        gui/scripts/Makefile
     457        gui/src/Makefile
     458        lang/Makefile
     459        lang/perl/Makefile
     460        lang/perl/Makefile.PL
     461        lang/python/Makefile
     462        lang/python/setup.py
     463        lang/matlab/Makefile
     464        lang/octave/Makefile
     465        lang/ruby/Makefile
     466        lang/ruby/build.rb
     467        lang/tcl/Makefile
     468        lang/tcl/pkgIndex.tcl
     469        lang/tcl/src/Makefile
     470        lang/tcl/scripts/Makefile
     471        lang/tcl/tests/Makefile
     472        examples/Makefile
     473        examples/3D/Makefile
     474        examples/app-fermi/Makefile
     475        examples/app-fermi/cee/Makefile
     476        examples/app-fermi/fortran/Makefile
     477        examples/app-fermi/matlab/Makefile
     478        examples/app-fermi/octave/Makefile
     479        examples/app-fermi/perl/Makefile
     480        examples/app-fermi/python/Makefile
     481        examples/app-fermi/ruby/Makefile
     482        examples/app-fermi/tcl/Makefile
     483        examples/app-fermi/wrapper/Makefile
     484        examples/app-fermi/wrapper/cee/Makefile
     485        examples/app-fermi/wrapper/python/Makefile
     486        examples/app-fermi/wrapper/tcl/Makefile
     487        examples/c-example/Makefile
     488        examples/canvas/Makefile
     489        examples/demo.bash
     490        examples/graph/Makefile
     491        examples/zoo/Makefile
     492        examples/zoo/binary/Makefile
     493        examples/zoo/boolean/Makefile
     494        examples/zoo/choice/Makefile
     495        examples/zoo/cloud/Makefile
     496        examples/zoo/cloud/matlab/Makefile
     497        examples/zoo/curve/Makefile
     498        examples/zoo/enable/Makefile
     499        examples/zoo/field/Makefile
     500        examples/zoo/group/Makefile
     501        examples/zoo/image/Makefile
     502        examples/zoo/image/docs/Makefile
     503        examples/zoo/image/examples/Makefile 
     504        examples/zoo/integer/Makefile
     505        examples/zoo/loader/Makefile
     506        examples/zoo/loader/examples/Makefile
     507        examples/zoo/log/Makefile
     508        examples/zoo/note/Makefile
     509        examples/zoo/note/docs/Makefile
     510        examples/zoo/number/Makefile
     511        examples/zoo/phase/Makefile
     512        examples/zoo/sequence/Makefile
     513        examples/zoo/sequence/examples/Makefile
     514        examples/zoo/string/Makefile
     515        examples/zoo/structure/Makefile
     516        examples/zoo/structure/examples/Makefile
     517        examples/zoo/table/Makefile
     518        test/Makefile
     519        test/src/Makefile
     520])
Note: See TracChangeset for help on using the changeset viewer.