diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-06-27 15:37:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-06-27 15:37:48 +0000 |
commit | e3c0e00bb155377b845c4b1470eba36a206fe908 (patch) | |
tree | e9cca164c0e263fc62eb9dcc9b56aaf647fc7f3c /gprof/configure | |
parent | 5304aea938084c9c4296b612257d3b8490857f7f (diff) | |
download | gdb-e3c0e00bb155377b845c4b1470eba36a206fe908.zip gdb-e3c0e00bb155377b845c4b1470eba36a206fe908.tar.gz gdb-e3c0e00bb155377b845c4b1470eba36a206fe908.tar.bz2 |
* configure.in: Call AC_ISC_POSIX.
* configure: Rebuild.
* Makefile.in (gprof): Pass $(CFLAGS) during link.
* hertz.c: Don't include <sys/time.h>; let sysdep.h handle that.
If HAVE_SETITIMER is not defined, try using sysconf.
Diffstat (limited to 'gprof/configure')
-rwxr-xr-x | gprof/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gprof/configure b/gprof/configure index 3cbf609..e1aed82 100755 --- a/gprof/configure +++ b/gprof/configure @@ -728,6 +728,27 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 +if test -d /etc/conf/kconfig.d && + grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 +then + echo "$ac_t""yes" 1>&6 + ISC=yes # If later tests want to check for ISC. + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + if test "$GCC" = yes; then + CC="$CC -posix" + else + CC="$CC -Xp" + fi +else + echo "$ac_t""no" 1>&6 + ISC= +fi + + # Do some error checking and defaulting for the host and target type. # The inputs are: |