Check for files in the source directory, not the build directory
This commit is contained in:
parent
a31140524a
commit
813ad010f6
|
@ -1,5 +1,9 @@
|
||||||
Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
|
* configure.in (--enable-sim-{opcode,config}): Use $srcdir when
|
||||||
|
check for the existence of files.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
* table.c (table): New field nr_model_fields.
|
* table.c (table): New field nr_model_fields.
|
||||||
(table_open): New parameter nr_model_fields.
|
(table_open): New parameter nr_model_fields.
|
||||||
(table_entry_read): Parse model fields that begin with a '*' after
|
(table_entry_read): Parse model fields that begin with a '*' after
|
||||||
|
|
|
@ -486,9 +486,9 @@ enableval="$enable_sim_config"
|
||||||
if test -n "$enableval"; then
|
if test -n "$enableval"; then
|
||||||
case "${enableval}" in
|
case "${enableval}" in
|
||||||
yes|no) { echo "configure: error: "No value supplied for --enable-sim-config=file"" 1>&2; exit 1; };;
|
yes|no) { echo "configure: error: "No value supplied for --enable-sim-config=file"" 1>&2; exit 1; };;
|
||||||
*) if test -f "${enableval}"; then
|
*) if test -f "${srcdir}/${enableval}"; then
|
||||||
sim_config="${enableval}";
|
sim_config="${enableval}";
|
||||||
elif test -f "${enableval}-config.h"; then
|
elif test -f "${srcdir}/${enableval}-config.h"; then
|
||||||
sim_config="${enableval}-config.h"
|
sim_config="${enableval}-config.h"
|
||||||
else
|
else
|
||||||
{ echo "configure: error: "Config file $enableval was not found"" 1>&2; exit 1; };
|
{ echo "configure: error: "Config file $enableval was not found"" 1>&2; exit 1; };
|
||||||
|
@ -510,9 +510,9 @@ enableval="$enable_sim_opcode"
|
||||||
if test -n "$enableval"; then
|
if test -n "$enableval"; then
|
||||||
case "${enableval}" in
|
case "${enableval}" in
|
||||||
yes|no) { echo "configure: error: "No value supplied for --enable-sim-opcode=file"" 1>&2; exit 1; };;
|
yes|no) { echo "configure: error: "No value supplied for --enable-sim-opcode=file"" 1>&2; exit 1; };;
|
||||||
*) if test -f "${enableval}"; then
|
*) if test -f "${srcdir}/${enableval}"; then
|
||||||
sim_opcode="${enableval}"
|
sim_opcode="${enableval}"
|
||||||
elif test -f "ppc-opcode-${enableval}"; then
|
elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
|
||||||
sim_opcode="ppc-opcode-${enableval}"
|
sim_opcode="ppc-opcode-${enableval}"
|
||||||
else
|
else
|
||||||
{ echo "configure: error: "File $enableval is not an opcode rules file"" 1>&2; exit 1; };
|
{ echo "configure: error: "File $enableval is not an opcode rules file"" 1>&2; exit 1; };
|
||||||
|
|
|
@ -28,9 +28,9 @@ AC_ARG_ENABLE(sim-config,
|
||||||
[ --enable-sim-config=file Override default config file],
|
[ --enable-sim-config=file Override default config file],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-config=file");;
|
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-config=file");;
|
||||||
*) if test -f "${enableval}"; then
|
*) if test -f "${srcdir}/${enableval}"; then
|
||||||
sim_config="${enableval}";
|
sim_config="${enableval}";
|
||||||
elif test -f "${enableval}-config.h"; then
|
elif test -f "${srcdir}/${enableval}-config.h"; then
|
||||||
sim_config="${enableval}-config.h"
|
sim_config="${enableval}-config.h"
|
||||||
else
|
else
|
||||||
AC_MSG_ERROR("Config file $enableval was not found");
|
AC_MSG_ERROR("Config file $enableval was not found");
|
||||||
|
@ -48,9 +48,9 @@ AC_ARG_ENABLE(sim-opcode,
|
||||||
[ --enable-sim-opcode=which Override default opcode lookup.],
|
[ --enable-sim-opcode=which Override default opcode lookup.],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-opcode=file");;
|
yes|no) AC_MSG_ERROR("No value supplied for --enable-sim-opcode=file");;
|
||||||
*) if test -f "${enableval}"; then
|
*) if test -f "${srcdir}/${enableval}"; then
|
||||||
sim_opcode="${enableval}"
|
sim_opcode="${enableval}"
|
||||||
elif test -f "ppc-opcode-${enableval}"; then
|
elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
|
||||||
sim_opcode="ppc-opcode-${enableval}"
|
sim_opcode="ppc-opcode-${enableval}"
|
||||||
else
|
else
|
||||||
AC_MSG_ERROR("File $enableval is not an opcode rules file");
|
AC_MSG_ERROR("File $enableval is not an opcode rules file");
|
||||||
|
|
Loading…
Reference in New Issue