Add compile and link options echo to configure #9156

pull jonasschnelli wants to merge 1 commits into bitcoin:master from jonasschnelli:2016/11/configure changing 1 files +25 −0
  1. jonasschnelli commented at 9:58 AM on November 14, 2016: contributor

    Adds some compile and link options output to the configure process. Maybe I'm old school, but I like this level of verbosity.

    Results in something like

    [ ---snip--- ]
    configure: Using bignum implementation: no
    configure: Using scalar implementation: 64bit
    configure: Using endomorphism optimizations: no
    configure: Building ECDH module: no
    configure: Building Schnorr signatures module: no
    configure: Building ECDSA pubkey recovery module: yes
    configure: Using jni: no
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libsecp256k1.pc
    config.status: creating src/libsecp256k1-config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    
    Options used to compile and link:
      WITH WALLET   = yes
      WITH GUI / QT = yes
       WITH QR      = yes
      WITH TEST     = no
      WITH BENCH    = yes
    
      TARGET OS     = darwin
      BUILD OS      = darwin
    
      CC            = /usr/local/bin/ccache gcc
      CFLAGS        = -g -O2
      CPPFLAGS      = -Qunused-arguments  -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -I/usr/local/opt/berkeley-db4/include -DMAC_OSX
      CXX           = /usr/local/bin/ccache g++ -std=c++11
      CXXFLAGS      = -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register
      LDFLAGS       =  -Wl,-headerpad_max_install_names -Wl,-dead_strip
    
  2. jonasschnelli added the label Build system on Nov 14, 2016
  3. luke-jr commented at 10:08 AM on November 14, 2016: member

    What's with all the uppercase? Probably should specify which version of Qt.

  4. laanwj commented at 10:14 AM on November 14, 2016: member

    Concept ACK

  5. MarcoFalke commented at 11:46 AM on November 14, 2016: member

    utACK 9d380ea

  6. laanwj commented at 8:53 AM on November 15, 2016: member

    @theuni can you take a look as well?

  7. in configure.ac:None in 9d380eae2b outdated
    1125 | @@ -1126,3 +1126,22 @@ case ${OS} in
    1126 |       mv qa/pull-tester/tests_config-2.py qa/pull-tester/tests_config.py
    1127 |     ;;
    1128 |  esac
    1129 | +
    1130 | +echo ""
    


    paveljanik commented at 9:12 AM on November 15, 2016:

    No need for "".

  8. in configure.ac:None in 9d380eae2b outdated
    1125 | @@ -1126,3 +1126,22 @@ case ${OS} in
    1126 |       mv qa/pull-tester/tests_config-2.py qa/pull-tester/tests_config.py
    1127 |     ;;
    1128 |  esac
    1129 | +
    1130 | +echo ""
    1131 | +echo "Options used to compile and link:"
    1132 | +echo "  WITH WALLET   = $enable_wallet"
    1133 | +echo "  WITH GUI / QT = $bitcoin_enable_qt"
    1134 | +echo "   WITH QR      = $use_qr"
    


    paveljanik commented at 9:12 AM on November 15, 2016:

    "Conditionalize" QR on QT?

  9. paveljanik commented at 9:13 AM on November 15, 2016: contributor

    Can you add ZMQ and miniupnpc co make it complete?

  10. paveljanik commented at 9:13 AM on November 15, 2016: contributor

    Concept ACK!

    I like such verbosity, because it can the be used to compare build logs easily (it is no fun to look for differences on 500characters configure lines)....

  11. jonasschnelli force-pushed on Nov 15, 2016
  12. jonasschnelli commented at 4:02 PM on November 15, 2016: contributor

    Updated, added major Qt version, ZMQ, UPNP, DEBUG ENABLED (more obvious then checking for -O0). QR CODE and QT VERSION is only visible when QT is enabled.

    This is how it looks now:

    Options used to compile and link:
      WITH WALLET   = yes
      WITH GUI / QT = yes
        QT VERSION  = 5
        WITH QR     = yes
      WITH ZMQ      = yes
      WITH TEST     = yes
      WITH BENCH    = yes
      WITH UPNP     = yes
      DEBUG ENABLED = no
    
      TARGET OS     = darwin
      BUILD OS      = darwin
    
      CC            = /usr/local/bin/ccache gcc
      CFLAGS        = -g -O2
      CPPFLAGS      = -Qunused-arguments  -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -I/usr/local/opt/berkeley-db4/include -DMAC_OSX
      CXX           = /usr/local/bin/ccache g++ -std=c++11
      CXXFLAGS      = -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register
      LDFLAGS       =  -Wl,-headerpad_max_install_names -Wl,-dead_strip
    
    
  13. jonasschnelli force-pushed on Nov 15, 2016
  14. sipa commented at 5:45 PM on November 15, 2016: member

    utACK ce1acfc6e9fb6e81c11f3d65446999462206eae6

  15. paveljanik commented at 5:47 PM on November 15, 2016: contributor

    There are too many uppercase words WITH. I think that only variable names (CC, CFLAGS, ..., LDFLAGS) should be uppercased.

  16. theuni commented at 6:24 AM on November 16, 2016: member

    Very nice, concept ACK. Will review. Edit: Well that's simple enough. utACK https://github.com/bitcoin/bitcoin/commit/ce1acfc6e9fb6e81c11f3d65446999462206eae6.

    For bikeshedding, I agree with @paveljanik about not using caps except for variables that can be overridden. But it's not a big deal.

  17. laanwj commented at 8:17 AM on November 16, 2016: member

    There are too many uppercase words WITH. I think that only variable names (CC, CFLAGS, ..., LDFLAGS) should be uppercased.

    I tend to agree. Not that I care much for aesthetic reasons, but it can result in confusion, in the ./configure --help interface uppercase means 'a variable that can be overridden'. So yes let's make it less yelly :-)

  18. jonasschnelli force-pushed on Nov 16, 2016
  19. jonasschnelli commented at 10:21 AM on November 16, 2016: contributor

    Switched the non CFLAGish stuff to lowercase:

    This is how it looks now:

    Options used to compile and link:
      with wallet   = yes
      with gui / qt = yes
        qt version  = 5
        with qr     = yes
      with zmq      = yes
      with test     = yes
      with bench    = yes
      with upnp     = yes
      debug enabled = no
    
      target os     = darwin
      build os      = darwin
    
      CC            = /usr/local/bin/ccache gcc
      CFLAGS        = -g -O2
      CPPFLAGS      = -Qunused-arguments  -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -I/usr/local/opt/berkeley-db4/include -DMAC_OSX
      CXX           = /usr/local/bin/ccache g++ -std=c++11
      CXXFLAGS      = -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register
      LDFLAGS       =  -Wl,-headerpad_max_install_names -Wl,-dead_strip
    
  20. fanquake commented at 10:38 AM on November 16, 2016: member

    Travis errors are unrelated. Output looks ok.

    config.status: executing libtool commands
    
    Options used to compile and link:
      with wallet   = yes
      with gui / qt = yes
        qt version  = 5
        with qr     = yes
      with zmq      = yes
      with test     = yes
      with bench    = yes
      with upnp     = yes
      debug enabled = no
    
      target os     = darwin
      build os      = darwin
    
      CC            = gcc
      CFLAGS        = -g -O2
      CPPFLAGS      =  -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -I/usr/local/opt/berkeley-db4/include -DMAC_OSX
      CXX           = g++ -std=c++11
      CXXFLAGS      = -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register
      LDFLAGS       =  -Wl,-headerpad_max_install_names -Wl,-dead_strip
    
  21. in configure.ac:None in 0bb7325b33 outdated
    1130 | +echo 
    1131 | +echo "Options used to compile and link:"
    1132 | +echo "  with wallet   = $enable_wallet"
    1133 | +echo "  with gui / qt = $bitcoin_enable_qt"
    1134 | +if test x$bitcoin_enable_qt != xno; then
    1135 | +echo "    qt version  = $bitcoin_qt_got_major_vers"
    


    paveljanik commented at 11:01 AM on November 16, 2016:

    indent please.

  22. Add compile and link options echo to configure d8274bcd00
  23. in configure.ac:None in 0bb7325b33 outdated
    1141 | +echo "  with upnp     = $use_upnp"
    1142 | +echo "  debug enabled = $enable_debug"
    1143 | +echo 
    1144 | +echo "  target os     = $TARGET_OS"
    1145 | +echo "  build os      = $BUILD_OS"
    1146 | +echo ""
    


    paveljanik commented at 11:01 AM on November 16, 2016:

    no need for ""

  24. jonasschnelli force-pushed on Nov 16, 2016
  25. laanwj merged this on Nov 17, 2016
  26. laanwj closed this on Nov 17, 2016

  27. laanwj referenced this in commit a8b2a82618 on Nov 17, 2016
  28. zkbot referenced this in commit 75604363cc on Dec 1, 2017
  29. zkbot referenced this in commit 6aef4033a7 on Dec 1, 2017
  30. zkbot referenced this in commit 83af270002 on Dec 15, 2017
  31. codablock referenced this in commit 2f95284863 on Jan 15, 2018
  32. kotodev referenced this in commit c8a979fc92 on Jan 25, 2018
  33. renium9 referenced this in commit 23640da445 on Feb 6, 2018
  34. andvgal referenced this in commit 41e1cfee0a on Jan 6, 2019
  35. CryptoCentric referenced this in commit 59662a07c4 on Feb 24, 2019
  36. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me