Changeset 31

Show
Ignore:
Timestamp:
11/19/08 13:25:19 (17 years ago)
Author:
yumileroy
Message:

[svn] Restore configure.ac for removal of trinityscripts.

* configure.ac will autodetect if scripts are installed and use them.

Original author: derex_tri
Date: 2008-10-10 05:30:48-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r17 r31  
    6868 
    6969# Check if enable scripts 
    70 AC_ARG_ENABLE([scripts], AC_HELP_STRING([--enable-scripts], [Enable TrinityScripts (default: yes) ]), [], [enable_scripts=yes]) 
    71  
    72 AM_CONDITIONAL([USE_TSCRIPTS], [test X$enable_scripts = Xyes]) 
     70AC_ARG_ENABLE([scripts], AC_HELP_STRING([--enable-scripts], [Enable TrinityScripts (default: check) ]), [], [enable_scripts=yes]) 
     71 
     72AC_MSG_CHECKING(whether to build scripting module) 
     73if test X$enable_scripts = Xyes -a -d $srcdir/src/bindings/scripts/scripts; then 
     74  tri_build_scripts=yes 
     75  AC_MSG_RESULT(yes) 
     76else 
     77  tri_build_scripts=no 
     78  AC_MSG_RESULT(no) 
     79  if test X$enable_scripts = Xyes; then 
     80    AC_MSG_WARN([src/bindings/scripts/scripts folder does not exist, scripts will be disabled]) 
     81  fi 
     82fi 
     83 
     84AM_CONDITIONAL([USE_TSCRIPTS], [test X$tri_build_scripts = Xyes]) 
    7385 
    7486# Check for doxygen 
     
    304316   src/trinitycore/Makefile 
    305317   src/bindings/Makefile 
    306    src/bindings/scripts/Makefile 
    307318   src/bindings/interface/Makefile 
    308319]) 
     320 
     321if test X$tri_build_scripts = Xyes; then 
     322AC_CONFIG_FILES([src/bindings/scripts/Makefile]) 
     323fi 
    309324 
    310325## Configure ACE