diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:46 +0100 |
commit | 372a0e99c2f61543d9e14d9933b59d9d1f4cb26e (patch) | |
tree | bbadf39aed0610c8f8f7b41fefff47773b8ac205 /build-0.3/c/configure | |
parent | 23d41842168ac1a1580111b9c5c73500ceee3d57 (diff) | |
parent | 4538829ab86b5a1cd4e845e7eab165029c9d6d46 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'build-0.3/c/configure')
-rwxr-xr-x | build-0.3/c/configure | 165 |
1 files changed, 0 insertions, 165 deletions
diff --git a/build-0.3/c/configure b/build-0.3/c/configure deleted file mode 100755 index a294a0c..0000000 --- a/build-0.3/c/configure +++ /dev/null @@ -1,165 +0,0 @@ -#! /usr/bin/env bash - -# file : build/c/configure -# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC -# license : GNU GPL v2; see accompanying LICENSE file - -# $1 out file -# $2 origin of the c_pp_options make variable -# $3 origin of the c_options make variable -# $4 origin of the c_ld_options make variable -# $5 origin of the c_libs make variable -# -# bld_root - build root -# project_name - project name -# - -source $bld_root/dialog.bash - -$echo -$echo -$echo "configuring '$project_name'" -$echo -$echo - -$echo -$echo "Please select the C compiler you would like to use:" -$echo -$echo "(1) GNU C (gcc)" -$echo "(2) Intel C (icc)" -$echo "(3) Other C compiler" -$echo - -id=`read_option "gnu intel generic" "gnu"` - -if [ "$id" != "generic" ]; then - - $echo - $echo "Would you like the C compiler to optimize generated code?" - $echo - - optimize=`read_y_n y` - - - $echo - $echo "Would you like the C compiler to generate debug information?" - $echo - - debug=`read_y_n y` - - $echo - $echo "Embed dynamic library paths into executables (rpath)?" - $echo - - rpath=`read_y_n y` - -fi - -# pp_options -# -if [ "$2" != "undefined" ]; then - - pp_options=$c_pp_options - - if [ "$pp_options" ]; then - $echo - $echo "Extra C preprocessor options: $pp_options" - $echo - fi -else - - $echo - $echo "Please enter any extra C preprocessor options." - $echo - - read -e -p "[]: " pp_options -fi - - -# options -# -if [ "$3" != "undefined" ]; then - - options=$c_options - - if [ "$options" ]; then - $echo - $echo "Extra C compiler options: $options" - $echo - fi -else - - $echo - $echo "Please enter any extra C compiler options." - $echo - - read -p "[]: " options -fi - - -# ld_options -# -if [ "$4" != "undefined" ]; then - - ld_options=$c_ld_options - - if [ "$ld_options" ]; then - $echo - $echo "Extra C linker options: $ld_options" - $echo - fi -else - - $echo - $echo "Please enter any extra C linker options." - $echo - - read -e -p "[]: " ld_options -fi - - -# libs -# -if [ "$5" != "undefined" ]; then - - libs=$c_libs - - if [ "$libs" ]; then - $echo - $echo "Extra C libraries: $libs" - $echo - fi -else - - $echo - $echo "Please enter any extra C libraries." - $echo - - read -e -p "[]: " libs -fi - - -# Extract -L paths from the ld options. -# -paths= - -if [ "$ld_options" ]; then - paths=`echo "$ld_options" | sed -e 's/-L *\([^ ]*\)/\\ --L\1\\ -/g' | sed -e 's/^-L\([^ ]*\)$/\1/' -e t -e d` - paths=`echo $paths | sed -e 's/ /:/g'` -fi - -echo "c_id := $id" >$1 - -if [ "$id" != "generic" ]; then - echo "c_optimize := $optimize" >>$1 - echo "c_debug := $debug" >>$1 - echo "c_rpath := $rpath" >>$1 -fi - -echo "c_pp_extra_options := $pp_options" >>$1 -echo "c_extra_options := $options" >>$1 -echo "c_ld_extra_options := $ld_options" >>$1 -echo "c_extra_libs := $libs" >>$1 -echo "c_extra_lib_paths := $paths" >>$1 |