chiark / gitweb /
PORT 22
[stressapptest] / configure
index 3f27d497a4d112ac4893c39665fa69e66c1f2394..985b54c4b48ad5e0f533709ee7ccdc76bb5d6fae 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.65 for stressapptest 1.0.4_autoconf.
+# Generated by GNU Autoconf 2.65 for stressapptest 1.0.7_autoconf.
 #
 # Report bugs to <opensource@google.com>.
 #
@@ -552,8 +552,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='stressapptest'
 PACKAGE_TARNAME='stressapptest'
-PACKAGE_VERSION='1.0.4_autoconf'
-PACKAGE_STRING='stressapptest 1.0.4_autoconf'
+PACKAGE_VERSION='1.0.7_autoconf'
+PACKAGE_STRING='stressapptest 1.0.7_autoconf'
 PACKAGE_BUGREPORT='opensource@google.com'
 PACKAGE_URL=''
 
@@ -646,10 +646,6 @@ am__isrc
 INSTALL_DATA
 INSTALL_SCRIPT
 INSTALL_PROGRAM
-target_os
-target_vendor
-target_cpu
-target
 host_os
 host_vendor
 host_cpu
@@ -701,6 +697,7 @@ ac_user_opts='
 enable_option_checking
 with_static
 enable_dependency_tracking
+enable_default_optimizations
 '
       ac_precious_vars='build_alias
 host_alias
