Source

cpython-withatomic / configure.in

The branch 'legacy-trunk' does not exist.
Diff from to

configure.in

 #ifdef _NEXT_SOURCE
 main() { exit(0); }
 #endif
-], AC_DEFINE(_POSIX_SOURCE) was_it_defined=yes)
+], AC_DEFINE(_POSIX_SOURCE)
+CC="$CC -posix"; was_it_defined=yes)
 AC_MSG_CHECKING(for NeXT)
 AC_MSG_RESULT($was_it_defined)
 
 if test -z "$CCSHARED"
 then
 	case $ac_sys_system in
-	hp*|HP*) CCSHARED="+z";;
+	hp*|HP*) if test "$GCC" = yes;
+		 then CCSHARED="-fpic";
+		 else CCSHARED="+z";
+		 fi;;
 	esac
 fi
 AC_MSG_RESULT($CCSHARED)