diff options
Diffstat (limited to '')
-rwxr-xr-x | configure | 41 |
1 files changed, 40 insertions, 1 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: configure,v 1.60 2002/02/03 06:23:37 ukai Exp $ +# $Id: configure,v 1.61 2002/02/04 15:18:41 ukai Exp $ # Configuration. # @@ -1421,6 +1421,23 @@ else def_have_getwd="#undef HAVE_GETWD" fi +####### symlink +cat > _zmachdep.c << EOF +main() +{ + char path[64],lpath[64]; + symlink(path,lpath); +} +EOF +if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +then + echo "You have symlink()." + def_have_symlink="#define HAVE_SYMLINK" +else + echo "You don't have symlink()." + def_have_symlink="#undef HAVE_SYMLINK" +fi + ####### readlink cat > _zmachdep.c << EOF main() @@ -1438,6 +1455,26 @@ else def_have_readlink="#undef HAVE_READLINK" fi +####### lstat +cat > _zmachdep.c << EOF +#include <sys/types.h> +#include <sys/stat.h> +main() +{ + struct stat st; + char path[64]; + lstat(path,&st); +} +EOF +if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 +then + echo "You have lstat()." + def_have_lstat="#define HAVE_LSTAT" +else + echo "You don't have lstat()." + def_have_lstat="#undef HAVE_LSTAT" +fi + ####### setenv cat > _zmachdep.c << EOF #include <stdlib.h> @@ -2136,7 +2173,9 @@ $def_have_wait3 $def_have_strftime $def_have_getcwd $def_have_getwd +$def_have_symlink $def_have_readlink +$def_have_lstat $def_have_setenv $def_have_putenv $def_have_srand48 |