2
# Generated from ga-config.in.m4 by GNU Autoconf 2.67.
3
## -------------------- ##
4
## M4sh Initialization. ##
5
## -------------------- ##
7
# Be more Bourne compatible
8
DUALCASE=1; export DUALCASE # for MKS sh
9
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13
# is contrary to our usage. Disable this feature.
14
alias -g '${1+"$@"}'='"$@"'
17
case `(set -o) 2>/dev/null` in #(
29
# Printing a long string crashes Solaris 7 /usr/bin/printf.
30
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33
# Prefer a ksh shell builtin over an external printf program on Solaris,
34
# but without wasting forks for bash or zsh.
35
if test -z "$BASH_VERSION$ZSH_VERSION" \
36
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
38
as_echo_n='print -rn --'
39
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
43
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
44
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45
as_echo_n='/usr/ucb/echo -n'
47
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
52
expr "X$arg" : "X\\(.*\\)$as_nl";
53
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
55
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
58
as_echo_n='sh -c $as_echo_n_body as_echo'
61
as_echo='sh -c $as_echo_body as_echo'
64
# The user is always right.
65
if test "${PATH_SEPARATOR+set}" != set; then
67
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
68
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
75
# We need space, tab and new line, in precisely that order. Quoting is
76
# there to prevent editors from complaining about space-tab.
77
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
78
# splitting by setting IFS to empty value.)
81
# Find who we are. Look in the path if we contain no directory separator.
83
*[\\/]* ) as_myself=$0 ;;
84
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88
test -z "$as_dir" && as_dir=.
89
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
95
# We did not find ourselves, most probably we were run as `sh COMMAND'
96
# in which case we are not to be found in the path.
97
if test "x$as_myself" = x; then
100
if test ! -f "$as_myself"; then
101
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
105
# Unset variables that we do not need and which cause bugs (e.g. in
106
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
107
# suppresses any "Segmentation fault" message there. '((' could
108
# trigger a bug in pdksh 5.2.14.
109
for as_var in BASH_ENV ENV MAIL MAILPATH
110
do eval test x\${$as_var+set} = xset \
111
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
126
if test "x$CONFIG_SHELL" = x; then
127
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
130
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
131
# is contrary to our usage. Disable this feature.
132
alias -g '\${1+\"\$@\"}'='\"\$@\"'
135
case \`(set -o) 2>/dev/null\` in #(
143
as_required="as_fn_return () { (exit \$1); }
144
as_fn_success () { as_fn_return 0; }
145
as_fn_failure () { as_fn_return 1; }
146
as_fn_ret_success () { return 0; }
147
as_fn_ret_failure () { return 1; }
150
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
151
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
152
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
153
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
154
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
157
exitcode=1; echo positional parameters were not saved.
159
test x\$exitcode = x0 || exit 1"
161
if (eval "$as_required") 2>/dev/null; then :
166
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
171
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
174
test -z "$as_dir" && as_dir=.
178
for as_base in sh bash ksh sh5; do
179
# Try only shells that exist, to save several forks.
180
as_shell=$as_dir/$as_base
181
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
182
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
183
CONFIG_SHELL=$as_shell as_have_required=yes
190
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
191
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
192
CONFIG_SHELL=$SHELL as_have_required=yes
197
if test "x$CONFIG_SHELL" != x; then :
198
# We cannot yet assume a decent shell, so we have to provide a
199
# neutralization value for shells without unset; and this also
200
# works around shells that cannot unset nonexistent variables.
203
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
205
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
208
if test x$as_have_required = xno; then :
209
$as_echo "$0: This script requires a shell more modern than all"
210
$as_echo "$0: the shells that I found on your system."
211
if test x${ZSH_VERSION+set} = xset ; then
212
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
213
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
215
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
216
$0: including any error possibly output before this
217
$0: message. Then install a modern shell, or manually run
218
$0: the script under such a shell if you do have one."
224
SHELL=${CONFIG_SHELL-/bin/sh}
226
# Unset more variables known to interfere with behavior of common tools.
227
CLICOLOR_FORCE= GREP_OPTIONS=
228
unset CLICOLOR_FORCE GREP_OPTIONS
230
## --------------------- ##
231
## M4sh Shell Functions. ##
232
## --------------------- ##
235
# Portably unset VAR.
238
{ eval $1=; unset $1;}
241
## -------------------- ##
242
## Main body of script. ##
243
## -------------------- ##
248
cppflags="@SCALAPACK_CPPFLAGS@ @LAPACK_CPPFLAGS@ @BLAS_CPPFLAGS@ @GA_MP_CPPFLAGS@ @ARMCI_NETWORK_CPPFLAGS@ -I@prefix@/include"
250
fflags="@GA_FOPT@ @FFLAG_INT@"
251
ldflags="@SCALAPACK_LDFLAGS@ @LAPACK_LDFLAGS@ @BLAS_LDFLAGS@ @GA_MP_LDFLAGS@ @ARMCI_NETWORK_LDFLAGS@ -L@prefix@/lib"
252
libs="-lga @SCALAPACK_LIBS@ @LAPACK_LIBS@ @BLAS_LIBS@ @GA_MP_LIBS@ @ARMCI_NETWORK_LIBS@"
254
enable_f77_true="@ENABLE_F77_TRUE@"
255
version="@PACKAGE_VERSION@"
257
if test "x$enable_f77_true" = x; then :
263
usage="Usage: ga-config [OPTIONS]...
265
With the exception of --version and --help, all other options can be combined
266
or run exclusively. Output is echoed to stdout.
289
ac_option=`expr "X$1" : 'X\(^=*\)='`
290
ac_optarg=`expr "X$1" : 'X^=*=\(.*\)'`
294
ac_option=`expr "X$1" : 'X\(^=*\)='`
306
# Handling of the options.
307
-help | --help | --hel | --he | -h )
308
$as_echo "$usage"; exit ;;
309
-version | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
310
$as_echo "$version"; exit ;;
312
result="$result $f77" ;;
314
result="$result $cc" ;;
315
-cppflags | --cppflags )
316
result="$result $cppflags" ;;
318
result="$result $cflags" ;;
320
result="$result $fflags" ;;
321
-ldflags | --ldflags )
322
result="$result $ldflags" ;;
324
result="$result $libs" ;;
326
result="$result $flibs" ;;
327
-enable-f77 | --enable-f77 )
328
result="$result $enable_f77" ;;
330
*) $as_echo "unrecognized option: \`$1'
331
Try \`$0 --help' for more information."; exit ;;
336
$as_echo "$result" | sed 's/ */ /g;s/" /"/g;s/ "/"/g;s/^ *//;s/ *$//'