-e is better than -f (in case of symbolic links)
Rafael Garcia-Suarez [Thu, 15 Nov 2007 07:18:02 +0000 (07:18 +0000)]
p4raw-id: //depot/perl@32322

ext/ODBM_File/hints/linux.pl

index 43b59df..ccccce0 100644 (file)
@@ -3,6 +3,6 @@ $self->{LIBS} = ['-lgdbm'];
 
 # Debian/Ubuntu have /usr/lib/libgdbm_compat.so.3* but not this file,
 # so linking may fail
-if (-f '/usr/lib/libgdbm_compat.so') {
+if (-e '/usr/lib/libgdbm_compat.so') {
     $self->{LIBS}->[0] .= ' -lgdbm_compat';
 }