Mercurial > mxe-octave
comparison configure.ac @ 4197:667aa26d9dd4
* configure.ac: Don't use undefined in default definition of PKG_DIR.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 30 Aug 2016 06:28:31 -0400 |
parents | 3262d92eff57 |
children | 44b1a9b2193e |
comparison
equal
deleted
inserted
replaced
4196:4a414e5b16a4 | 4197:667aa26d9dd4 |
---|---|
51 SHELL=$with_shell | 51 SHELL=$with_shell |
52 ;; | 52 ;; |
53 esac | 53 esac |
54 AC_SUBST(SHELL) | 54 AC_SUBST(SHELL) |
55 | 55 |
56 PKG_DIR="$abs_srcdir/pkg" | 56 PKG_DIR="pkg" |
57 AC_ARG_WITH([pkg-dir], | 57 AC_ARG_WITH([pkg-dir], |
58 [AS_HELP_STRING([--with-pkg-dir=DIR], | 58 [AS_HELP_STRING([--with-pkg-dir=DIR], |
59 [use DIR as the location for downloaded packages (default: pkg)])]) | 59 [use DIR as the location for downloaded packages (default: pkg)])]) |
60 case $with_pkg_dir in | 60 case $with_pkg_dir in |
61 no) | 61 no) |
63 ;; | 63 ;; |
64 yes | "") | 64 yes | "") |
65 ;; | 65 ;; |
66 *) | 66 *) |
67 PKG_DIR="$withval" | 67 PKG_DIR="$withval" |
68 ## Ensure directory exists and that we refer to it using an absolute name | |
69 if ! test -d "$PKG_DIR"; then | |
70 mkdir -p "$PKG_DIR" | |
71 fi | |
72 PKG_DIR=`(cd "$PKG_DIR"; pwd)` | |
73 ;; | 68 ;; |
74 esac | 69 esac |
70 ## Ensure directory exists and that we refer to it using an absolute name | |
71 if ! test -d "$PKG_DIR"; then | |
72 mkdir -p "$PKG_DIR" | |
73 fi | |
74 PKG_DIR=`(cd "$PKG_DIR"; pwd)` | |
75 AC_SUBST(PKG_DIR) | 75 AC_SUBST(PKG_DIR) |
76 | 76 |
77 USE_CCACHE=no | 77 USE_CCACHE=no |
78 AC_ARG_WITH([ccache], | 78 AC_ARG_WITH([ccache], |
79 [AS_HELP_STRING([--with-ccache], [use ccache (default: no)])], | 79 [AS_HELP_STRING([--with-ccache], [use ccache (default: no)])], |