configure
changeset 625 c0bda77b37a0
parent 624 c2546c6e0cfa
child 667 bd1360f29f15
equal deleted inserted replaced
412:aad38592bdde 625:c0bda77b37a0
  4580   fi
  4580   fi
  4581 else
  4581 else
  4582   RANLIB="$ac_cv_prog_RANLIB"
  4582   RANLIB="$ac_cv_prog_RANLIB"
  4583 fi
  4583 fi
  4584 
  4584 
       
  4585 for ac_prog in gawk mawk nawk awk
       
  4586 do
       
  4587   # Extract the first word of "$ac_prog", so it can be a program name with args.
       
  4588 set dummy $ac_prog; ac_word=$2
       
  4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
  4590 $as_echo_n "checking for $ac_word... " >&6; }
       
  4591 if ${ac_cv_prog_AWK+:} false; then :
       
  4592   $as_echo_n "(cached) " >&6
       
  4593 else
       
  4594   if test -n "$AWK"; then
       
  4595   ac_cv_prog_AWK="$AWK" # Let the user override the test.
       
  4596 else
       
  4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
  4598 for as_dir in $PATH
       
  4599 do
       
  4600   IFS=$as_save_IFS
       
  4601   test -z "$as_dir" && as_dir=.
       
  4602     for ac_exec_ext in '' $ac_executable_extensions; do
       
  4603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
       
  4604     ac_cv_prog_AWK="$ac_prog"
       
  4605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
  4606     break 2
       
  4607   fi
       
  4608 done
       
  4609   done
       
  4610 IFS=$as_save_IFS
       
  4611 
       
  4612 fi
       
  4613 fi
       
  4614 AWK=$ac_cv_prog_AWK
       
  4615 if test -n "$AWK"; then
       
  4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
       
  4617 $as_echo "$AWK" >&6; }
       
  4618 else
       
  4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
  4620 $as_echo "no" >&6; }
       
  4621 fi
       
  4622 
       
  4623 
       
  4624   test -n "$AWK" && break
       
  4625 done
       
  4626 
       
  4627 
       
  4628 # Check bison version, we need a version great or equal than 2.4 to build matiec.
       
  4629 [[ $(bison --version) =~ ([0-9][.][0-9]*) ]] && version_bison="${BASH_REMATCH[1]}"
       
  4630 
       
  4631 if awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'; then :
       
  4632   have_bison_correct=yes
       
  4633 else
       
  4634   have_bison_correct=no
       
  4635 fi
       
  4636 
       
  4637 
       
  4638 if test "x${have_bison_correct}" = xno; then
       
  4639   echo "------------------------------------------"
       
  4640   echo " Wrong bison version: $version_bison < 2.4 "
       
  4641   echo "------------------------------------------"
       
  4642   (exit 1); exit 1;
       
  4643 fi
  4585 
  4644 
  4586 # Checks for header files.
  4645 # Checks for header files.
  4587 ac_ext=c
  4646 ac_ext=c
  4588 ac_cpp='$CPP $CPPFLAGS'
  4647 ac_cpp='$CPP $CPPFLAGS'
  4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5672 _ACEOF
  5731 _ACEOF
  5673 
  5732 
  5674 fi
  5733 fi
  5675 done
  5734 done
       
  5735 
  5676 
  5736 
  5677 
  5737 
  5678 
  5738 
  5679 
  5739 
  5680 ac_config_files="$ac_config_files Makefile absyntax/Makefile absyntax_utils/Makefile stage1_2/Makefile stage3/Makefile stage4/Makefile stage4/generate_c/Makefile stage4/generate_iec/Makefile"
  5740 ac_config_files="$ac_config_files Makefile absyntax/Makefile absyntax_utils/Makefile stage1_2/Makefile stage3/Makefile stage4/Makefile stage4/generate_c/Makefile stage4/generate_iec/Makefile"