Ticket #28951: patch_doc_auto-opts.tpl.diff

File patch_doc_auto-opts.tpl.diff, 1.2 KB (added by rmstonecipher@…, 14 years ago)

files/patch_doc_auto-opts.tpl.diff

  • doc/auto-opts.tpl

    old new  
    104104@item
    105105@code{autogen checkopt.def}
    106106@item
    107 @code{cc -o check -g $@{cflags@} checkopt.c $@{ldflags@}}
     107@code{%%CONFIGURE.CC%% -o check -g $@{cflags@} checkopt.c $@{ldflags@}}
    108108@item
    109109@code{./check --help}
    110110@end enumerate
     
    188188autogen default-test.def
    189189copts="-DTEST_DEFAULT_TEST_OPTS `autoopts-config cflags`"
    190190lopts="`autoopts-config ldflags`"
    191 cc -o default-test $@{copts@} default-test.c $@{lopts@}
     191%%CONFIGURE.CC%% -o default-test $@{copts@} default-test.c $@{lopts@}
    192192@end example
    193193
    194194@noindent
     
    304304With that text in a file named ``hello.c'', this short script:
    305305
    306306@example
    307 cc -o hello hello.c `autoopts-config cflags ldflags`
     307%%CONFIGURE.CC%% -o hello hello.c `autoopts-config cflags ldflags`
    308308./hello
    309309echo 'greeting Buzz off' > hello.conf
    310310./hello
     
    318318@example
    319319[= (texi-escape-encode (shell "
    320320cd ${tmp_dir}
    321 cc -o hello hello.c ${CFLAGS} ${LIBS} ${LDFLAGS} || \
     321%%CONFIGURE.CC%% -o hello hello.c ${CFLAGS} ${LIBS} ${LDFLAGS} || \
    322322  die cannot compile hello
    323323./hello
    324324echo 'greeting Buzz off' > hello.conf