Minor fixes to get-abc script and configure stuff.
authorMorgan Deters <mdeters@cs.nyu.edu>
Mon, 16 Jun 2014 20:40:56 +0000 (16:40 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 16 Jun 2014 21:26:34 +0000 (17:26 -0400)
config/abc.m4
contrib/get-abc

index d86b2f465c6025c798e1a7e7ea4a5f1d8de0d828..0d91a36a5d0161f5e54ec0dfcefe05d7801eb96b 100644 (file)
@@ -6,6 +6,7 @@ AC_MSG_CHECKING([whether user requested abc support])
 LIBABC=
 have_libabc=0
 ABC_LIBS=
+ABC_LDFLAGS=
 if test "$with_abc" = no; then
   AC_MSG_RESULT([no, abc disabled by user])
 elif test "$with_abc" = yes; then
index f5a39703995e0a130417bf38a7afd3e3fd0f0a2a..8e04ca655290aaa456e0171271c7e09e649d94b0 100755 (executable)
@@ -27,12 +27,12 @@ function webget {
   fi
 }
 
-if [ -z "${MACHINE_TYPE}" ]; then
-  # get first nibble from config.guess (x86_64, i686, ...)
-  MACHINE_TYPE=`config/config.guess | sed 's,-.*,,'`
+if [ -e abc ]; then
+  echo 'error: file or directory "abc" exists; please move it out of the way.' >&2
+  exit 1
 fi
 
-mkdir -p abc
+mkdir abc
 cd abc
 webget https://bitbucket.org/alanmi/abc/get/$commit.tar.gz abc-$commit.tar.gz
 gunzip -f abc-$commit.tar.gz