summaryrefslogblamecommitdiffstats
path: root/source-builder/config/autoconf-2-1.cfg
blob: 5061cfd0e3c1fd001eba1c528cef99d1d1422bec (plain) (tree)
1
2
3
4
5
6
7
8




                                                                    
 
                                   
                                


                                           
      
 
                                                           








                                                          
                                                                                       




                          

                  

                                                           

                 

      

                  


                                                         
 

                                 
                                                
                                         
      
                        

    




                                          
                       



                                       
                         


                               

                        
                 

        

                  
                                  
                           

                                 
 
                                                



                                            
 
                 
#
# Autoconf 2.xx Version 1.
#
# This configuration file configure's, make's and install's autoconf
#

%ifn %{defined _internal_autotools}
  %define _internal_autotools no
  %ifn %{defined _internal_autotools_path}
    %define _internal_autotools_path %{nil}
  %endif
%endif

Name:      autoconf-%{autoconf_version}-%{_host}-%{release}
Summary:   Autoconf v%{autoconf_version} for host %{_host}
Version:   %{autoconf_version}
Release:   %{release}
URL: 	   http://www.gnu.org/software/autoconf/
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)

#
# Source
#
%source set autoconf ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{autoconf_version}.tar.gz

#
# Prepare the source code.
#
%prep
  build_top=$(pwd)

  %source setup autoconf -q -n autoconf-%{autoconf_version}
  %patch setup autoconf -p1

  cd ${build_top}

%build
  build_top=$(pwd)

  %if %{defined _internal_autotools_path}
    export PATH="%{_internal_autotools_path}/bin:${PATH}"
  %endif

  cd autoconf-%{autoconf_version}

  if test "%{_internal_autotools}" = "yes"; then
    ac_prefix=%{_internal_autotools_path}
  else
    ac_prefix=%{_prefix}
  fi

  if test "%{_build}" != "%{_host}" ; then
    CFLAGS_FOR_BUILD="-g -O2 -Wall"
  fi
  export CFLAGS CFLAGS_FOR_BUILD CC

  CFLAGS="$SB_CFLAGS" \
  ./configure \
    --build=%{_build} --host=%{_host} \
    --verbose --disable-nls \
    --without-included-gettext \
    --prefix=${ac_prefix}

  %{__make} %{?_smp_mflags} all

  unset CFLAGS_FOR_BUILD

  cd ${build_top}

%install
  build_top=$(pwd)

  export PATH="%{_bindir}:${PATH}"
  %{__rmdir} $SB_BUILD_ROOT

  cd autoconf-%{autoconf_version}

  if test "%{_internal_autotools}" = "yes"; then
    %{__make} install
  else
    %{__make} DESTDIR=$SB_BUILD_ROOT install
  fi

  cd ${build_top}