llvm.org GIT mirror llvm / 41ef25b
Use AC_PATH_PROG correctly: http://www.gnu.org/software/autoconf/manual/autoconf.html#Generic-Programs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47943 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 11 years ago
2 changed file(s) with 35 addition(s) and 46 deletion(s). Raw diff Collapse all Expand all
579579 dnl are not found then they are set to "true" which always succeeds but does
580580 dnl nothing. This just lets the build output show that we could have done
581581 dnl something if the tool was available.
582 AC_PATH_PROG(BZIP2,[bzip2],[echo "Skipped: bzip2 not found"])
583 AC_PATH_PROG(DOXYGEN,[doxygen],[echo "Skipped: doxygen not found"])
584 AC_PATH_PROG(GROFF,[groff],[echo "Skipped: groff not found"])
585 AC_PATH_PROG(GZIP,[gzip],[echo "Skipped: gzip not found"])
586 AC_PATH_PROG(POD2HTML,[pod2html],[echo "Skipped: pod2html not found"])
587 AC_PATH_PROG(POD2MAN,[pod2man],[echo "Skipped: pod2man not found"])
588 AC_PATH_PROG(RUNTEST,[runtest],[echo "Skipped: runtest not found"])
582 AC_PATH_PROG(BZIP2, [bzip2])
583 AC_PATH_PROG(DOXYGEN, [doxygen])
584 AC_PATH_PROG(GROFF, [groff])
585 AC_PATH_PROG(GZIP, [gzip])
586 AC_PATH_PROG(POD2HTML, [pod2html])
587 AC_PATH_PROG(POD2MAN, [pod2man])
588 AC_PATH_PROG(RUNTEST, [runtest])
589589 DJ_AC_PATH_TCLSH
590 AC_PATH_PROG(ZIP,[zip],[echo "Skipped: zip not found"])
591 AC_PATH_PROG(OCAMLC,[ocamlc],[echo "Skipped: ocamlc not found"])
592 AC_PATH_PROG(OCAMLOPT,[ocamlopt],[echo "Skipped: ocamlopt not found"])
593 AC_PATH_PROG(OCAMLDEP,[ocamldep],[echo "Skipped: ocamldep not found"])
590 AC_PATH_PROG(ZIP, [zip])
591 AC_PATH_PROG(OCAMLC, [ocamlc])
592 AC_PATH_PROG(OCAMLOPT, [ocamlopt])
593 AC_PATH_PROG(OCAMLDEP, [ocamldep])
594594
595595 dnl Determine if the linker supports the -R option.
596596 AC_LINK_USE_R
76037603 done
76047604 IFS=$as_save_IFS
76057605
7606 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
76077606 ;;
76087607 esac
76097608 fi
76447643 done
76457644 IFS=$as_save_IFS
76467645
7647 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
76487646 ;;
76497647 esac
76507648 fi
76857683 done
76867684 IFS=$as_save_IFS
76877685
7688 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
76897686 ;;
76907687 esac
76917688 fi
77267723 done
77277724 IFS=$as_save_IFS
77287725
7729 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
77307726 ;;
77317727 esac
77327728 fi
77677763 done
77687764 IFS=$as_save_IFS
77697765
7770 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
77717766 ;;
77727767 esac
77737768 fi
78087803 done
78097804 IFS=$as_save_IFS
78107805
7811 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
78127806 ;;
78137807 esac
78147808 fi
78497843 done
78507844 IFS=$as_save_IFS
78517845
7852 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
78537846 ;;
78547847 esac
78557848 fi
79807973 done
79817974 IFS=$as_save_IFS
79827975
7983 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
79847976 ;;
79857977 esac
79867978 fi
80218013 done
80228014 IFS=$as_save_IFS
80238015
8024 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
80258016 ;;
80268017 esac
80278018 fi
80628053 done
80638054 IFS=$as_save_IFS
80648055
8065 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
80668056 ;;
80678057 esac
80688058 fi
81038093 done
81048094 IFS=$as_save_IFS
81058095
8106 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
81078096 ;;
81088097 esac
81098098 fi
1057910568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1058010569 lt_status=$lt_dlunknown
1058110570 cat > conftest.$ac_ext <
10582 #line 10583 "configure"
10571 #line 10572 "configure"
1058310572 #include "confdefs.h"
1058410573
1058510574 #if HAVE_DLFCN_H
1272312712 ;;
1272412713 *-*-irix6*)
1272512714 # Find out which ABI we are using.
12726 echo '#line 12727 "configure"' > conftest.$ac_ext
12715 echo '#line 12716 "configure"' > conftest.$ac_ext
1272712716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1272812717 (eval $ac_compile) 2>&5
1272912718 ac_status=$?
1444114430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1444214431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1444314432 -e 's:$: $lt_compiler_flag:'`
14444 (eval echo "\"\$as_me:14445: $lt_compile\"" >&5)
14433 (eval echo "\"\$as_me:14434: $lt_compile\"" >&5)
1444514434 (eval "$lt_compile" 2>conftest.err)
1444614435 ac_status=$?
1444714436 cat conftest.err >&5
14448 echo "$as_me:14449: \$? = $ac_status" >&5
14437 echo "$as_me:14438: \$? = $ac_status" >&5
1444914438 if (exit $ac_status) && test -s "$ac_outfile"; then
1445014439 # The compiler can only warn and ignore the option if not recognized
1445114440 # So say no if there are warnings other than the usual output.
1470914698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1471014699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1471114700 -e 's:$: $lt_compiler_flag:'`
14712 (eval echo "\"\$as_me:14713: $lt_compile\"" >&5)
14701 (eval echo "\"\$as_me:14702: $lt_compile\"" >&5)
1471314702 (eval "$lt_compile" 2>conftest.err)
1471414703 ac_status=$?
1471514704 cat conftest.err >&5
14716 echo "$as_me:14717: \$? = $ac_status" >&5
14705 echo "$as_me:14706: \$? = $ac_status" >&5
1471714706 if (exit $ac_status) && test -s "$ac_outfile"; then
1471814707 # The compiler can only warn and ignore the option if not recognized
1471914708 # So say no if there are warnings other than the usual output.
1481314802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1481414803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1481514804 -e 's:$: $lt_compiler_flag:'`
14816 (eval echo "\"\$as_me:14817: $lt_compile\"" >&5)
14805 (eval echo "\"\$as_me:14806: $lt_compile\"" >&5)
1481714806 (eval "$lt_compile" 2>out/conftest.err)
1481814807 ac_status=$?
1481914808 cat out/conftest.err >&5
14820 echo "$as_me:14821: \$? = $ac_status" >&5
14809 echo "$as_me:14810: \$? = $ac_status" >&5
1482114810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1482214811 then
1482314812 # The compiler can only warn and ignore the option if not recognized
1726517254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1726617255 lt_status=$lt_dlunknown
1726717256 cat > conftest.$ac_ext <
17268 #line 17269 "configure"
17257 #line 17258 "configure"
1726917258 #include "confdefs.h"
1727017259
1727117260 #if HAVE_DLFCN_H
1736517354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1736617355 lt_status=$lt_dlunknown
1736717356 cat > conftest.$ac_ext <
17368 #line 17369 "configure"
17357 #line 17358 "configure"
1736917358 #include "confdefs.h"
1737017359
1737117360 #if HAVE_DLFCN_H
1973319722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1973419723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1973519724 -e 's:$: $lt_compiler_flag:'`
19736 (eval echo "\"\$as_me:19737: $lt_compile\"" >&5)
19725 (eval echo "\"\$as_me:19726: $lt_compile\"" >&5)
1973719726 (eval "$lt_compile" 2>conftest.err)
1973819727 ac_status=$?
1973919728 cat conftest.err >&5
19740 echo "$as_me:19741: \$? = $ac_status" >&5
19729 echo "$as_me:19730: \$? = $ac_status" >&5
1974119730 if (exit $ac_status) && test -s "$ac_outfile"; then
1974219731 # The compiler can only warn and ignore the option if not recognized
1974319732 # So say no if there are warnings other than the usual output.
1983719826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1983819827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1983919828 -e 's:$: $lt_compiler_flag:'`
19840 (eval echo "\"\$as_me:19841: $lt_compile\"" >&5)
19829 (eval echo "\"\$as_me:19830: $lt_compile\"" >&5)
1984119830 (eval "$lt_compile" 2>out/conftest.err)
1984219831 ac_status=$?
1984319832 cat out/conftest.err >&5
19844 echo "$as_me:19845: \$? = $ac_status" >&5
19833 echo "$as_me:19834: \$? = $ac_status" >&5
1984519834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1984619835 then
1984719836 # The compiler can only warn and ignore the option if not recognized
2140721396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2140821397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2140921398 -e 's:$: $lt_compiler_flag:'`
21410 (eval echo "\"\$as_me:21411: $lt_compile\"" >&5)
21399 (eval echo "\"\$as_me:21400: $lt_compile\"" >&5)
2141121400 (eval "$lt_compile" 2>conftest.err)
2141221401 ac_status=$?
2141321402 cat conftest.err >&5
21414 echo "$as_me:21415: \$? = $ac_status" >&5
21403 echo "$as_me:21404: \$? = $ac_status" >&5
2141521404 if (exit $ac_status) && test -s "$ac_outfile"; then
2141621405 # The compiler can only warn and ignore the option if not recognized
2141721406 # So say no if there are warnings other than the usual output.
2151121500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2151221501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2151321502 -e 's:$: $lt_compiler_flag:'`
21514 (eval echo "\"\$as_me:21515: $lt_compile\"" >&5)
21503 (eval echo "\"\$as_me:21504: $lt_compile\"" >&5)
2151521504 (eval "$lt_compile" 2>out/conftest.err)
2151621505 ac_status=$?
2151721506 cat out/conftest.err >&5
21518 echo "$as_me:21519: \$? = $ac_status" >&5
21507 echo "$as_me:21508: \$? = $ac_status" >&5
2151921508 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2152021509 then
2152121510 # The compiler can only warn and ignore the option if not recognized
2374623735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2374723736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2374823737 -e 's:$: $lt_compiler_flag:'`
23749 (eval echo "\"\$as_me:23750: $lt_compile\"" >&5)
23738 (eval echo "\"\$as_me:23739: $lt_compile\"" >&5)
2375023739 (eval "$lt_compile" 2>conftest.err)
2375123740 ac_status=$?
2375223741 cat conftest.err >&5
23753 echo "$as_me:23754: \$? = $ac_status" >&5
23742 echo "$as_me:23743: \$? = $ac_status" >&5
2375423743 if (exit $ac_status) && test -s "$ac_outfile"; then
2375523744 # The compiler can only warn and ignore the option if not recognized
2375623745 # So say no if there are warnings other than the usual output.
2401424003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2401524004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2401624005 -e 's:$: $lt_compiler_flag:'`
24017 (eval echo "\"\$as_me:24018: $lt_compile\"" >&5)
24006 (eval echo "\"\$as_me:24007: $lt_compile\"" >&5)
2401824007 (eval "$lt_compile" 2>conftest.err)
2401924008 ac_status=$?
2402024009 cat conftest.err >&5
24021 echo "$as_me:24022: \$? = $ac_status" >&5
24010 echo "$as_me:24011: \$? = $ac_status" >&5
2402224011 if (exit $ac_status) && test -s "$ac_outfile"; then
2402324012 # The compiler can only warn and ignore the option if not recognized
2402424013 # So say no if there are warnings other than the usual output.
2411824107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2411924108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2412024109 -e 's:$: $lt_compiler_flag:'`
24121 (eval echo "\"\$as_me:24122: $lt_compile\"" >&5)
24110 (eval echo "\"\$as_me:24111: $lt_compile\"" >&5)
2412224111 (eval "$lt_compile" 2>out/conftest.err)
2412324112 ac_status=$?
2412424113 cat out/conftest.err >&5
24125 echo "$as_me:24126: \$? = $ac_status" >&5
24114 echo "$as_me:24115: \$? = $ac_status" >&5
2412624115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2412724116 then
2412824117 # The compiler can only warn and ignore the option if not recognized