From 9ff2709ca571dcfe2f80746e638ad9d0687031fa Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 11 Jun 2012 10:49:38 -0700 Subject: [PATCH] automake: Directly generate configs/current instead of symlinking from it. --- Makefile.am | 1 - configs/{autoconf.in => current.in} | 0 configure.ac | 10 +--------- 3 files changed, 1 insertion(+), 10 deletions(-) rename configs/{autoconf.in => current.in} (100%) diff --git a/Makefile.am b/Makefile.am index 9c9e9f6cff0..8210fccd44b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -44,7 +44,6 @@ clean-local: distclean-local: -rm -rf lib* -rm -f $(top_builddir)/configs/current - -rm -f $(top_builddir)/configs/autoconf -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \ -name depend -o -name depend.bak ')' -exec rm -f '{}' ';' diff --git a/configs/autoconf.in b/configs/current.in similarity index 100% rename from configs/autoconf.in rename to configs/current.in diff --git a/configure.ac b/configure.ac index 3a930d88c39..a927f7f8d8b 100644 --- a/configure.ac +++ b/configure.ac @@ -2142,7 +2142,7 @@ CFLAGS="$CFLAGS $USER_CFLAGS" CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS" dnl Substitute the config -AC_CONFIG_FILES([configs/autoconf +AC_CONFIG_FILES([configs/current Makefile src/Makefile src/gallium/auxiliary/pipe-loader/Makefile @@ -2183,14 +2183,6 @@ AC_CONFIG_FILES([configs/autoconf src/mesa/drivers/dri/radeon/Makefile src/mesa/drivers/dri/swrast/Makefile]) -dnl Replace the configs/current symlink -AC_CONFIG_COMMANDS([configs],[ -if test -f configs/current || test -L configs/current; then - rm -f configs/current -fi -ln -s autoconf configs/current -]) - dnl Sort the dirs alphabetically GALLIUM_TARGET_DIRS=`echo $GALLIUM_TARGET_DIRS|tr " " "\n"|sort -u|tr "\n" " "` GALLIUM_WINSYS_DIRS=`echo $GALLIUM_WINSYS_DIRS|tr " " "\n"|sort -u|tr "\n" " "` -- 2.30.2