| 1 |
|
|---|
| 2 |
define([AC_CACHE_LOAD], )dnl |
|---|
| 3 |
define([AC_CACHE_SAVE], )dnl |
|---|
| 4 |
|
|---|
| 5 |
AC_INIT(Source/Base/Base/OSGBaseDef.h) |
|---|
| 6 |
|
|---|
| 7 |
AC_PREREQ(1.3) |
|---|
| 8 |
|
|---|
| 9 |
dnl ############# Default Settings ##################### |
|---|
| 10 |
|
|---|
| 11 |
if test $srcdir = .; then |
|---|
| 12 |
ac_gdz_src_dir=`pwd` |
|---|
| 13 |
ac_gdz_lib_src_dir=`pwd` |
|---|
| 14 |
elif test $srcdir = ..; then |
|---|
| 15 |
ac_gdz_src_dir=`pwd`/.. |
|---|
| 16 |
ac_gdz_lib_src_dir=`pwd`/.. |
|---|
| 17 |
else |
|---|
| 18 |
ac_gdz_src_dir=$srcdir |
|---|
| 19 |
ac_gdz_lib_src_dir=$srcdir |
|---|
| 20 |
fi |
|---|
| 21 |
|
|---|
| 22 |
ac_gdz_common_dir=$ac_gdz_src_dir/Common |
|---|
| 23 |
ac_gdz_commonconf_dir=CommonConf |
|---|
| 24 |
ac_gdz_so_praefix= |
|---|
| 25 |
ac_gdz_ms_compiler_version= |
|---|
| 26 |
ac_gdz_so_suffix= |
|---|
| 27 |
ac_gdz_lib_suffix= |
|---|
| 28 |
ac_gdz_obj_suffix= |
|---|
| 29 |
ac_gdz_exe_suffix= |
|---|
| 30 |
ac_gdz_common_patterns=$ac_gdz_commonconf_dir/common.pattern.in |
|---|
| 31 |
ac_gdz_build_dir=`pwd` |
|---|
| 32 |
ac_gdz_compiler_exe= |
|---|
| 33 |
ac_gdz_conf_package_defs= |
|---|
| 34 |
ac_gdz_conf_package_qt='0' |
|---|
| 35 |
ac_gdz_conf_package_qt_e1='0' |
|---|
| 36 |
ac_gdz_conf_package_glut='0' |
|---|
| 37 |
ac_gdz_conf_package_glut_e1='0' |
|---|
| 38 |
ac_gdz_conf_package_stlport='0' |
|---|
| 39 |
ac_gdz_conf_package_stlport_e1='0' |
|---|
| 40 |
ac_gdz_conf_package_tif='0' |
|---|
| 41 |
ac_gdz_conf_package_tif_e1='0' |
|---|
| 42 |
ac_gdz_conf_package_jpg='0' |
|---|
| 43 |
ac_gdz_conf_package_jpg_e1='0'CommonConf/ |
|---|
| 44 |
ac_gdz_conf_package_png='0' |
|---|
| 45 |
ac_gdz_conf_package_png_e1='0' |
|---|
| 46 |
ac_gdz_conf_package_mng='0' |
|---|
| 47 |
ac_gdz_conf_package_mng_e1='0' |
|---|
| 48 |
ac_gdz_conf_package_gif='0' |
|---|
| 49 |
ac_gdz_conf_package_gif_e1='0' |
|---|
| 50 |
ac_gdz_conf_package_libxml='0' |
|---|
| 51 |
ac_gdz_conf_package_libxml='0' |
|---|
| 52 |
ac_gdz_conf_package_efence='0' |
|---|
| 53 |
ac_gdz_conf_package_efence_e1='0' |
|---|
| 54 |
ac_gdz_conf_package_myrinet='0' |
|---|
| 55 |
ac_gdz_conf_package_myrinet_e1='0' |
|---|
| 56 |
ac_gdz_conf_package_text='0' |
|---|
| 57 |
ac_gdz_conf_package_text_e1='0' |
|---|
| 58 |
|
|---|
| 59 |
ac_gdz_with_add_incdirs= |
|---|
| 60 |
ac_gdz_with_add_libdirs= |
|---|
| 61 |
ac_gdz_with_add_libs= |
|---|
| 62 |
|
|---|
| 63 |
ac_gdz_test_debug_libs= |
|---|
| 64 |
|
|---|
| 65 |
ac_gdz_wrote_stl="no" |
|---|
| 66 |
|
|---|
| 67 |
ac_gdz_stl_suffix= |
|---|
| 68 |
|
|---|
| 69 |
AC_CONFIG_AUX_DIR($ac_gdz_commonconf_dir) |
|---|
| 70 |
|
|---|
| 71 |
dnl ############# Compiler Settings ##################### |
|---|
| 72 |
|
|---|
| 73 |
AC_ARG_WITH(compiler,[ --with-compiler=<compiler> choose one of the following\ |
|---|
| 74 |
compilers |
|---|
| 75 |
IRIX : CC, CC64 |
|---|
| 76 |
Windows : icl (==50), icl50, icl60, icl70, icl71, icl80, cl.net, cl.net2003 |
|---|
| 77 |
GNU/Linux : g++,icc,g++3 |
|---|
| 78 |
Darwin : c++,c++3,g++,g++3 |
|---|
| 79 |
HPUX : aCC], |
|---|
| 80 |
echo Compiler : $with_compiler;ac_gdz_compiler=$with_compiler;) |
|---|
| 81 |
|
|---|
| 82 |
dnl ############# SUFFIX Settings ##################### |
|---|
| 83 |
|
|---|
| 84 |
AC_ARG_WITH(suffix, [ --with-suffix=SUFFIX add suffix to build dir], |
|---|
| 85 |
,with_suffix=no) |
|---|
| 86 |
|
|---|
| 87 |
if test "$with_suffix" = yes; then |
|---|
| 88 |
ac_gdz_suffix= |
|---|
| 89 |
elif test "$with_suffix" = no; then |
|---|
| 90 |
ac_gdz_suffix= |
|---|
| 91 |
elif test "X$with_suffix" = X; then |
|---|
| 92 |
ac_gdz_suffix= |
|---|
| 93 |
else |
|---|
| 94 |
ac_gdz_suffix=-$with_suffix |
|---|
| 95 |
fi |
|---|
| 96 |
|
|---|
| 97 |
dnl ############# STL Settings ##################### |
|---|
| 98 |
|
|---|
| 99 |
AC_ARG_WITH(stl, [ --with-stl=DIR Where to find the stl to use, incompatible with stlport options], |
|---|
| 100 |
,with_stl=no) |
|---|
| 101 |
|
|---|
| 102 |
if test "$with_stl" = yes; then |
|---|
| 103 |
ac_gdz_stl_dir= |
|---|
| 104 |
elif test "$with_stl" = no; then |
|---|
| 105 |
ac_gdz_stl_dir= |
|---|
| 106 |
else |
|---|
| 107 |
ac_gdz_stl_dir=$with_stl |
|---|
| 108 |
fi |
|---|
| 109 |
|
|---|
| 110 |
dnl ############# STLPort Settings ##################### |
|---|
| 111 |
|
|---|
| 112 |
AC_ARG_ENABLE(stlport, [ --enable-stlport Build with stlport support, incompatible with --with-stl, VS7 only ], |
|---|
| 113 |
,enable_stlport=no) |
|---|
| 114 |
|
|---|
| 115 |
AC_ARG_WITH(stlport, [ --with-stlport =DIR Use DIR/lib DIR/include to find the stlport files, incompatible with --with-stl, VS7 only ], |
|---|
| 116 |
,with_stlport=) |
|---|
| 117 |
|
|---|
| 118 |
AC_ARG_WITH(stlportincludedir, [ --with-stlportincludedir=DIR Use stlport includes from the given directory, incompatible with --with-stl, VS7 only ], |
|---|
| 119 |
,with_stlportincludedir=) |
|---|
| 120 |
|
|---|
| 121 |
AC_ARG_WITH(stlportlibdir, [ --with-stlportlibdir =DIR Use stlport library from the given directory, incompatible with --with-stl, VS7 only ], |
|---|
| 122 |
,with_stlportlibdir=) |
|---|
| 123 |
|
|---|
| 124 |
if test "$enable_stlport" = no && test "$with_stlport" = yes; then |
|---|
| 125 |
enable_stlport=yes |
|---|
| 126 |
with_stlport= |
|---|
| 127 |
fi |
|---|
| 128 |
|
|---|
| 129 |
if test "$enable_stlport" = no && test "$with_stlport"X != "X"; then |
|---|
| 130 |
enable_stlport=yes |
|---|
| 131 |
fi |
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
if test "$enable_stlport" = yes; then |
|---|
| 135 |
ac_gdz_stlport_incdir= |
|---|
| 136 |
ac_gdz_stlport_libdir= |
|---|
| 137 |
ac_gdz_conf_package_defs=-DOSG_WITH_STLPORT |
|---|
| 138 |
ac_gdz_conf_package_stlport='1' |
|---|
| 139 |
ac_gdz_conf_package_stlport_e1='1' |
|---|
| 140 |
|
|---|
| 141 |
if test -n "$with_stlport"; then |
|---|
| 142 |
ac_gdz_stlport_incdir=$with_stlport/stlport |
|---|
| 143 |
ac_gdz_stlport_libdir=$with_stlport/lib |
|---|
| 144 |
|
|---|
| 145 |
if ! test -d "$ac_gdz_stlport_incdir" && ! test -n "$with_stlportincludedir"; then |
|---|
| 146 |
echo "ERROR stlport include dir ($ac_gdz_stlport_incdir) does not seem to exist, please check the given base dir \"$with_stlport\"" |
|---|
| 147 |
exit |
|---|
| 148 |
fi |
|---|
| 149 |
if ! test -d "$ac_gdz_stlport_libdir" && ! test -n "$with_stlportlibdir"; then |
|---|
| 150 |
echo "ERROR stlport lib dir does not seem to exist, please check the given base dir \"$with_stlport\"" |
|---|
| 151 |
exit |
|---|
| 152 |
fi |
|---|
| 153 |
fi |
|---|
| 154 |
|
|---|
| 155 |
if test -n "$with_stlportincludedir"; then |
|---|
| 156 |
ac_gdz_stlport_incdir=$with_stlportincludedir |
|---|
| 157 |
|
|---|
| 158 |
if ! test -d "$ac_gdz_stlport_incdir"; then |
|---|
| 159 |
echo "ERROR stlport include dir does not seem to exist, please check the given dir \"$with_stlportincludedir\"" |
|---|
| 160 |
exit |
|---|
| 161 |
fi |
|---|
| 162 |
fi |
|---|
| 163 |
|
|---|
| 164 |
if test -n "$with_stlportlibdir"; then |
|---|
| 165 |
ac_gdz_stlport_libdir=$with_stlportlibdir |
|---|
| 166 |
|
|---|
| 167 |
if ! test -d "$ac_gdz_stlport_libdir"; then |
|---|
| 168 |
echo "ERROR stlport lib dir does not seem to exist, please check the given dir \"$with_stlportlibdir\"" |
|---|
| 169 |
exit |
|---|
| 170 |
fi |
|---|
| 171 |
fi |
|---|
| 172 |
else |
|---|
| 173 |
ac_gdz_stlport_dir= |
|---|
| 174 |
ac_gdz_stlport_incdir= |
|---|
| 175 |
ac_gdz_stlport_libdir= |
|---|
| 176 |
fi |
|---|
| 177 |
|
|---|
| 178 |
dnl ############# GL Settings ##################### |
|---|
| 179 |
|
|---|
| 180 |
AC_ARG_WITH(gl, [ --with-gl=DIR Use gl, if DIR is given use the file from the give directory], |
|---|
| 181 |
,with_gl=yes) |
|---|
| 182 |
|
|---|
| 183 |
if test "$with_gl" = yes; then |
|---|
| 184 |
ac_gdz_gl_dir=yes |
|---|
| 185 |
ac_gdz_conf_package_gl='1' |
|---|
| 186 |
ac_gdz_conf_package_gl_e1='1' |
|---|
| 187 |
elif test "$with_gl" = no; then |
|---|
| 188 |
ac_gdz_gl_dir= |
|---|
| 189 |
else |
|---|
| 190 |
ac_gdz_gl_dir=$with_gl |
|---|
| 191 |
ac_gdz_conf_package_gl='1' |
|---|
| 192 |
ac_gdz_conf_package_gl_e1='1' |
|---|
| 193 |
fi |
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 |
dnl ############# GLUT Settings ##################### |
|---|
| 197 |
|
|---|
| 198 |
AC_ARG_ENABLE(glut, [ --enable-glut Build with glut support ], |
|---|
| 199 |
,enable_glut=no) |
|---|
| 200 |
|
|---|
| 201 |
AC_ARG_WITH(glut, [ --with-glut =DIR Use DIR/lib DIR/include to find the glut files ], |
|---|
| 202 |
,with_glut=) |
|---|
| 203 |
|
|---|
| 204 |
AC_ARG_WITH(glutincludedir, [ --with-glutincludedir=DIR Use glut includes from the given directory ], |
|---|
| 205 |
,with_glutincludedir=) |
|---|
| 206 |
|
|---|
| 207 |
AC_ARG_WITH(glutlibdir, [ --with-glutlibdir =DIR Use glut library from the given directory ], |
|---|
| 208 |
,with_glutlibdir=) |
|---|
| 209 |
|
|---|
| 210 |
if test "$enable_glut" = no && test "$with_glut" = yes; then |
|---|
| 211 |
enable_glut=yes |
|---|
| 212 |
with_glut= |
|---|
| 213 |
fi |
|---|
| 214 |
|
|---|
| 215 |
if test "$enable_glut" = no && test "$with_glut"X != "X"; then |
|---|
| 216 |
enable_glut=yes |
|---|
| 217 |
fi |
|---|
| 218 |
|
|---|
| 219 |
if test "$enable_glut" = yes; then |
|---|
| 220 |
ac_gdz_glut_incdir= |
|---|
| 221 |
ac_gdz_glut_libdir= |
|---|
| 222 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_GLUT' |
|---|
| 223 |
ac_gdz_conf_package_glut='1' |
|---|
| 224 |
ac_gdz_conf_package_glut_e1='1' |
|---|
| 225 |
|
|---|
| 226 |
if test -n "$with_glut"; then |
|---|
| 227 |
ac_gdz_glut_incdir=$with_glut/include |
|---|
| 228 |
|
|---|
| 229 |
case $build_os in |
|---|
| 230 |
hpux*) |
|---|
| 231 |
ac_gdz_glut_libdir=$with_glut/lib/X11 |
|---|
| 232 |
;; |
|---|
| 233 |
*) |
|---|
| 234 |
ac_gdz_glut_libdir=$with_glut/lib |
|---|
| 235 |
;; |
|---|
| 236 |
esac |
|---|
| 237 |
|
|---|
| 238 |
if ! test -d "$ac_gdz_glut_incdir" && ! test -n "$with_glutincludedir"; then |
|---|
| 239 |
echo "ERROR glut include dir does not seem to exist, please check the given base dir \"$with_glut\"" |
|---|
| 240 |
exit |
|---|
| 241 |
fi |
|---|
| 242 |
if ! test -d "$ac_gdz_glut_libdir" && ! test -n "$with_glutlibdir"; then |
|---|
| 243 |
echo "ERROR glut lib dir does not seem to exist, please check the given base dir \"$with_glut\"" |
|---|
| 244 |
exit |
|---|
| 245 |
fi |
|---|
| 246 |
fi |
|---|
| 247 |
|
|---|
| 248 |
if test -n "$with_glutincludedir"; then |
|---|
| 249 |
ac_gdz_glut_incdir=$with_glutincludedir |
|---|
| 250 |
|
|---|
| 251 |
if ! test -d "$ac_gdz_glut_incdir"; then |
|---|
| 252 |
echo "ERROR glut include dir does not seem to exist, please check the given dir \"$with_glutincludedir\"" |
|---|
| 253 |
exit |
|---|
| 254 |
fi |
|---|
| 255 |
fi |
|---|
| 256 |
|
|---|
| 257 |
if test -n "$with_glutlibdir"; then |
|---|
| 258 |
ac_gdz_glut_libdir=$with_glutlibdir |
|---|
| 259 |
|
|---|
| 260 |
if ! test -d "$ac_gdz_glut_libdir"; then |
|---|
| 261 |
echo "ERROR glut lib dir does not seem to exist, please check the given dir \"$with_glutlibdir\"" |
|---|
| 262 |
exit |
|---|
| 263 |
fi |
|---|
| 264 |
fi |
|---|
| 265 |
else |
|---|
| 266 |
ac_gdz_glut_dir= |
|---|
| 267 |
ac_gdz_glut_incdir= |
|---|
| 268 |
ac_gdz_glut_libdir= |
|---|
| 269 |
fi |
|---|
| 270 |
|
|---|
| 271 |
dnl ############# QT Settings ##################### |
|---|
| 272 |
|
|---|
| 273 |
AC_ARG_ENABLE(qt, [ --enable-qt Build with qt support], |
|---|
| 274 |
,enable_qt=no) |
|---|
| 275 |
AC_ARG_WITH(qt, [ --with-qt=DIR Use DIR/lib DIR/include to find the qt files], |
|---|
| 276 |
,with_qt=) |
|---|
| 277 |
AC_ARG_WITH(qtincludedir, [ --with-qtincludedir=DIR Use qt includes from the given directory], |
|---|
| 278 |
,with_qtincludedir=) |
|---|
| 279 |
AC_ARG_WITH(qtlibdir, [ --with-qtlibdir=DIR Use qt library from the given directory], |
|---|
| 280 |
,with_qtlibdir=) |
|---|
| 281 |
AC_ARG_WITH(qtbindir, [ --with-qtbindir=DIR Use qt binaries from the given directory], |
|---|
| 282 |
,with_qtbindir=) |
|---|
| 283 |
|
|---|
| 284 |
if test "$enable_qt" = no && test "$with_qt" = yes; then |
|---|
| 285 |
enable_qt=yes |
|---|
| 286 |
with_qt= |
|---|
| 287 |
fi |
|---|
| 288 |
|
|---|
| 289 |
if test "$enable_qt" = no && test "$with_qt"X != "X"; then |
|---|
| 290 |
enable_qt=yes |
|---|
| 291 |
fi |
|---|
| 292 |
|
|---|
| 293 |
if test "$enable_qt" = yes; then |
|---|
| 294 |
ac_gdz_qt_incdir= |
|---|
| 295 |
ac_gdz_qt_libdir= |
|---|
| 296 |
ac_gdz_qt_bindir= |
|---|
| 297 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_QT' |
|---|
| 298 |
ac_gdz_conf_package_qt='1' |
|---|
| 299 |
ac_gdz_conf_package_qt_e1='1' |
|---|
| 300 |
|
|---|
| 301 |
if test -n "$with_qt"; then |
|---|
| 302 |
ac_gdz_qt_incdir=$with_qt/include |
|---|
| 303 |
ac_gdz_qt_libdir=$with_qt/lib |
|---|
| 304 |
ac_gdz_qt_bindir=$with_qt/bin |
|---|
| 305 |
|
|---|
| 306 |
if ! test -d "$ac_gdz_qt_incdir" && ! test -n "$with_qtincludedir"; then |
|---|
| 307 |
echo "ERROR qt include dir does not seem to exist, please check the given base dir \"$with_qt\"" |
|---|
| 308 |
exit |
|---|
| 309 |
fi |
|---|
| 310 |
if ! test -d "$ac_gdz_qt_libdir" && ! test -n "$with_qtlibdir"; then |
|---|
| 311 |
echo "ERROR qt lib dir does not seem to exist, please check the given base dir \"$with_qt\"" |
|---|
| 312 |
exit |
|---|
| 313 |
fi |
|---|
| 314 |
if ! test -d "$ac_gdz_qt_bindir" && ! test -n "$with_qtbindir"; then |
|---|
| 315 |
echo "ERROR qt bin dir does not seem to exist, please check the given base dir \"$with_qt\"" |
|---|
| 316 |
exit |
|---|
| 317 |
fi |
|---|
| 318 |
fi |
|---|
| 319 |
|
|---|
| 320 |
if test -n "$with_qtincludedir"; then |
|---|
| 321 |
ac_gdz_qt_incdir=$with_qtincludedir |
|---|
| 322 |
|
|---|
| 323 |
if ! test -d "$ac_gdz_qt_incdir"; then |
|---|
| 324 |
echo "ERROR qt include dir does not seem to exist, please check the given dir \"$with_qtincludedir\"" |
|---|
| 325 |
exit |
|---|
| 326 |
fi |
|---|
| 327 |
fi |
|---|
| 328 |
|
|---|
| 329 |
if test -n "$with_qtlibdir"; then |
|---|
| 330 |
ac_gdz_qt_libdir=$with_qtlibdir |
|---|
| 331 |
|
|---|
| 332 |
if ! test -d "$ac_gdz_qt_libdir"; then |
|---|
| 333 |
echo "ERROR qt lib dir does not seem to exist, please check the given dir \"$with_qtlibdir\"" |
|---|
| 334 |
exit |
|---|
| 335 |
fi |
|---|
| 336 |
fi |
|---|
| 337 |
|
|---|
| 338 |
if test -n "$with_qtbindir"; then |
|---|
| 339 |
ac_gdz_qt_bindir=$with_qtbindir |
|---|
| 340 |
|
|---|
| 341 |
if ! test -d "$ac_gdz_qt_bindir"; then |
|---|
| 342 |
echo "ERROR qt bin dir does not seem to exist, please check the given dir \"$with_qtbindir\"" |
|---|
| 343 |
exit |
|---|
| 344 |
fi |
|---|
| 345 |
fi |
|---|
| 346 |
else |
|---|
| 347 |
ac_gdz_qt_dir= |
|---|
| 348 |
ac_gdz_qt_incdir= |
|---|
| 349 |
ac_gdz_qt_libdir= |
|---|
| 350 |
ac_gdz_qt_bindir= |
|---|
| 351 |
fi |
|---|
| 352 |
|
|---|
| 353 |
dnl ############# TIF Settings ##################### |
|---|
| 354 |
|
|---|
| 355 |
AC_ARG_ENABLE(tif, [ --enable-tif Build with tif support], |
|---|
| 356 |
,enable_tif=no) |
|---|
| 357 |
AC_ARG_WITH(tif, [ --with-tif=DIR Use DIR/lib DIR/include to find the tif files], |
|---|
| 358 |
,with_tif=) |
|---|
| 359 |
AC_ARG_WITH(tifincludedir, [ --with-tifincludedir=DIR Use tif includes from the given directory], |
|---|
| 360 |
,with_tifincludedir=) |
|---|
| 361 |
AC_ARG_WITH(tiflibdir, [ --with-tiflibdir=DIR Use tif lib from the given directory], |
|---|
| 362 |
,with_tiflibdir=) |
|---|
| 363 |
|
|---|
| 364 |
if test "$enable_tif" = no && test "$with_tif" = yes; then |
|---|
| 365 |
enable_tif=yes |
|---|
| 366 |
with_tif= |
|---|
| 367 |
fi |
|---|
| 368 |
|
|---|
| 369 |
if test "$enable_tif" = no && test "$with_tif"X != "X"; then |
|---|
| 370 |
enable_tif=yes |
|---|
| 371 |
fi |
|---|
| 372 |
|
|---|
| 373 |
if test "$enable_tif" = yes; then |
|---|
| 374 |
ac_gdz_tif_incdir= |
|---|
| 375 |
ac_gdz_tif_libdir= |
|---|
| 376 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_TIF' |
|---|
| 377 |
ac_gdz_conf_package_tif='1' |
|---|
| 378 |
ac_gdz_conf_package_tif_e1='1' |
|---|
| 379 |
|
|---|
| 380 |
if test -n "$with_tif"; then |
|---|
| 381 |
ac_gdz_tif_incdir=$with_tif/include |
|---|
| 382 |
|
|---|
| 383 |
ac_gdz_tif_libdir=$with_tif/lib |
|---|
| 384 |
|
|---|
| 385 |
if ! test -d "$ac_gdz_tif_incdir" && ! test -n "$with_tifincludedir"; then |
|---|
| 386 |
echo "ERROR tif include dir does not seem to exist, please check the given base dir \"$with_tif\"" |
|---|
| 387 |
exit |
|---|
| 388 |
fi |
|---|
| 389 |
if ! test -d "$ac_gdz_tif_libdir" && ! test -n "$with_tiflibdir"; then |
|---|
| 390 |
echo "ERROR tif lib dir does not seem to exist, please check the given base dir \"$with_tif\"" |
|---|
| 391 |
exit |
|---|
| 392 |
fi |
|---|
| 393 |
fi |
|---|
| 394 |
|
|---|
| 395 |
if test -n "$with_tifincludedir"; then |
|---|
| 396 |
ac_gdz_tif_incdir=$with_tifincludedir |
|---|
| 397 |
|
|---|
| 398 |
if ! test -d "$ac_gdz_tif_incdir"; then |
|---|
| 399 |
echo "ERROR tif include dir does not seem to exist, please check the given dir \"$with_tifincludedir\"" |
|---|
| 400 |
exit |
|---|
| 401 |
fi |
|---|
| 402 |
fi |
|---|
| 403 |
|
|---|
| 404 |
if test -n "$with_tiflibdir"; then |
|---|
| 405 |
ac_gdz_tif_libdir=$with_tiflibdir |
|---|
| 406 |
|
|---|
| 407 |
if ! test -d "$ac_gdz_tif_libdir"; then |
|---|
| 408 |
echo "ERROR tif lib dir does not seem to exist, please check the given dir \"$with_tiflibdir\"" |
|---|
| 409 |
exit |
|---|
| 410 |
fi |
|---|
| 411 |
fi |
|---|
| 412 |
else |
|---|
| 413 |
ac_gdz_tif_dir= |
|---|
| 414 |
ac_gdz_tif_incdir= |
|---|
| 415 |
ac_gdz_tif_libdir= |
|---|
| 416 |
fi |
|---|
| 417 |
|
|---|
| 418 |
dnl ############# JPG Settings ##################### |
|---|
| 419 |
|
|---|
| 420 |
AC_ARG_ENABLE(jpg, [ --enable-jpg Build with jpg support], |
|---|
| 421 |
,enable_jpg=no) |
|---|
| 422 |
AC_ARG_WITH(jpg, [ --with-jpg=DIR Use DIR/lib DIR/include to find the jpg files], |
|---|
| 423 |
,with_jpg=) |
|---|
| 424 |
AC_ARG_WITH(jpgincludedir, [ --with-jpgincludedir=DIR Use jpg includes from the given directory], |
|---|
| 425 |
,with_jpgincludedir=) |
|---|
| 426 |
AC_ARG_WITH(jpglibdir, [ --with-jpglibdir=DIR Use jpg lib from the given directory], |
|---|
| 427 |
,with_jpglibdir=) |
|---|
| 428 |
|
|---|
| 429 |
if test "$enable_jpg" = no && test "$with_jpg" = yes; then |
|---|
| 430 |
enable_jpg=yes |
|---|
| 431 |
with_jpg= |
|---|
| 432 |
fi |
|---|
| 433 |
|
|---|
| 434 |
if test "$enable_jpg" = no && test "$with_jpg"X != "X"; then |
|---|
| 435 |
enable_jpg=yes |
|---|
| 436 |
fi |
|---|
| 437 |
|
|---|
| 438 |
if test "$enable_jpg" = yes; then |
|---|
| 439 |
ac_gdz_jpg_incdir= |
|---|
| 440 |
ac_gdz_jpg_libdir= |
|---|
| 441 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_JPG' |
|---|
| 442 |
ac_gdz_conf_package_jpg='1' |
|---|
| 443 |
ac_gdz_conf_package_jpg_e1='1' |
|---|
| 444 |
|
|---|
| 445 |
if test -n "$with_jpg"; then |
|---|
| 446 |
ac_gdz_jpg_incdir=$with_jpg/include |
|---|
| 447 |
|
|---|
| 448 |
ac_gdz_jpg_libdir=$with_jpg/lib |
|---|
| 449 |
|
|---|
| 450 |
if ! test -d "$ac_gdz_jpg_incdir" && ! test -n "$with_jpgincludedir"; then |
|---|
| 451 |
echo "ERROR jpg include dir does not seem to exist, please check the given base dir \"$with_jpg\"" |
|---|
| 452 |
exit |
|---|
| 453 |
fi |
|---|
| 454 |
if ! test -d "$ac_gdz_jpg_libdir" && ! test -n "$with_jpglibdir"; then |
|---|
| 455 |
echo "ERROR jpg lib dir does not seem to exist, please check the given base dir \"$with_jpg\"" |
|---|
| 456 |
exit |
|---|
| 457 |
fi |
|---|
| 458 |
fi |
|---|
| 459 |
|
|---|
| 460 |
if test -n "$with_jpgincludedir"; then |
|---|
| 461 |
ac_gdz_jpg_incdir=$with_jpgincludedir |
|---|
| 462 |
|
|---|
| 463 |
if ! test -d "$ac_gdz_jpg_incdir"; then |
|---|
| 464 |
echo "ERROR jpg include dir does not seem to exist, please check the given dir \"$with_jpgincludedir\"" |
|---|
| 465 |
exit |
|---|
| 466 |
fi |
|---|
| 467 |
fi |
|---|
| 468 |
|
|---|
| 469 |
if test -n "$with_jpglibdir"; then |
|---|
| 470 |
ac_gdz_jpg_libdir=$with_jpglibdir |
|---|
| 471 |
|
|---|
| 472 |
if ! test -d "$ac_gdz_jpg_libdir"; then |
|---|
| 473 |
echo "ERROR jpg lib dir does not seem to exist, please check the given dir \"$with_jpglibdir\"" |
|---|
| 474 |
exit |
|---|
| 475 |
fi |
|---|
| 476 |
fi |
|---|
| 477 |
else |
|---|
| 478 |
ac_gdz_jpg_dir= |
|---|
| 479 |
ac_gdz_jpg_incdir= |
|---|
| 480 |
ac_gdz_jpg_libdir= |
|---|
| 481 |
fi |
|---|
| 482 |
|
|---|
| 483 |
dnl ############# PNG Settings ##################### |
|---|
| 484 |
|
|---|
| 485 |
AC_ARG_ENABLE(png, [ --enable-png Build with png support], |
|---|
| 486 |
,enable_png=no) |
|---|
| 487 |
AC_ARG_WITH(png, [ --with-png=DIR Use DIR/lib DIR/include to find the png files], |
|---|
| 488 |
,with_png=) |
|---|
| 489 |
AC_ARG_WITH(pngincludedir, [ --with-pngincludedir=DIR Use png includes from the given directory], |
|---|
| 490 |
,with_pngincludedir=) |
|---|
| 491 |
AC_ARG_WITH(pnglibdir, [ --with-pnglibdir=DIR Use png lib from the given directory], |
|---|
| 492 |
,with_pnglibdir=) |
|---|
| 493 |
|
|---|
| 494 |
if test "$enable_png" = no && test "$with_png" = yes; then |
|---|
| 495 |
enable_png=yes |
|---|
| 496 |
with_png= |
|---|
| 497 |
fi |
|---|
| 498 |
|
|---|
| 499 |
if test "$enable_png" = no && test "$with_png"X != "X"; then |
|---|
| 500 |
enable_png=yes |
|---|
| 501 |
fi |
|---|
| 502 |
|
|---|
| 503 |
if test "$enable_png" = yes; then |
|---|
| 504 |
ac_gdz_png_incdir= |
|---|
| 505 |
ac_gdz_png_libdir= |
|---|
| 506 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_PNG' |
|---|
| 507 |
ac_gdz_conf_package_png='1' |
|---|
| 508 |
ac_gdz_conf_package_png_e1='1' |
|---|
| 509 |
|
|---|
| 510 |
if test -n "$with_png"; then |
|---|
| 511 |
ac_gdz_png_incdir=$with_png/include |
|---|
| 512 |
|
|---|
| 513 |
ac_gdz_png_libdir=$with_png/lib |
|---|
| 514 |
|
|---|
| 515 |
if ! test -d "$ac_gdz_png_incdir" && ! test -n "$with_pngincludedir"; then |
|---|
| 516 |
echo "ERROR png include dir does not seem to exist, please check the given base dir \"$with_png\"" |
|---|
| 517 |
exit |
|---|
| 518 |
fi |
|---|
| 519 |
if ! test -d "$ac_gdz_png_libdir" && ! test -n "$with_pnglibdir"; then |
|---|
| 520 |
echo "ERROR png lib dir does not seem to exist, please check the given base dir \"$with_png\"" |
|---|
| 521 |
exit |
|---|
| 522 |
fi |
|---|
| 523 |
fi |
|---|
| 524 |
|
|---|
| 525 |
if test -n "$with_pngincludedir"; then |
|---|
| 526 |
ac_gdz_png_incdir=$with_pngincludedir |
|---|
| 527 |
|
|---|
| 528 |
if ! test -d "$ac_gdz_png_incdir"; then |
|---|
| 529 |
echo "ERROR png include dir does not seem to exist, please check the given dir \"$with_pngincludedir\"" |
|---|
| 530 |
exit |
|---|
| 531 |
fi |
|---|
| 532 |
fi |
|---|
| 533 |
|
|---|
| 534 |
if test -n "$with_pnglibdir"; then |
|---|
| 535 |
ac_gdz_png_libdir=$with_pnglibdir |
|---|
| 536 |
|
|---|
| 537 |
if ! test -d "$ac_gdz_png_libdir"; then |
|---|
| 538 |
echo "ERROR png lib dir does not seem to exist, please check the given dir \"$with_pnglibdir\"" |
|---|
| 539 |
exit |
|---|
| 540 |
fi |
|---|
| 541 |
fi |
|---|
| 542 |
else |
|---|
| 543 |
ac_gdz_png_dir= |
|---|
| 544 |
ac_gdz_png_incdir= |
|---|
| 545 |
ac_gdz_png_libdir= |
|---|
| 546 |
fi |
|---|
| 547 |
|
|---|
| 548 |
|
|---|
| 549 |
dnl ############# MNG Settings ##################### |
|---|
| 550 |
|
|---|
| 551 |
AC_ARG_ENABLE(mng, [ --enable-mng Build with mng supprt], |
|---|
| 552 |
,enable_mng=no) |
|---|
| 553 |
AC_ARG_WITH(mng, [ --with-mng=DIR Use DIR/lib DIR/include to find the mng files], |
|---|
| 554 |
,with_mng=) |
|---|
| 555 |
AC_ARG_WITH(mngincludedir, [ --with-mngincludedir=DIR Use mng includes from the given directory], |
|---|
| 556 |
,with_mngincludedir=) |
|---|
| 557 |
AC_ARG_WITH(mnglibdir, [ --with-mnglibdir=DIR Use mng lib from the given directory], |
|---|
| 558 |
,with_mnglibdir=) |
|---|
| 559 |
|
|---|
| 560 |
if test "$enable_mng" = no && test "$with_mng" = yes; then |
|---|
| 561 |
enable_mng=yes |
|---|
| 562 |
with_mng= |
|---|
| 563 |
fi |
|---|
| 564 |
|
|---|
| 565 |
if test "$enable_mng" = no && test "$with_mng"X != "X"; then |
|---|
| 566 |
enable_mng=yes |
|---|
| 567 |
fi |
|---|
| 568 |
|
|---|
| 569 |
if test "$enable_mng" = yes; then |
|---|
| 570 |
ac_gdz_mng_incdir= |
|---|
| 571 |
ac_gdz_mng_libdir= |
|---|
| 572 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_MNG' |
|---|
| 573 |
ac_gdz_conf_package_mng='1' |
|---|
| 574 |
ac_gdz_conf_package_mng_e1='1' |
|---|
| 575 |
|
|---|
| 576 |
if test -n "$with_mng"; then |
|---|
| 577 |
ac_gdz_mng_incdir=$with_mng/include |
|---|
| 578 |
|
|---|
| 579 |
ac_gdz_mng_libdir=$with_mng/lib |
|---|
| 580 |
|
|---|
| 581 |
if ! test -d "$ac_gdz_mng_incdir" && ! test -n "$with_mngincludedir"; then |
|---|
| 582 |
echo "ERROR mng include dir does not seem to exist, please check the given base dir \"$with_mng\"" |
|---|
| 583 |
exit |
|---|
| 584 |
fi |
|---|
| 585 |
if ! test -d "$ac_gdz_mng_libdir" && ! test -n "$with_mnglibdir"; then |
|---|
| 586 |
echo "ERROR mng lib dir does not seem to exist, please check the given base dir \"$with_mng\"" |
|---|
| 587 |
exit |
|---|
| 588 |
fi |
|---|
| 589 |
fi |
|---|
| 590 |
|
|---|
| 591 |
if test -n "$with_mngincludedir"; then |
|---|
| 592 |
ac_gdz_mng_incdir=$with_mngincludedir |
|---|
| 593 |
|
|---|
| 594 |
if ! test -d "$ac_gdz_mng_incdir"; then |
|---|
| 595 |
echo "ERROR mng include dir does not seem to exist, please check the given dir \"$with_mngincludedir\"" |
|---|
| 596 |
exit |
|---|
| 597 |
fi |
|---|
| 598 |
fi |
|---|
| 599 |
|
|---|
| 600 |
if test -n "$with_mnglibdir"; then |
|---|
| 601 |
ac_gdz_mng_libdir=$with_mnglibdir |
|---|
| 602 |
|
|---|
| 603 |
if ! test -d "$ac_gdz_mng_libdir"; then |
|---|
| 604 |
echo "ERROR mng lib dir does not seem to exist, please check the given dir \"$with_mnglibdir\"" |
|---|
| 605 |
exit |
|---|
| 606 |
fi |
|---|
| 607 |
fi |
|---|
| 608 |
else |
|---|
| 609 |
ac_gdz_mng_dir= |
|---|
| 610 |
ac_gdz_mng_incdir= |
|---|
| 611 |
ac_gdz_mng_libdir= |
|---|
| 612 |
fi |
|---|
| 613 |
|
|---|
| 614 |
|
|---|
| 615 |
dnl ############# GIF Settings ##################### |
|---|
| 616 |
|
|---|
| 617 |
AC_ARG_WITH(gif, [ --with-gif Build with gif support], |
|---|
| 618 |
enable_with_gif=yes, enable_with_gif=no) |
|---|
| 619 |
|
|---|
| 620 |
AC_ARG_ENABLE(gif, [ --enable-gif Build with gif support], |
|---|
| 621 |
,enable_gif=no) |
|---|
| 622 |
|
|---|
| 623 |
if test "$enable_gif" = yes || test "$enable_with_gif" = yes; then |
|---|
| 624 |
enable_gif=yes |
|---|
| 625 |
fi |
|---|
| 626 |
|
|---|
| 627 |
if test "$enable_gif" = yes; then |
|---|
| 628 |
ac_gdz_gif_dir= |
|---|
| 629 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_GIF' |
|---|
| 630 |
ac_gdz_conf_package_gif='1' |
|---|
| 631 |
ac_gdz_conf_package_gif_e1='1' |
|---|
| 632 |
elif test "$with_gif" = no; then |
|---|
| 633 |
ac_gdz_gif_dir= |
|---|
| 634 |
fi |
|---|
| 635 |
|
|---|
| 636 |
dnl ############# CLAPACK Settings ##################### |
|---|
| 637 |
|
|---|
| 638 |
AC_ARG_WITH(libxml, [ --with-libxml=DIR Where to find the libxml files to use], |
|---|
| 639 |
,with_libxml=no) |
|---|
| 640 |
|
|---|
| 641 |
if test "$with_libxml" = yes; then |
|---|
| 642 |
ac_gdz_libxml_dir= |
|---|
| 643 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_LIBXML' |
|---|
| 644 |
elif test "$with_libxml" = no; then |
|---|
| 645 |
ac_gdz_libxml_dir= |
|---|
| 646 |
else |
|---|
| 647 |
ac_gdz_libxml_dir=$with_libxml |
|---|
| 648 |
ac_gdz_conf_package_libxml='1' |
|---|
| 649 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_LIBXML' |
|---|
| 650 |
fi |
|---|
| 651 |
|
|---|
| 652 |
dnl ############# CLAPACK Settings ##################### |
|---|
| 653 |
|
|---|
| 654 |
AC_ARG_WITH(collada, [ --with-collada=DIR Where to find the collada files to use], |
|---|
| 655 |
,with_collada=no) |
|---|
| 656 |
|
|---|
| 657 |
if test "$with_collada" = yes; then |
|---|
| 658 |
ac_gdz_collada_dir= |
|---|
| 659 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_COLLADA' |
|---|
| 660 |
elif test "$with_collada" = no; then |
|---|
| 661 |
ac_gdz_collada_dir= |
|---|
| 662 |
else |
|---|
| 663 |
ac_gdz_collada_dir=$with_collada |
|---|
| 664 |
ac_gdz_conf_package_collada='1' |
|---|
| 665 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_COLLADA' |
|---|
| 666 |
fi |
|---|
| 667 |
|
|---|
| 668 |
dnl ############# efence Settings ##################### |
|---|
| 669 |
|
|---|
| 670 |
AC_ARG_WITH(efence, [ --with-efence=DIR Use efence lib, if DIR is given use the file from the given directory], |
|---|
| 671 |
,with_efence=no) |
|---|
| 672 |
|
|---|
| 673 |
if test "$with_efence" = yes; then |
|---|
| 674 |
ac_gdz_efence_dir= |
|---|
| 675 |
ac_gdz_conf_package_efence='1' |
|---|
| 676 |
ac_gdz_conf_package_efence_e1='1' |
|---|
| 677 |
elif test "$with_efence" = no; then |
|---|
| 678 |
ac_gdz_efence_dir= |
|---|
| 679 |
else |
|---|
| 680 |
ac_gdz_efence_dir=$with_efence |
|---|
| 681 |
ac_gdz_conf_package_efence='1' |
|---|
| 682 |
ac_gdz_conf_package_efence_e1='1' |
|---|
| 683 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs |
|---|
| 684 |
fi |
|---|
| 685 |
|
|---|
| 686 |
dnl ############# Myrinet Settings ##################### |
|---|
| 687 |
|
|---|
| 688 |
AC_ARG_WITH(myrinet, [ --with-myrinet=DIR Use Myrinet lib, if DIR is given use the file from the given directory], |
|---|
| 689 |
,with_myrinet=no) |
|---|
| 690 |
|
|---|
| 691 |
if test "$with_myrinet" = yes; then |
|---|
| 692 |
ac_gdz_myrinet_dir= |
|---|
| 693 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_MYRINET' |
|---|
| 694 |
ac_gdz_conf_package_myrinet='1' |
|---|
| 695 |
ac_gdz_conf_package_myrinet_e1='1' |
|---|
| 696 |
elif test "$with_myrinet" = no; then |
|---|
| 697 |
ac_gdz_myrinet_dir= |
|---|
| 698 |
else |
|---|
| 699 |
ac_gdz_myrinet_dir=$with_myrinet |
|---|
| 700 |
ac_gdz_conf_package_myrinet='1' |
|---|
| 701 |
ac_gdz_conf_package_myrinet_e1='1' |
|---|
| 702 |
ac_gdz_conf_package_defs=$ac_gdz_conf_package_defs' -DOSG_WITH_MYRINET' |
|---|
| 703 |
fi |
|---|
| 704 |
|
|---|
| 705 |
|
|---|
| 706 |
dnl ############# text Settings ##################### |
|---|
| 707 |
|
|---|
| 708 |
AC_ARG_ENABLE(text, [ --enable-text Build with text support], |
|---|
| 709 |
,enable_text=no) |
|---|
| 710 |
AC_ARG_WITH(text, [ --with-text=DIR Use DIR/lib DIR/include to find the freetype2 files], |
|---|
| 711 |
,with_text=) |
|---|
| 712 |
AC_ARG_WITH(textincludedir, [ --with-textincludedir=DIR Use freetype2 includes from the given directory], |
|---|
| 713 |
,with_textincludedir=) |
|---|
| 714 |
AC_ARG_WITH(textlibdir, [ --with-textlibdir=DIR Use freetype2 lib from the given directory], |
|---|
| 715 |
,with_textlibdir=) |
|---|
| 716 |
|
|---|
| 717 |
if test "$enable_text" = no && test "$with_text" = yes; then |
|---|
| 718 |
enable_text=yes |
|---|
| 719 |
with_text= |
|---|
| 720 |
fi |
|---|
| 721 |
|
|---|
| 722 |
if test "$enable_text" = no && test "$with_text"X != "X"; then |
|---|
| 723 |
enable_text=yes |
|---|
| 724 |
fi |
|---|
| 725 |
|
|---|
| 726 |
if test "$enable_text" = yes; then |
|---|
| 727 |
ac_gdz_text_incdir= |
|---|
| 728 |
ac_gdz_text_libdir= |
|---|
| 729 |
ac_gdz_conf_package_text='1' |
|---|
| 730 |
ac_gdz_conf_package_text_e1='1' |
|---|
| 731 |
|
|---|
| 732 |
if test -n "$with_text"; then |
|---|
| 733 |
ac_gdz_text_incdir=$with_text/include |
|---|
| 734 |
|
|---|
| 735 |
ac_gdz_text_libdir=$with_text/lib |
|---|
| 736 |
|
|---|
| 737 |
if ! test -d "$ac_gdz_text_incdir" && ! test -n "$with_textincludedir"; then |
|---|
| 738 |
echo "ERROR text include dir does not seem to exist, please check the given base dir \"$with_text\"" |
|---|
| 739 |
exit |
|---|
| 740 |
fi |
|---|
| 741 |
if ! test -d "$ac_gdz_text_libdir" && ! test -n "$with_textlibdir"; then |
|---|
| 742 |
echo "ERROR text lib dir does not seem to exist, please check the given base dir \"$with_text\"" |
|---|
| 743 |
exit |
|---|
| 744 |
fi |
|---|
| 745 |
fi |
|---|
| 746 |
|
|---|
| 747 |
if test -n "$with_textincludedir"; then |
|---|
| 748 |
ac_gdz_text_incdir=$with_textincludedir |
|---|
| 749 |
|
|---|
| 750 |
if ! test -d "$ac_gdz_text_incdir"; then |
|---|
| 751 |
echo "ERROR text include dir does not seem to exist, please check the given dir \"$with_textincludedir\"" |
|---|
| 752 |
exit |
|---|
| 753 |
fi |
|---|
| 754 |
fi |
|---|
| 755 |
|
|---|
| 756 |
if test -n "$with_textlibdir"; then |
|---|
| 757 |
ac_gdz_text_libdir=$with_textlibdir |
|---|
| 758 |
|
|---|
| 759 |
if ! test -d "$ac_gdz_text_libdir"; then |
|---|
| 760 |
echo "ERROR text lib dir does not seem to exist, please check the given dir \"$with_textlibdir\"" |
|---|
| 761 |
exit |
|---|
| 762 |
fi |
|---|
| 763 |
fi |
|---|
| 764 |
else |
|---|
| 765 |
ac_gdz_text_dir= |
|---|
| 766 |
ac_gdz_text_incdir= |
|---|
| 767 |
ac_gdz_text_libdir= |
|---|
| 768 |
fi |
|---|
| 769 |
|
|---|
| 770 |
dnl ############# loglevel Settings ##################### |
|---|
| 771 |
|
|---|
| 772 |
AC_ARG_WITH(log_level, [ --with-log_level=LEVEL Sets the default log level LEVEL (LOG, FATAL, WARNING, NOTICE, INFO, DEBUG) ], |
|---|
| 773 |
,with_log_level=WARNING) |
|---|
| 774 |
|
|---|
| 775 |
dnl ############# loglevel Settings ##################### |
|---|
| 776 |
|
|---|
| 777 |
AC_ARG_WITH(log_type, [ --with-log_type=TYPE Sets the default log level TYPE (NONE, STDOUT, STDERR) ], |
|---|
| 778 |
,with_log_type=STDERR) |
|---|
| 779 |
|
|---|
| 780 |
dnl ############# TLS Settings ##################### |
|---|
| 781 |
|
|---|
| 782 |
AC_ARG_ENABLE(win-localstorage, [ --enable-win-localstorage Use local storage instead of __declspec to get thread local storage on windows], |
|---|
| 783 |
,enable_win_localstorage=no) |
|---|
| 784 |
|
|---|
| 785 |
dnl ############# XTREE Settings ##################### |
|---|
| 786 |
|
|---|
| 787 |
AC_ARG_ENABLE(fixed-xtree, [ --enable-fixed-xtree Use fixed xtree header ], |
|---|
| 788 |
,enable_fixed_xtree=no) |
|---|
| 789 |
|
|---|
| 790 |
dnl ############# XTREE Settings ##################### |
|---|
| 791 |
|
|---|
| 792 |
AC_ARG_WITH(icc-gnu-compat, [ --with-icc-gnu-compat=<GCC Version> make the icc result binary compatible to the given gcc version (e.g 333) ], |
|---|
| 793 |
,with_icc_gnu_compat=no) |
|---|
| 794 |
|
|---|
| 795 |
dnl ############# Depreciated Settings ##################### |
|---|
| 796 |
|
|---|
| 797 |
AC_ARG_ENABLE(depreciated, [ --disable-depreciated Exclude depreciated interfaces ], |
|---|
| 798 |
disable_depreciated=yes, disable_depreciated=no) |
|---|
| 799 |
|
|---|
| 800 |
dnl ############# Depreciated Settings ##################### |
|---|
| 801 |
|
|---|
| 802 |
AC_ARG_ENABLE(glut-glsubdir, [ --disable-glut-glsubdir do not use GL subdir while including glut.h ], |
|---|
| 803 |
disable_glut_glsubdir=yes, disable_glut_glsubdir=no) |
|---|
| 804 |
|
|---|
| 805 |
dnl ############# Compiler Logo Settings ##################### |
|---|
| 806 |
|
|---|
| 807 |
AC_ARG_ENABLE(compilerLogo, [ --disable-compilerLogo Disable compiler logo (WIn32 cl, icl) ], |
|---|
| 808 |
disable_compilerLogo=yes, disable_compilerLogo=no) |
|---|
| 809 |
|
|---|
| 810 |
dnl ############# Bison line number Settings ##################### |
|---|
| 811 |
|
|---|
| 812 |
AC_ARG_ENABLE(bisonLineNums, [ --disable-bisonLineNums Disable bison line number generation ], |
|---|
| 813 |
disable_bisonLineNums=yes, disable_bisonLineNums=no) |
|---|
| 814 |
|
|---|
| 815 |
dnl ############# Bool=unsigned int Settings ##################### |
|---|
| 816 |
|
|---|
| 817 |
AC_ARG_ENABLE(win-bool-is-unsigned, [ --enable-win-bool-is-unsigned Define Bool as unsigned, required to combine the software with Microsoft stuff, since preprocessors ignore namespaces ], |
|---|
| 818 |
,enable_win_bool_is_unsigned=no) |
|---|
| 819 |
|
|---|
| 820 |
dnl ############# Win Default Path Settings ##################### |
|---|
| 821 |
|
|---|
| 822 |
AC_ARG_ENABLE(win-exclude-default-path, [ --enable-win-exclude-default-path Do not include the default compiler and include path's on the command line, use INCLUDE and LIB instead ], |
|---|
| 823 |
,enable_win_exclude_default_path=no) |
|---|
| 824 |
|
|---|
| 825 |
dnl ############# TLS Settings ##################### |
|---|
| 826 |
|
|---|
| 827 |
AC_ARG_ENABLE(sgi-pthread, [ --enable-sgi-pthread Use pthreads instead of sproc on sgi plattforms], |
|---|
| 828 |
,enable_sgi_pthread=no) |
|---|
| 829 |
|
|---|
| 830 |
dnl ############# Fullwarn Settings ##################### |
|---|
| 831 |
|
|---|
| 832 |
AC_ARG_ENABLE(compiler-pedantic-errors, [ --enable-compiler-pedantic-errors Sets the compiler to generate more errors. WARNING, some external software (e.g. QT or STL) may require some patches to work with these settings ], |
|---|
| 833 |
,enable_compiler_pedantic_errors=no) |
|---|
| 834 |
|
|---|
| 835 |
|
|---|
| 836 |
dnl ############# CP Settings ##################### |
|---|
| 837 |
|
|---|
| 838 |
AC_ARG_ENABLE(compiler-path, [ --enable-compiler-path Reference compiler with path], |
|---|
| 839 |
,enable_compiler_path=no) |
|---|
| 840 |
|
|---|
| 841 |
dnl ############# CP Settings ##################### |
|---|
| 842 |
|
|---|
| 843 |
AC_ARG_ENABLE(osg-1-compat, [ --enable-osg-1-compat enable osg 1 compat], |
|---|
| 844 |
,enable_osg_1_compat=no) |
|---|
| 845 |
|
|---|
| 846 |
if test $enable_osg_1_compat = yes; then |
|---|
| 847 |
ac_gdz_conf_osg1_compat_e1=1 |
|---|
| 848 |
else |
|---|
| 849 |
ac_gdz_conf_osg1_compat_e1=0 |
|---|
| 850 |
fi |
|---|
| 851 |
|
|---|
| 852 |
dnl ############# CP Settings ##################### |
|---|
| 853 |
|
|---|
| 854 |
AC_ARG_ENABLE(depreciated-props, [ --depreciated-props enable depreciated props], |
|---|
| 855 |
,enable_depreciated_props=no) |
|---|
| 856 |
|
|---|
| 857 |
if test $enable_depreciated_props = yes; then |
|---|
| 858 |
ac_gdz_conf_depreciated_props_e1=1 |
|---|
| 859 |
else |
|---|
| 860 |
ac_gdz_conf_depreciated_props_e1=0 |
|---|
| 861 |
fi |
|---|
| 862 |
|
|---|
| 863 |
dnl ############# typed fcptr Settings ################# |
|---|
| 864 |
|
|---|
| 865 |
AC_ARG_ENABLE(use_cptr, [ --enable-use-cptr use std ptrs instead of fcptr ], |
|---|
| 866 |
enable_use_cptr=yes,enable_use_cptr=no) |
|---|
| 867 |
|
|---|
| 868 |
dnl ############# typed fcptr Settings ################# |
|---|
| 869 |
|
|---|
| 870 |
AC_ARG_ENABLE(use_cptr_aspect, [ --enable-use-cptr-aspect use aspects with std ptrs ], |
|---|
| 871 |
enable_use_cptr_aspect=yes,enable_use_cptr_aspect=no) |
|---|
| 872 |
|
|---|
| 873 |
dnl ############# typed fcptr Settings ################# |
|---|
| 874 |
|
|---|
| 875 |
AC_ARG_ENABLE(pthread_elf_tls, [ --enable-pthread-elf-tls enable elf tls if pthreads are used, tested on redhat 9 only ], |
|---|
| 876 |
,enable_pthread_elf_tls=no) |
|---|
| 877 |
|
|---|
| 878 |
dnl ############# Add Path Settings ##################### |
|---|
| 879 |
|
|---|
| 880 |
AC_ARG_WITH(add-incdir, [ --with-add-incdir=DIR{:DIR}* use additional include directories (no spaces allowed) ], |
|---|
| 881 |
,with_add_incdir=no) |
|---|
| 882 |
|
|---|
| 883 |
if test "$with_add_incdir" = yes; then |
|---|
| 884 |
ac_gdz_with_add_incdirs= |
|---|
| 885 |
elif test "$with_add_incdir" = no; then |
|---|
| 886 |
ac_gdz_with_add_incdirs= |
|---|
| 887 |
else |
|---|
| 888 |
ac_gdz_with_add_incdirs=$with_add_incdir |
|---|
| 889 |
fi |
|---|
| 890 |
|
|---|
| 891 |
AC_ARG_WITH(add-libdir, [ --with-add-libdir=DIR{:DIR}* use additional library directories (no spaces allowed) ], |
|---|
| 892 |
,with_add_libdir=no) |
|---|
| 893 |
|
|---|
| 894 |
if test "$with_add_libdir" = yes; then |
|---|
| 895 |
ac_gdz_with_add_libdirs= |
|---|
| 896 |
elif test "$with_add_libdir" = no; then |
|---|
| 897 |
ac_gdz_with_add_libdirs= |
|---|
| 898 |
else |
|---|
| 899 |
ac_gdz_with_add_libdirs=$with_add_libdir |
|---|
| 900 |
fi |
|---|
| 901 |
|
|---|
| 902 |
AC_ARG_WITH(add-lib, [ --with-add-lib=LIB{:LIB}* use additional libraries (use foo not libfoo.so, no spaces allowed)], |
|---|
| 903 |
,with_add_lib=no) |
|---|
| 904 |
|
|---|
| 905 |
if test "$with_add_lib" = yes; then |
|---|
| 906 |
ac_gdz_with_add_libs= |
|---|
| 907 |
elif test "$with_add_lib" = no; then |
|---|
| 908 |
ac_gdz_with_add_libs= |
|---|
| 909 |
else |
|---|
| 910 |
ac_gdz_with_add_libs=$with_add_lib |
|---|
| 911 |
fi |
|---|
| 912 |
|
|---|
| 913 |
AC_ARG_WITH(add-def, [ --with-add-def=DEF=[Value]{:DEF[=Value]}* use additional defines (no spaces allowed)], |
|---|
| 914 |
,with_add_def=no) |
|---|
| 915 |
|
|---|
| 916 |
if test "$with_add_def" = yes; then |
|---|
| 917 |
ac_gdz_with_add_defs= |
|---|
| 918 |
elif test "$with_add_def" = no; then |
|---|
| 919 |
ac_gdz_with_add_defs= |
|---|
| 920 |
else |
|---|
| 921 |
ac_gdz_with_add_defs=$with_add_def |
|---|
| 922 |
fi |
|---|
| 923 |
|
|---|
| 924 |
|
|---|
| 925 |
dnl ############# CP Settings ##################### |
|---|
| 926 |
|
|---|
| 927 |
AC_ARG_ENABLE(gv-beta, [ --enable-gv-beta enable gv beta], |
|---|
| 928 |
,enable_gv_beta=no) |
|---|
| 929 |
|
|---|
| 930 |
if test $enable_gv_beta = yes; then |
|---|
| 931 |
ac_gdz_conf_gvbeta_e1=1 |
|---|
| 932 |
else |
|---|
| 933 |
ac_gdz_conf_gvbeta_e1=0 |
|---|
| 934 |
fi |
|---|
| 935 |
|
|---|
| 936 |
dnl ############# CP Settings ##################### |
|---|
| 937 |
|
|---|
| 938 |
AC_ARG_ENABLE(gv, [ --enable-gv enable gv stuff], |
|---|
| 939 |
,enable_gv=yes) |
|---|
| 940 |
|
|---|
| 941 |
dnl ############# Helper ##################### |
|---|
| 942 |
|
|---|
| 943 |
sinclude(./acinclude.m4) |
|---|
| 944 |
|
|---|
| 945 |
FK_GDZ_CREATE_PACKAGE_DIRS () |
|---|
| 946 |
{ |
|---|
| 947 |
ac_gdz_package_dir_build=${1}Lib |
|---|
| 948 |
ac_gdz_package_dir_test=${1}Test |
|---|
| 949 |
|
|---|
| 950 |
if ! test -w $ac_gdz_package_dir_build; then |
|---|
| 951 |
echo Need $ac_gdz_package_dir_build |
|---|
| 952 |
mkdir $ac_gdz_package_dir_build |
|---|
| 953 |
fi |
|---|
| 954 |
|
|---|
| 955 |
if ! test -w $ac_gdz_package_dir_build/obj-dbg; then |
|---|
| 956 |
echo Need $ac_gdz_package_dir_build/obj-dbg |
|---|
| 957 |
mkdir $ac_gdz_package_dir_build/obj-dbg |
|---|
| 958 |
fi |
|---|
| 959 |
|
|---|
| 960 |
if ! test -w $ac_gdz_package_dir_build/obj-opt; then |
|---|
| 961 |
echo Need $ac_gdz_package_dir_build/obj-opt |
|---|
| 962 |
mkdir $ac_gdz_package_dir_build/obj-opt |
|---|
| 963 |
fi |
|---|
| 964 |
|
|---|
| 965 |
if ! test -w $ac_gdz_package_dir_build/lib-dbg; then |
|---|
| 966 |
echo Need $ac_gdz_package_dir_build/lib-dbg |
|---|
| 967 |
mkdir $ac_gdz_package_dir_build/lib-dbg |
|---|
| 968 |
fi |
|---|
| 969 |
|
|---|
| 970 |
if ! test -w $ac_gdz_package_dir_build/lib-opt; then |
|---|
| 971 |
echo Need $ac_gdz_package_dir_build/lib-opt |
|---|
| 972 |
mkdir $ac_gdz_package_dir_build/lib-opt |
|---|
| 973 |
fi |
|---|
| 974 |
|
|---|
| 975 |
|
|---|
| 976 |
if ! test -w $ac_gdz_package_dir_build/obj-dbglnk; then |
|---|
| 977 |
echo Need $ac_gdz_package_dir_build/obj-dbglnk |
|---|
| 978 |
mkdir $ac_gdz_package_dir_build/obj-dbglnk |
|---|
| 979 |
fi |
|---|
| 980 |
|
|---|
| 981 |
if ! test -w $ac_gdz_package_dir_build/obj-optlnk; then |
|---|
| 982 |
echo Need $ac_gdz_package_dir_build/obj-optlnk |
|---|
| 983 |
mkdir $ac_gdz_package_dir_build/obj-optlnk |
|---|
| 984 |
fi |
|---|
| 985 |
|
|---|
| 986 |
if ! test -w $ac_gdz_package_dir_build/lib-dbglnk; then |
|---|
| 987 |
echo Need $ac_gdz_package_dir_build/lib-dbglnk |
|---|
| 988 |
mkdir $ac_gdz_package_dir_build/lib-dbglnk |
|---|
| 989 |
fi |
|---|
| 990 |
|
|---|
| 991 |
if ! test -w $ac_gdz_package_dir_build/lib-optlnk; then |
|---|
| 992 |
echo Need $ac_gdz_package_dir_build/lib-optlnk |
|---|
| 993 |
mkdir $ac_gdz_package_dir_build/lib-optlnk |
|---|
| 994 |
fi |
|---|
| 995 |
|
|---|
| 996 |
|
|---|
| 997 |
if ! test -w $ac_gdz_package_dir_test; then |
|---|
| 998 |
echo Need $ac_gdz_package_dir_test |
|---|
| 999 |
mkdir $ac_gdz_package_dir_test |
|---|
| 1000 |
fi |
|---|
| 1001 |
|
|---|
| 1002 |
if ! test -w $ac_gdz_package_dir_test/obj-dbg; then |
|---|
| 1003 |
echo Need $ac_gdz_package_dir_test/obj-dbg |
|---|
| 1004 |
mkdir $ac_gdz_package_dir_test/obj-dbg |
|---|
| 1005 |
fi |
|---|
| 1006 |
|
|---|
| 1007 |
if ! test -w $ac_gdz_package_dir_test/obj-opt; then |
|---|
| 1008 |
echo Need $ac_gdz_package_dir_test/obj-opt |
|---|
| 1009 |
mkdir $ac_gdz_package_dir_test/obj-opt |
|---|
| 1010 |
fi |
|---|
| 1011 |
|
|---|
| 1012 |
if ! test -w $ac_gdz_package_dir_test/exe-dbg; then |
|---|
| 1013 |
echo Need $ac_gdz_package_dir_test/exe-dbg |
|---|
| 1014 |
mkdir $ac_gdz_package_dir_test/exe-dbg |
|---|
| 1015 |
fi |
|---|
| 1016 |
|
|---|
| 1017 |
if ! test -w $ac_gdz_package_dir_test/exe-opt; then |
|---|
| 1018 |
echo Need $ac_gdz_package_dir_test/exe-opt |
|---|
| 1019 |
mkdir $ac_gdz_package_dir_test/exe-opt |
|---|
| 1020 |
fi |
|---|
| 1021 |
|
|---|
| 1022 |
if ! test -w $ac_gdz_package_dir_test/obj-optlnk; then |
|---|
| 1023 |
echo Need $ac_gdz_package_dir_test/obj-optlnk |
|---|
| 1024 |
mkdir $ac_gdz_package_dir_test/obj-optlnk |
|---|
| 1025 |
fi |
|---|
| 1026 |
|
|---|
| 1027 |
if ! test -w $ac_gdz_package_dir_test/obj-dbglnk; then |
|---|
| 1028 |
echo Need $ac_gdz_package_dir_test/obj-dbglnk |
|---|
| 1029 |
mkdir $ac_gdz_package_dir_test/obj-dbglnk |
|---|
| 1030 |
fi |
|---|
| 1031 |
|
|---|
| 1032 |
if ! test -w $ac_gdz_package_dir_test/exe-dbglnk; then |
|---|
| 1033 |
echo Need $ac_gdz_package_dir_test/exe-dbglnk |
|---|
| 1034 |
mkdir $ac_gdz_package_dir_test/exe-dbglnk |
|---|
| 1035 |
fi |
|---|
| 1036 |
|
|---|
| 1037 |
if ! test -w $ac_gdz_package_dir_test/exe-optlnk; then |
|---|
| 1038 |
echo Need $ac_gdz_package_dir_test/exe-optlnk |
|---|
| 1039 |
mkdir $ac_gdz_package_dir_test/exe-optlnk |
|---|
| 1040 |
fi |
|---|
| 1041 |
} |
|---|
| 1042 |
|
|---|
| 1043 |
dnl ############# Run Tests ##################### |
|---|
| 1044 |
|
|---|
| 1045 |
AC_CANONICAL_SYSTEM() |
|---|
| 1046 |
|
|---|
| 1047 |
case "$build_os" in |
|---|
| 1048 |
darwin*) |
|---|
| 1049 |
build_os="darwin" |
|---|
| 1050 |
;; |
|---|
| 1051 |
esac |
|---|
| 1052 |
|
|---|
| 1053 |
case "$build" in |
|---|
| 1054 |
powerpc-apple-darwin*) |
|---|
| 1055 |
build="powerpc-apple-darwin" |
|---|
| 1056 |
;; |
|---|
| 1057 |
esac |
|---|
| 1058 |
|
|---|
| 1059 |
AC_GDZ_GUESS_COMPILER_DEFAULTS() |
|---|
| 1060 |
|
|---|
| 1061 |
ac_gdz_os_base=$build_os |
|---|
| 1062 |
ac_gdz_os_buildbase=$build |
|---|
| 1063 |
ac_gdz_compiler_base=$ac_gdz_compiler |
|---|
| 1064 |
|
|---|
| 1065 |
AC_GDZ_SET_COMPILER_DEFAULTS() |
|---|
| 1066 |
|
|---|
| 1067 |
ac_gdz_compiler_base_def=${ac_gdz_compiler}${ac_gdz_stl_suffix} |
|---|
| 1068 |
|
|---|
| 1069 |
AC_GDZ_EXEEXT() |
|---|
| 1070 |
AC_GDZ_OBJEXT() |
|---|
| 1071 |
AC_GDZ_LIBEXT() |
|---|
| 1072 |
AC_GDZ_SOEXT() |
|---|
| 1073 |
AC_GDZ_SOPRAEFIX() |
|---|
| 1074 |
|
|---|
| 1075 |
|
|---|
| 1076 |
if test $build_os = cygwin; then |
|---|
| 1077 |
if test $ac_gdz_compiler_base != g++; then |
|---|
| 1078 |
|
|---|
| 1079 |
AC_GDZ_SET_SYSTEM_DIRS() |
|---|
| 1080 |
|
|---|
| 1081 |
case "$ac_gdz_compiler" in |
|---|
| 1082 |
icl*) |
|---|
| 1083 |
ac_gdz_compiler_exe='"$(CC_PATH)/'$ac_gdz_compiler_exe'" ' |
|---|
| 1084 |
|
|---|
| 1085 |
ac_gdz_compiler_exe_shared='"$(CC_PATH)/'$ac_gdz_linker_exe'" -dll -map' |
|---|
| 1086 |
|
|---|
| 1087 |
&nb |
|---|