summaryrefslogtreecommitdiffstats
path: root/llvm/projects/sample
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-02-24 18:53:47 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-02-24 18:53:47 +0000
commit206bed0b97e86a50597491a63424609026d54d4c (patch)
tree219b51600b04c41f7090fc45c65b03e3455983f5 /llvm/projects/sample
parent51d736301ac4fe5103ad42d440e7f08f2feabe60 (diff)
downloadbcm5719-llvm-206bed0b97e86a50597491a63424609026d54d4c.tar.gz
bcm5719-llvm-206bed0b97e86a50597491a63424609026d54d4c.zip
Update to reflect various changes in the autoconf directory. THe
recommended configuration of projects is now much simplified and depends on LLVM file presence rather than local project file presence. llvm-svn: 20312
Diffstat (limited to 'llvm/projects/sample')
-rwxr-xr-xllvm/projects/sample/configure72
1 files changed, 38 insertions, 34 deletions
diff --git a/llvm/projects/sample/configure b/llvm/projects/sample/configure
index 8a731150687..2efb85397b7 100755
--- a/llvm/projects/sample/configure
+++ b/llvm/projects/sample/configure
@@ -1238,7 +1238,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_aux_dir=
-for ac_dir in autoconf $srcdir/autoconf; do
+for ac_dir in ../../autoconf $srcdir/../../autoconf; do
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
@@ -1254,8 +1254,8 @@ for ac_dir in autoconf $srcdir/autoconf; do
fi
done
if test -z "$ac_aux_dir"; then
- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
-echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../autoconf $srcdir/../../autoconf" >&5
+echo "$as_me: error: cannot find install-sh or install.sh in ../../autoconf $srcdir/../../autoconf" >&2;}
{ (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
@@ -1263,57 +1263,59 @@ ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
- ac_config_files="$ac_config_files Makefile.common"
+# Check whether --with-llvmsrc or --without-llvmsrc was given.
+if test "${with_llvmsrc+set}" = set; then
+ withval="$with_llvmsrc"
+ llvm_src="$withval"
+else
+ llvm_src=`cd ${srcdir}/../..; pwd`
+fi;
+ LLVM_SRC=$llvm_src
- ac_config_commands="$ac_config_commands Makefile"
+# Check whether --with-llvmobj or --without-llvmobj was given.
+if test "${with_llvmobj+set}" = set; then
+ withval="$with_llvmobj"
+ llvm_obj="$withval"
+else
+ llvm_obj=`cd ../..; pwd`
+fi;
+ LLVM_OBJ=$llvm_obj
+ ac_config_commands="$ac_config_commands setup"
- ac_config_commands="$ac_config_commands lib/Makefile"
- ac_config_commands="$ac_config_commands lib/sample/Makefile"
- ac_config_commands="$ac_config_commands tools/Makefile"
+ ac_config_files="$ac_config_files Makefile.common"
- ac_config_commands="$ac_config_commands tools/sample/Makefile"
-
+ ac_config_commands="$ac_config_commands Makefile"
+ ac_config_commands="$ac_config_commands lib/Makefile"
+ ac_config_commands="$ac_config_commands lib/sample/Makefile"
+ ac_config_commands="$ac_config_commands tools/Makefile"
+ ac_config_commands="$ac_config_commands tools/sample/Makefile"
-# Check whether --with-llvmsrc or --without-llvmsrc was given.
-if test "${with_llvmsrc+set}" = set; then
- withval="$with_llvmsrc"
- LLVM_SRC=$withval
-else
- LLVM_SRC=`cd ${srcdir}/../..; pwd`
-fi;
-# Check whether --with-llvmobj or --without-llvmobj was given.
-if test "${with_llvmobj+set}" = set; then
- withval="$with_llvmobj"
- LLVM_OBJ=$withval
-else
- LLVM_OBJ=`cd ../..; pwd`
-fi;
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -1864,11 +1866,7 @@ cat >>$CONFIG_STATUS <<_ACEOF
# INIT-COMMANDS section.
#
-${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
-${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
-${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
-${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
-${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
+llvm_src="${LLVM_SRC}"
_ACEOF
@@ -1880,6 +1878,7 @@ do
case "$ac_config_target" in
# Handling of arguments.
"Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
+ "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
"Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
"lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
"lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
@@ -2320,11 +2319,16 @@ esac
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
case $ac_dest in
- Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
- lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
- lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
- tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
- tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
+ Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
+ ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
+ lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
+ ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
+ lib/sample/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
+ ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
+ tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
+ ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
+ tools/sample/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
+ ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
esac
done
_ACEOF
OpenPOWER on IntegriCloud