summaryrefslogblamecommitdiffstats
path: root/configure.ac
blob: c4aab0130bba8ba67287d3b4a9a7d2ab772422e8 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                 
 
               
                                                                 
                     
              
 
                                                     
                                    



                                                      
  
 
                       
                                                                  
                  
 

                                                                   

                            
                  

                       
                
                    
                        
                     
                     
 



                                                                
         

                                                                   
 

                                         
 





                                                

                                                       
                                        
  
 
                                        
                                      
 

                                           
  
                                
 
                         
             
  
 
         
## Process this file with autoconf to produce a configure script.
## 
## $Id$

AC_PREREQ(2.60)
AC_INIT([rtems],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
AC_CONFIG_SRCDIR([c])
RTEMS_TOP([.])

# Abort if trying to build inside of the source tree.
AS_IF([test -f aclocal/version.m4],[
  rm -f config.cache config.log confdefs.h
  AC_MSG_ERROR([***]
    [Attempt to build inside of the source tree]
    [Please use a separate build directory, instead] )
])

AC_CANONICAL_TARGET([])
AM_INIT_AUTOMAKE([no-define foreign dist-bzip2 no-dist-gzip 1.10])
AM_MAINTAINER_MODE

## These option are only in here to let --help report all supported
## options.
RTEMS_ENABLE_MULTIPROCESSING
RTEMS_ENABLE_POSIX
RTEMS_ENABLE_ITRON
RTEMS_ENABLE_NETWORKING
RTEMS_ENABLE_RDBG
RTEMS_ENABLE_CXX
RTEMS_ENABLE_TESTS  
RTEMS_ENABLE_RTEMS_DEBUG
RTEMS_ENABLE_RTEMSBSP
RTEMS_ENABLE_MULTILIB

AC_ARG_ENABLE([docs],
  [AC_HELP_STRING([--enable-docs],[enable building documentation
    (default:disabled)])])

## NOTES:
## * tools/build are host-native tools to be installed on the host.
## * tools/cpu are host-native or host-cross-target-tools

RTEMS_BUILD_CONFIG_SUBDIRS([tools/build])
RTEMS_BUILD_CONFIG_SUBDIRS([tools/cpu])

case $enable_tests in
yes | samples )
  RTEMS_BUILD_CONFIG_SUBDIRS([testsuites/tools])
  ;;
esac

# Some BSPs carelessly apply these tools as build-tools
AS_IF([test $host != $build],[
RTEMS_HOST_CONFIG_SUBDIRS([tools/build])
])

AS_IF([test x"${enable_docs}" = x"yes"],
  [RTEMS_BUILD_CONFIG_SUBDIRS([doc])])

AS_IF([test x"$enable_multilib" = x"yes"],[
  RTEMS_TARGET_CONFIG_SUBDIRS([cpukit])
])
RTEMS_TARGET_CONFIG_SUBDIRS([c])

AC_CONFIG_FILES([Makefile
make/Makefile
])

AC_OUTPUT