annotate src/of-octcdf-1-cross-fixes.patch @ 4059:b5a28d770997

of-communications, of-octcdf: update patch for default repo of octave * src/of-communications-1-fixes.patch: update patch * src/of-octcdf-1-cross-fixes.patch: update patch
author John Donoghue
date Wed, 25 Nov 2015 12:29:03 -0500
parents 3d16df45776b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3904
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1 diff -ur octcdf.orig/src/configure octcdf/src/configure
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
2 --- octcdf.orig/src/configure 2015-04-14 11:21:17.161247377 -0400
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
3 +++ octcdf/src/configure 2015-04-14 11:22:49.289084238 -0400
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
4 @@ -195,8 +195,7 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
5 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
6 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
7 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
8 - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
9 -test \$(( 1 + 1 )) = 2 || exit 1"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
10 + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
11 if (eval "$as_required") 2>/dev/null; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
12 as_have_required=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
13 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
14 @@ -583,50 +582,12 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
15 PACKAGE_URL=
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
16
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
17 ac_unique_file="configure.base"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
18 -# Factoring default headers for most tests.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
19 -ac_includes_default="\
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
20 -#include <stdio.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
21 -#ifdef HAVE_SYS_TYPES_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
22 -# include <sys/types.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
23 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
24 -#ifdef HAVE_SYS_STAT_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
25 -# include <sys/stat.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
26 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
27 -#ifdef STDC_HEADERS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
28 -# include <stdlib.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
29 -# include <stddef.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
30 -#else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
31 -# ifdef HAVE_STDLIB_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
32 -# include <stdlib.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
33 -# endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
34 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
35 -#ifdef HAVE_STRING_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
36 -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
37 -# include <memory.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
38 -# endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
39 -# include <string.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
40 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
41 -#ifdef HAVE_STRINGS_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
42 -# include <strings.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
43 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
44 -#ifdef HAVE_INTTYPES_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
45 -# include <inttypes.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
46 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
47 -#ifdef HAVE_STDINT_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
48 -# include <stdint.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
49 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
50 -#ifdef HAVE_UNISTD_H
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
51 -# include <unistd.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
52 -#endif"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
53 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
54 ac_subst_vars='LTLIBOBJS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
55 LIBOBJS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
56 OCTCDF_CFLAGS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
57 OCTCDF_LIBS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
58 HAVE_NETCDF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
59 -EGREP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
60 -GREP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
61 -CPP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
62 +NC_CONFIG
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
63 STRIP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
64 COPY_FLAGS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
65 RANLIB
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
66 @@ -643,6 +604,7 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
67 mpath
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
68 subver
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
69 ver
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
70 +OCTAVE_CONFIG
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
71 MKOCTFILE
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
72 OBJEXT
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
73 EXEEXT
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
74 @@ -710,8 +672,7 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
75 CFLAGS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
76 LDFLAGS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
77 LIBS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
78 -CPPFLAGS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
79 -CPP'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
80 +CPPFLAGS'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
81
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
82
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
83 # Initialize some variables set by options.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
84 @@ -1334,7 +1295,6 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
85 LIBS libraries to pass to the linker, e.g. -l<library>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
86 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
87 you have headers in a nonstandard directory <include dir>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
88 - CPP C preprocessor
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
89
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
90 Use these variables to override the choices made by `configure' or to help
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
91 it to find libraries and programs with nonstandard names/locations.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
92 @@ -1453,249 +1413,6 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
93 as_fn_set_status $ac_retval
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
94
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
95 } # ac_fn_c_try_compile
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
96 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
97 -# ac_fn_c_try_link LINENO
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
98 -# -----------------------
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
99 -# Try to link conftest.$ac_ext, and return whether this succeeded.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
100 -ac_fn_c_try_link ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
101 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
102 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
103 - rm -f conftest.$ac_objext conftest$ac_exeext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
104 - if { { ac_try="$ac_link"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
105 -case "(($ac_try" in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
106 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
107 - *) ac_try_echo=$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
108 -esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
109 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
110 -$as_echo "$ac_try_echo"; } >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
111 - (eval "$ac_link") 2>conftest.err
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
112 - ac_status=$?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
113 - if test -s conftest.err; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
114 - grep -v '^ *+' conftest.err >conftest.er1
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
115 - cat conftest.er1 >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
116 - mv -f conftest.er1 conftest.err
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
117 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
118 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
119 - test $ac_status = 0; } && {
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
120 - test -z "$ac_c_werror_flag" ||
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
121 - test ! -s conftest.err
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
122 - } && test -s conftest$ac_exeext && {
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
123 - test "$cross_compiling" = yes ||
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
124 - test -x conftest$ac_exeext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
125 - }; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
126 - ac_retval=0
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
127 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
128 - $as_echo "$as_me: failed program was:" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
129 -sed 's/^/| /' conftest.$ac_ext >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
130 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
131 - ac_retval=1
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
132 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
133 - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
134 - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
135 - # interfere with the next link command; also delete a directory that is
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
136 - # left behind by Apple's compiler. We do this before executing the actions.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
137 - rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
138 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
139 - as_fn_set_status $ac_retval
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
140 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
141 -} # ac_fn_c_try_link
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
142 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
143 -# ac_fn_c_try_cpp LINENO
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
144 -# ----------------------
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
145 -# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
146 -ac_fn_c_try_cpp ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
147 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
148 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
149 - if { { ac_try="$ac_cpp conftest.$ac_ext"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
150 -case "(($ac_try" in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
151 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
152 - *) ac_try_echo=$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
153 -esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
154 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
155 -$as_echo "$ac_try_echo"; } >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
156 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
157 - ac_status=$?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
158 - if test -s conftest.err; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
159 - grep -v '^ *+' conftest.err >conftest.er1
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
160 - cat conftest.er1 >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
161 - mv -f conftest.er1 conftest.err
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
162 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
163 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
164 - test $ac_status = 0; } > conftest.i && {
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
165 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
166 - test ! -s conftest.err
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
167 - }; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
168 - ac_retval=0
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
169 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
170 - $as_echo "$as_me: failed program was:" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
171 -sed 's/^/| /' conftest.$ac_ext >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
172 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
173 - ac_retval=1
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
174 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
175 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
176 - as_fn_set_status $ac_retval
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
177 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
178 -} # ac_fn_c_try_cpp
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
179 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
180 -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
181 -# -------------------------------------------------------
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
182 -# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
183 -# the include files in INCLUDES and setting the cache variable VAR
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
184 -# accordingly.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
185 -ac_fn_c_check_header_mongrel ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
186 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
187 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
188 - if eval \${$3+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
189 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
190 -$as_echo_n "checking for $2... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
191 -if eval \${$3+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
192 - $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
193 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
194 -eval ac_res=\$$3
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
195 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
196 -$as_echo "$ac_res" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
197 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
198 - # Is the header compilable?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
199 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
200 -$as_echo_n "checking $2 usability... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
201 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
202 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
203 -$4
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
204 -#include <$2>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
205 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
206 -if ac_fn_c_try_compile "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
207 - ac_header_compiler=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
208 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
209 - ac_header_compiler=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
210 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
211 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
212 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
213 -$as_echo "$ac_header_compiler" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
214 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
215 -# Is the header present?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
216 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
217 -$as_echo_n "checking $2 presence... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
218 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
219 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
220 -#include <$2>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
221 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
222 -if ac_fn_c_try_cpp "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
223 - ac_header_preproc=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
224 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
225 - ac_header_preproc=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
226 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
227 -rm -f conftest.err conftest.i conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
228 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
229 -$as_echo "$ac_header_preproc" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
230 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
231 -# So? What about this header?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
232 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
233 - yes:no: )
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
234 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
235 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
236 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
237 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
238 - ;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
239 - no:yes:* )
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
240 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
241 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
242 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
243 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
244 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
245 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
246 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
247 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
248 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
249 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
250 - ;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
251 -esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
252 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
253 -$as_echo_n "checking for $2... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
254 -if eval \${$3+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
255 - $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
256 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
257 - eval "$3=\$ac_header_compiler"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
258 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
259 -eval ac_res=\$$3
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
260 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
261 -$as_echo "$ac_res" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
262 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
263 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
264 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
265 -} # ac_fn_c_check_header_mongrel
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
266 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
267 -# ac_fn_c_try_run LINENO
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
268 -# ----------------------
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
269 -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
270 -# that executables *can* be run.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
271 -ac_fn_c_try_run ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
272 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
273 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
274 - if { { ac_try="$ac_link"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
275 -case "(($ac_try" in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
276 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
277 - *) ac_try_echo=$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
278 -esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
279 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
280 -$as_echo "$ac_try_echo"; } >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
281 - (eval "$ac_link") 2>&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
282 - ac_status=$?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
283 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
284 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
285 - { { case "(($ac_try" in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
286 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
287 - *) ac_try_echo=$ac_try;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
288 -esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
289 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
290 -$as_echo "$ac_try_echo"; } >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
291 - (eval "$ac_try") 2>&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
292 - ac_status=$?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
293 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
294 - test $ac_status = 0; }; }; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
295 - ac_retval=0
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
296 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
297 - $as_echo "$as_me: program exited with status $ac_status" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
298 - $as_echo "$as_me: failed program was:" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
299 -sed 's/^/| /' conftest.$ac_ext >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
300 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
301 - ac_retval=$ac_status
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
302 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
303 - rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
304 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
305 - as_fn_set_status $ac_retval
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
306 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
307 -} # ac_fn_c_try_run
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
308 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
309 -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
310 -# -------------------------------------------------------
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
311 -# Tests whether HEADER exists and can be compiled using the include files in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
312 -# INCLUDES, setting the cache variable VAR accordingly.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
313 -ac_fn_c_check_header_compile ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
314 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
315 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
316 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
317 -$as_echo_n "checking for $2... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
318 -if eval \${$3+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
319 - $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
320 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
321 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
322 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
323 -$4
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
324 -#include <$2>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
325 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
326 -if ac_fn_c_try_compile "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
327 - eval "$3=yes"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
328 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
329 - eval "$3=no"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
330 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
331 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
332 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
333 -eval ac_res=\$$3
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
334 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
335 -$as_echo "$ac_res" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
336 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
337 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
338 -} # ac_fn_c_check_header_compile
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
339 cat >config.log <<_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
340 This file contains any messages produced by compilers while
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
341 running configure, to aid debugging if configure makes a mistake.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
342 @@ -2897,6 +2614,46 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
343 test -z "$MKOCTFILE" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no mkoctfile found on path" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
344 $as_echo "$as_me: WARNING: no mkoctfile found on path" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
345
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
346 +# Extract the first word of "octave-config", so it can be a program name with args.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
347 +set dummy octave-config; ac_word=$2
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
348 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
349 +$as_echo_n "checking for $ac_word... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
350 +if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
351 + $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
352 +else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
353 + if test -n "$OCTAVE_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
354 + ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
355 +else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
356 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
357 +for as_dir in $PATH
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
358 +do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
359 + IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
360 + test -z "$as_dir" && as_dir=.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
361 + for ac_exec_ext in '' $ac_executable_extensions; do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
362 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
363 + ac_cv_prog_OCTAVE_CONFIG="octave-config"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
364 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
365 + break 2
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
366 + fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
367 +done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
368 + done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
369 +IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
370 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
371 +fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
372 +fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
373 +OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
374 +if test -n "$OCTAVE_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
375 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
376 +$as_echo "$OCTAVE_CONFIG" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
377 +else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
378 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
379 +$as_echo "no" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
380 +fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
381 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
382 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
383 +test -z "$OCTAVE_CONFIG" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no octave-config found on path" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
384 +$as_echo "$as_me: WARNING: no octave-config found on path" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
385 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
386
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
387
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
388
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
389 @@ -3083,6 +2840,8 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
390
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
391
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
392
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
393 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
394 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
395 # Extract the first word of "octave", so it can be a program name with args.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
396 set dummy octave; ac_word=$2
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
398 @@ -3120,25 +2879,25 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
399 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
400
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
401
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
402 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in Octave" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
403 -$as_echo_n "checking for OCTAVE_VERSION in Octave... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
404 -OCTAVE_VERSION=`echo "disp(OCTAVE_VERSION)" | $OCTAVE -qf`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
405 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VERSION in octave-config" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
406 +$as_echo_n "checking for VERSION in octave-config... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
407 +OCTAVE_VERSION=`$OCTAVE_CONFIG -p VERSION`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
409 $as_echo "$OCTAVE_VERSION" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
410
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
411
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
412
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
413 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for octave_config_info('canonical_host_type') in Octave" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
414 -$as_echo_n "checking for octave_config_info('canonical_host_type') in Octave... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
415 -canonical_host_type=`echo "disp(octave_config_info('canonical_host_type'))" | $OCTAVE -qf`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
416 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CANONICAL_HOST_TYPE in octave-config" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
417 +$as_echo_n "checking for CANONICAL_HOST_TYPE in octave-config... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
418 +canonical_host_type=`$OCTAVE_CONFIG -p CANONICAL_HOST_TYPE`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $canonical_host_type" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
420 $as_echo "$canonical_host_type" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
421
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
422
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
423
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
424 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for octave_config_info('SHLEXT') in Octave" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
425 -$as_echo_n "checking for octave_config_info('SHLEXT') in Octave... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
426 -SHLEXT=`echo "disp(octave_config_info('SHLEXT'))" | $OCTAVE -qf`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
427 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHLEXT in octave-config" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
428 +$as_echo_n "checking for SHLEXT in octave-config... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
429 +SHLEXT=`$OCTAVE_CONFIG -p SHLEXT`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLEXT" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
431 $as_echo "$SHLEXT" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
432
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
433 @@ -3306,489 +3065,105 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
434 ;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
435 esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
436
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
437 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
438 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc-config" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
439 -$as_echo_n "checking for nc-config... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
440 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
441 -if nc-config --version > /dev/null 2>&1; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
442 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
443 -$as_echo "yes" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
444 - OCTCDF_LIBS="$OCTCDF_LIBS `nc-config --libs`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
445 - OCTCDF_CFLAGS="$OCTCDF_CFLAGS `nc-config --cflags`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
446 - HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
447 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
448 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
449 -$as_echo "no" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
450 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc-dap" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
451 -$as_echo_n "checking for nc-dap... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
452 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
453 - if ncdap-config --version > /dev/null 2>&1; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
454 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
455 -$as_echo "yes" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
456 - OCTCDF_LIBS="$OCTCDF_LIBS `ncdap-config --libs`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
457 - OCTCDF_CFLAGS="$OCTCDF_CFLAGS `ncdap-config --cflags`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
458 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
459 - HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
460 - else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
461 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
462 -$as_echo "no" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
463 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
464 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
465 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
466 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc_open in -lnetcdf" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
467 -$as_echo_n "checking for nc_open in -lnetcdf... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
468 -if ${ac_cv_lib_netcdf_nc_open+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
469 +if test -n "$ac_tool_prefix"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
470 + # Extract the first word of "${ac_tool_prefix}nc-config", so it can be a program name with args.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
471 +set dummy ${ac_tool_prefix}nc-config; ac_word=$2
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
472 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
473 +$as_echo_n "checking for $ac_word... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
474 +if ${ac_cv_prog_NC_CONFIG+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
475 $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
476 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
477 - ac_check_lib_save_LIBS=$LIBS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
478 -LIBS="-lnetcdf $LIBS"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
479 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
480 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
481 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
482 -/* Override any GCC internal prototype to avoid an error.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
483 - Use char because int might match the return type of a GCC
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
484 - builtin and then its argument prototype would still apply. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
485 -#ifdef __cplusplus
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
486 -extern "C"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
487 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
488 -char nc_open ();
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
489 -int
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
490 -main ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
491 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
492 -return nc_open ();
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
493 - ;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
494 - return 0;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
495 -}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
496 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
497 -if ac_fn_c_try_link "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
498 - ac_cv_lib_netcdf_nc_open=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
499 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
500 - ac_cv_lib_netcdf_nc_open=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
501 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
502 -rm -f core conftest.err conftest.$ac_objext \
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
503 - conftest$ac_exeext conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
504 -LIBS=$ac_check_lib_save_LIBS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
505 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
506 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nc_open" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
507 -$as_echo "$ac_cv_lib_netcdf_nc_open" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
508 -if test "x$ac_cv_lib_netcdf_nc_open" = xyes; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
509 - HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
510 + if test -n "$NC_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
511 + ac_cv_prog_NC_CONFIG="$NC_CONFIG" # Let the user override the test.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
512 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
513 - HAVE_NETCDF=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
514 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
515 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
516 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
517 - if test $HAVE_NETCDF = yes ; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
518 - OCTCDF_LIBS="$OCTCDF_LIBS -lnetcdf"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
519 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
520 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
521 - ac_ext=c
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
522 -ac_cpp='$CPP $CPPFLAGS'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
523 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
524 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
525 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
526 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
527 -$as_echo_n "checking how to run the C preprocessor... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
528 -# On Suns, sometimes $CPP names a directory.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
529 -if test -n "$CPP" && test -d "$CPP"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
530 - CPP=
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
531 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
532 -if test -z "$CPP"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
533 - if ${ac_cv_prog_CPP+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
534 - $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
535 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
536 - # Double quotes because CPP needs to be expanded
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
537 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
538 - do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
539 - ac_preproc_ok=false
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
540 -for ac_c_preproc_warn_flag in '' yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
541 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
542 +for as_dir in $PATH
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
543 do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
544 - # Use a header file that comes with gcc, so configuring glibc
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
545 - # with a fresh cross-compiler works.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
546 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
547 - # <limits.h> exists even on freestanding compilers.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
548 - # On the NeXT, cc -E runs the code through the compiler's parser,
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
549 - # not just through cpp. "Syntax error" is here to catch this case.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
550 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
551 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
552 -#ifdef __STDC__
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
553 -# include <limits.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
554 -#else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
555 -# include <assert.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
556 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
557 - Syntax error
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
558 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
559 -if ac_fn_c_try_cpp "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
560 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
561 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
562 - # Broken: fails on valid input.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
563 -continue
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
564 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
565 -rm -f conftest.err conftest.i conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
566 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
567 - # OK, works on sane cases. Now check whether nonexistent headers
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
568 - # can be detected and how.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
569 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
570 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
571 -#include <ac_nonexistent.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
572 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
573 -if ac_fn_c_try_cpp "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
574 - # Broken: success on invalid input.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
575 -continue
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
576 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
577 - # Passes both tests.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
578 -ac_preproc_ok=:
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
579 -break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
580 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
581 -rm -f conftest.err conftest.i conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
582 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
583 + IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
584 + test -z "$as_dir" && as_dir=.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
585 + for ac_exec_ext in '' $ac_executable_extensions; do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
586 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
587 + ac_cv_prog_NC_CONFIG="${ac_tool_prefix}nc-config"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
588 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
589 + break 2
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
590 + fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
591 done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
592 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
593 -rm -f conftest.i conftest.err conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
594 -if $ac_preproc_ok; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
595 - break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
596 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
597 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
598 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
599 - ac_cv_prog_CPP=$CPP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
600 + done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
601 +IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
602
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
603 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
604 - CPP=$ac_cv_prog_CPP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
605 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
606 - ac_cv_prog_CPP=$CPP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
607 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
608 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
609 -$as_echo "$CPP" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
610 -ac_preproc_ok=false
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
611 -for ac_c_preproc_warn_flag in '' yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
612 -do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
613 - # Use a header file that comes with gcc, so configuring glibc
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
614 - # with a fresh cross-compiler works.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
615 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
616 - # <limits.h> exists even on freestanding compilers.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
617 - # On the NeXT, cc -E runs the code through the compiler's parser,
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
618 - # not just through cpp. "Syntax error" is here to catch this case.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
619 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
620 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
621 -#ifdef __STDC__
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
622 -# include <limits.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
623 -#else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
624 -# include <assert.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
625 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
626 - Syntax error
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
627 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
628 -if ac_fn_c_try_cpp "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
629 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
630 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
631 - # Broken: fails on valid input.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
632 -continue
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
633 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
634 -rm -f conftest.err conftest.i conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
635 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
636 - # OK, works on sane cases. Now check whether nonexistent headers
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
637 - # can be detected and how.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
638 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
639 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
640 -#include <ac_nonexistent.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
641 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
642 -if ac_fn_c_try_cpp "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
643 - # Broken: success on invalid input.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
644 -continue
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
645 +NC_CONFIG=$ac_cv_prog_NC_CONFIG
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
646 +if test -n "$NC_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
647 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC_CONFIG" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
648 +$as_echo "$NC_CONFIG" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
649 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
650 - # Passes both tests.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
651 -ac_preproc_ok=:
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
652 -break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
653 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
654 +$as_echo "no" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
655 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
656 -rm -f conftest.err conftest.i conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
657
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
658 -done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
659 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
660 -rm -f conftest.i conftest.err conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
661 -if $ac_preproc_ok; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
662
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
663 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
664 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
665 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
666 -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
667 -See \`config.log' for more details" "$LINENO" 5; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
668 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
669 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
670 -ac_ext=c
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
671 -ac_cpp='$CPP $CPPFLAGS'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
672 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
673 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
674 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
675 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
676 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
677 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
678 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
679 -if ${ac_cv_path_GREP+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
680 +if test -z "$ac_cv_prog_NC_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
681 + ac_ct_NC_CONFIG=$NC_CONFIG
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
682 + # Extract the first word of "nc-config", so it can be a program name with args.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
683 +set dummy nc-config; ac_word=$2
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
684 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
685 +$as_echo_n "checking for $ac_word... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
686 +if ${ac_cv_prog_ac_ct_NC_CONFIG+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
687 $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
688 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
689 - if test -z "$GREP"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
690 - ac_path_GREP_found=false
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
691 - # Loop through the user's path and test for each of PROGNAME-LIST
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
692 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
693 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
694 -do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
695 - IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
696 - test -z "$as_dir" && as_dir=.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
697 - for ac_prog in grep ggrep; do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
698 - for ac_exec_ext in '' $ac_executable_extensions; do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
699 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
700 - as_fn_executable_p "$ac_path_GREP" || continue
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
701 -# Check for GNU ac_path_GREP and select it if it is found.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
702 - # Check for GNU $ac_path_GREP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
703 -case `"$ac_path_GREP" --version 2>&1` in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
704 -*GNU*)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
705 - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
706 -*)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
707 - ac_count=0
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
708 - $as_echo_n 0123456789 >"conftest.in"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
709 - while :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
710 - do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
711 - cat "conftest.in" "conftest.in" >"conftest.tmp"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
712 - mv "conftest.tmp" "conftest.in"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
713 - cp "conftest.in" "conftest.nl"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
714 - $as_echo 'GREP' >> "conftest.nl"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
715 - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
716 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
717 - as_fn_arith $ac_count + 1 && ac_count=$as_val
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
718 - if test $ac_count -gt ${ac_path_GREP_max-0}; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
719 - # Best one so far, save it but keep looking for a better one
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
720 - ac_cv_path_GREP="$ac_path_GREP"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
721 - ac_path_GREP_max=$ac_count
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
722 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
723 - # 10*(2^10) chars as input seems more than enough
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
724 - test $ac_count -gt 10 && break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
725 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
726 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
727 -esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
728 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
729 - $ac_path_GREP_found && break 3
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
730 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
731 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
732 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
733 -IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
734 - if test -z "$ac_cv_path_GREP"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
735 - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
736 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
737 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
738 - ac_cv_path_GREP=$GREP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
739 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
740 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
741 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
742 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
743 -$as_echo "$ac_cv_path_GREP" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
744 - GREP="$ac_cv_path_GREP"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
745 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
746 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
747 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
748 -$as_echo_n "checking for egrep... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
749 -if ${ac_cv_path_EGREP+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
750 - $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
751 + if test -n "$ac_ct_NC_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
752 + ac_cv_prog_ac_ct_NC_CONFIG="$ac_ct_NC_CONFIG" # Let the user override the test.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
753 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
754 - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
755 - then ac_cv_path_EGREP="$GREP -E"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
756 - else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
757 - if test -z "$EGREP"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
758 - ac_path_EGREP_found=false
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
759 - # Loop through the user's path and test for each of PROGNAME-LIST
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
760 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
761 -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
762 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
763 +for as_dir in $PATH
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
764 do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
765 IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
766 test -z "$as_dir" && as_dir=.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
767 - for ac_prog in egrep; do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
768 for ac_exec_ext in '' $ac_executable_extensions; do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
769 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
770 - as_fn_executable_p "$ac_path_EGREP" || continue
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
771 -# Check for GNU ac_path_EGREP and select it if it is found.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
772 - # Check for GNU $ac_path_EGREP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
773 -case `"$ac_path_EGREP" --version 2>&1` in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
774 -*GNU*)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
775 - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
776 -*)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
777 - ac_count=0
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
778 - $as_echo_n 0123456789 >"conftest.in"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
779 - while :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
780 - do
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
781 - cat "conftest.in" "conftest.in" >"conftest.tmp"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
782 - mv "conftest.tmp" "conftest.in"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
783 - cp "conftest.in" "conftest.nl"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
784 - $as_echo 'EGREP' >> "conftest.nl"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
785 - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
786 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
787 - as_fn_arith $ac_count + 1 && ac_count=$as_val
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
788 - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
789 - # Best one so far, save it but keep looking for a better one
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
790 - ac_cv_path_EGREP="$ac_path_EGREP"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
791 - ac_path_EGREP_max=$ac_count
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
792 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
793 - # 10*(2^10) chars as input seems more than enough
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
794 - test $ac_count -gt 10 && break
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
795 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
796 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
797 -esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
798 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
799 - $ac_path_EGREP_found && break 3
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
800 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
801 - done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
802 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
803 + ac_cv_prog_ac_ct_NC_CONFIG="nc-config"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
804 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
805 + break 2
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
806 + fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
807 +done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
808 done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
809 IFS=$as_save_IFS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
810 - if test -z "$ac_cv_path_EGREP"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
811 - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
812 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
813 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
814 - ac_cv_path_EGREP=$EGREP
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
815 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
816 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
817 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
818 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
819 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
820 -$as_echo "$ac_cv_path_EGREP" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
821 - EGREP="$ac_cv_path_EGREP"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
822 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
823
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
824 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
825 -$as_echo_n "checking for ANSI C header files... " >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
826 -if ${ac_cv_header_stdc+:} false; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
827 - $as_echo_n "(cached) " >&6
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
828 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
829 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
830 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
831 -#include <stdlib.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
832 -#include <stdarg.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
833 -#include <string.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
834 -#include <float.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
835 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
836 -int
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
837 -main ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
838 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
839 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
840 - ;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
841 - return 0;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
842 -}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
843 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
844 -if ac_fn_c_try_compile "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
845 - ac_cv_header_stdc=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
846 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
847 - ac_cv_header_stdc=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
848 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
849 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
850 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
851 -if test $ac_cv_header_stdc = yes; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
852 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
853 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
854 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
855 -#include <string.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
856 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
857 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
858 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
859 - $EGREP "memchr" >/dev/null 2>&1; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
860 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
861 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
862 - ac_cv_header_stdc=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
863 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
864 -rm -f conftest*
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
865 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
866 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
867 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
868 -if test $ac_cv_header_stdc = yes; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
869 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
870 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
871 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
872 -#include <stdlib.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
873 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
874 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
875 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
876 - $EGREP "free" >/dev/null 2>&1; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
877 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
878 +ac_ct_NC_CONFIG=$ac_cv_prog_ac_ct_NC_CONFIG
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
879 +if test -n "$ac_ct_NC_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
880 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NC_CONFIG" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
881 +$as_echo "$ac_ct_NC_CONFIG" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
882 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
883 - ac_cv_header_stdc=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
884 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
885 -rm -f conftest*
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
886 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
887 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
888 +$as_echo "no" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
889 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
890
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
891 -if test $ac_cv_header_stdc = yes; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
892 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
893 - if test "$cross_compiling" = yes; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
894 - :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
895 -else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
896 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
897 -/* end confdefs.h. */
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
898 -#include <ctype.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
899 -#include <stdlib.h>
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
900 -#if ((' ' & 0x0FF) == 0x020)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
901 -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
902 -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
903 -#else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
904 -# define ISLOWER(c) \
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
905 - (('a' <= (c) && (c) <= 'i') \
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
906 - || ('j' <= (c) && (c) <= 'r') \
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
907 - || ('s' <= (c) && (c) <= 'z'))
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
908 -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
909 -#endif
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
910 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
911 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
912 -int
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
913 -main ()
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
914 -{
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
915 - int i;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
916 - for (i = 0; i < 256; i++)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
917 - if (XOR (islower (i), ISLOWER (i))
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
918 - || toupper (i) != TOUPPER (i))
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
919 - return 2;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
920 - return 0;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
921 -}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
922 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
923 -if ac_fn_c_try_run "$LINENO"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
924 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
925 + if test "x$ac_ct_NC_CONFIG" = x; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
926 + NC_CONFIG="nc-config"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
927 + else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
928 + case $cross_compiling:$ac_tool_warned in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
929 +yes:)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
930 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
931 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
932 +ac_tool_warned=yes ;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
933 +esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
934 + NC_CONFIG=$ac_ct_NC_CONFIG
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
935 + fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
936 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
937 - ac_cv_header_stdc=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
938 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
939 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
940 - conftest.$ac_objext conftest.beam conftest.$ac_ext
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
941 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
942 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
943 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
944 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
945 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
946 -$as_echo "$ac_cv_header_stdc" >&6; }
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
947 -if test $ac_cv_header_stdc = yes; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
948 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
949 -$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
950 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
951 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
952 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
953 -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
954 -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
955 - inttypes.h stdint.h unistd.h
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
956 -do :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
957 - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
958 -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
959 -"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
960 -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
961 - cat >>confdefs.h <<_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
962 -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
963 -_ACEOF
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
964 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
965 + NC_CONFIG="$ac_cv_prog_NC_CONFIG"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
966 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
967
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
968 -done
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
969 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
970
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
971 -ac_fn_c_check_header_mongrel "$LINENO" "netcdf.h" "ac_cv_header_netcdf_h" "$ac_includes_default"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
972 -if test "x$ac_cv_header_netcdf_h" = xyes; then :
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
973 - HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
974 +OCTCDF_LIBS="$OCTCDF_LIBS `$NC_CONFIG --libs`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
975 +OCTCDF_CFLAGS="$OCTCDF_CFLAGS `$NC_CONFIG --cflags`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
976 +if test -z "$NC_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
977 +as_fn_error 1 "nc-config not found" "$LINENO" 5;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
978 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
979 - HAVE_NETCDF=no
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
980 -fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
981 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
982 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
983 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
984 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
985 + HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
986 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
987
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
988
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
989 @@ -3820,6 +3195,7 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
990 octave-forge is configured with
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
991 octave: $OCTAVE (version $OCTAVE_VERSION)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
992 mkoctfile: $MKOCTFILE for Octave $subver
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
993 + octave-config: $OCTAVE_CONFIG for Octave $subver
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
994 octcdf toolbox: $OCTCDFSTATUS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
995 netCDF compiler flags: $OCTCDF_CFLAGS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
996 netCDF libraries: $OCTCDF_LIBS"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
997 diff -ur octcdf.orig/src/configure.base octcdf/src/configure.base
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
998 --- octcdf.orig/src/configure.base 2015-04-14 11:21:17.161247377 -0400
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
999 +++ octcdf/src/configure.base 2015-04-14 11:22:37.730853787 -0400
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1000 @@ -50,6 +50,9 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1001 AC_CHECK_PROG(MKOCTFILE,mkoctfile,mkoctfile)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1002 test -z "$MKOCTFILE" && AC_MSG_WARN([no mkoctfile found on path])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1003
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1004 +AC_CHECK_PROG(OCTAVE_CONFIG,octave-config,octave-config)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1005 +test -z "$OCTAVE_CONFIG" && AC_MSG_WARN([no octave-config found on path])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1006 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1007 AC_SUBST(ver)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1008 AC_SUBST(subver)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1009 AC_SUBST(mpath)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1010 @@ -267,15 +270,22 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1011 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1012 ])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1013
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1014 +AC_DEFUN(OCTAVE_CONFIG_EVAL,
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1015 +[AC_MSG_CHECKING([for $1 in octave-config])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1016 +$2=`$OCTAVE_CONFIG -p $1`
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1017 +AC_MSG_RESULT($$2)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1018 +AC_SUBST($2)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1019 +])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1020 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1021 dnl should check that $(OCTAVE) --version matches $(MKOCTFILE) --version
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1022 AC_CHECK_PROG(OCTAVE,octave,octave)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1023 -OCTAVE_EVAL(OCTAVE_VERSION,OCTAVE_VERSION)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1024 +OCTAVE_CONFIG_EVAL(VERSION,OCTAVE_VERSION)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1025
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1026 dnl grab canonical host type so we can write system specific install stuff
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1027 -OCTAVE_EVAL(octave_config_info('canonical_host_type'),canonical_host_type)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1028 +OCTAVE_CONFIG_EVAL(CANONICAL_HOST_TYPE,canonical_host_type)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1029
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1030 dnl grab SHLEXT from octave config
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1031 -OCTAVE_EVAL(octave_config_info('SHLEXT'),SHLEXT)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1032 +OCTAVE_CONFIG_EVAL(SHLEXT,SHLEXT)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1033
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1034 AC_PROG_LN_S
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1035
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1036 @@ -308,44 +318,17 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1037 ;;
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1038 esac
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1039
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1040 -dnl first checking for nc-config, then nc-dap
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1041 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1042 -AC_MSG_CHECKING([for nc-config])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1043 +dnl check for nc-config
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1044 +AC_CHECK_TOOL(NC_CONFIG, nc-config, nc-config)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1045
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1046 -if nc-config --version > /dev/null 2>&1; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1047 - AC_MSG_RESULT([yes])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1048 - OCTCDF_LIBS="$OCTCDF_LIBS `nc-config --libs`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1049 - OCTCDF_CFLAGS="$OCTCDF_CFLAGS `nc-config --cflags`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1050 - HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1051 +OCTCDF_LIBS="$OCTCDF_LIBS `$NC_CONFIG --libs`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1052 +OCTCDF_CFLAGS="$OCTCDF_CFLAGS `$NC_CONFIG --cflags`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1053 +if test -z "$NC_CONFIG"; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1054 +AC_MSG_ERROR([nc-config not found], 1);
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1055 else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1056 - AC_MSG_RESULT([no])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1057 - AC_MSG_CHECKING([for nc-dap])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1058 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1059 - if ncdap-config --version > /dev/null 2>&1; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1060 - AC_MSG_RESULT([yes])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1061 - OCTCDF_LIBS="$OCTCDF_LIBS `ncdap-config --libs`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1062 - OCTCDF_CFLAGS="$OCTCDF_CFLAGS `ncdap-config --cflags`"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1063 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1064 - HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1065 - else
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1066 - AC_MSG_RESULT([no])
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1067 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1068 - dnl if no opendap, checking if the NetCDF library exists.
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1069 - dnl AC_CHECK_LIB takes the value of LDFLAGS into account
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1070 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1071 - AC_CHECK_LIB(netcdf,nc_open, HAVE_NETCDF=yes, HAVE_NETCDF=no,)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1072 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1073 - if test $HAVE_NETCDF = yes ; then
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1074 - OCTCDF_LIBS="$OCTCDF_LIBS -lnetcdf"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1075 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1076 - dnl we have the libraries, no we have also the headers?
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1077 - dnl AC_CHECK_HEADER takes the value of CPPFLAGS into account
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1078 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1079 - AC_CHECK_HEADER(netcdf.h, HAVE_NETCDF=yes, HAVE_NETCDF=no)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1080 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1081 - fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1082 + HAVE_NETCDF=yes
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1083 fi
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1084 -
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1085 +
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1086 AC_SUBST(HAVE_NETCDF)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1087 AC_SUBST(OCTCDF_LIBS)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1088 AC_SUBST(OCTCDF_CFLAGS)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1089 @@ -375,6 +358,7 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1090 octave-forge is configured with
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1091 octave: $OCTAVE (version $OCTAVE_VERSION)
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1092 mkoctfile: $MKOCTFILE for Octave $subver
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1093 + octave-config: $OCTAVE_CONFIG for Octave $subver
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1094 octcdf toolbox: $OCTCDFSTATUS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1095 netCDF compiler flags: $OCTCDF_CFLAGS
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1096 netCDF libraries: $OCTCDF_LIBS"
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1097 diff -ur octcdf.orig/src/Makeconf.in octcdf/src/Makeconf.in
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1098 --- octcdf.orig/src/Makeconf.in 2015-04-14 11:21:17.161247377 -0400
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1099 +++ octcdf/src/Makeconf.in 2015-04-14 11:21:33.423571620 -0400
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1100 @@ -53,6 +53,8 @@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1101 OCTAVE_VERSION = @OCTAVE_VERSION@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1102 MKOCTFILE = @MKOCTFILE@ -DHAVE_OCTAVE_$(ver) -v
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1103 SHLEXT = @SHLEXT@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1104 +NC_CONFIG = @NC_CONFIG@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1105 +OCTAVE_CONFIG = @OCTAVE_CONFIG@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1106
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1107 HAVE_NETCDF=@HAVE_NETCDF@
3d16df45776b of-octcdf: add to mxe
John Donoghue
parents:
diff changeset
1108 OCTCDF_LIBS=@OCTCDF_LIBS@
4059
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1109 diff -ur octcdf.orig/src/configure octcdf/src/configure
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1110 --- octcdf.orig/src/configure 2015-11-25 08:22:54.216927907 -0500
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1111 +++ octcdf/src/configure 2015-11-25 08:43:20.679996250 -0500
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1112 @@ -2887,6 +2887,11 @@
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1113
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1114
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1115
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1116 +oct_ver=`echo $OCTAVE_VERSION | sed -e "s/\.//" -e "s/\..*$//"`
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1117 +if test "$oct_ver" -ge "40" ; then
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1118 + OCTCDF_CFLAGS="$OCTCDF_CFLAGS -DOV_REP_TYPE=octave_base_value"
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1119 +fi
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1120 +
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CANONICAL_HOST_TYPE in octave-config" >&5
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1122 $as_echo_n "checking for CANONICAL_HOST_TYPE in octave-config... " >&6; }
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1123 canonical_host_type=`$OCTAVE_CONFIG -p CANONICAL_HOST_TYPE`
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1124 diff -ur octcdf.orig/src/configure.base octcdf/src/configure.base
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1125 --- octcdf.orig/src/configure.base 2015-11-25 08:22:54.215927888 -0500
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1126 +++ octcdf/src/configure.base 2015-11-25 08:43:05.311695338 -0500
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1127 @@ -281,6 +281,11 @@
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1128 AC_CHECK_PROG(OCTAVE,octave,octave)
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1129 OCTAVE_CONFIG_EVAL(VERSION,OCTAVE_VERSION)
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1130
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1131 +oct_ver=`echo $OCTAVE_VERSION | sed -e "s/\.//" -e "s/\..*$//"`
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1132 +if test "$ocvt_ver" -ge "40" ; then
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1133 + OCTCDF_CFLAGS="$OCTCDF_CFLAGS -DOV_REP_TYPE=octave_base_value"
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1134 +fi
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1135 +
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1136 dnl grab canonical host type so we can write system specific install stuff
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1137 OCTAVE_CONFIG_EVAL(CANONICAL_HOST_TYPE,canonical_host_type)
b5a28d770997 of-communications, of-octcdf: update patch for default repo of octave
John Donoghue
parents: 3904
diff changeset
1138