diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 398 |
1 files changed, 381 insertions, 17 deletions
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for procenv 0.43. +# Generated by GNU Autoconf 2.69 for procenv 0.50. # # Report bugs to <jamesodhunt@ubuntu.com>. # @@ -11,7 +11,7 @@ # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # -# Copyright (C) 2012-2015 James Hunt <jamesodhunt@ubuntu.com> and Kees Cook <kees@ubuntu.com> +# Copyright (C) 2012-2017 James Hunt <jamesodhunt@ubuntu.com> and Kees Cook <kees@ubuntu.com> ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## @@ -582,8 +582,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='procenv' PACKAGE_TARNAME='procenv' -PACKAGE_VERSION='0.43' -PACKAGE_STRING='procenv 0.43' +PACKAGE_VERSION='0.50' +PACKAGE_STRING='procenv 0.50' PACKAGE_BUGREPORT='jamesodhunt@ubuntu.com' PACKAGE_URL='https://github.com/jamesodhunt/procenv' @@ -628,6 +628,23 @@ ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +procenv_platform +PROCENV_PLATFORM_GENERIC_FALSE +PROCENV_PLATFORM_GENERIC_TRUE +PROCENV_PLATFORM_MINIX_FALSE +PROCENV_PLATFORM_MINIX_TRUE +PROCENV_PLATFORM_LINUX_FALSE +PROCENV_PLATFORM_LINUX_TRUE +PROCENV_PLATFORM_OPENBSD_FALSE +PROCENV_PLATFORM_OPENBSD_TRUE +PROCENV_PLATFORM_NETBSD_FALSE +PROCENV_PLATFORM_NETBSD_TRUE +PROCENV_PLATFORM_HURD_FALSE +PROCENV_PLATFORM_HURD_TRUE +PROCENV_PLATFORM_FREEBSD_FALSE +PROCENV_PLATFORM_FREEBSD_TRUE +PROCENV_PLATFORM_DARWIN_FALSE +PROCENV_PLATFORM_DARWIN_TRUE AM_CFLAGS AM_BACKSLASH AM_DEFAULT_VERBOSITY @@ -681,6 +698,18 @@ PKG_CONFIG INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build EGREP GREP CPP @@ -711,6 +740,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -741,6 +771,7 @@ enable_compiler_optimisations enable_linker_optimisations enable_debug enable_reproducible_build +with_forced_driver ' ac_precious_vars='build_alias host_alias @@ -794,6 +825,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1046,6 +1078,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1183,7 +1224,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1296,7 +1337,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 procenv 0.43 to adapt to many kinds of systems. +\`configure' configures procenv 0.50 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1336,6 +1377,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1357,12 +1399,17 @@ Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed 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 procenv 0.43:";; + short | recursive ) echo "Configuration of procenv 0.50:";; esac cat <<\_ACEOF @@ -1387,6 +1434,13 @@ Optional Features: Disable display of build-time values that are guaranteed to differ between builds +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-forced-driver=... + Used to force a particular platform driver. Warning: + These aren't the droids you're looking for... + Some influential environment variables: CC C compiler command CFLAGS C compiler flags @@ -1472,14 +1526,14 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -procenv configure 0.43 +procenv configure 0.50 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. -Copyright (C) 2012-2015 James Hunt <jamesodhunt@ubuntu.com> and Kees Cook <kees@ubuntu.com> +Copyright (C) 2012-2017 James Hunt <jamesodhunt@ubuntu.com> and Kees Cook <kees@ubuntu.com> _ACEOF exit fi @@ -1897,7 +1951,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 procenv $as_me 0.43, which was +It was created by procenv $as_me 0.50, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2248,6 +2302,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + ac_config_headers="$ac_config_headers config.h" ac_aux_dir= @@ -2280,7 +2336,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. -PROCENV_VERSION=0.43 +PROCENV_VERSION=0.50 # Expand $ac_aux_dir to an absolute path. @@ -3795,6 +3851,118 @@ rm -rf conftest* fi +# expose $target +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; 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 + + +# 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}- + #--------------------------------------------------------------------- # Checks for programs. ac_ext=c @@ -4812,7 +4980,7 @@ fi # Checks for library functions. -for ac_func in clock_gettime getcwd localtime_r strcasecmp strchr strstr sched_getcpu +for ac_func in clock_gettime getcwd localtime_r strcasecmp strchr strstr sched_getcpu ttyname getresuid getresgid cpuset_alloc do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -5282,6 +5450,65 @@ else fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 +$as_echo_n "checking for library containing clock_gettime... " >&6; } +if ${ac_cv_search_clock_gettime+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char clock_gettime (); +int +main () +{ +return clock_gettime (); + ; + return 0; +} +_ACEOF +for ac_lib in '' rt; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_clock_gettime=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_clock_gettime+:} false; then : + break +fi +done +if ${ac_cv_search_clock_gettime+:} false; then : + +else + ac_cv_search_clock_gettime=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 +$as_echo "$ac_cv_search_clock_gettime" >&6; } +ac_res=$ac_cv_search_clock_gettime +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + HAVE_LIBRT=yes +else + HAVE_LIBRT=no +fi + + if test x$HAVE_APPARMOR = xtrue; then HAVE_APPARMOR_TRUE= HAVE_APPARMOR_FALSE='#' @@ -5797,7 +6024,7 @@ fi # Define the identity of the package. PACKAGE='procenv' - VERSION='0.43' + VERSION='0.50' cat >>confdefs.h <<_ACEOF @@ -6091,6 +6318,105 @@ $as_echo "#define PROCENV_REPRODUCIBLE_BUILD 1" >>confdefs.h fi + +# Check whether --with-forced_driver was given. +if test "${with_forced_driver+set}" = set; then : + withval=$with_forced_driver; +fi + + +target_to_consider="$target" + +if test "x$with_forced_driver" != "x"; then : + + target_to_consider="$withval" + +fi + +#--------------------------------------------------------------------- +# Determine platform + +case "$target_to_consider" in + *darwin*) procenv_platform=darwin;; + *freebsd*) procenv_platform=freebsd;; + + # BUG: FIXME: this test does not look reliable! + *hurd*|*unknown-gnu*) procenv_platform=hurd;; + + *linux*) procenv_platform=linux;; + *minix*) procenv_platform=minix;; + *netbsd*) procenv_platform=netbsd;; + *openbsd*) procenv_platform=openbsd;; + *) procenv_platform=unknown;; +esac + + if test "$procenv_platform" = darwin; then + PROCENV_PLATFORM_DARWIN_TRUE= + PROCENV_PLATFORM_DARWIN_FALSE='#' +else + PROCENV_PLATFORM_DARWIN_TRUE='#' + PROCENV_PLATFORM_DARWIN_FALSE= +fi + + if test "$procenv_platform" = freebsd; then + PROCENV_PLATFORM_FREEBSD_TRUE= + PROCENV_PLATFORM_FREEBSD_FALSE='#' +else + PROCENV_PLATFORM_FREEBSD_TRUE='#' + PROCENV_PLATFORM_FREEBSD_FALSE= +fi + + if test "$procenv_platform" = hurd; then + PROCENV_PLATFORM_HURD_TRUE= + PROCENV_PLATFORM_HURD_FALSE='#' +else + PROCENV_PLATFORM_HURD_TRUE='#' + PROCENV_PLATFORM_HURD_FALSE= +fi + + if test "$procenv_platform" = netbsd; then + PROCENV_PLATFORM_NETBSD_TRUE= + PROCENV_PLATFORM_NETBSD_FALSE='#' +else + PROCENV_PLATFORM_NETBSD_TRUE='#' + PROCENV_PLATFORM_NETBSD_FALSE= +fi + + if test "$procenv_platform" = openbsd; then + PROCENV_PLATFORM_OPENBSD_TRUE= + PROCENV_PLATFORM_OPENBSD_FALSE='#' +else + PROCENV_PLATFORM_OPENBSD_TRUE='#' + PROCENV_PLATFORM_OPENBSD_FALSE= +fi + + if test "$procenv_platform" = linux; then + PROCENV_PLATFORM_LINUX_TRUE= + PROCENV_PLATFORM_LINUX_FALSE='#' +else + PROCENV_PLATFORM_LINUX_TRUE='#' + PROCENV_PLATFORM_LINUX_FALSE= +fi + + if test "$procenv_platform" = minix; then + PROCENV_PLATFORM_MINIX_TRUE= + PROCENV_PLATFORM_MINIX_FALSE='#' +else + PROCENV_PLATFORM_MINIX_TRUE='#' + PROCENV_PLATFORM_MINIX_FALSE= +fi + + if test "$procenv_platform" = unknown; then + PROCENV_PLATFORM_GENERIC_TRUE= + PROCENV_PLATFORM_GENERIC_FALSE='#' +else + PROCENV_PLATFORM_GENERIC_TRUE='#' + PROCENV_PLATFORM_GENERIC_FALSE= +fi + + + + #--------------------------------------------------------------------- # XXX: Dump details of the preprocess/compiler/linker *NOW* so that if # procenv fails to build later, the build logs will show details of the @@ -6271,6 +6597,38 @@ else am__EXEEXT_FALSE= fi +if test -z "${PROCENV_PLATFORM_DARWIN_TRUE}" && test -z "${PROCENV_PLATFORM_DARWIN_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_DARWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${PROCENV_PLATFORM_FREEBSD_TRUE}" && test -z "${PROCENV_PLATFORM_FREEBSD_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_FREEBSD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${PROCENV_PLATFORM_HURD_TRUE}" && test -z "${PROCENV_PLATFORM_HURD_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_HURD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${PROCENV_PLATFORM_NETBSD_TRUE}" && test -z "${PROCENV_PLATFORM_NETBSD_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_NETBSD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${PROCENV_PLATFORM_OPENBSD_TRUE}" && test -z "${PROCENV_PLATFORM_OPENBSD_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_OPENBSD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${PROCENV_PLATFORM_LINUX_TRUE}" && test -z "${PROCENV_PLATFORM_LINUX_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_LINUX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${PROCENV_PLATFORM_MINIX_TRUE}" && test -z "${PROCENV_PLATFORM_MINIX_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_MINIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${PROCENV_PLATFORM_GENERIC_TRUE}" && test -z "${PROCENV_PLATFORM_GENERIC_FALSE}"; then + as_fn_error $? "conditional \"PROCENV_PLATFORM_GENERIC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -6668,7 +7026,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 procenv $as_me 0.43, which was +This file was extended by procenv $as_me 0.50, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -6735,7 +7093,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="\\ -procenv config.status 0.43 +procenv config.status 0.50 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -7598,9 +7956,12 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: Configure settings for $PACKAGE_NAME version $VERSION + Build platform : $procenv_platform Reproducible build : ${reproducible_build} Debug build : ${DEBUG_BUILD} - Check Unit Test Framework : ${HAVE_CHECK} + Check unit test framework : ${HAVE_CHECK} + + Libraries: libapparmor : ${HAVE_APPARMOR} libselinux : ${HAVE_SELINUX} @@ -7612,9 +7973,12 @@ fi $as_echo " Configure settings for $PACKAGE_NAME version $VERSION + Build platform : $procenv_platform Reproducible build : ${reproducible_build} Debug build : ${DEBUG_BUILD} - Check Unit Test Framework : ${HAVE_CHECK} + Check unit test framework : ${HAVE_CHECK} + + Libraries: libapparmor : ${HAVE_APPARMOR} libselinux : ${HAVE_SELINUX} |