configure

changeset 821
5e6f15005efd
parent 815
b0c4750cecd8
child 825
3f324ea53152
equal deleted inserted replaced
820:8b86ee2e09bb 821:5e6f15005efd
223 } 223 }
224 224
225 225
226 # generate vars.mk 226 # generate vars.mk
227 cat > "$TEMP_DIR/vars.mk" << __EOF__ 227 cat > "$TEMP_DIR/vars.mk" << __EOF__
228 prefix="$prefix" 228 prefix=$prefix
229 exec_prefix="$exec_prefix" 229 exec_prefix=$exec_prefix
230 bindir="$bindir" 230 bindir=$bindir
231 sbindir="$sbindir" 231 sbindir=$sbindir
232 libdir="$libdir" 232 libdir=$libdir
233 libexecdir="$libexecdir" 233 libexecdir=$libexecdir
234 datarootdir="$datarootdir" 234 datarootdir=$datarootdir
235 datadir="$datadir" 235 datadir=$datadir
236 sysconfdir="$sysconfdir" 236 sysconfdir=$sysconfdir
237 sharedstatedir="$sharedstatedir" 237 sharedstatedir=$sharedstatedir
238 localstatedir="$localstatedir" 238 localstatedir=$localstatedir
239 runstatedir="$runstatedir" 239 runstatedir=$runstatedir
240 includedir="$includedir" 240 includedir=$includedir
241 infodir="$infodir" 241 infodir=$infodir
242 mandir="$mandir" 242 mandir=$mandir
243 localedir="$localedir" 243 localedir=$localedir
244 src_dir="$src_dir" 244 src_dir=$src_dir
245 DOXYGEN="$DOXYGEN" 245 DOXYGEN=$DOXYGEN
246 PANDOC="$PANDOC" 246 PANDOC=$PANDOC
247 __EOF__ 247 __EOF__
248 248
249 # toolchain detection utilities 249 # toolchain detection utilities
250 . make/toolchain.sh 250 . make/toolchain.sh
251 251
340 # Dependency: c 340 # Dependency: c
341 AR=ar 341 AR=ar
342 ARFLAGS=r 342 ARFLAGS=r
343 STLIB_EXT=.lib 343 STLIB_EXT=.lib
344 SHLIB_EXT=.dll 344 SHLIB_EXT=.dll
345
346 __EOF__ 345 __EOF__
347 print_check_msg "$dep_checked_c" "yes\n" 346 print_check_msg "$dep_checked_c" "yes\n"
348 dep_checked_c=1 347 dep_checked_c=1
349 return 1 348 return 1
350 done 349 done
362 # Dependency: c 361 # Dependency: c
363 AR=ar 362 AR=ar
364 ARFLAGS=r 363 ARFLAGS=r
365 STLIB_EXT=.a 364 STLIB_EXT=.a
366 SHLIB_EXT=.dylib 365 SHLIB_EXT=.dylib
367
368 __EOF__ 366 __EOF__
369 print_check_msg "$dep_checked_c" "yes\n" 367 print_check_msg "$dep_checked_c" "yes\n"
370 dep_checked_c=1 368 dep_checked_c=1
371 return 1 369 return 1
372 done 370 done
384 # Dependency: c 382 # Dependency: c
385 AR=ar 383 AR=ar
386 ARFLAGS=r 384 ARFLAGS=r
387 STLIB_EXT=.a 385 STLIB_EXT=.a
388 SHLIB_EXT=.so 386 SHLIB_EXT=.so
389
390 __EOF__ 387 __EOF__
391 print_check_msg "$dep_checked_c" "yes\n" 388 print_check_msg "$dep_checked_c" "yes\n"
392 dep_checked_c=1 389 dep_checked_c=1
393 return 1 390 return 1
394 done 391 done
397 dep_checked_c=1 394 dep_checked_c=1
398 return 0 395 return 0
399 } 396 }
400 dependency_error_file_tools() 397 dependency_error_file_tools()
401 { 398 {
402 print_check_msg "$dep_checked_file_tools" "checking for file-tools... " 399 print_check_msg "$dep_checked_file_tools" "checking for file_tools... "
403 # dependency file-tools 400 # dependency file-tools
404 while true 401 while true
405 do 402 do
406 cat >> $TEMP_DIR/make.mk << __EOF__ 403 cat >> $TEMP_DIR/make.mk << __EOF__
407 # Dependency: file-tools 404 # Dependency: file_tools
408 MKDIR=/bin/mkdir -p 405 MKDIR=/bin/mkdir -p
409 RMFILE=/bin/rm -f 406 RMFILE=/bin/rm -f
410 RMDIR=/bin/rm -f -R 407 RMDIR=/bin/rm -f -R
411 COPYFILE=/bin/cp -f 408 COPYFILE=/bin/cp -f
412 COPYALL=/bin/cp -f -R 409 COPYALL=/bin/cp -f -R
413 SYMLINK=/bin/ln -s 410 SYMLINK=/bin/ln -s
414
415 __EOF__ 411 __EOF__
416 print_check_msg "$dep_checked_file_tools" "yes\n" 412 print_check_msg "$dep_checked_file_tools" "yes\n"
417 dep_checked_file_tools=1 413 dep_checked_file_tools=1
418 return 1 414 return 1
419 done 415 done
465 461
466 # build directory structure !! do not change or override !! 462 # build directory structure !! do not change or override !!
467 build_dir=${src_dir}/build 463 build_dir=${src_dir}/build
468 docs_dir=${src_dir}/build/docs 464 docs_dir=${src_dir}/build/docs
469 dist_dir=${src_dir}/dist 465 dist_dir=${src_dir}/dist
470
471 __EOF__ 466 __EOF__
472 break 467 break
473 done 468 done
474 break 469 break
475 done 470 done
503 fi 498 fi
504 cat >> "$TEMP_DIR/make.mk" << __EOF__ 499 cat >> "$TEMP_DIR/make.mk" << __EOF__
505 # Documentation 500 # Documentation
506 WITH_DOCS_API=yes 501 WITH_DOCS_API=yes
507 WITH_DOCS_HTML=yes 502 WITH_DOCS_HTML=yes
508
509 __EOF__ 503 __EOF__
510 return 0 504 return 0
511 } 505 }
512 checkopt_with_docs_html() 506 checkopt_with_docs_html()
513 { 507 {
519 return 1 513 return 1
520 fi 514 fi
521 cat >> "$TEMP_DIR/make.mk" << __EOF__ 515 cat >> "$TEMP_DIR/make.mk" << __EOF__
522 # Documentation 516 # Documentation
523 WITH_DOCS_HTML=yes 517 WITH_DOCS_HTML=yes
524
525 __EOF__ 518 __EOF__
526 return 0 519 return 0
527 } 520 }
528 checkopt_with_docs_api() 521 checkopt_with_docs_api()
529 { 522 {
535 return 1 528 return 1
536 fi 529 fi
537 cat >> "$TEMP_DIR/make.mk" << __EOF__ 530 cat >> "$TEMP_DIR/make.mk" << __EOF__
538 # Documentation 531 # Documentation
539 WITH_DOCS_API=yes 532 WITH_DOCS_API=yes
540
541 __EOF__ 533 __EOF__
542 return 0 534 return 0
543 } 535 }
544 checkopt_with_docs_none() 536 checkopt_with_docs_none()
545 { 537 {

mercurial