Changes between Initial Version and Version 1 of Ticket #24059, comment 6


Ignore:
Timestamp:
Jun 2, 2015, 8:15:05 AM (9 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24059, comment 6

    initial v1  
    33> Alright, the configure file for curl has this:
    44>
    5 {{{
    6  dnl Check for user-specified random device
    7  AC_ARG_WITH(random,
    8  AC_HELP_STRING([--with-random=FILE],
    9                 [read randomness from FILE (default=/dev/urandom)]),
    10      [ RANDOM_FILE="$withval" ],
    11      [
    12          dnl Check for random device
    13          AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
    14      ]
    15  )
    16  if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
    17          AC_SUBST(RANDOM_FILE)
    18          AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE",
    19          [a suitable file to read random data from])
    20  fi
    21 }}}
     5> {{{
     6> dnl Check for user-specified random device
     7> AC_ARG_WITH(random,
     8> AC_HELP_STRING([--with-random=FILE],
     9>                 [read randomness from FILE (default=/dev/urandom)]),
     10>      [ RANDOM_FILE="$withval" ],
     11>      [
     12>          dnl Check for random device
     13>          AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
     14>      ]
     15> )
     16> if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
     17>          AC_SUBST(RANDOM_FILE)
     18>          AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE",
     19>          [a suitable file to read random data from])
     20> fi
     21> }}}
    2222>
    2323> This is the only place where AC_CHECK_FILE is used, and this is what