168 } |
168 } |
169 |
169 |
170 |
170 |
171 # generate vars.mk |
171 # generate vars.mk |
172 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
172 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
173 PREFIX=$PREFIX |
173 PREFIX="$PREFIX" |
174 EPREFIX=$EPREFIX |
174 EPREFIX="$EPREFIX" |
175 BINDIR=$BINDIR |
175 BINDIR="$BINDIR" |
176 SBINDIR=$SBINDIR |
176 SBINDIR="$SBINDIR" |
177 LIBDIR=$LIBDIR |
177 LIBDIR="$LIBDIR" |
178 LIBEXECDIR=$LIBEXECDIR |
178 LIBEXECDIR="$LIBEXECDIR" |
179 DATADIR=$DATADIR |
179 DATADIR="$DATADIR" |
180 SYSCONFDIR=$SYSCONFDIR |
180 SYSCONFDIR="$SYSCONFDIR" |
181 SHAREDSTATEDIR=$SHAREDSTATEDIR |
181 SHAREDSTATEDIR="$SHAREDSTATEDIR" |
182 LOCALSTATEDIR=$LOCALSTATEDIR |
182 LOCALSTATEDIR="$LOCALSTATEDIR" |
183 INCLUDEDIR=$INCLUDEDIR |
183 INCLUDEDIR="$INCLUDEDIR" |
184 INFODIR=$INFODIR |
184 INFODIR="$INFODIR" |
185 MANDIR=$MANDIR |
185 MANDIR="$MANDIR" |
186 HOST=$HOST |
186 HOST="$HOST" |
187 PREFIX=$PREFIX |
187 PREFIX="$PREFIX" |
188 INSTALL_DIR=$INSTALL_DIR |
188 INSTALL_DIR="$INSTALL_DIR" |
189 __EOF__ |
189 __EOF__ |
190 sort -u -o "$TEMP_DIR/vars.mk" "$TEMP_DIR/vars.mk" |
190 sort -u -o "$TEMP_DIR/vars.mk" "$TEMP_DIR/vars.mk" |
191 |
191 |
192 |
192 |
193 # toolchain detection utilities |
193 # toolchain detection utilities |