'test -e' is not supported on Solaris, replace with '-f' or '-d'.

This commit is contained in:
Francois Gouget 2002-01-29 17:52:28 +00:00 committed by Alexandre Julliard
parent 815997ffe0
commit 42dcd97e4c
6 changed files with 7 additions and 7 deletions

2
configure vendored
View File

@ -3861,7 +3861,7 @@ done
if test $OPENGL = "yes" -o $OPENGL = "normal"
then
if test -e /usr/X11R6/lib/libGL.a -a ! -e /usr/X11R6/lib/libGL.so
if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
then
{ echo "configure: error: /usr/X11R6/lib/libGL.a is present on your system.
This prevents linking to OpenGL. Delete the file and restart configure." 1>&2; exit 1; }

View File

@ -265,7 +265,7 @@ then
dnl Check for the presence of OpenGL
if test $OPENGL = "yes" -o $OPENGL = "normal"
then
if test -e /usr/X11R6/lib/libGL.a -a ! -e /usr/X11R6/lib/libGL.so
if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
then
AC_MSG_ERROR([/usr/X11R6/lib/libGL.a is present on your system.
This prevents linking to OpenGL. Delete the file and restart configure.])

View File

@ -12,12 +12,12 @@
## $LINUXDIST holds the name of the distribution
## $JADETAG adds "/#html" to the stylesheet-specification in the Jade
## command line (see comments below), if necessary for that dist.
if [ -e /etc/debian_version ]; then
if [ -f /etc/debian_version ]; then
LINUXDIST="Debian"
JADETAG=\#html
fi
if [ -e /etc/redhat_release ]; then
if [ -f /etc/redhat_release ]; then
LINUXDIST="Redhat"
JADETAG=
fi

View File

@ -20,7 +20,7 @@
WWWDIR=www.winehq.com
## Want to put this into a sub-directory for easier maintenance
if [ -e "$WWWDIR" ]; then
if [ -d "$WWWDIR" -o -f "$WWWDIR" ]; then
rm -rf "$WWWDIR.old"
mv "$WWWDIR" "$WWWDIR".old
fi

View File

@ -392,7 +392,7 @@ $(hello_SPEC_SRCS:.spec=.spec.c): $(hello_SPEC_SRCS:.spec) $(hello_SPEC_SRCS:.sp
hello.so: $(hello_SPEC_SRCS:.spec=.spec.o) $(hello_OBJS) $(hello_DEP
ENDS)
$(LDSHARED) $(LDDLLFLAGS) -o $@ $(hello_OBJS) $(hello_SPEC_SRCS:.spec=.spec.o) $(hello_LIBRARY_PATH) $(hello_LIBRARIES:%=-l%) $(DLL_LINK) $(LIBS)
test -e hello || $(LN_S) $(WINE) hello
test -f hello || $(LN_S) $(WINE) hello
</programlisting>
<para>
Then come additional directives to link the executables and

View File

@ -1951,7 +1951,7 @@ sub generate_project_files
}
print FILEO " \$(LDDLLFLAGS) -o \$\@ \$(${canon}_OBJS) \$(${canon}_SPEC_SRCS:.spec=.spec.o) \$(${canon}_LIBRARY_PATH) \$(${canon}_LIBRARIES:%=-l%) \$(DLL_LINK) \$(LIBS)\n";
if (@$target[$T_TYPE] ne $TT_DLL) {
print FILEO "\ttest -e @$target[$T_NAME] || \$(LN_S) \$(WINE) @$target[$T_NAME]\n";
print FILEO "\ttest -f @$target[$T_NAME] || \$(LN_S) \$(WINE) @$target[$T_NAME]\n";
}
print FILEO "\n\n";
}