diff --git a/configure b/configure index ef45a76..bf9eb42 100755 --- a/configure +++ b/configure @@ -584,24 +584,17 @@ PACKAGE_URL= ac_unique_file="src/security.ads" ac_subst_vars='LTLIBOBJS LIBOBJS +UTIL_DIR ADA_PRJ_BASE ADA_ALI_BASE ADA_LIB_BASE ADA_INC_BASE GPRINSTALL -UTIL_DIR +NR_CPUS BUILDS_COVERAGE MODE BUILDS_DISTRIB BUILDS_SHARED -HAVE_DYNAMO -HAVE_PANDOC -NR_CPUS -SECURITY_LIBDIR -SECURITY_MICRO_VERSION -SECURITY_MINOR_VERSION -SECURITY_MAJOR_VERSION -SECURITY_VERSION LN_S INSTALL_DATA INSTALL_SCRIPT @@ -611,6 +604,13 @@ GNATCLEAN GPRCLEAN GNATMAKE GPRBUILD +HAVE_DYNAMO +HAVE_PANDOC +SECURITY_LIBDIR +SECURITY_MICRO_VERSION +SECURITY_MINOR_VERSION +SECURITY_MAJOR_VERSION +SECURITY_VERSION target_os target_vendor target_cpu @@ -1881,6 +1881,188 @@ SECURITY_MINOR_VERSION=2 SECURITY_MICRO_VERSION=0 SECURITY_VERSION=$SECURITY_MAJOR_VERSION.$SECURITY_MINOR_VERSION.$SECURITY_MICRO_VERSION +# Set the version number of Ada Server Faces + + + + + +SECURITY_LIBDIR="lib" + + +# Extract the first word of "pandoc", so it can be a program name with args. +set dummy pandoc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_PANDOC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_PANDOC"; then + ac_cv_prog_HAVE_PANDOC="$HAVE_PANDOC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_HAVE_PANDOC="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_PANDOC=$ac_cv_prog_HAVE_PANDOC +if test -n "$HAVE_PANDOC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PANDOC" >&5 +$as_echo "$HAVE_PANDOC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "dynamo", so it can be a program name with args. +set dummy dynamo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_DYNAMO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_DYNAMO"; then + ac_cv_prog_HAVE_DYNAMO="$HAVE_DYNAMO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_HAVE_DYNAMO="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_DYNAMO=$ac_cv_prog_HAVE_DYNAMO +if test -n "$HAVE_DYNAMO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DYNAMO" >&5 +$as_echo "$HAVE_DYNAMO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +########################################## +# Check to enable/disable shared library +########################################## +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + + # checking for local tools for ac_prog in gprbuild do @@ -2065,8 +2247,7 @@ test -n "$GNATCLEAN" || GNATCLEAN="""" fi -# checking for local tools -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` @@ -2097,206 +2278,19 @@ $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi -# Set the version number of Ada Server Faces - - - - - -SECURITY_LIBDIR="lib" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of processors" >&5 -$as_echo_n "checking number of processors... " >&6; } -NR_CPUS=`getconf _NPROCESSORS_CONF 2>/dev/null || getconf NPROCESSORS_CONF 2>/dev/null || echo 1` -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NR_CPUS" >&5 -$as_echo "$NR_CPUS" >&6; } - - -# Extract the first word of "pandoc", so it can be a program name with args. -set dummy pandoc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_HAVE_PANDOC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$HAVE_PANDOC"; then - ac_cv_prog_HAVE_PANDOC="$HAVE_PANDOC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_HAVE_PANDOC="yes" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -HAVE_PANDOC=$ac_cv_prog_HAVE_PANDOC -if test -n "$HAVE_PANDOC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PANDOC" >&5 -$as_echo "$HAVE_PANDOC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "dynamo", so it can be a program name with args. -set dummy dynamo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_HAVE_DYNAMO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$HAVE_DYNAMO"; then - ac_cv_prog_HAVE_DYNAMO="$HAVE_DYNAMO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_HAVE_DYNAMO="yes" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -HAVE_DYNAMO=$ac_cv_prog_HAVE_DYNAMO -if test -n "$HAVE_DYNAMO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DYNAMO" >&5 -$as_echo "$HAVE_DYNAMO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - -########################################## -# Check to enable/disable shared library -########################################## - { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared library support" >&5 $as_echo_n "checking shared library support... " >&6; } ac_enable_shared=no @@ -2356,106 +2350,11 @@ $as_echo "${ac_enable_coverage}" >&6; } -########################################## -# Ada Util library -########################################## - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ada Utility Library" >&5 -$as_echo_n "checking Ada Utility Library... " >&6; } - -# Check whether --with-ada-util was given. -if test "${with_ada_util+set}" = set; then : - withval=$with_ada_util; - gnat_project_name_util=${withval}/ - if test -d "${withval}"; then - gnat_project_name_util=${withval}/util - fi - -else - - gnat_project_name_util=util - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying ${gnat_project_name_util}" >&5 -$as_echo "trying ${gnat_project_name_util}" >&6; } - - rm -f conftest.gpr - # Search in the GNAT project path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${gnat_project_name_util} project exists in gnatmake's search path" >&5 -$as_echo_n "checking whether ${gnat_project_name_util} project exists in gnatmake's search path... " >&6; } - echo "with \"${gnat_project_name_util}\"; project conftest is for Source_Dirs use (); end conftest;" > conftest.gpr - if { ac_try='gnat ls -Pconftest.gpr system.ads > /dev/null 2>conftest.out' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } - then - gnat_project_util=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - gnat_project_util=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - # Search in ../ada-util-*/util.gpr - files=`ls -r ../ada-util/util.gpr ../util/util.gpr ../ada-util-*/util.gpr 2>/dev/null` - for name in $files; do - dir=`dirname $name` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ada Utility Library project in ${dir}" >&5 -$as_echo_n "checking for Ada Utility Library project in ${dir}... " >&6; } - echo "with \"${name}\"; project conftest is for Source_Dirs use (); end conftest;" > conftest.gpr - if { ac_try='gnat ls -Pconftest.gpr system.ads > /dev/null 2>conftest.out' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 - (eval $ac_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } - then - gnat_project_util=yes - gnat_project_name_util=${name} - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - break - else - gnat_project_util=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - done - fi - rm -f conftest.gpr - if test x${gnat_project_util} = xyes; then - gnat_project_with_util="with \"${gnat_project_name_util}\";"; - gnat_project_dir_util=`dirname ${gnat_project_name_util}` - if test ${gnat_project_dir_util} = . ; then - gnat_project_dir_util= - else - gnat_project_dir_util="${gnat_project_dir_util}/" - fi - - UTIL_DIR=${gnat_project_dir_util} - - else - gnat_project_dir_util= - gnat_project_name_util= - if test x"Building Ada Security requires the Ada Utility Library." != x; then - as_fn_error $? "Building Ada Security requires the Ada Utility Library. - You should build and install the Ada Utility Library component. - It must be available and found by ${GNATMAKE}. - This project was not found in the ADA_PROJECT_PATH environment variable. - This project was not found in ../util nor in ../ada-util-*. - The component is available at git@github.com:stcarrez/ada-util.git. - Please, download and configure Ada Utility Library. - The current configuration was using: - ${GNATMAKE} - ADA_PROJECT_PATH=$ADA_PROJECT_PATH -" "$LINENO" 5 - fi - fi - + { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of processors" >&5 +$as_echo_n "checking number of processors... " >&6; } + NR_CPUS=`getconf _NPROCESSORS_CONF 2>/dev/null || getconf NPROCESSORS_CONF 2>/dev/null || echo 1` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NR_CPUS" >&5 +$as_echo "$NR_CPUS" >&6; } @@ -2885,6 +2784,115 @@ $as_echo "/${ADA_PRJ_BASE}" >&6; } fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking preparing for GNAT project security" >&5 +$as_echo_n "checking preparing for GNAT project security... " >&6; } + mkdir -p obj/security/static obj/security/relocatable lib/security/static lib/security/relocatable + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + + +########################################## +# Ada Util library +########################################## + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ada Utility Library" >&5 +$as_echo_n "checking Ada Utility Library... " >&6; } + +# Check whether --with-ada-util was given. +if test "${with_ada_util+set}" = set; then : + withval=$with_ada_util; + gnat_project_name_util=${withval}/ + if test -d "${withval}"; then + gnat_project_name_util=${withval}/util + fi + +else + + gnat_project_name_util=util + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying ${gnat_project_name_util}" >&5 +$as_echo "trying ${gnat_project_name_util}" >&6; } + + rm -f conftest.gpr + # Search in the GNAT project path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${gnat_project_name_util} project exists in gnatmake's search path" >&5 +$as_echo_n "checking whether ${gnat_project_name_util} project exists in gnatmake's search path... " >&6; } + echo "with \"${gnat_project_name_util}\"; project conftest is for Source_Dirs use (); end conftest;" > conftest.gpr + if { ac_try='gnat ls -Pconftest.gpr system.ads > /dev/null 2>conftest.out' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gnat_project_util=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + gnat_project_util=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + # Search in ../ada-util-*/util.gpr + files=`ls -r ../ada-util/util.gpr ../util/util.gpr ../ada-util-*/util.gpr 2>/dev/null` + for name in $files; do + dir=`dirname $name` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ada Utility Library project in ${dir}" >&5 +$as_echo_n "checking for Ada Utility Library project in ${dir}... " >&6; } + echo "with \"${name}\"; project conftest is for Source_Dirs use (); end conftest;" > conftest.gpr + if { ac_try='gnat ls -Pconftest.gpr system.ads > /dev/null 2>conftest.out' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gnat_project_util=yes + gnat_project_name_util=${name} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + break + else + gnat_project_util=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + done + fi + rm -f conftest.gpr + if test x${gnat_project_util} = xyes; then + gnat_project_with_util="with \"${gnat_project_name_util}\";"; + gnat_project_dir_util=`dirname ${gnat_project_name_util}` + if test ${gnat_project_dir_util} = . ; then + gnat_project_dir_util= + else + gnat_project_dir_util="${gnat_project_dir_util}/" + fi + + UTIL_DIR=${gnat_project_dir_util} + + else + gnat_project_dir_util= + gnat_project_name_util= + if test x"Building Ada Security requires the Ada Utility Library." != x; then + as_fn_error $? "Building Ada Security requires the Ada Utility Library. + You should build and install the Ada Utility Library component. + It must be available and found by ${GNATMAKE}. + This project was not found in the ADA_PROJECT_PATH environment variable. + This project was not found in ../util nor in ../ada-util-*. + The component is available at git@github.com:stcarrez/ada-util.git. + Please, download and configure Ada Utility Library. + The current configuration was using: + ${GNATMAKE} + ADA_PROJECT_PATH=$ADA_PROJECT_PATH +" "$LINENO" 5 + fi + fi + + + ac_config_files="$ac_config_files Makefile security.gpr security_tests.gpr distrib/security.gpr" cat >confcache <<\_ACEOF