@@ -1255,7 +1252,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures stressapptest 1.0.4_autoconf to adapt to many kinds of systems.
+\`configure' configures stressapptest 1.0.7_autoconf to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1320,13 +1317,12 @@ Program names:
 System types:
   --build=BUILD     configure for building on BUILD [guessed]
   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
-  --target=TARGET   configure for building compilers for TARGET [HOST]
 _ACEOF
 fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of stressapptest 1.0.4_autoconf:";;
+     short | recursive ) echo "Configuration of stressapptest 1.0.7_autoconf:";;
    esac
   cat <<\_ACEOF
 
@@ -1336,6 +1332,8 @@ Optional Features:
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --disable-dependency-tracking  speeds up one-time build
   --enable-dependency-tracking   do not reject slow dependency extractors
+  --disable-default-optimizations
+                          Disable default optimization flag overrides
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -1420,7 +1418,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-stressapptest configure 1.0.4_autoconf
+stressapptest configure 1.0.7_autoconf
 generated by GNU Autoconf 2.65
 
 Copyright (C) 2009 Free Software Foundation, Inc.
@@ -1976,7 +1974,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by stressapptest $as_me 1.0.4_autoconf, which was
+It was created by stressapptest $as_me 1.0.7_autoconf, which was
 generated by GNU Autoconf 2.65.  Invocation command line was
 
   $ $0 $@
@@ -2331,13 +2329,13 @@ if test "${with_static+set}" = set; then :
 fi
 
 
-if test "$with_static" == "yes"
+if test "$with_static" = "yes"
 then
-       { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with staticaly linked libraries." >&5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with staticaly linked libraries." >&5
 $as_echo "$as_me: Compiling with staticaly linked libraries." >&6;}
-       LIBS="$LIBS -static"
+  LIBS="$LIBS -static"
 else
-       { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with dynamically linked libraries." >&5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with dynamically linked libraries." >&5
 $as_echo "$as_me: Compiling with dynamically linked libraries." >&6;}
 fi
 
@@ -2435,105 +2433,80 @@ IFS=$ac_save_IFS
 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
 
-
 # Checking for target cpu and setting custom configuration
 # for the different platforms
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
-$as_echo_n "checking target system type... " >&6; }
-if test "${ac_cv_target+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "x$target_alias" = x; then
-  ac_cv_target=$ac_cv_host
-else
-  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
-    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
-$as_echo "$ac_cv_target" >&6; }
-case $ac_cv_target in
-*-*-*) ;;
-*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
-esac
-target=$ac_cv_target
-ac_save_IFS=$IFS; IFS='-'
-set x $ac_cv_target
-shift
-target_cpu=$1
-target_vendor=$2
-shift; shift
-# Remember, the first character of IFS is used to create $*,
-# except with old shells:
-target_os=$*
-IFS=$ac_save_IFS
-case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
+case "$host_cpu" in #(
+  *x86_64*) :
 
 
-# The aliases save the names the user supplied, while $host etc.
-# will get canonicalized.
-test -n "$target_alias" &&
-  test "$program_prefix$program_suffix$program_transform_name" = \
-    NONENONEs,x,x, &&
-  program_prefix=${target_alias}-
-case x"$target_cpu" in
-  "xx86_64")
-
 $as_echo "#define STRESSAPPTEST_CPU_X86_64 /**/" >>confdefs.h
 
-    ;;
-  "xi686")
+     ;; #(
+  *i686*) :
+
 
 $as_echo "#define STRESSAPPTEST_CPU_I686 /**/" >>confdefs.h
 
-    ;;
-  "xpowerpc")
+     ;; #(
+  *powerpc*) :
+
 
 $as_echo "#define STRESSAPPTEST_CPU_PPC /**/" >>confdefs.h
 
-    ;;
-  "xarmv7a")
+     ;; #(
+  *armv7a*) :
+
 
 $as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h
 
-    ;;
-  *)
-    as_fn_error "$target_cpu is not supported! Try x86_64, i686, powerpc, or armv7a" "$LINENO" 5
-    ;;
+     ;; #(
+  *aarch64*) :
+
+
+$as_echo "#define STRESSAPPTEST_CPU_AARCH64 /**/" >>confdefs.h
+
+     ;; #(
+  *) :
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&5
+$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&2;}
+ ;;
 esac
 
-_os=`uname`
 ## The following allows like systems to share settings. This is not meant to
 ## imply that these OS are the same thing. From OpenOffice dmake configure.in
-case "$_os" in
-  "Linux")
+case "$host_os" in #(
+  *linux*) :
+
     OS_VERSION=linux
 
 $as_echo "#define STRESSAPPTEST_OS_LINUX /**/" >>confdefs.h
 
-    ;;
-  "Darwin")
+     ;; #(
+  *darwin*) :
+
     OS_VERSION=macosx
 
 $as_echo "#define STRESSAPPTEST_OS_DARWIN /**/" >>confdefs.h
 
-    ;;
-  "FreeBSD")
+     ;; #(
+  *freebsd*) :
+
     OS_VERSION=bsd
 
 $as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
 
-    ;;
-  "NetBSD")
+     ;; #(
+  *netbsd*) :
+
     OS_VERSION=bsd
 
 $as_echo "#define STRESSAPPTEST_OS_BSD /**/" >>confdefs.h
 
-    ;;
-  *)
-    as_fn_error "$_os operating system is not suitable to build dmake!" "$LINENO" 5
-    ;;
+     ;; #(
+  *) :
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported system: $host_os" >&5
+$as_echo "$as_me: WARNING: unsupported system: $host_os" >&2;}
+ ;;
 esac
 
 am__api_version='1.11'
@@ -2974,7 +2947,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='stressapptest'
- VERSION='1.0.4_autoconf'
+ VERSION='1.0.7_autoconf'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -4412,10 +4385,19 @@ cat >>confdefs.h <<_ACEOF
 _ACEOF
 
 
-#Default cxxflags
-CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
-CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall -Wno-psabi"
-CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops  -funroll-loops -DNDEBUG"
+# Check whether --enable-default-optimizations was given.
+if test "${enable_default_optimizations+set}" = set; then :
+  enableval=$enable_default_optimizations;
+fi
+
+if test x"$enable_default_optimizations" != xno; then :
+
+    #Default cxxflags
+    CXXFLAGS="$CXXFLAGS -DCHECKOPTS"
+    CXXFLAGS="$CXXFLAGS -Wreturn-type -Wunused -Wuninitialized -Wall"
+    CXXFLAGS="$CXXFLAGS -O3 -funroll-all-loops  -funroll-loops -DNDEBUG"
+
+fi
 
 # Checks for header files.
 
@@ -5064,6 +5046,13 @@ if test "$ac_res" != no; then :
 
 fi
 
+ac_fn_c_check_type "$LINENO" "pthread_barrier_t" "ac_cv_type_pthread_barrier_t" "$ac_includes_default"
+if test "x$ac_cv_type_pthread_barrier_t" = x""yes; then :
+
+$as_echo "#define HAVE_PTHREAD_BARRIERS 1" >>confdefs.h
+
+fi
+
 for ac_header in libaio.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
@@ -5201,6 +5190,7 @@ if test "$ac_res" != no; then :
 fi
 
 
+
 # Checks for typedefs, structures, and compiler characteristics.
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
@@ -6455,7 +6445,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by stressapptest $as_me 1.0.4_autoconf, which was
+This file was extended by stressapptest $as_me 1.0.7_autoconf, which was
 generated by GNU Autoconf 2.65.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -6521,7 +6511,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-stressapptest config.status 1.0.4_autoconf
+stressapptest config.status 1.0.7_autoconf
 configured by $0, generated by GNU Autoconf 2.65,
   with options \\"\$ac_cs_config\\"