aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-27 15:37:48 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-27 15:37:48 +0000
commite3c0e00bb155377b845c4b1470eba36a206fe908 (patch)
treee9cca164c0e263fc62eb9dcc9b56aaf647fc7f3c /gprof/configure
parent5304aea938084c9c4296b612257d3b8490857f7f (diff)
downloadgdb-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-xgprof/configure21
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: