Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-uggrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
staging
dune-uggrid
Commits
d2a6a22a
Commit
d2a6a22a
authored
11 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
remove long unused code in the context of autogen.sh
parent
8e4f11df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
autogen.sh
+1
-76
1 addition, 76 deletions
autogen.sh
gcc.opts
+0
-17
0 additions, 17 deletions
gcc.opts
icc.opts
+0
-17
0 additions, 17 deletions
icc.opts
with
1 addition
and
110 deletions
autogen.sh
+
1
−
76
View file @
d2a6a22a
#!/bin/sh
# $Id$
# $Id
: autogen.sh 8435 2012-10-23 17:23:07Z sander
$
# barf on errors
set
-e
...
...
@@ -11,70 +11,6 @@ AMVERS=
# (should be off for source distributions, this should happen automatically)
DEFAULTCONFOPT
=
"--enable-maintainer-mode"
# default values
DEBUG
=
1
OPTIM
=
0
usage
()
{
echo
"Usage: ./autogen.sh [options]"
echo
" -i, --intel use intel compiler"
echo
" -g, --gnu use gnu compiler (default)"
echo
" --opts=FILE use compiler-options from FILE"
echo
" -d, --debug switch debug-opts on"
echo
" -n, --nodebug switch debug-opts off"
echo
" -o, --optim switch optimization on"
echo
" -h, --help you already found this :)"
}
# no compiler set yet
COMPSET
=
0
for
OPT
in
"
$@
"
;
do
set
+e
# stolen from configure...
# when no option is set, this returns an error code
arg
=
`
expr
"x
$OPT
"
:
'x[^=]*=\(.*\)'
`
set
-e
case
"
$OPT
"
in
-i
|
--intel
)
.
./icc.opts
;
COMPSET
=
1
;;
-g
|
--gnu
)
.
./gcc.opts
;
COMPSET
=
1
;;
--opts
=
*
)
if
[
-r
$arg
]
;
then
echo
"reading options from
$arg
..."
.
./
$arg
;
COMPSET
=
1
;
else
echo
"Cannot open compiler options file
$arg
!"
;
exit
1
;
fi
;;
-d
|
--debug
)
DEBUG
=
1
;;
-n
|
--nodebug
)
DEBUG
=
0
;;
-o
|
--optim
)
OPTIM
=
1
;;
-h
|
--help
)
usage
;
exit
0
;;
# pass unknown opts to ./configure
*
)
CONFOPT
=
"
$CONFOPT
\"
$OPT
\"
"
;;
esac
done
# use the free compiler as default
if
[
"
$COMPSET
"
!=
"1"
]
;
then
echo
"No compiler set, using GNU compiler as default"
.
./gcc.opts
fi
# create flags
COMPFLAGS
=
"
$FLAGS
"
# maybe add debug flag
if
[
"
$DEBUG
"
=
"1"
]
;
then
COMPFLAGS
=
"
$COMPFLAGS
$DEBUGFLAGS
"
fi
# maybe add optimization flag
if
[
"
$OPTIM
"
=
"1"
]
;
then
COMPFLAGS
=
"
$COMPFLAGS
$OPTIMFLAGS
"
fi
# check if automake-version was set
if
test
"x
$AMVERS
"
!=
x
;
then
echo
Warning: explicitly using automake version
$AMVERS
...
...
@@ -102,14 +38,3 @@ automake$AMVERS --add-missing
echo
"--> autoconf..."
autoconf
#### start configure with special environment
export
CC
=
"
$COMP
"
export
CXX
=
"
$CXXCOMP
"
export
CPP
=
"
$COMP
-E"
export
CFLAGS
=
"
$COMPFLAGS
"
export
CXXFLAGS
=
"
$COMPFLAGS
"
# eval ./configure $DEFAULTCONFOPT $CONFOPT
This diff is collapsed.
Click to expand it.
gcc.opts
deleted
100644 → 0
+
0
−
17
View file @
8e4f11df
# $Id$
# options for gcc/g++
# remember to run ./autogen.sh after changing these values!
# name of compiler binaries
COMP="gcc"
CXXCOMP="g++"
# flags set in any case
FLAGS="-Wall"
# additional flags for debugging
DEBUGFLAGS="-g"
# additional flags for optimization
OPTIMFLAGS="-O2"
This diff is collapsed.
Click to expand it.
icc.opts
deleted
100644 → 0
+
0
−
17
View file @
8e4f11df
# $Id$
# options for icc
# remember to run ./autogen.sh after changing these values!
# name of compiler binaries
COMP="icc"
CXXCOMP="icc"
# flags set in any case
FLAGS=""
# additional flags for debugging
DEBUGFLAGS="-O0 -g"
# additional flags for optimization
OPTIMFLAGS="-O3"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment