Changeset bcd74f3 for libcfa/configure


Ignore:
Timestamp:
May 8, 2020, 4:44:53 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
5c9b20c
Parents:
e3bc51c (diff), 0e7e3c17 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into new-ast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure

    re3bc51c rbcd74f3  
    790790enable_distcc
    791791with_cfa_name
     792enable_static
    792793enable_shared
    793 enable_static
    794794with_pic
    795795enable_fast_install
     
    14521452  --disable-silent-rules  verbose build output (undo: "make V=0")
    14531453  --enable-distcc     whether or not to enable distributed compilation
     1454  --enable-static[=PKGS]  build static libraries [default=no]
    14541455  --enable-shared[=PKGS]  build shared libraries [default=yes]
    1455   --enable-static[=PKGS]  build static libraries [default=yes]
    14561456  --enable-fast-install[=PKGS]
    14571457                          optimize for fast installation [default=yes]
     
    19601960
    19611961} # ac_fn_cxx_try_link
     1962
     1963# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1964# -------------------------------------------------------
     1965# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1966# the include files in INCLUDES and setting the cache variable VAR
     1967# accordingly.
     1968ac_fn_c_check_header_mongrel ()
     1969{
     1970  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1971  if eval \${$3+:} false; then :
     1972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1973$as_echo_n "checking for $2... " >&6; }
     1974if eval \${$3+:} false; then :
     1975  $as_echo_n "(cached) " >&6
     1976fi
     1977eval ac_res=\$$3
     1978               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1979$as_echo "$ac_res" >&6; }
     1980else
     1981  # Is the header compilable?
     1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1983$as_echo_n "checking $2 usability... " >&6; }
     1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1985/* end confdefs.h.  */
     1986$4
     1987#include <$2>
     1988_ACEOF
     1989if ac_fn_c_try_compile "$LINENO"; then :
     1990  ac_header_compiler=yes
     1991else
     1992  ac_header_compiler=no
     1993fi
     1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1996$as_echo "$ac_header_compiler" >&6; }
     1997
     1998# Is the header present?
     1999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     2000$as_echo_n "checking $2 presence... " >&6; }
     2001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2002/* end confdefs.h.  */
     2003#include <$2>
     2004_ACEOF
     2005if ac_fn_c_try_cpp "$LINENO"; then :
     2006  ac_header_preproc=yes
     2007else
     2008  ac_header_preproc=no
     2009fi
     2010rm -f conftest.err conftest.i conftest.$ac_ext
     2011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     2012$as_echo "$ac_header_preproc" >&6; }
     2013
     2014# So?  What about this header?
     2015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     2016  yes:no: )
     2017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     2018$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     2020$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     2021    ;;
     2022  no:yes:* )
     2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     2024$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     2026$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     2028$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     2030$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     2031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     2032$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     2033( $as_echo "## --------------------------------------- ##
     2034## Report this to cforall@plg.uwaterloo.ca ##
     2035## --------------------------------------- ##"
     2036     ) | sed "s/^/$as_me: WARNING:     /" >&2
     2037    ;;
     2038esac
     2039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2040$as_echo_n "checking for $2... " >&6; }
     2041if eval \${$3+:} false; then :
     2042  $as_echo_n "(cached) " >&6
     2043else
     2044  eval "$3=\$ac_header_compiler"
     2045fi
     2046eval ac_res=\$$3
     2047               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2048$as_echo "$ac_res" >&6; }
     2049fi
     2050  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2051
     2052} # ac_fn_c_check_header_mongrel
    19622053cat >config.log <<_ACEOF
    19632054This file contains any messages produced by compilers while
     
    79398030
    79408031# Set options
     8032# Check whether --enable-static was given.
     8033if test "${enable_static+set}" = set; then :
     8034  enableval=$enable_static; p=${PACKAGE-default}
     8035    case $enableval in
     8036    yes) enable_static=yes ;;
     8037    no) enable_static=no ;;
     8038    *)
     8039     enable_static=no
     8040      # Look at the argument we got.  We use all the common list separators.
     8041      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
     8042      for pkg in $enableval; do
     8043        IFS=$lt_save_ifs
     8044        if test "X$pkg" = "X$p"; then
     8045          enable_static=yes
     8046        fi
     8047      done
     8048      IFS=$lt_save_ifs
     8049      ;;
     8050    esac
     8051else
     8052  enable_static=no
     8053fi
     8054
     8055
     8056
     8057
     8058
     8059
     8060
    79418061
    79428062
     
    79718091fi
    79728092
    7973 
    7974 
    7975 
    7976 
    7977 
    7978 
    7979 
    7980 
    7981   # Check whether --enable-static was given.
    7982 if test "${enable_static+set}" = set; then :
    7983   enableval=$enable_static; p=${PACKAGE-default}
    7984     case $enableval in
    7985     yes) enable_static=yes ;;
    7986     no) enable_static=no ;;
    7987     *)
    7988      enable_static=no
    7989       # Look at the argument we got.  We use all the common list separators.
    7990       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
    7991       for pkg in $enableval; do
    7992         IFS=$lt_save_ifs
    7993         if test "X$pkg" = "X$p"; then
    7994           enable_static=yes
    7995         fi
    7996       done
    7997       IFS=$lt_save_ifs
    7998       ;;
    7999     esac
    8000 else
    8001   enable_static=yes
    8002 fi
    80038093
    80048094
     
    1685916949
    1686016950
     16951for ac_header in linux/io_uring.h
     16952do :
     16953  ac_fn_c_check_header_mongrel "$LINENO" "linux/io_uring.h" "ac_cv_header_linux_io_uring_h" "$ac_includes_default"
     16954if test "x$ac_cv_header_linux_io_uring_h" = xyes; then :
     16955  cat >>confdefs.h <<_ACEOF
     16956#define HAVE_LINUX_IO_URING_H 1
     16957_ACEOF
     16958
     16959fi
     16960
     16961done
     16962
     16963for ac_func in preadv2 pwritev2
     16964do :
     16965  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     16966ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     16967if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     16968  cat >>confdefs.h <<_ACEOF
     16969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     16970_ACEOF
     16971
     16972fi
     16973done
     16974
     16975
    1686116976ac_config_files="$ac_config_files Makefile src/Makefile prelude/Makefile"
     16977
     16978
     16979ac_config_headers="$ac_config_headers prelude/defines.hfa"
    1686216980
    1686316981
     
    1695217070test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    1695317071
    16954 # Transform confdefs.h into DEFS.
    16955 # Protect against shell expansion while executing Makefile rules.
    16956 # Protect against Makefile macro expansion.
    16957 #
    16958 # If the first sed substitution is executed (which looks for macros that
    16959 # take arguments), then branch to the quote section.  Otherwise,
    16960 # look for a macro that doesn't take arguments.
    16961 ac_script='
    16962 :mline
    16963 /\\$/{
    16964  N
    16965  s,\\\n,,
    16966  b mline
    16967 }
    16968 t clear
    16969 :clear
    16970 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
    16971 t quote
    16972 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
    16973 t quote
    16974 b any
    16975 :quote
    16976 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
    16977 s/\[/\\&/g
    16978 s/\]/\\&/g
    16979 s/\$/$$/g
    16980 H
    16981 :any
    16982 ${
    16983         g
    16984         s/^\n//
    16985         s/\n/ /g
    16986         p
    16987 }
    16988 '
    16989 DEFS=`sed -n "$ac_script" confdefs.h`
    16990 
     17072DEFS=-DHAVE_CONFIG_H
    1699117073
    1699217074ac_libobjs=
     
    1746617548esac
    1746717549
     17550case $ac_config_headers in *"
     17551"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     17552esac
    1746817553
    1746917554
     
    1747117556# Files that config.status was made for.
    1747217557config_files="$ac_config_files"
     17558config_headers="$ac_config_headers"
    1747317559config_commands="$ac_config_commands"
    1747417560
     
    1749217578      --file=FILE[:TEMPLATE]
    1749317579                   instantiate the configuration file FILE
     17580      --header=FILE[:TEMPLATE]
     17581                   instantiate the configuration header FILE
    1749417582
    1749517583Configuration files:
    1749617584$config_files
     17585
     17586Configuration headers:
     17587$config_headers
    1749717588
    1749817589Configuration commands:
     
    1756217653    as_fn_append CONFIG_FILES " '$ac_optarg'"
    1756317654    ac_need_defaults=false;;
    17564   --he | --h |  --help | --hel | -h )
     17655  --header | --heade | --head | --hea )
     17656    $ac_shift
     17657    case $ac_optarg in
     17658    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     17659    esac
     17660    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     17661    ac_need_defaults=false;;
     17662  --he | --h)
     17663    # Conflict between --help and --header
     17664    as_fn_error $? "ambiguous option: \`$1'
     17665Try \`$0 --help' for more information.";;
     17666  --help | --hel | -h )
    1756517667    $as_echo "$ac_cs_usage"; exit ;;
    1756617668  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    1762517727macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
    1762617728macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
     17729enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
    1762717730enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
    17628 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
    1762917731pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
    1763017732enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
     
    1800918111    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    1801018112    "prelude/Makefile") CONFIG_FILES="$CONFIG_FILES prelude/Makefile" ;;
     18113    "prelude/defines.hfa") CONFIG_HEADERS="$CONFIG_HEADERS prelude/defines.hfa" ;;
    1801118114
    1801218115  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     
    1802118124if $ac_need_defaults; then
    1802218125  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     18126  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    1802318127  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    1802418128fi
     
    1820918313fi # test -n "$CONFIG_FILES"
    1821018314
    18211 
    18212 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
     18315# Set up the scripts for CONFIG_HEADERS section.
     18316# No need to generate them if there are no CONFIG_HEADERS.
     18317# This happens for instance with `./config.status Makefile'.
     18318if test -n "$CONFIG_HEADERS"; then
     18319cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
     18320BEGIN {
     18321_ACEOF
     18322
     18323# Transform confdefs.h into an awk script `defines.awk', embedded as
     18324# here-document in config.status, that substitutes the proper values into
     18325# config.h.in to produce config.h.
     18326
     18327# Create a delimiter string that does not exist in confdefs.h, to ease
     18328# handling of long lines.
     18329ac_delim='%!_!# '
     18330for ac_last_try in false false :; do
     18331  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
     18332  if test -z "$ac_tt"; then
     18333    break
     18334  elif $ac_last_try; then
     18335    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     18336  else
     18337    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     18338  fi
     18339done
     18340
     18341# For the awk script, D is an array of macro values keyed by name,
     18342# likewise P contains macro parameters if any.  Preserve backslash
     18343# newline sequences.
     18344
     18345ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     18346sed -n '
     18347s/.\{148\}/&'"$ac_delim"'/g
     18348t rset
     18349:rset
     18350s/^[     ]*#[    ]*define[       ][      ]*/ /
     18351t def
     18352d
     18353:def
     18354s/\\$//
     18355t bsnl
     18356s/["\\]/\\&/g
     18357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     18358D["\1"]=" \3"/p
     18359s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
     18360d
     18361:bsnl
     18362s/["\\]/\\&/g
     18363s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     18364D["\1"]=" \3\\\\\\n"\\/p
     18365t cont
     18366s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     18367t cont
     18368d
     18369:cont
     18370n
     18371s/.\{148\}/&'"$ac_delim"'/g
     18372t clear
     18373:clear
     18374s/\\$//
     18375t bsnlc
     18376s/["\\]/\\&/g; s/^/"/; s/$/"/p
     18377d
     18378:bsnlc
     18379s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     18380b cont
     18381' <confdefs.h | sed '
     18382s/'"$ac_delim"'/"\\\
     18383"/g' >>$CONFIG_STATUS || ac_write_fail=1
     18384
     18385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     18386  for (key in D) D_is_set[key] = 1
     18387  FS = ""
     18388}
     18389/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     18390  line = \$ 0
     18391  split(line, arg, " ")
     18392  if (arg[1] == "#") {
     18393    defundef = arg[2]
     18394    mac1 = arg[3]
     18395  } else {
     18396    defundef = substr(arg[1], 2)
     18397    mac1 = arg[2]
     18398  }
     18399  split(mac1, mac2, "(") #)
     18400  macro = mac2[1]
     18401  prefix = substr(line, 1, index(line, defundef) - 1)
     18402  if (D_is_set[macro]) {
     18403    # Preserve the white space surrounding the "#".
     18404    print prefix "define", macro P[macro] D[macro]
     18405    next
     18406  } else {
     18407    # Replace #undef with comments.  This is necessary, for example,
     18408    # in the case of _POSIX_SOURCE, which is predefined and required
     18409    # on some systems where configure will not decide to define it.
     18410    if (defundef == "undef") {
     18411      print "/*", prefix defundef, macro, "*/"
     18412      next
     18413    }
     18414  }
     18415}
     18416{ print }
     18417_ACAWK
     18418_ACEOF
     18419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     18420  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     18421fi # test -n "$CONFIG_HEADERS"
     18422
     18423
     18424eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
    1821318425shift
    1821418426for ac_tag
     
    1842918641  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    1843018642 ;;
    18431 
     18643  :H)
     18644  #
     18645  # CONFIG_HEADER
     18646  #
     18647  if test x"$ac_file" != x-; then
     18648    {
     18649      $as_echo "/* $configure_input  */" \
     18650      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
     18651    } >"$ac_tmp/config.h" \
     18652      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     18653    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
     18654      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     18655$as_echo "$as_me: $ac_file is unchanged" >&6;}
     18656    else
     18657      rm -f "$ac_file"
     18658      mv "$ac_tmp/config.h" "$ac_file" \
     18659        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     18660    fi
     18661  else
     18662    $as_echo "/* $configure_input  */" \
     18663      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
     18664      || as_fn_error $? "could not create -" "$LINENO" 5
     18665  fi
     18666# Compute "$ac_file"'s index in $config_headers.
     18667_am_arg="$ac_file"
     18668_am_stamp_count=1
     18669for _am_header in $config_headers :; do
     18670  case $_am_header in
     18671    $_am_arg | $_am_arg:* )
     18672      break ;;
     18673    * )
     18674      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
     18675  esac
     18676done
     18677echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
     18678$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     18679         X"$_am_arg" : 'X\(//\)[^/]' \| \
     18680         X"$_am_arg" : 'X\(//\)$' \| \
     18681         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
     18682$as_echo X"$_am_arg" |
     18683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     18684            s//\1/
     18685            q
     18686          }
     18687          /^X\(\/\/\)[^/].*/{
     18688            s//\1/
     18689            q
     18690          }
     18691          /^X\(\/\/\)$/{
     18692            s//\1/
     18693            q
     18694          }
     18695          /^X\(\/\).*/{
     18696            s//\1/
     18697            q
     18698          }
     18699          s/.*/./; q'`/stamp-h$_am_stamp_count
     18700 ;;
    1843218701
    1843318702  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
     
    1858718856macro_revision=$macro_revision
    1858818857
     18858# Whether or not to build static libraries.
     18859build_old_libs=$enable_static
     18860
    1858918861# Whether or not to build shared libraries.
    1859018862build_libtool_libs=$enable_shared
    18591 
    18592 # Whether or not to build static libraries.
    18593 build_old_libs=$enable_static
    1859418863
    1859518864# What type of objects to build.
Note: See TracChangeset for help on using the changeset viewer.