Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 30 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | |
| 33 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 58 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 90 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 91 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 100 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 111 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 112 | fi |
| 113 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 131 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 407 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 408 | as_fn_error () |
| 409 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 414 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 415 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 442 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 463 | |
| 464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 474 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 479 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 482 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 487 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 502 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 511 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 518 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 533 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 534 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | |
| 560 | # Name of the host. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # |
| 566 | # Initializations. |
| 567 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 569 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 570 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 571 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | cross_compiling=no |
| 573 | subdirs= |
| 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 583 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | |
| 585 | ac_unique_file="version.h" |
| 586 | # Factoring default headers for most tests. |
| 587 | ac_includes_default="\ |
| 588 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <sys/types.h> |
| 591 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 592 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 593 | # include <sys/stat.h> |
| 594 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 595 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 596 | # include <stdlib.h> |
| 597 | # include <stddef.h> |
| 598 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 599 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # endif |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRING_H |
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 605 | # include <memory.h> |
| 606 | # endif |
| 607 | # include <string.h> |
| 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 610 | # include <strings.h> |
| 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 614 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 615 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 617 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 618 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 619 | # include <unistd.h> |
| 620 | #endif" |
| 621 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 622 | gt_needs= |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 623 | ac_header_list= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 624 | gl_use_threads_default= |
| 625 | ac_func_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 627 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 628 | BUILD_LDFLAGS |
| 629 | BUILD_CFLAGS |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 630 | MKINSTALLDIRS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 631 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 632 | DO_TEST_SUITE |
| 633 | ET_DIR |
| 634 | SS_DIR |
| 635 | LDFLAG_STATIC |
| 636 | root_sysconfdir |
| 637 | root_libdir |
| 638 | root_sbindir |
| 639 | root_bindir |
| 640 | root_prefix |
| 641 | UNIX_CMT |
| 642 | CYGWIN_CMT |
| 643 | LINUX_CMT |
| 644 | UNI_DIFF_OPTS |
| 645 | SEM_INIT_LIB |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 646 | FUSE_CMT |
| 647 | FUSE_LIB |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 648 | MAGIC_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 649 | SOCKET_LIB |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 650 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 651 | SIZEOF_LONG_LONG |
| 652 | SIZEOF_LONG |
| 653 | SIZEOF_INT |
| 654 | SIZEOF_SHORT |
| 655 | BUILD_CC |
| 656 | MAKEINFO |
| 657 | STRIP |
| 658 | AR |
| 659 | LDCONFIG |
| 660 | PERL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 661 | AWK |
| 662 | CHMOD |
| 663 | RM |
| 664 | CP |
| 665 | MV |
| 666 | LN_S |
| 667 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 668 | ifNotGNUmake |
| 669 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 670 | BINARY_TYPE |
| 671 | POSUB |
| 672 | LTLIBINTL |
| 673 | LIBINTL |
| 674 | INTLLIBS |
| 675 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 676 | INTLOBJS |
| 677 | GENCAT |
| 678 | INSTOBJEXT |
| 679 | DATADIRNAME |
| 680 | CATOBJEXT |
| 681 | USE_INCLUDED_LIBINTL |
| 682 | BUILD_INCLUDED_LIBINTL |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 683 | LTLIBC |
| 684 | WINDRES |
| 685 | WOE32 |
| 686 | WOE32DLL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 687 | HAVE_WPRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 688 | HAVE_NEWLOCALE |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 689 | HAVE_SNPRINTF |
| 690 | HAVE_ASPRINTF |
| 691 | HAVE_POSIX_PRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 692 | INTL_DEFAULT_VERBOSITY |
| 693 | INTL_MACOSX_LIBS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 694 | GLIBC21 |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 695 | INTLBISON |
| 696 | LTLIBICONV |
| 697 | LIBICONV |
| 698 | LTLIBMULTITHREAD |
| 699 | LIBMULTITHREAD |
| 700 | LTLIBTHREAD |
| 701 | LIBTHREAD |
| 702 | LIBPTH_PREFIX |
| 703 | LTLIBPTH |
| 704 | LIBPTH |
| 705 | PRI_MACROS_BROKEN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 706 | ALLOCA |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 707 | HAVE_VISIBILITY |
| 708 | CFLAG_VISIBILITY |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 709 | RANLIB |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 710 | GLIBC2 |
| 711 | XGETTEXT_EXTRA_OPTIONS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 712 | MSGMERGE |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 713 | XGETTEXT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 714 | XGETTEXT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 715 | GMSGFMT_015 |
| 716 | MSGFMT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 717 | GMSGFMT |
| 718 | MSGFMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 719 | GETTEXT_MACRO_VERSION |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 720 | USE_NLS |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 721 | SED |
| 722 | MKDIR_P |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 723 | INSTALL_DATA |
| 724 | INSTALL_SCRIPT |
| 725 | INSTALL_PROGRAM |
| 726 | SET_MAKE |
| 727 | VERSION |
| 728 | PACKAGE |
| 729 | GETTEXT_PACKAGE |
| 730 | UUIDD_CMT |
| 731 | E2INITRD_MAN |
| 732 | E2INITRD_PROG |
| 733 | FSCK_MAN |
| 734 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 735 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 736 | RESIZER_CMT |
| 737 | IMAGER_CMT |
| 738 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 739 | QUOTA_CMT |
| 740 | DEPPROFILED_LIBQUOTA |
| 741 | PROFILED_LIBQUOTA |
| 742 | DEPSTATIC_LIBQUOTA |
| 743 | STATIC_LIBQUOTA |
| 744 | DEPLIBQUOTA |
| 745 | LIBQUOTA |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 746 | QUOTA_MAN_COMMENT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 747 | BLKID_CMT |
| 748 | DEPPROFILED_LIBBLKID |
| 749 | PROFILED_LIBBLKID |
| 750 | DEPSTATIC_LIBBLKID |
| 751 | STATIC_LIBBLKID |
| 752 | DEPLIBBLKID |
| 753 | LIBBLKID |
| 754 | UUID_CMT |
| 755 | DEPPROFILED_LIBUUID |
| 756 | PROFILED_LIBUUID |
| 757 | DEPSTATIC_LIBUUID |
| 758 | STATIC_LIBUUID |
| 759 | DEPLIBUUID |
| 760 | LIBUUID |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 761 | PKG_CONFIG_LIBDIR |
| 762 | PKG_CONFIG_PATH |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 763 | PKG_CONFIG |
| 764 | TEST_IO_CMT |
| 765 | PRIVATE_LIBS_CMT |
| 766 | LDFLAG_DYNAMIC |
| 767 | PROFILED_LIB_EXT |
| 768 | STATIC_LIB_EXT |
| 769 | LIB_EXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 770 | PROFILE_CMT |
| 771 | BSDLIB_CMT |
| 772 | ELF_CMT |
| 773 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 774 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 775 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 776 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 777 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 778 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 779 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 780 | MAINTAINER_CMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 781 | EGREP |
| 782 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 783 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 784 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 785 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 786 | OBJEXT |
| 787 | EXEEXT |
| 788 | ac_ct_CC |
| 789 | CPPFLAGS |
| 790 | LDFLAGS |
| 791 | CFLAGS |
| 792 | CC |
| 793 | host_os |
| 794 | host_vendor |
| 795 | host_cpu |
| 796 | host |
| 797 | build_os |
| 798 | build_vendor |
| 799 | build_cpu |
| 800 | build |
| 801 | E2FSPROGS_PKGVER |
| 802 | E2FSPROGS_VERSION |
| 803 | E2FSPROGS_DAY |
| 804 | E2FSPROGS_MONTH |
| 805 | E2FSPROGS_YEAR |
| 806 | target_alias |
| 807 | host_alias |
| 808 | build_alias |
| 809 | LIBS |
| 810 | ECHO_T |
| 811 | ECHO_N |
| 812 | ECHO_C |
| 813 | DEFS |
| 814 | mandir |
| 815 | localedir |
| 816 | libdir |
| 817 | psdir |
| 818 | pdfdir |
| 819 | dvidir |
| 820 | htmldir |
| 821 | infodir |
| 822 | docdir |
| 823 | oldincludedir |
| 824 | includedir |
| 825 | localstatedir |
| 826 | sharedstatedir |
| 827 | sysconfdir |
| 828 | datadir |
| 829 | datarootdir |
| 830 | libexecdir |
| 831 | sbindir |
| 832 | bindir |
| 833 | program_transform_name |
| 834 | prefix |
| 835 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 836 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 837 | PACKAGE_BUGREPORT |
| 838 | PACKAGE_STRING |
| 839 | PACKAGE_VERSION |
| 840 | PACKAGE_TARNAME |
| 841 | PACKAGE_NAME |
| 842 | PATH_SEPARATOR |
| 843 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 844 | ac_subst_files='MCONFIG |
| 845 | MAKEFILE_ELF |
| 846 | MAKEFILE_BSDLIB |
| 847 | MAKEFILE_PROFILE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 848 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 849 | ASM_TYPES_HEADER |
| 850 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 851 | ac_user_opts=' |
| 852 | enable_option_checking |
| 853 | with_diet_libc |
| 854 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 855 | with_ccopts |
| 856 | with_ldopts |
| 857 | with_root_prefix |
| 858 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 859 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 860 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 861 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 862 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 863 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 864 | enable_htree |
| 865 | enable_elf_shlibs |
| 866 | enable_bsd_shlibs |
| 867 | enable_profile |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 868 | enable_gcov |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 869 | enable_jbd_debug |
| 870 | enable_blkid_debug |
| 871 | enable_testio_debug |
| 872 | enable_libuuid |
| 873 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 874 | enable_quota |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 875 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 876 | enable_debugfs |
| 877 | enable_imager |
| 878 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 879 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 880 | enable_fsck |
| 881 | enable_e2initrd_helper |
| 882 | enable_tls |
| 883 | enable_uuidd |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 884 | enable_mmp |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 885 | enable_bmap_stats |
| 886 | enable_bmap_stats_ops |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 887 | enable_nls |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 888 | enable_threads |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 889 | with_gnu_ld |
| 890 | enable_rpath |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 891 | with_libpth_prefix |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 892 | with_libiconv_prefix |
| 893 | with_included_gettext |
| 894 | with_libintl_prefix |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 895 | enable_fuse2fs |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 896 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 897 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 898 | ac_precious_vars='build_alias |
| 899 | host_alias |
| 900 | target_alias |
| 901 | CC |
| 902 | CFLAGS |
| 903 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 904 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 905 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 906 | CPP |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 907 | PKG_CONFIG |
| 908 | PKG_CONFIG_PATH |
| 909 | PKG_CONFIG_LIBDIR' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 910 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 911 | |
| 912 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 913 | ac_init_help= |
| 914 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 915 | ac_unrecognized_opts= |
| 916 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 917 | # The variables have the same names as the options, with |
| 918 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 919 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 920 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 921 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | no_recursion= |
| 923 | prefix=NONE |
| 924 | program_prefix=NONE |
| 925 | program_suffix=NONE |
| 926 | program_transform_name=s,x,x, |
| 927 | silent= |
| 928 | site= |
| 929 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 930 | verbose= |
| 931 | x_includes=NONE |
| 932 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 933 | |
| 934 | # Installation directory options. |
| 935 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 936 | # and all the variables that are supposed to be based on exec_prefix |
| 937 | # by default will actually change. |
| 938 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 939 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 940 | bindir='${exec_prefix}/bin' |
| 941 | sbindir='${exec_prefix}/sbin' |
| 942 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 943 | datarootdir='${prefix}/share' |
| 944 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 945 | sysconfdir='${prefix}/etc' |
| 946 | sharedstatedir='${prefix}/com' |
| 947 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 948 | includedir='${prefix}/include' |
| 949 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 950 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 951 | infodir='${datarootdir}/info' |
| 952 | htmldir='${docdir}' |
| 953 | dvidir='${docdir}' |
| 954 | pdfdir='${docdir}' |
| 955 | psdir='${docdir}' |
| 956 | libdir='${exec_prefix}/lib' |
| 957 | localedir='${datarootdir}/locale' |
| 958 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 959 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 960 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 961 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 962 | for ac_option |
| 963 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 964 | # If the previous option needs an argument, assign it. |
| 965 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 966 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 967 | ac_prev= |
| 968 | continue |
| 969 | fi |
| 970 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 971 | case $ac_option in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 972 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 973 | *=) ac_optarg= ;; |
| 974 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 975 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 976 | |
| 977 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 978 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 979 | case $ac_dashdash$ac_option in |
| 980 | --) |
| 981 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 982 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 983 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 984 | ac_prev=bindir ;; |
| 985 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 986 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 987 | |
| 988 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 989 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 990 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 991 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 992 | |
| 993 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 994 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 995 | ac_prev=cache_file ;; |
| 996 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 997 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 998 | cache_file=$ac_optarg ;; |
| 999 | |
| 1000 | --config-cache | -C) |
| 1001 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1003 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1004 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1005 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1006 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1008 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1009 | | --dataroo | --dataro | --datar) |
| 1010 | ac_prev=datarootdir ;; |
| 1011 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1012 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1013 | datarootdir=$ac_optarg ;; |
| 1014 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1015 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1017 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1019 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1020 | ac_useropt_orig=$ac_useropt |
| 1021 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1022 | case $ac_user_opts in |
| 1023 | *" |
| 1024 | "enable_$ac_useropt" |
| 1025 | "*) ;; |
| 1026 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1027 | ac_unrecognized_sep=', ';; |
| 1028 | esac |
| 1029 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1030 | |
| 1031 | -docdir | --docdir | --docdi | --doc | --do) |
| 1032 | ac_prev=docdir ;; |
| 1033 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1034 | docdir=$ac_optarg ;; |
| 1035 | |
| 1036 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1037 | ac_prev=dvidir ;; |
| 1038 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1039 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1040 | |
| 1041 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1042 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1043 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1044 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1045 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1046 | ac_useropt_orig=$ac_useropt |
| 1047 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1048 | case $ac_user_opts in |
| 1049 | *" |
| 1050 | "enable_$ac_useropt" |
| 1051 | "*) ;; |
| 1052 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1053 | ac_unrecognized_sep=', ';; |
| 1054 | esac |
| 1055 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1056 | |
| 1057 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1058 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1059 | | --exec | --exe | --ex) |
| 1060 | ac_prev=exec_prefix ;; |
| 1061 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1062 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1063 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1064 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1065 | |
| 1066 | -gas | --gas | --ga | --g) |
| 1067 | # Obsolete; use --with-gas. |
| 1068 | with_gas=yes ;; |
| 1069 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1070 | -help | --help | --hel | --he | -h) |
| 1071 | ac_init_help=long ;; |
| 1072 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1073 | ac_init_help=recursive ;; |
| 1074 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1075 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1076 | |
| 1077 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1078 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1079 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1080 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1081 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1082 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1083 | ac_prev=htmldir ;; |
| 1084 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1085 | | --ht=*) |
| 1086 | htmldir=$ac_optarg ;; |
| 1087 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1088 | -includedir | --includedir | --includedi | --included | --include \ |
| 1089 | | --includ | --inclu | --incl | --inc) |
| 1090 | ac_prev=includedir ;; |
| 1091 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1092 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1093 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1094 | |
| 1095 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1096 | ac_prev=infodir ;; |
| 1097 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1098 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1099 | |
| 1100 | -libdir | --libdir | --libdi | --libd) |
| 1101 | ac_prev=libdir ;; |
| 1102 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1103 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1104 | |
| 1105 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1106 | | --libexe | --libex | --libe) |
| 1107 | ac_prev=libexecdir ;; |
| 1108 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1109 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1110 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1111 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1112 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1113 | ac_prev=localedir ;; |
| 1114 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1115 | localedir=$ac_optarg ;; |
| 1116 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1117 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1118 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1119 | ac_prev=localstatedir ;; |
| 1120 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1121 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1122 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1123 | |
| 1124 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1125 | ac_prev=mandir ;; |
| 1126 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1127 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1128 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1129 | -nfp | --nfp | --nf) |
| 1130 | # Obsolete; use --without-fp. |
| 1131 | with_fp=no ;; |
| 1132 | |
| 1133 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1134 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1135 | no_create=yes ;; |
| 1136 | |
| 1137 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1138 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1139 | no_recursion=yes ;; |
| 1140 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1141 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1142 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1143 | | --oldin | --oldi | --old | --ol | --o) |
| 1144 | ac_prev=oldincludedir ;; |
| 1145 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1146 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1147 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1148 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1149 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1150 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1151 | ac_prev=prefix ;; |
| 1152 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1153 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1154 | |
| 1155 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1156 | | --program-pre | --program-pr | --program-p) |
| 1157 | ac_prev=program_prefix ;; |
| 1158 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1159 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1160 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1161 | |
| 1162 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1163 | | --program-suf | --program-su | --program-s) |
| 1164 | ac_prev=program_suffix ;; |
| 1165 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1166 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1167 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1168 | |
| 1169 | -program-transform-name | --program-transform-name \ |
| 1170 | | --program-transform-nam | --program-transform-na \ |
| 1171 | | --program-transform-n | --program-transform- \ |
| 1172 | | --program-transform | --program-transfor \ |
| 1173 | | --program-transfo | --program-transf \ |
| 1174 | | --program-trans | --program-tran \ |
| 1175 | | --progr-tra | --program-tr | --program-t) |
| 1176 | ac_prev=program_transform_name ;; |
| 1177 | -program-transform-name=* | --program-transform-name=* \ |
| 1178 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1179 | | --program-transform-n=* | --program-transform-=* \ |
| 1180 | | --program-transform=* | --program-transfor=* \ |
| 1181 | | --program-transfo=* | --program-transf=* \ |
| 1182 | | --program-trans=* | --program-tran=* \ |
| 1183 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1184 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1185 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1186 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1187 | ac_prev=pdfdir ;; |
| 1188 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1189 | pdfdir=$ac_optarg ;; |
| 1190 | |
| 1191 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1192 | ac_prev=psdir ;; |
| 1193 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1194 | psdir=$ac_optarg ;; |
| 1195 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1196 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1197 | | -silent | --silent | --silen | --sile | --sil) |
| 1198 | silent=yes ;; |
| 1199 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1200 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1201 | ac_prev=sbindir ;; |
| 1202 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1203 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1204 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1205 | |
| 1206 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1207 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1208 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1209 | | --sha | --sh) |
| 1210 | ac_prev=sharedstatedir ;; |
| 1211 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1212 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1213 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1214 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1215 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1216 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1217 | -site | --site | --sit) |
| 1218 | ac_prev=site ;; |
| 1219 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1220 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1221 | |
| 1222 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1223 | ac_prev=srcdir ;; |
| 1224 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1225 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1226 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1227 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1228 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1229 | ac_prev=sysconfdir ;; |
| 1230 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1231 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1232 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1233 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1234 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1235 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1236 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1237 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1238 | |
| 1239 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1240 | verbose=yes ;; |
| 1241 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1242 | -version | --version | --versio | --versi | --vers | -V) |
| 1243 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1244 | |
| 1245 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1246 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1247 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1248 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1249 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1250 | ac_useropt_orig=$ac_useropt |
| 1251 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1252 | case $ac_user_opts in |
| 1253 | *" |
| 1254 | "with_$ac_useropt" |
| 1255 | "*) ;; |
| 1256 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1257 | ac_unrecognized_sep=', ';; |
| 1258 | esac |
| 1259 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1260 | |
| 1261 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1262 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1263 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1264 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1265 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1266 | ac_useropt_orig=$ac_useropt |
| 1267 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1268 | case $ac_user_opts in |
| 1269 | *" |
| 1270 | "with_$ac_useropt" |
| 1271 | "*) ;; |
| 1272 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1273 | ac_unrecognized_sep=', ';; |
| 1274 | esac |
| 1275 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1276 | |
| 1277 | --x) |
| 1278 | # Obsolete; use --with-x. |
| 1279 | with_x=yes ;; |
| 1280 | |
| 1281 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1282 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1283 | ac_prev=x_includes ;; |
| 1284 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1285 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1286 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1287 | |
| 1288 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1289 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1290 | ac_prev=x_libraries ;; |
| 1291 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1292 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1293 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1294 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1295 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1296 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1297 | ;; |
| 1298 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1299 | *=*) |
| 1300 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1301 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1302 | case $ac_envvar in #( |
| 1303 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1304 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1305 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1306 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1307 | export $ac_envvar ;; |
| 1308 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1309 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1310 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1311 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1312 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1313 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1314 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1315 | ;; |
| 1316 | |
| 1317 | esac |
| 1318 | done |
| 1319 | |
| 1320 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1321 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1322 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1323 | fi |
| 1324 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1325 | if test -n "$ac_unrecognized_opts"; then |
| 1326 | case $enable_option_checking in |
| 1327 | no) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1328 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1329 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1330 | esac |
| 1331 | fi |
| 1332 | |
| 1333 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1334 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1335 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1336 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1337 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1338 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1339 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1340 | # Remove trailing slashes. |
| 1341 | case $ac_val in |
| 1342 | */ ) |
| 1343 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1344 | eval $ac_var=\$ac_val;; |
| 1345 | esac |
| 1346 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1347 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1348 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1349 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1350 | esac |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1351 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1352 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1353 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1354 | # There might be people who depend on the old broken behavior: `$host' |
| 1355 | # used to hold the argument of --host etc. |
| 1356 | # FIXME: To remove some day. |
| 1357 | build=$build_alias |
| 1358 | host=$host_alias |
| 1359 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1360 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1361 | # FIXME: To remove some day. |
| 1362 | if test "x$host_alias" != x; then |
| 1363 | if test "x$build_alias" = x; then |
| 1364 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1365 | elif test "x$build_alias" != "x$host_alias"; then |
| 1366 | cross_compiling=yes |
| 1367 | fi |
| 1368 | fi |
| 1369 | |
| 1370 | ac_tool_prefix= |
| 1371 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1372 | |
| 1373 | test "$silent" = yes && exec 6>/dev/null |
| 1374 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1375 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1376 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1377 | ac_ls_di=`ls -di .` && |
| 1378 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1379 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1380 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1381 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1382 | |
| 1383 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1384 | # Find the source files, if location was not specified. |
| 1385 | if test -z "$srcdir"; then |
| 1386 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1387 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1388 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1389 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1390 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1391 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1392 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1393 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1395 | s//\1/ |
| 1396 | q |
| 1397 | } |
| 1398 | /^X\(\/\/\)[^/].*/{ |
| 1399 | s//\1/ |
| 1400 | q |
| 1401 | } |
| 1402 | /^X\(\/\/\)$/{ |
| 1403 | s//\1/ |
| 1404 | q |
| 1405 | } |
| 1406 | /^X\(\/\).*/{ |
| 1407 | s//\1/ |
| 1408 | q |
| 1409 | } |
| 1410 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1411 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1412 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1413 | srcdir=.. |
| 1414 | fi |
| 1415 | else |
| 1416 | ac_srcdir_defaulted=no |
| 1417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1418 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1419 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1420 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1421 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1422 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1423 | ac_abs_confdir=`( |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1424 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1425 | pwd)` |
| 1426 | # When building in place, set srcdir=. |
| 1427 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1428 | srcdir=. |
| 1429 | fi |
| 1430 | # Remove unnecessary trailing slashes from srcdir. |
| 1431 | # Double slashes in file names in object file debugging info |
| 1432 | # mess up M-x gdb in Emacs. |
| 1433 | case $srcdir in |
| 1434 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1435 | esac |
| 1436 | for ac_var in $ac_precious_vars; do |
| 1437 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1438 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1439 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1440 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1441 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1442 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1443 | # |
| 1444 | # Report the --help message. |
| 1445 | # |
| 1446 | if test "$ac_init_help" = "long"; then |
| 1447 | # Omit some internal or obsolete options to make the list less imposing. |
| 1448 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1449 | cat <<_ACEOF |
| 1450 | \`configure' configures this package to adapt to many kinds of systems. |
| 1451 | |
| 1452 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1453 | |
| 1454 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1455 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1456 | |
| 1457 | Defaults for the options are specified in brackets. |
| 1458 | |
| 1459 | Configuration: |
| 1460 | -h, --help display this help and exit |
| 1461 | --help=short display options specific to this package |
| 1462 | --help=recursive display the short help of all the included packages |
| 1463 | -V, --version display version information and exit |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1464 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1465 | --cache-file=FILE cache test results in FILE [disabled] |
| 1466 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1467 | -n, --no-create do not create output files |
| 1468 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | Installation directories: |
| 1471 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1472 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1473 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1474 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1475 | |
| 1476 | By default, \`make install' will install all the files in |
| 1477 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1478 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1479 | for instance \`--prefix=\$HOME'. |
| 1480 | |
| 1481 | For better control, use the options below. |
| 1482 | |
| 1483 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1484 | --bindir=DIR user executables [EPREFIX/bin] |
| 1485 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1486 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1487 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1488 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1489 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1490 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1491 | --includedir=DIR C header files [PREFIX/include] |
| 1492 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1493 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1494 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1495 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1496 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1497 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1498 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1499 | --htmldir=DIR html documentation [DOCDIR] |
| 1500 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1501 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1502 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1503 | _ACEOF |
| 1504 | |
| 1505 | cat <<\_ACEOF |
| 1506 | |
| 1507 | System types: |
| 1508 | --build=BUILD configure for building on BUILD [guessed] |
| 1509 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1510 | _ACEOF |
| 1511 | fi |
| 1512 | |
| 1513 | if test -n "$ac_init_help"; then |
| 1514 | |
| 1515 | cat <<\_ACEOF |
| 1516 | |
| 1517 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1518 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1519 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1520 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1521 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1522 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1523 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1524 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1525 | --enable-symlink-build use symlinks while building instead of hard links |
| 1526 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 1527 | --disable-htree disable htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1528 | --enable-elf-shlibs select ELF shared libraries |
| 1529 | --enable-bsd-shlibs select BSD shared libraries |
| 1530 | --enable-profile build profiling libraries |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 1531 | --enable-gcov build for coverage testing using gcov |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1532 | --enable-jbd-debug enable journal debugging |
| 1533 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1534 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 1535 | --enable-libuuid build and use private uuid library |
| 1536 | --enable-libblkid build and use private blkid library |
| 1537 | --disable-quota disable quota support |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1538 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1539 | --disable-debugfs disable support of debugfs program |
| 1540 | --disable-imager disable support of e2image program |
| 1541 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1542 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1543 | --enable-fsck build fsck wrapper program |
| 1544 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1545 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1546 | --disable-uuidd disable building the uuid daemon |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1547 | --disable-mmp disable support mmp, Multi Mount Protection |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 1548 | --disable-bmap-stats disable collection of bitmap stats. |
| 1549 | --enable-bmap-stats-ops enable collection of additional bitmap stats |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1550 | --disable-nls do not use Native Language Support |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1551 | --enable-threads={posix|solaris|pth|windows} |
| 1552 | specify multithreading API |
| 1553 | --disable-threads build without multithread safety |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1554 | --disable-rpath do not hardcode runtime library paths |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 1555 | --disable-fuse2fs do not build fuse2fs |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1556 | |
| 1557 | Optional Packages: |
| 1558 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1559 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1560 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1561 | --with-cc no longer supported, use CC= instead |
| 1562 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1563 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1564 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1565 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1566 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib |
| 1567 | --without-libpth-prefix don't search for libpth in includedir and libdir |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1568 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1569 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1570 | --with-included-gettext use the GNU gettext library included here |
| 1571 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1572 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1573 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1574 | |
| 1575 | Some influential environment variables: |
| 1576 | CC C compiler command |
| 1577 | CFLAGS C compiler flags |
| 1578 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1579 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1580 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1581 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1582 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1583 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1584 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1585 | PKG_CONFIG_PATH |
| 1586 | directories to add to pkg-config's search path |
| 1587 | PKG_CONFIG_LIBDIR |
| 1588 | path overriding pkg-config's built-in search path |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1589 | |
| 1590 | Use these variables to override the choices made by `configure' or to help |
| 1591 | it to find libraries and programs with nonstandard names/locations. |
| 1592 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1593 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1594 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1595 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1596 | fi |
| 1597 | |
| 1598 | if test "$ac_init_help" = "recursive"; then |
| 1599 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1600 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1601 | test -d "$ac_dir" || |
| 1602 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1603 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1604 | ac_builddir=. |
| 1605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1606 | case "$ac_dir" in |
| 1607 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1608 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1609 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1610 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1611 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1612 | case $ac_top_builddir_sub in |
| 1613 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1614 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1615 | esac ;; |
| 1616 | esac |
| 1617 | ac_abs_top_builddir=$ac_pwd |
| 1618 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1619 | # for backward compatibility: |
| 1620 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1621 | |
| 1622 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1623 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1624 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1625 | ac_top_srcdir=$ac_top_builddir_sub |
| 1626 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1627 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1629 | ac_top_srcdir=$srcdir |
| 1630 | ac_abs_top_srcdir=$srcdir ;; |
| 1631 | *) # Relative name. |
| 1632 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1633 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1634 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1635 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1636 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1637 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1638 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1639 | # Check for guested configure. |
| 1640 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1641 | echo && |
| 1642 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1643 | elif test -f "$ac_srcdir/configure"; then |
| 1644 | echo && |
| 1645 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1646 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1647 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1648 | fi || ac_status=$? |
| 1649 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1650 | done |
| 1651 | fi |
| 1652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1653 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1654 | if $ac_init_version; then |
| 1655 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1656 | configure |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1657 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1658 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1659 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1660 | This configure script is free software; the Free Software Foundation |
| 1661 | gives unlimited permission to copy, distribute and modify it. |
| 1662 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1663 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1664 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1665 | |
| 1666 | ## ------------------------ ## |
| 1667 | ## Autoconf initialization. ## |
| 1668 | ## ------------------------ ## |
| 1669 | |
| 1670 | # ac_fn_c_try_compile LINENO |
| 1671 | # -------------------------- |
| 1672 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1673 | ac_fn_c_try_compile () |
| 1674 | { |
| 1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1676 | rm -f conftest.$ac_objext |
| 1677 | if { { ac_try="$ac_compile" |
| 1678 | case "(($ac_try" in |
| 1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1680 | *) ac_try_echo=$ac_try;; |
| 1681 | esac |
| 1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1683 | $as_echo "$ac_try_echo"; } >&5 |
| 1684 | (eval "$ac_compile") 2>conftest.err |
| 1685 | ac_status=$? |
| 1686 | if test -s conftest.err; then |
| 1687 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1688 | cat conftest.er1 >&5 |
| 1689 | mv -f conftest.er1 conftest.err |
| 1690 | fi |
| 1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1692 | test $ac_status = 0; } && { |
| 1693 | test -z "$ac_c_werror_flag" || |
| 1694 | test ! -s conftest.err |
| 1695 | } && test -s conftest.$ac_objext; then : |
| 1696 | ac_retval=0 |
| 1697 | else |
| 1698 | $as_echo "$as_me: failed program was:" >&5 |
| 1699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1700 | |
| 1701 | ac_retval=1 |
| 1702 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1703 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1704 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1705 | |
| 1706 | } # ac_fn_c_try_compile |
| 1707 | |
| 1708 | # ac_fn_c_try_link LINENO |
| 1709 | # ----------------------- |
| 1710 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1711 | ac_fn_c_try_link () |
| 1712 | { |
| 1713 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1714 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1715 | if { { ac_try="$ac_link" |
| 1716 | case "(($ac_try" in |
| 1717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1718 | *) ac_try_echo=$ac_try;; |
| 1719 | esac |
| 1720 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1721 | $as_echo "$ac_try_echo"; } >&5 |
| 1722 | (eval "$ac_link") 2>conftest.err |
| 1723 | ac_status=$? |
| 1724 | if test -s conftest.err; then |
| 1725 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1726 | cat conftest.er1 >&5 |
| 1727 | mv -f conftest.er1 conftest.err |
| 1728 | fi |
| 1729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1730 | test $ac_status = 0; } && { |
| 1731 | test -z "$ac_c_werror_flag" || |
| 1732 | test ! -s conftest.err |
| 1733 | } && test -s conftest$ac_exeext && { |
| 1734 | test "$cross_compiling" = yes || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1735 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1736 | }; then : |
| 1737 | ac_retval=0 |
| 1738 | else |
| 1739 | $as_echo "$as_me: failed program was:" >&5 |
| 1740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1741 | |
| 1742 | ac_retval=1 |
| 1743 | fi |
| 1744 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1745 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1746 | # interfere with the next link command; also delete a directory that is |
| 1747 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1748 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1749 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1750 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1751 | |
| 1752 | } # ac_fn_c_try_link |
| 1753 | |
| 1754 | # ac_fn_c_try_cpp LINENO |
| 1755 | # ---------------------- |
| 1756 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1757 | ac_fn_c_try_cpp () |
| 1758 | { |
| 1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1760 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1761 | case "(($ac_try" in |
| 1762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1763 | *) ac_try_echo=$ac_try;; |
| 1764 | esac |
| 1765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1766 | $as_echo "$ac_try_echo"; } >&5 |
| 1767 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1768 | ac_status=$? |
| 1769 | if test -s conftest.err; then |
| 1770 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1771 | cat conftest.er1 >&5 |
| 1772 | mv -f conftest.er1 conftest.err |
| 1773 | fi |
| 1774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1775 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1776 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1777 | test ! -s conftest.err |
| 1778 | }; then : |
| 1779 | ac_retval=0 |
| 1780 | else |
| 1781 | $as_echo "$as_me: failed program was:" >&5 |
| 1782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1783 | |
| 1784 | ac_retval=1 |
| 1785 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1787 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1788 | |
| 1789 | } # ac_fn_c_try_cpp |
| 1790 | |
| 1791 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1792 | # ------------------------------------------------------- |
| 1793 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1794 | # the include files in INCLUDES and setting the cache variable VAR |
| 1795 | # accordingly. |
| 1796 | ac_fn_c_check_header_mongrel () |
| 1797 | { |
| 1798 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1799 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1801 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1802 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1803 | $as_echo_n "(cached) " >&6 |
| 1804 | fi |
| 1805 | eval ac_res=\$$3 |
| 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1807 | $as_echo "$ac_res" >&6; } |
| 1808 | else |
| 1809 | # Is the header compilable? |
| 1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1811 | $as_echo_n "checking $2 usability... " >&6; } |
| 1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1813 | /* end confdefs.h. */ |
| 1814 | $4 |
| 1815 | #include <$2> |
| 1816 | _ACEOF |
| 1817 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1818 | ac_header_compiler=yes |
| 1819 | else |
| 1820 | ac_header_compiler=no |
| 1821 | fi |
| 1822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1824 | $as_echo "$ac_header_compiler" >&6; } |
| 1825 | |
| 1826 | # Is the header present? |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1828 | $as_echo_n "checking $2 presence... " >&6; } |
| 1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1830 | /* end confdefs.h. */ |
| 1831 | #include <$2> |
| 1832 | _ACEOF |
| 1833 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1834 | ac_header_preproc=yes |
| 1835 | else |
| 1836 | ac_header_preproc=no |
| 1837 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1838 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1840 | $as_echo "$ac_header_preproc" >&6; } |
| 1841 | |
| 1842 | # So? What about this header? |
| 1843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1844 | yes:no: ) |
| 1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1846 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1848 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1849 | ;; |
| 1850 | no:yes:* ) |
| 1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1852 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1854 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1856 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1858 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1860 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1861 | ;; |
| 1862 | esac |
| 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1864 | $as_echo_n "checking for $2... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1865 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1866 | $as_echo_n "(cached) " >&6 |
| 1867 | else |
| 1868 | eval "$3=\$ac_header_compiler" |
| 1869 | fi |
| 1870 | eval ac_res=\$$3 |
| 1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1872 | $as_echo "$ac_res" >&6; } |
| 1873 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 1874 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1875 | |
| 1876 | } # ac_fn_c_check_header_mongrel |
| 1877 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1878 | # ac_fn_c_try_run LINENO |
| 1879 | # ---------------------- |
| 1880 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1881 | # that executables *can* be run. |
| 1882 | ac_fn_c_try_run () |
| 1883 | { |
| 1884 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1885 | if { { ac_try="$ac_link" |
| 1886 | case "(($ac_try" in |
| 1887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1888 | *) ac_try_echo=$ac_try;; |
| 1889 | esac |
| 1890 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1891 | $as_echo "$ac_try_echo"; } >&5 |
| 1892 | (eval "$ac_link") 2>&5 |
| 1893 | ac_status=$? |
| 1894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1895 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1896 | { { case "(($ac_try" in |
| 1897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1898 | *) ac_try_echo=$ac_try;; |
| 1899 | esac |
| 1900 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1901 | $as_echo "$ac_try_echo"; } >&5 |
| 1902 | (eval "$ac_try") 2>&5 |
| 1903 | ac_status=$? |
| 1904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1905 | test $ac_status = 0; }; }; then : |
| 1906 | ac_retval=0 |
| 1907 | else |
| 1908 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1909 | $as_echo "$as_me: failed program was:" >&5 |
| 1910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1911 | |
| 1912 | ac_retval=$ac_status |
| 1913 | fi |
| 1914 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1915 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1916 | as_fn_set_status $ac_retval |
| 1917 | |
| 1918 | } # ac_fn_c_try_run |
| 1919 | |
| 1920 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1921 | # ------------------------------------------------------- |
| 1922 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1923 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1924 | ac_fn_c_check_header_compile () |
| 1925 | { |
| 1926 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1928 | $as_echo_n "checking for $2... " >&6; } |
| 1929 | if eval \${$3+:} false; then : |
| 1930 | $as_echo_n "(cached) " >&6 |
| 1931 | else |
| 1932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1933 | /* end confdefs.h. */ |
| 1934 | $4 |
| 1935 | #include <$2> |
| 1936 | _ACEOF |
| 1937 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1938 | eval "$3=yes" |
| 1939 | else |
| 1940 | eval "$3=no" |
| 1941 | fi |
| 1942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1943 | fi |
| 1944 | eval ac_res=\$$3 |
| 1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1946 | $as_echo "$ac_res" >&6; } |
| 1947 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1948 | |
| 1949 | } # ac_fn_c_check_header_compile |
| 1950 | |
| 1951 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1952 | # ------------------------------------------- |
| 1953 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1954 | # variable VAR accordingly. |
| 1955 | ac_fn_c_check_type () |
| 1956 | { |
| 1957 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1959 | $as_echo_n "checking for $2... " >&6; } |
| 1960 | if eval \${$3+:} false; then : |
| 1961 | $as_echo_n "(cached) " >&6 |
| 1962 | else |
| 1963 | eval "$3=no" |
| 1964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1965 | /* end confdefs.h. */ |
| 1966 | $4 |
| 1967 | int |
| 1968 | main () |
| 1969 | { |
| 1970 | if (sizeof ($2)) |
| 1971 | return 0; |
| 1972 | ; |
| 1973 | return 0; |
| 1974 | } |
| 1975 | _ACEOF |
| 1976 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1978 | /* end confdefs.h. */ |
| 1979 | $4 |
| 1980 | int |
| 1981 | main () |
| 1982 | { |
| 1983 | if (sizeof (($2))) |
| 1984 | return 0; |
| 1985 | ; |
| 1986 | return 0; |
| 1987 | } |
| 1988 | _ACEOF |
| 1989 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1990 | |
| 1991 | else |
| 1992 | eval "$3=yes" |
| 1993 | fi |
| 1994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1995 | fi |
| 1996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1997 | fi |
| 1998 | eval ac_res=\$$3 |
| 1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2000 | $as_echo "$ac_res" >&6; } |
| 2001 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2002 | |
| 2003 | } # ac_fn_c_check_type |
| 2004 | |
| 2005 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2006 | # ---------------------------------- |
| 2007 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2008 | ac_fn_c_check_func () |
| 2009 | { |
| 2010 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2012 | $as_echo_n "checking for $2... " >&6; } |
| 2013 | if eval \${$3+:} false; then : |
| 2014 | $as_echo_n "(cached) " >&6 |
| 2015 | else |
| 2016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2017 | /* end confdefs.h. */ |
| 2018 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2020 | #define $2 innocuous_$2 |
| 2021 | |
| 2022 | /* System header to define __stub macros and hopefully few prototypes, |
| 2023 | which can conflict with char $2 (); below. |
| 2024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2025 | <limits.h> exists even on freestanding compilers. */ |
| 2026 | |
| 2027 | #ifdef __STDC__ |
| 2028 | # include <limits.h> |
| 2029 | #else |
| 2030 | # include <assert.h> |
| 2031 | #endif |
| 2032 | |
| 2033 | #undef $2 |
| 2034 | |
| 2035 | /* Override any GCC internal prototype to avoid an error. |
| 2036 | Use char because int might match the return type of a GCC |
| 2037 | builtin and then its argument prototype would still apply. */ |
| 2038 | #ifdef __cplusplus |
| 2039 | extern "C" |
| 2040 | #endif |
| 2041 | char $2 (); |
| 2042 | /* The GNU C library defines this for functions which it implements |
| 2043 | to always fail with ENOSYS. Some functions are actually named |
| 2044 | something starting with __ and the normal name is an alias. */ |
| 2045 | #if defined __stub_$2 || defined __stub___$2 |
| 2046 | choke me |
| 2047 | #endif |
| 2048 | |
| 2049 | int |
| 2050 | main () |
| 2051 | { |
| 2052 | return $2 (); |
| 2053 | ; |
| 2054 | return 0; |
| 2055 | } |
| 2056 | _ACEOF |
| 2057 | if ac_fn_c_try_link "$LINENO"; then : |
| 2058 | eval "$3=yes" |
| 2059 | else |
| 2060 | eval "$3=no" |
| 2061 | fi |
| 2062 | rm -f core conftest.err conftest.$ac_objext \ |
| 2063 | conftest$ac_exeext conftest.$ac_ext |
| 2064 | fi |
| 2065 | eval ac_res=\$$3 |
| 2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2067 | $as_echo "$ac_res" >&6; } |
| 2068 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2069 | |
| 2070 | } # ac_fn_c_check_func |
| 2071 | |
| 2072 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2073 | # --------------------------------------------- |
| 2074 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2075 | # accordingly. |
| 2076 | ac_fn_c_check_decl () |
| 2077 | { |
| 2078 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2079 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2080 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2082 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2083 | if eval \${$3+:} false; then : |
| 2084 | $as_echo_n "(cached) " >&6 |
| 2085 | else |
| 2086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2087 | /* end confdefs.h. */ |
| 2088 | $4 |
| 2089 | int |
| 2090 | main () |
| 2091 | { |
| 2092 | #ifndef $as_decl_name |
| 2093 | #ifdef __cplusplus |
| 2094 | (void) $as_decl_use; |
| 2095 | #else |
| 2096 | (void) $as_decl_name; |
| 2097 | #endif |
| 2098 | #endif |
| 2099 | |
| 2100 | ; |
| 2101 | return 0; |
| 2102 | } |
| 2103 | _ACEOF |
| 2104 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2105 | eval "$3=yes" |
| 2106 | else |
| 2107 | eval "$3=no" |
| 2108 | fi |
| 2109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2110 | fi |
| 2111 | eval ac_res=\$$3 |
| 2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2113 | $as_echo "$ac_res" >&6; } |
| 2114 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2115 | |
| 2116 | } # ac_fn_c_check_decl |
| 2117 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2118 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2119 | # -------------------------------------------- |
| 2120 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2121 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2122 | # computed |
| 2123 | ac_fn_c_compute_int () |
| 2124 | { |
| 2125 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2126 | if test "$cross_compiling" = yes; then |
| 2127 | # Depending upon the size, compute the lo and hi bounds. |
| 2128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2129 | /* end confdefs.h. */ |
| 2130 | $4 |
| 2131 | int |
| 2132 | main () |
| 2133 | { |
| 2134 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2135 | test_array [0] = 0; |
| 2136 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2137 | |
| 2138 | ; |
| 2139 | return 0; |
| 2140 | } |
| 2141 | _ACEOF |
| 2142 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2143 | ac_lo=0 ac_mid=0 |
| 2144 | while :; do |
| 2145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2146 | /* end confdefs.h. */ |
| 2147 | $4 |
| 2148 | int |
| 2149 | main () |
| 2150 | { |
| 2151 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2152 | test_array [0] = 0; |
| 2153 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2154 | |
| 2155 | ; |
| 2156 | return 0; |
| 2157 | } |
| 2158 | _ACEOF |
| 2159 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2160 | ac_hi=$ac_mid; break |
| 2161 | else |
| 2162 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2163 | if test $ac_lo -le $ac_mid; then |
| 2164 | ac_lo= ac_hi= |
| 2165 | break |
| 2166 | fi |
| 2167 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2168 | fi |
| 2169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2170 | done |
| 2171 | else |
| 2172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2173 | /* end confdefs.h. */ |
| 2174 | $4 |
| 2175 | int |
| 2176 | main () |
| 2177 | { |
| 2178 | static int test_array [1 - 2 * !(($2) < 0)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2179 | test_array [0] = 0; |
| 2180 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2181 | |
| 2182 | ; |
| 2183 | return 0; |
| 2184 | } |
| 2185 | _ACEOF |
| 2186 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2187 | ac_hi=-1 ac_mid=-1 |
| 2188 | while :; do |
| 2189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2190 | /* end confdefs.h. */ |
| 2191 | $4 |
| 2192 | int |
| 2193 | main () |
| 2194 | { |
| 2195 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2196 | test_array [0] = 0; |
| 2197 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2198 | |
| 2199 | ; |
| 2200 | return 0; |
| 2201 | } |
| 2202 | _ACEOF |
| 2203 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2204 | ac_lo=$ac_mid; break |
| 2205 | else |
| 2206 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2207 | if test $ac_mid -le $ac_hi; then |
| 2208 | ac_lo= ac_hi= |
| 2209 | break |
| 2210 | fi |
| 2211 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2212 | fi |
| 2213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2214 | done |
| 2215 | else |
| 2216 | ac_lo= ac_hi= |
| 2217 | fi |
| 2218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2219 | fi |
| 2220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2221 | # Binary search between lo and hi bounds. |
| 2222 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2223 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2225 | /* end confdefs.h. */ |
| 2226 | $4 |
| 2227 | int |
| 2228 | main () |
| 2229 | { |
| 2230 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2231 | test_array [0] = 0; |
| 2232 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2233 | |
| 2234 | ; |
| 2235 | return 0; |
| 2236 | } |
| 2237 | _ACEOF |
| 2238 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2239 | ac_hi=$ac_mid |
| 2240 | else |
| 2241 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2242 | fi |
| 2243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2244 | done |
| 2245 | case $ac_lo in #(( |
| 2246 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2247 | '') ac_retval=1 ;; |
| 2248 | esac |
| 2249 | else |
| 2250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2251 | /* end confdefs.h. */ |
| 2252 | $4 |
| 2253 | static long int longval () { return $2; } |
| 2254 | static unsigned long int ulongval () { return $2; } |
| 2255 | #include <stdio.h> |
| 2256 | #include <stdlib.h> |
| 2257 | int |
| 2258 | main () |
| 2259 | { |
| 2260 | |
| 2261 | FILE *f = fopen ("conftest.val", "w"); |
| 2262 | if (! f) |
| 2263 | return 1; |
| 2264 | if (($2) < 0) |
| 2265 | { |
| 2266 | long int i = longval (); |
| 2267 | if (i != ($2)) |
| 2268 | return 1; |
| 2269 | fprintf (f, "%ld", i); |
| 2270 | } |
| 2271 | else |
| 2272 | { |
| 2273 | unsigned long int i = ulongval (); |
| 2274 | if (i != ($2)) |
| 2275 | return 1; |
| 2276 | fprintf (f, "%lu", i); |
| 2277 | } |
| 2278 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2279 | on some platforms. */ |
| 2280 | return ferror (f) || fclose (f) != 0; |
| 2281 | |
| 2282 | ; |
| 2283 | return 0; |
| 2284 | } |
| 2285 | _ACEOF |
| 2286 | if ac_fn_c_try_run "$LINENO"; then : |
| 2287 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2288 | else |
| 2289 | ac_retval=1 |
| 2290 | fi |
| 2291 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2292 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2293 | rm -f conftest.val |
| 2294 | |
| 2295 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2296 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2297 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2298 | |
| 2299 | } # ac_fn_c_compute_int |
| 2300 | |
| 2301 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2302 | # ---------------------------------------------------- |
| 2303 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2304 | # INCLUDES, setting cache variable VAR accordingly. |
| 2305 | ac_fn_c_check_member () |
| 2306 | { |
| 2307 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2309 | $as_echo_n "checking for $2.$3... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2310 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2311 | $as_echo_n "(cached) " >&6 |
| 2312 | else |
| 2313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2314 | /* end confdefs.h. */ |
| 2315 | $5 |
| 2316 | int |
| 2317 | main () |
| 2318 | { |
| 2319 | static $2 ac_aggr; |
| 2320 | if (ac_aggr.$3) |
| 2321 | return 0; |
| 2322 | ; |
| 2323 | return 0; |
| 2324 | } |
| 2325 | _ACEOF |
| 2326 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2327 | eval "$4=yes" |
| 2328 | else |
| 2329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2330 | /* end confdefs.h. */ |
| 2331 | $5 |
| 2332 | int |
| 2333 | main () |
| 2334 | { |
| 2335 | static $2 ac_aggr; |
| 2336 | if (sizeof ac_aggr.$3) |
| 2337 | return 0; |
| 2338 | ; |
| 2339 | return 0; |
| 2340 | } |
| 2341 | _ACEOF |
| 2342 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2343 | eval "$4=yes" |
| 2344 | else |
| 2345 | eval "$4=no" |
| 2346 | fi |
| 2347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2348 | fi |
| 2349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2350 | fi |
| 2351 | eval ac_res=\$$4 |
| 2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2353 | $as_echo "$ac_res" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2354 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2355 | |
| 2356 | } # ac_fn_c_check_member |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2357 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2358 | This file contains any messages produced by compilers while |
| 2359 | running configure, to aid debugging if configure makes a mistake. |
| 2360 | |
| 2361 | It was created by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2362 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2363 | |
| 2364 | $ $0 $@ |
| 2365 | |
| 2366 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2367 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2368 | { |
| 2369 | cat <<_ASUNAME |
| 2370 | ## --------- ## |
| 2371 | ## Platform. ## |
| 2372 | ## --------- ## |
| 2373 | |
| 2374 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2375 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2376 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2377 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2378 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2379 | |
| 2380 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2381 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2382 | |
| 2383 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2384 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2385 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2386 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2387 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2388 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2389 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2390 | |
| 2391 | _ASUNAME |
| 2392 | |
| 2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2394 | for as_dir in $PATH |
| 2395 | do |
| 2396 | IFS=$as_save_IFS |
| 2397 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2398 | $as_echo "PATH: $as_dir" |
| 2399 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2400 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2401 | |
| 2402 | } >&5 |
| 2403 | |
| 2404 | cat >&5 <<_ACEOF |
| 2405 | |
| 2406 | |
| 2407 | ## ----------- ## |
| 2408 | ## Core tests. ## |
| 2409 | ## ----------- ## |
| 2410 | |
| 2411 | _ACEOF |
| 2412 | |
| 2413 | |
| 2414 | # Keep a trace of the command line. |
| 2415 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2416 | # Strip out --silent because we don't want to record it for future runs. |
| 2417 | # Also quote any args containing shell meta-characters. |
| 2418 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2419 | ac_configure_args= |
| 2420 | ac_configure_args0= |
| 2421 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2422 | ac_must_keep_next=false |
| 2423 | for ac_pass in 1 2 |
| 2424 | do |
| 2425 | for ac_arg |
| 2426 | do |
| 2427 | case $ac_arg in |
| 2428 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2429 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2430 | | -silent | --silent | --silen | --sile | --sil) |
| 2431 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2432 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2433 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2434 | esac |
| 2435 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2436 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2437 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2438 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2439 | if test $ac_must_keep_next = true; then |
| 2440 | ac_must_keep_next=false # Got value, back to normal. |
| 2441 | else |
| 2442 | case $ac_arg in |
| 2443 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2444 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2445 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2446 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2447 | case "$ac_configure_args0 " in |
| 2448 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2449 | esac |
| 2450 | ;; |
| 2451 | -* ) ac_must_keep_next=true ;; |
| 2452 | esac |
| 2453 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2454 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2455 | ;; |
| 2456 | esac |
| 2457 | done |
| 2458 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2459 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2460 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2461 | |
| 2462 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2463 | # config.log. We remove comments because anyway the quotes in there |
| 2464 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2465 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2466 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2467 | trap 'exit_status=$? |
| 2468 | # Save into config.log some information that might help in debugging. |
| 2469 | { |
| 2470 | echo |
| 2471 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2472 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2473 | ## Cache variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2474 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2475 | echo |
| 2476 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2477 | ( |
| 2478 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2479 | eval ac_val=\$$ac_var |
| 2480 | case $ac_val in #( |
| 2481 | *${as_nl}*) |
| 2482 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2483 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2484 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2485 | esac |
| 2486 | case $ac_var in #( |
| 2487 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2488 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2489 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2490 | esac ;; |
| 2491 | esac |
| 2492 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2493 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2494 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2495 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2496 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2497 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2498 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2499 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2500 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2501 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2502 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2503 | esac | |
| 2504 | sort |
| 2505 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2506 | echo |
| 2507 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2508 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2509 | ## Output variables. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2510 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2511 | echo |
| 2512 | for ac_var in $ac_subst_vars |
| 2513 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | eval ac_val=\$$ac_var |
| 2515 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2516 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2517 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2518 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2519 | done | sort |
| 2520 | echo |
| 2521 | |
| 2522 | if test -n "$ac_subst_files"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2523 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2524 | ## File substitutions. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2525 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2526 | echo |
| 2527 | for ac_var in $ac_subst_files |
| 2528 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2529 | eval ac_val=\$$ac_var |
| 2530 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2531 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2532 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2533 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2534 | done | sort |
| 2535 | echo |
| 2536 | fi |
| 2537 | |
| 2538 | if test -s confdefs.h; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2539 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2540 | ## confdefs.h. ## |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2541 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2542 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2543 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2544 | echo |
| 2545 | fi |
| 2546 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2547 | $as_echo "$as_me: caught signal $ac_signal" |
| 2548 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2549 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2550 | rm -f core *.core core.conftest.* && |
| 2551 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2552 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2553 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2554 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2555 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2556 | done |
| 2557 | ac_signal=0 |
| 2558 | |
| 2559 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2560 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2562 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2564 | # Predefined preprocessor variables. |
| 2565 | |
| 2566 | cat >>confdefs.h <<_ACEOF |
| 2567 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2568 | _ACEOF |
| 2569 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2570 | cat >>confdefs.h <<_ACEOF |
| 2571 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2572 | _ACEOF |
| 2573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2574 | cat >>confdefs.h <<_ACEOF |
| 2575 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2576 | _ACEOF |
| 2577 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2578 | cat >>confdefs.h <<_ACEOF |
| 2579 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2580 | _ACEOF |
| 2581 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2582 | cat >>confdefs.h <<_ACEOF |
| 2583 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2584 | _ACEOF |
| 2585 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2586 | cat >>confdefs.h <<_ACEOF |
| 2587 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2588 | _ACEOF |
| 2589 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2590 | |
| 2591 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2592 | # Prefer an explicitly selected file to automatically selected ones. |
| 2593 | ac_site_file1=NONE |
| 2594 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2595 | if test -n "$CONFIG_SITE"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2596 | # We do not want a PATH search for config.site. |
| 2597 | case $CONFIG_SITE in #(( |
| 2598 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2599 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2600 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2601 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2602 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2603 | ac_site_file1=$prefix/share/config.site |
| 2604 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2605 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2606 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2607 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2608 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2609 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2610 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2611 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2612 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2614 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2615 | sed 's/^/| /' "$ac_site_file" >&5 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2616 | . "$ac_site_file" \ |
| 2617 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2618 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2619 | as_fn_error $? "failed to load site script $ac_site_file |
| 2620 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2621 | fi |
| 2622 | done |
| 2623 | |
| 2624 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2625 | # Some versions of bash will fail to source /dev/null (special files |
| 2626 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2627 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2629 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2630 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2631 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2632 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2633 | esac |
| 2634 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2635 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2637 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2638 | >$cache_file |
| 2639 | fi |
| 2640 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2641 | gt_needs="$gt_needs " |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2642 | as_fn_append ac_header_list " stdlib.h" |
| 2643 | as_fn_append ac_header_list " unistd.h" |
| 2644 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2645 | as_fn_append ac_func_list " symlink" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2646 | # Check that the precious variables saved in the cache have kept the same |
| 2647 | # value. |
| 2648 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2649 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2650 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2651 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2652 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2653 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2654 | case $ac_old_set,$ac_new_set in |
| 2655 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2657 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | ac_cache_corrupted=: ;; |
| 2659 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2661 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2662 | ac_cache_corrupted=: ;; |
| 2663 | ,);; |
| 2664 | *) |
| 2665 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2666 | # differences in whitespace do not lead to failure. |
| 2667 | ac_old_val_w=`echo x $ac_old_val` |
| 2668 | ac_new_val_w=`echo x $ac_new_val` |
| 2669 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2671 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2672 | ac_cache_corrupted=: |
| 2673 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2675 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2676 | eval $ac_var=\$ac_old_val |
| 2677 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2679 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2681 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2682 | fi;; |
| 2683 | esac |
| 2684 | # Pass precious variables to config.status. |
| 2685 | if test "$ac_new_set" = set; then |
| 2686 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2687 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2688 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2689 | esac |
| 2690 | case " $ac_configure_args " in |
| 2691 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2692 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2693 | esac |
| 2694 | fi |
| 2695 | done |
| 2696 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2700 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2701 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2702 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2703 | ## -------------------- ## |
| 2704 | ## Main body of script. ## |
| 2705 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2706 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2707 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2708 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2712 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2713 | |
| 2714 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2715 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2716 | for ac_dir in config "$srcdir"/config; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2717 | if test -f "$ac_dir/install-sh"; then |
| 2718 | ac_aux_dir=$ac_dir |
| 2719 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2720 | break |
| 2721 | elif test -f "$ac_dir/install.sh"; then |
| 2722 | ac_aux_dir=$ac_dir |
| 2723 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2724 | break |
| 2725 | elif test -f "$ac_dir/shtool"; then |
| 2726 | ac_aux_dir=$ac_dir |
| 2727 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2728 | break |
| 2729 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2730 | done |
| 2731 | if test -z "$ac_aux_dir"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2732 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2733 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2734 | |
| 2735 | # These three variables are undocumented and unsupported, |
| 2736 | # and are intended to be withdrawn in a future Autoconf release. |
| 2737 | # They can cause serious problems if a builder's source tree is in a directory |
| 2738 | # whose full name contains unusual characters. |
| 2739 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2740 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2741 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2742 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2743 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2744 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2745 | |
| 2746 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2747 | MCONFIG=./MCONFIG |
| 2748 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2749 | BINARY_TYPE=bin |
| 2750 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2751 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2752 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2753 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2754 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2755 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2756 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2757 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2758 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2759 | E2FSPROGS_YEAR=$YEAR |
| 2760 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2761 | E2FSPROGS_YEAR=19$YEAR |
| 2762 | else |
| 2763 | E2FSPROGS_YEAR=20$YEAR |
| 2764 | fi |
| 2765 | |
| 2766 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2767 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2768 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2769 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2770 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2771 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2772 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2773 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2774 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2775 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2776 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2777 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2778 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2779 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2780 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2781 | esac |
| 2782 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2783 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2784 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2785 | |
| 2786 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2787 | |
| 2788 | case $E2FSPROGS_VERSION in |
| 2789 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2790 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2791 | ;; |
| 2792 | *) |
| 2793 | E2FSPROGS_PKGVER="$base_ver" |
| 2794 | ;; |
| 2795 | esac |
| 2796 | |
| 2797 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2799 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2801 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2802 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2803 | |
| 2804 | |
| 2805 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2806 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 2807 | WITH_DIET_LIBC= |
| 2808 | |
| 2809 | # Check whether --with-diet-libc was given. |
| 2810 | if test "${with_diet_libc+set}" = set; then : |
| 2811 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2812 | WITH_DIET_LIBC=yes |
| 2813 | if test -z "$LIBS" |
| 2814 | then |
| 2815 | LIBS="-lcompat" |
| 2816 | else |
| 2817 | LIBS="$LIBS -lcompat" |
| 2818 | fi |
| 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2820 | $as_echo "CC=$CC" >&6; } |
| 2821 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2822 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2823 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2824 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2825 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2827 | $as_echo_n "checking build system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2828 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2829 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2830 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2831 | ac_build_alias=$build_alias |
| 2832 | test "x$ac_build_alias" = x && |
| 2833 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2834 | test "x$ac_build_alias" = x && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2835 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2836 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2837 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2838 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2839 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2841 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2842 | case $ac_cv_build in |
| 2843 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2844 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2845 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2846 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2847 | ac_save_IFS=$IFS; IFS='-' |
| 2848 | set x $ac_cv_build |
| 2849 | shift |
| 2850 | build_cpu=$1 |
| 2851 | build_vendor=$2 |
| 2852 | shift; shift |
| 2853 | # Remember, the first character of IFS is used to create $*, |
| 2854 | # except with old shells: |
| 2855 | build_os=$* |
| 2856 | IFS=$ac_save_IFS |
| 2857 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2858 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2859 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2861 | $as_echo_n "checking host system type... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2862 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2863 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2864 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2865 | if test "x$host_alias" = x; then |
| 2866 | ac_cv_host=$ac_cv_build |
| 2867 | else |
| 2868 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2869 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2870 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2871 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2872 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2874 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2875 | case $ac_cv_host in |
| 2876 | *-*-*) ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2877 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2878 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2879 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2880 | ac_save_IFS=$IFS; IFS='-' |
| 2881 | set x $ac_cv_host |
| 2882 | shift |
| 2883 | host_cpu=$1 |
| 2884 | host_vendor=$2 |
| 2885 | shift; shift |
| 2886 | # Remember, the first character of IFS is used to create $*, |
| 2887 | # except with old shells: |
| 2888 | host_os=$* |
| 2889 | IFS=$ac_save_IFS |
| 2890 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2891 | |
| 2892 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2893 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2894 | ac_ext=c |
| 2895 | ac_cpp='$CPP $CPPFLAGS' |
| 2896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2899 | if test -n "$ac_tool_prefix"; then |
| 2900 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2901 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2903 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2904 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2905 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2906 | else |
| 2907 | if test -n "$CC"; then |
| 2908 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2909 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2911 | for as_dir in $PATH |
| 2912 | do |
| 2913 | IFS=$as_save_IFS |
| 2914 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2915 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2917 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2919 | break 2 |
| 2920 | fi |
| 2921 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2922 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2923 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2924 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2925 | fi |
| 2926 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2927 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2928 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2930 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2931 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2933 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2934 | fi |
| 2935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2936 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2937 | fi |
| 2938 | if test -z "$ac_cv_prog_CC"; then |
| 2939 | ac_ct_CC=$CC |
| 2940 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2941 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2943 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2944 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2945 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2946 | else |
| 2947 | if test -n "$ac_ct_CC"; then |
| 2948 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2949 | else |
| 2950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2951 | for as_dir in $PATH |
| 2952 | do |
| 2953 | IFS=$as_save_IFS |
| 2954 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2955 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2959 | break 2 |
| 2960 | fi |
| 2961 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2962 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2963 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2964 | |
| 2965 | fi |
| 2966 | fi |
| 2967 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2968 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2970 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2971 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2973 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2974 | fi |
| 2975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2976 | if test "x$ac_ct_CC" = x; then |
| 2977 | CC="" |
| 2978 | else |
| 2979 | case $cross_compiling:$ac_tool_warned in |
| 2980 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2983 | ac_tool_warned=yes ;; |
| 2984 | esac |
| 2985 | CC=$ac_ct_CC |
| 2986 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2987 | else |
| 2988 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2989 | fi |
| 2990 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2991 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2992 | if test -n "$ac_tool_prefix"; then |
| 2993 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2994 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2996 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 2997 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2998 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2999 | else |
| 3000 | if test -n "$CC"; then |
| 3001 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3002 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3004 | for as_dir in $PATH |
| 3005 | do |
| 3006 | IFS=$as_save_IFS |
| 3007 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3008 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3009 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3010 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3012 | break 2 |
| 3013 | fi |
| 3014 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3015 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3016 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3017 | |
| 3018 | fi |
| 3019 | fi |
| 3020 | CC=$ac_cv_prog_CC |
| 3021 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3023 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3024 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3026 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3027 | fi |
| 3028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3029 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3030 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3031 | fi |
| 3032 | if test -z "$CC"; then |
| 3033 | # Extract the first word of "cc", so it can be a program name with args. |
| 3034 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3036 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3037 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3038 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3039 | else |
| 3040 | if test -n "$CC"; then |
| 3041 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3042 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3043 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3045 | for as_dir in $PATH |
| 3046 | do |
| 3047 | IFS=$as_save_IFS |
| 3048 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3049 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3051 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3052 | ac_prog_rejected=yes |
| 3053 | continue |
| 3054 | fi |
| 3055 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3057 | break 2 |
| 3058 | fi |
| 3059 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3060 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3061 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3062 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3063 | if test $ac_prog_rejected = yes; then |
| 3064 | # We found a bogon in the path, so make sure we never use it. |
| 3065 | set dummy $ac_cv_prog_CC |
| 3066 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3067 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3068 | # We chose a different compiler from the bogus one. |
| 3069 | # However, it has the same basename, so the bogon will be chosen |
| 3070 | # first if we set CC to just the basename; use the full file name. |
| 3071 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3072 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3073 | fi |
| 3074 | fi |
| 3075 | fi |
| 3076 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3077 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3078 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3080 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3081 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3083 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3084 | fi |
| 3085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3086 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3087 | fi |
| 3088 | if test -z "$CC"; then |
| 3089 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3090 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3091 | do |
| 3092 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3093 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3095 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3096 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3097 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3098 | else |
| 3099 | if test -n "$CC"; then |
| 3100 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3101 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3103 | for as_dir in $PATH |
| 3104 | do |
| 3105 | IFS=$as_save_IFS |
| 3106 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3107 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3109 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3111 | break 2 |
| 3112 | fi |
| 3113 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3114 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3115 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3116 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3117 | fi |
| 3118 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3119 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3120 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3122 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3123 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3125 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3126 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3128 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3129 | test -n "$CC" && break |
| 3130 | done |
| 3131 | fi |
| 3132 | if test -z "$CC"; then |
| 3133 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3134 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3135 | do |
| 3136 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3137 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3139 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3140 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3141 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3142 | else |
| 3143 | if test -n "$ac_ct_CC"; then |
| 3144 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3145 | else |
| 3146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3147 | for as_dir in $PATH |
| 3148 | do |
| 3149 | IFS=$as_save_IFS |
| 3150 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3151 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3153 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3155 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3156 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3157 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3158 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3159 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3160 | |
| 3161 | fi |
| 3162 | fi |
| 3163 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3164 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3166 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3167 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3169 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3170 | fi |
| 3171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3172 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3173 | test -n "$ac_ct_CC" && break |
| 3174 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3175 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3176 | if test "x$ac_ct_CC" = x; then |
| 3177 | CC="" |
| 3178 | else |
| 3179 | case $cross_compiling:$ac_tool_warned in |
| 3180 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3182 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3183 | ac_tool_warned=yes ;; |
| 3184 | esac |
| 3185 | CC=$ac_ct_CC |
| 3186 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3187 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3188 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3189 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3190 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3191 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3192 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3194 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3195 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3196 | |
| 3197 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3198 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3199 | set X $ac_compile |
| 3200 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3201 | for ac_option in --version -v -V -qversion; do |
| 3202 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3203 | case "(($ac_try" in |
| 3204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3205 | *) ac_try_echo=$ac_try;; |
| 3206 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3207 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3208 | $as_echo "$ac_try_echo"; } >&5 |
| 3209 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3210 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3211 | if test -s conftest.err; then |
| 3212 | sed '10a\ |
| 3213 | ... rest of stderr output deleted ... |
| 3214 | 10q' conftest.err >conftest.er1 |
| 3215 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3216 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3217 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3219 | test $ac_status = 0; } |
| 3220 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3221 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3223 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3225 | int |
| 3226 | main () |
| 3227 | { |
| 3228 | |
| 3229 | ; |
| 3230 | return 0; |
| 3231 | } |
| 3232 | _ACEOF |
| 3233 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3234 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3235 | # Try to create an executable without -o first, disregard a.out. |
| 3236 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3237 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3239 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3240 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3241 | |
| 3242 | # The possible output files: |
| 3243 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3244 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3245 | ac_rmfiles= |
| 3246 | for ac_file in $ac_files |
| 3247 | do |
| 3248 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3249 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3250 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3251 | esac |
| 3252 | done |
| 3253 | rm -f $ac_rmfiles |
| 3254 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3255 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3256 | case "(($ac_try" in |
| 3257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3258 | *) ac_try_echo=$ac_try;; |
| 3259 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3260 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3261 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3262 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3263 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3265 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3266 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3267 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3268 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3269 | # so that the user can short-circuit this test for compilers unknown to |
| 3270 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3271 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3272 | do |
| 3273 | test -f "$ac_file" || continue |
| 3274 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3275 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3276 | ;; |
| 3277 | [ab].out ) |
| 3278 | # We found the default executable, but exeext='' is most |
| 3279 | # certainly right. |
| 3280 | break;; |
| 3281 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3282 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3283 | then :; else |
| 3284 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3285 | fi |
| 3286 | # We set ac_cv_exeext here because the later test for it is not |
| 3287 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3288 | # argument, so we may need to know it at that point already. |
| 3289 | # Even if this section looks crufty: it has the advantage of |
| 3290 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3291 | break;; |
| 3292 | * ) |
| 3293 | break;; |
| 3294 | esac |
| 3295 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3296 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3297 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3298 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3299 | ac_file='' |
| 3300 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3301 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3303 | $as_echo "no" >&6; } |
| 3304 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3306 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3309 | as_fn_error 77 "C compiler cannot create executables |
| 3310 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3311 | else |
| 3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3313 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3314 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3316 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3318 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3319 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3320 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3321 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3322 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3324 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3325 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3326 | case "(($ac_try" in |
| 3327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3328 | *) ac_try_echo=$ac_try;; |
| 3329 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3330 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3331 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3332 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3333 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3335 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3336 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3337 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3338 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3339 | # `rm'. |
| 3340 | for ac_file in conftest.exe conftest conftest.*; do |
| 3341 | test -f "$ac_file" || continue |
| 3342 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3343 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3344 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3345 | break;; |
| 3346 | * ) break;; |
| 3347 | esac |
| 3348 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3349 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3351 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3352 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3353 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3354 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3355 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3357 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3358 | |
| 3359 | rm -f conftest.$ac_ext |
| 3360 | EXEEXT=$ac_cv_exeext |
| 3361 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3363 | /* end confdefs.h. */ |
| 3364 | #include <stdio.h> |
| 3365 | int |
| 3366 | main () |
| 3367 | { |
| 3368 | FILE *f = fopen ("conftest.out", "w"); |
| 3369 | return ferror (f) || fclose (f) != 0; |
| 3370 | |
| 3371 | ; |
| 3372 | return 0; |
| 3373 | } |
| 3374 | _ACEOF |
| 3375 | ac_clean_files="$ac_clean_files conftest.out" |
| 3376 | # Check that the compiler produces executables we can run. If not, either |
| 3377 | # the compiler is broken, or we cross compile. |
| 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3379 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3380 | if test "$cross_compiling" != yes; then |
| 3381 | { { ac_try="$ac_link" |
| 3382 | case "(($ac_try" in |
| 3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3384 | *) ac_try_echo=$ac_try;; |
| 3385 | esac |
| 3386 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3387 | $as_echo "$ac_try_echo"; } >&5 |
| 3388 | (eval "$ac_link") 2>&5 |
| 3389 | ac_status=$? |
| 3390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3391 | test $ac_status = 0; } |
| 3392 | if { ac_try='./conftest$ac_cv_exeext' |
| 3393 | { { case "(($ac_try" in |
| 3394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3395 | *) ac_try_echo=$ac_try;; |
| 3396 | esac |
| 3397 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3398 | $as_echo "$ac_try_echo"; } >&5 |
| 3399 | (eval "$ac_try") 2>&5 |
| 3400 | ac_status=$? |
| 3401 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3402 | test $ac_status = 0; }; }; then |
| 3403 | cross_compiling=no |
| 3404 | else |
| 3405 | if test "$cross_compiling" = maybe; then |
| 3406 | cross_compiling=yes |
| 3407 | else |
| 3408 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3409 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3410 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3411 | If you meant to cross compile, use \`--host'. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3412 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3413 | fi |
| 3414 | fi |
| 3415 | fi |
| 3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3417 | $as_echo "$cross_compiling" >&6; } |
| 3418 | |
| 3419 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3420 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3422 | $as_echo_n "checking for suffix of object files... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3423 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3424 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3425 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3427 | /* end confdefs.h. */ |
| 3428 | |
| 3429 | int |
| 3430 | main () |
| 3431 | { |
| 3432 | |
| 3433 | ; |
| 3434 | return 0; |
| 3435 | } |
| 3436 | _ACEOF |
| 3437 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3438 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3439 | case "(($ac_try" in |
| 3440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3441 | *) ac_try_echo=$ac_try;; |
| 3442 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3443 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3444 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3445 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3446 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3448 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3449 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3450 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3451 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3452 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3453 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3454 | break;; |
| 3455 | esac |
| 3456 | done |
| 3457 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3458 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3460 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3461 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3463 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3464 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3465 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3466 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3467 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3469 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3470 | OBJEXT=$ac_cv_objext |
| 3471 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3473 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3474 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3475 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3476 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3478 | /* end confdefs.h. */ |
| 3479 | |
| 3480 | int |
| 3481 | main () |
| 3482 | { |
| 3483 | #ifndef __GNUC__ |
| 3484 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3485 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3487 | ; |
| 3488 | return 0; |
| 3489 | } |
| 3490 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3491 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3492 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3493 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3494 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3495 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3497 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3498 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3499 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3501 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3502 | if test $ac_compiler_gnu = yes; then |
| 3503 | GCC=yes |
| 3504 | else |
| 3505 | GCC= |
| 3506 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3507 | ac_test_CFLAGS=${CFLAGS+set} |
| 3508 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3510 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3511 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3512 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3513 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3514 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3515 | ac_c_werror_flag=yes |
| 3516 | ac_cv_prog_cc_g=no |
| 3517 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3519 | /* end confdefs.h. */ |
| 3520 | |
| 3521 | int |
| 3522 | main () |
| 3523 | { |
| 3524 | |
| 3525 | ; |
| 3526 | return 0; |
| 3527 | } |
| 3528 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3529 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3530 | ac_cv_prog_cc_g=yes |
| 3531 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3532 | CFLAGS="" |
| 3533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3534 | /* end confdefs.h. */ |
| 3535 | |
| 3536 | int |
| 3537 | main () |
| 3538 | { |
| 3539 | |
| 3540 | ; |
| 3541 | return 0; |
| 3542 | } |
| 3543 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3544 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3545 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3546 | else |
| 3547 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3548 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3550 | /* end confdefs.h. */ |
| 3551 | |
| 3552 | int |
| 3553 | main () |
| 3554 | { |
| 3555 | |
| 3556 | ; |
| 3557 | return 0; |
| 3558 | } |
| 3559 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3560 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3561 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3562 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3564 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3566 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3568 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3569 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3571 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3572 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3573 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3574 | elif test $ac_cv_prog_cc_g = yes; then |
| 3575 | if test "$GCC" = yes; then |
| 3576 | CFLAGS="-g -O2" |
| 3577 | else |
| 3578 | CFLAGS="-g" |
| 3579 | fi |
| 3580 | else |
| 3581 | if test "$GCC" = yes; then |
| 3582 | CFLAGS="-O2" |
| 3583 | else |
| 3584 | CFLAGS= |
| 3585 | fi |
| 3586 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3588 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3589 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3590 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3591 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3592 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3593 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3595 | /* end confdefs.h. */ |
| 3596 | #include <stdarg.h> |
| 3597 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3598 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3599 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3600 | struct buf { int x; }; |
| 3601 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3602 | static char *e (p, i) |
| 3603 | char **p; |
| 3604 | int i; |
| 3605 | { |
| 3606 | return p[i]; |
| 3607 | } |
| 3608 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3609 | { |
| 3610 | char *s; |
| 3611 | va_list v; |
| 3612 | va_start (v,p); |
| 3613 | s = g (p, va_arg (v,int)); |
| 3614 | va_end (v); |
| 3615 | return s; |
| 3616 | } |
| 3617 | |
| 3618 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3619 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3620 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3621 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3622 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3623 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3624 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3625 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3626 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3627 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3628 | inside strings and character constants. */ |
| 3629 | #define FOO(x) 'x' |
| 3630 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3631 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3632 | int test (int i, double x); |
| 3633 | struct s1 {int (*f) (int a);}; |
| 3634 | struct s2 {int (*f) (double a);}; |
| 3635 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3636 | int argc; |
| 3637 | char **argv; |
| 3638 | int |
| 3639 | main () |
| 3640 | { |
| 3641 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3642 | ; |
| 3643 | return 0; |
| 3644 | } |
| 3645 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3646 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3647 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3648 | do |
| 3649 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3650 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3651 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3652 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3653 | rm -f core conftest.err conftest.$ac_objext |
| 3654 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3655 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3656 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3657 | CC=$ac_save_CC |
| 3658 | |
| 3659 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3660 | # AC_CACHE_VAL |
| 3661 | case "x$ac_cv_prog_cc_c89" in |
| 3662 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3664 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3665 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3667 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3668 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3669 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3671 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3672 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3673 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3674 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3675 | fi |
| 3676 | |
| 3677 | ac_ext=c |
| 3678 | ac_cpp='$CPP $CPPFLAGS' |
| 3679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3682 | |
| 3683 | |
| 3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3685 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3686 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3687 | $as_echo_n "(cached) " >&6 |
| 3688 | else |
| 3689 | ac_check_lib_save_LIBS=$LIBS |
| 3690 | LIBS="-ldl $LIBS" |
| 3691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3692 | /* end confdefs.h. */ |
| 3693 | |
| 3694 | /* Override any GCC internal prototype to avoid an error. |
| 3695 | Use char because int might match the return type of a GCC |
| 3696 | builtin and then its argument prototype would still apply. */ |
| 3697 | #ifdef __cplusplus |
| 3698 | extern "C" |
| 3699 | #endif |
| 3700 | char dlopen (); |
| 3701 | int |
| 3702 | main () |
| 3703 | { |
| 3704 | return dlopen (); |
| 3705 | ; |
| 3706 | return 0; |
| 3707 | } |
| 3708 | _ACEOF |
| 3709 | if ac_fn_c_try_link "$LINENO"; then : |
| 3710 | ac_cv_lib_dl_dlopen=yes |
| 3711 | else |
| 3712 | ac_cv_lib_dl_dlopen=no |
| 3713 | fi |
| 3714 | rm -f core conftest.err conftest.$ac_objext \ |
| 3715 | conftest$ac_exeext conftest.$ac_ext |
| 3716 | LIBS=$ac_check_lib_save_LIBS |
| 3717 | fi |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3719 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3720 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3721 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3722 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3723 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3724 | |
| 3725 | fi |
| 3726 | |
| 3727 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3728 | |
| 3729 | # Check whether --with-cc was given. |
| 3730 | if test "${with_cc+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3731 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3732 | fi |
| 3733 | |
| 3734 | |
| 3735 | # Check whether --with-ccopts was given. |
| 3736 | if test "${with_ccopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3737 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3738 | fi |
| 3739 | |
| 3740 | |
| 3741 | # Check whether --with-ldopts was given. |
| 3742 | if test "${with_ldopts+set}" = set; then : |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3743 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3744 | fi |
| 3745 | |
| 3746 | ac_ext=c |
| 3747 | ac_cpp='$CPP $CPPFLAGS' |
| 3748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3751 | if test -n "$ac_tool_prefix"; then |
| 3752 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3753 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3755 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3756 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3757 | $as_echo_n "(cached) " >&6 |
| 3758 | else |
| 3759 | if test -n "$CC"; then |
| 3760 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3761 | else |
| 3762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3763 | for as_dir in $PATH |
| 3764 | do |
| 3765 | IFS=$as_save_IFS |
| 3766 | test -z "$as_dir" && as_dir=. |
| 3767 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3769 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3771 | break 2 |
| 3772 | fi |
| 3773 | done |
| 3774 | done |
| 3775 | IFS=$as_save_IFS |
| 3776 | |
| 3777 | fi |
| 3778 | fi |
| 3779 | CC=$ac_cv_prog_CC |
| 3780 | if test -n "$CC"; then |
| 3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3782 | $as_echo "$CC" >&6; } |
| 3783 | else |
| 3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3785 | $as_echo "no" >&6; } |
| 3786 | fi |
| 3787 | |
| 3788 | |
| 3789 | fi |
| 3790 | if test -z "$ac_cv_prog_CC"; then |
| 3791 | ac_ct_CC=$CC |
| 3792 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3793 | set dummy gcc; ac_word=$2 |
| 3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3795 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3796 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3797 | $as_echo_n "(cached) " >&6 |
| 3798 | else |
| 3799 | if test -n "$ac_ct_CC"; then |
| 3800 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3801 | else |
| 3802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3803 | for as_dir in $PATH |
| 3804 | do |
| 3805 | IFS=$as_save_IFS |
| 3806 | test -z "$as_dir" && as_dir=. |
| 3807 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3808 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3809 | ac_cv_prog_ac_ct_CC="gcc" |
| 3810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3811 | break 2 |
| 3812 | fi |
| 3813 | done |
| 3814 | done |
| 3815 | IFS=$as_save_IFS |
| 3816 | |
| 3817 | fi |
| 3818 | fi |
| 3819 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3820 | if test -n "$ac_ct_CC"; then |
| 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3822 | $as_echo "$ac_ct_CC" >&6; } |
| 3823 | else |
| 3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3825 | $as_echo "no" >&6; } |
| 3826 | fi |
| 3827 | |
| 3828 | if test "x$ac_ct_CC" = x; then |
| 3829 | CC="" |
| 3830 | else |
| 3831 | case $cross_compiling:$ac_tool_warned in |
| 3832 | yes:) |
| 3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3834 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3835 | ac_tool_warned=yes ;; |
| 3836 | esac |
| 3837 | CC=$ac_ct_CC |
| 3838 | fi |
| 3839 | else |
| 3840 | CC="$ac_cv_prog_CC" |
| 3841 | fi |
| 3842 | |
| 3843 | if test -z "$CC"; then |
| 3844 | if test -n "$ac_tool_prefix"; then |
| 3845 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3846 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3848 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3849 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3850 | $as_echo_n "(cached) " >&6 |
| 3851 | else |
| 3852 | if test -n "$CC"; then |
| 3853 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3854 | else |
| 3855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3856 | for as_dir in $PATH |
| 3857 | do |
| 3858 | IFS=$as_save_IFS |
| 3859 | test -z "$as_dir" && as_dir=. |
| 3860 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3862 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3864 | break 2 |
| 3865 | fi |
| 3866 | done |
| 3867 | done |
| 3868 | IFS=$as_save_IFS |
| 3869 | |
| 3870 | fi |
| 3871 | fi |
| 3872 | CC=$ac_cv_prog_CC |
| 3873 | if test -n "$CC"; then |
| 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3875 | $as_echo "$CC" >&6; } |
| 3876 | else |
| 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3878 | $as_echo "no" >&6; } |
| 3879 | fi |
| 3880 | |
| 3881 | |
| 3882 | fi |
| 3883 | fi |
| 3884 | if test -z "$CC"; then |
| 3885 | # Extract the first word of "cc", so it can be a program name with args. |
| 3886 | set dummy cc; ac_word=$2 |
| 3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3888 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3889 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3890 | $as_echo_n "(cached) " >&6 |
| 3891 | else |
| 3892 | if test -n "$CC"; then |
| 3893 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3894 | else |
| 3895 | ac_prog_rejected=no |
| 3896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3897 | for as_dir in $PATH |
| 3898 | do |
| 3899 | IFS=$as_save_IFS |
| 3900 | test -z "$as_dir" && as_dir=. |
| 3901 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3903 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3904 | ac_prog_rejected=yes |
| 3905 | continue |
| 3906 | fi |
| 3907 | ac_cv_prog_CC="cc" |
| 3908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3909 | break 2 |
| 3910 | fi |
| 3911 | done |
| 3912 | done |
| 3913 | IFS=$as_save_IFS |
| 3914 | |
| 3915 | if test $ac_prog_rejected = yes; then |
| 3916 | # We found a bogon in the path, so make sure we never use it. |
| 3917 | set dummy $ac_cv_prog_CC |
| 3918 | shift |
| 3919 | if test $# != 0; then |
| 3920 | # We chose a different compiler from the bogus one. |
| 3921 | # However, it has the same basename, so the bogon will be chosen |
| 3922 | # first if we set CC to just the basename; use the full file name. |
| 3923 | shift |
| 3924 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3925 | fi |
| 3926 | fi |
| 3927 | fi |
| 3928 | fi |
| 3929 | CC=$ac_cv_prog_CC |
| 3930 | if test -n "$CC"; then |
| 3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3932 | $as_echo "$CC" >&6; } |
| 3933 | else |
| 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3935 | $as_echo "no" >&6; } |
| 3936 | fi |
| 3937 | |
| 3938 | |
| 3939 | fi |
| 3940 | if test -z "$CC"; then |
| 3941 | if test -n "$ac_tool_prefix"; then |
| 3942 | for ac_prog in cl.exe |
| 3943 | do |
| 3944 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3945 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3947 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3948 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3949 | $as_echo_n "(cached) " >&6 |
| 3950 | else |
| 3951 | if test -n "$CC"; then |
| 3952 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3953 | else |
| 3954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3955 | for as_dir in $PATH |
| 3956 | do |
| 3957 | IFS=$as_save_IFS |
| 3958 | test -z "$as_dir" && as_dir=. |
| 3959 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3961 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3963 | break 2 |
| 3964 | fi |
| 3965 | done |
| 3966 | done |
| 3967 | IFS=$as_save_IFS |
| 3968 | |
| 3969 | fi |
| 3970 | fi |
| 3971 | CC=$ac_cv_prog_CC |
| 3972 | if test -n "$CC"; then |
| 3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3974 | $as_echo "$CC" >&6; } |
| 3975 | else |
| 3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3977 | $as_echo "no" >&6; } |
| 3978 | fi |
| 3979 | |
| 3980 | |
| 3981 | test -n "$CC" && break |
| 3982 | done |
| 3983 | fi |
| 3984 | if test -z "$CC"; then |
| 3985 | ac_ct_CC=$CC |
| 3986 | for ac_prog in cl.exe |
| 3987 | do |
| 3988 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3989 | set dummy $ac_prog; ac_word=$2 |
| 3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3991 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 3992 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3993 | $as_echo_n "(cached) " >&6 |
| 3994 | else |
| 3995 | if test -n "$ac_ct_CC"; then |
| 3996 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3997 | else |
| 3998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3999 | for as_dir in $PATH |
| 4000 | do |
| 4001 | IFS=$as_save_IFS |
| 4002 | test -z "$as_dir" && as_dir=. |
| 4003 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4005 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4007 | break 2 |
| 4008 | fi |
| 4009 | done |
| 4010 | done |
| 4011 | IFS=$as_save_IFS |
| 4012 | |
| 4013 | fi |
| 4014 | fi |
| 4015 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4016 | if test -n "$ac_ct_CC"; then |
| 4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4018 | $as_echo "$ac_ct_CC" >&6; } |
| 4019 | else |
| 4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4021 | $as_echo "no" >&6; } |
| 4022 | fi |
| 4023 | |
| 4024 | |
| 4025 | test -n "$ac_ct_CC" && break |
| 4026 | done |
| 4027 | |
| 4028 | if test "x$ac_ct_CC" = x; then |
| 4029 | CC="" |
| 4030 | else |
| 4031 | case $cross_compiling:$ac_tool_warned in |
| 4032 | yes:) |
| 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4034 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4035 | ac_tool_warned=yes ;; |
| 4036 | esac |
| 4037 | CC=$ac_ct_CC |
| 4038 | fi |
| 4039 | fi |
| 4040 | |
| 4041 | fi |
| 4042 | |
| 4043 | |
| 4044 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4045 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4046 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4047 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4048 | |
| 4049 | # Provide some information about the compiler. |
| 4050 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4051 | set X $ac_compile |
| 4052 | ac_compiler=$2 |
| 4053 | for ac_option in --version -v -V -qversion; do |
| 4054 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4055 | case "(($ac_try" in |
| 4056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4057 | *) ac_try_echo=$ac_try;; |
| 4058 | esac |
| 4059 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4060 | $as_echo "$ac_try_echo"; } >&5 |
| 4061 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4062 | ac_status=$? |
| 4063 | if test -s conftest.err; then |
| 4064 | sed '10a\ |
| 4065 | ... rest of stderr output deleted ... |
| 4066 | 10q' conftest.err >conftest.er1 |
| 4067 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4068 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4069 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4071 | test $ac_status = 0; } |
| 4072 | done |
| 4073 | |
| 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4075 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4076 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4077 | $as_echo_n "(cached) " >&6 |
| 4078 | else |
| 4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4080 | /* end confdefs.h. */ |
| 4081 | |
| 4082 | int |
| 4083 | main () |
| 4084 | { |
| 4085 | #ifndef __GNUC__ |
| 4086 | choke me |
| 4087 | #endif |
| 4088 | |
| 4089 | ; |
| 4090 | return 0; |
| 4091 | } |
| 4092 | _ACEOF |
| 4093 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4094 | ac_compiler_gnu=yes |
| 4095 | else |
| 4096 | ac_compiler_gnu=no |
| 4097 | fi |
| 4098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4099 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4100 | |
| 4101 | fi |
| 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4103 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4104 | if test $ac_compiler_gnu = yes; then |
| 4105 | GCC=yes |
| 4106 | else |
| 4107 | GCC= |
| 4108 | fi |
| 4109 | ac_test_CFLAGS=${CFLAGS+set} |
| 4110 | ac_save_CFLAGS=$CFLAGS |
| 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4112 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4113 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4114 | $as_echo_n "(cached) " >&6 |
| 4115 | else |
| 4116 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4117 | ac_c_werror_flag=yes |
| 4118 | ac_cv_prog_cc_g=no |
| 4119 | CFLAGS="-g" |
| 4120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4121 | /* end confdefs.h. */ |
| 4122 | |
| 4123 | int |
| 4124 | main () |
| 4125 | { |
| 4126 | |
| 4127 | ; |
| 4128 | return 0; |
| 4129 | } |
| 4130 | _ACEOF |
| 4131 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4132 | ac_cv_prog_cc_g=yes |
| 4133 | else |
| 4134 | CFLAGS="" |
| 4135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4136 | /* end confdefs.h. */ |
| 4137 | |
| 4138 | int |
| 4139 | main () |
| 4140 | { |
| 4141 | |
| 4142 | ; |
| 4143 | return 0; |
| 4144 | } |
| 4145 | _ACEOF |
| 4146 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4147 | |
| 4148 | else |
| 4149 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4150 | CFLAGS="-g" |
| 4151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4152 | /* end confdefs.h. */ |
| 4153 | |
| 4154 | int |
| 4155 | main () |
| 4156 | { |
| 4157 | |
| 4158 | ; |
| 4159 | return 0; |
| 4160 | } |
| 4161 | _ACEOF |
| 4162 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4163 | ac_cv_prog_cc_g=yes |
| 4164 | fi |
| 4165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4166 | fi |
| 4167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4168 | fi |
| 4169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4170 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4171 | fi |
| 4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4173 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4174 | if test "$ac_test_CFLAGS" = set; then |
| 4175 | CFLAGS=$ac_save_CFLAGS |
| 4176 | elif test $ac_cv_prog_cc_g = yes; then |
| 4177 | if test "$GCC" = yes; then |
| 4178 | CFLAGS="-g -O2" |
| 4179 | else |
| 4180 | CFLAGS="-g" |
| 4181 | fi |
| 4182 | else |
| 4183 | if test "$GCC" = yes; then |
| 4184 | CFLAGS="-O2" |
| 4185 | else |
| 4186 | CFLAGS= |
| 4187 | fi |
| 4188 | fi |
| 4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4190 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4191 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4192 | $as_echo_n "(cached) " >&6 |
| 4193 | else |
| 4194 | ac_cv_prog_cc_c89=no |
| 4195 | ac_save_CC=$CC |
| 4196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4197 | /* end confdefs.h. */ |
| 4198 | #include <stdarg.h> |
| 4199 | #include <stdio.h> |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4200 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4201 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4202 | struct buf { int x; }; |
| 4203 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4204 | static char *e (p, i) |
| 4205 | char **p; |
| 4206 | int i; |
| 4207 | { |
| 4208 | return p[i]; |
| 4209 | } |
| 4210 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4211 | { |
| 4212 | char *s; |
| 4213 | va_list v; |
| 4214 | va_start (v,p); |
| 4215 | s = g (p, va_arg (v,int)); |
| 4216 | va_end (v); |
| 4217 | return s; |
| 4218 | } |
| 4219 | |
| 4220 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4221 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4222 | These don't provoke an error unfortunately, instead are silently treated |
| 4223 | as 'x'. The following induces an error, until -std is added to get |
| 4224 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4225 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4226 | that's true only with -std. */ |
| 4227 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4228 | |
| 4229 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4230 | inside strings and character constants. */ |
| 4231 | #define FOO(x) 'x' |
| 4232 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4233 | |
| 4234 | int test (int i, double x); |
| 4235 | struct s1 {int (*f) (int a);}; |
| 4236 | struct s2 {int (*f) (double a);}; |
| 4237 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4238 | int argc; |
| 4239 | char **argv; |
| 4240 | int |
| 4241 | main () |
| 4242 | { |
| 4243 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4244 | ; |
| 4245 | return 0; |
| 4246 | } |
| 4247 | _ACEOF |
| 4248 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4249 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4250 | do |
| 4251 | CC="$ac_save_CC $ac_arg" |
| 4252 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4253 | ac_cv_prog_cc_c89=$ac_arg |
| 4254 | fi |
| 4255 | rm -f core conftest.err conftest.$ac_objext |
| 4256 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4257 | done |
| 4258 | rm -f conftest.$ac_ext |
| 4259 | CC=$ac_save_CC |
| 4260 | |
| 4261 | fi |
| 4262 | # AC_CACHE_VAL |
| 4263 | case "x$ac_cv_prog_cc_c89" in |
| 4264 | x) |
| 4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4266 | $as_echo "none needed" >&6; } ;; |
| 4267 | xno) |
| 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4269 | $as_echo "unsupported" >&6; } ;; |
| 4270 | *) |
| 4271 | CC="$CC $ac_cv_prog_cc_c89" |
| 4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4273 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4274 | esac |
| 4275 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4276 | |
| 4277 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4279 | ac_ext=c |
| 4280 | ac_cpp='$CPP $CPPFLAGS' |
| 4281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4284 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4285 | if test "$GCC" = yes; then |
| 4286 | RDYNAMIC="-rdynamic" |
| 4287 | |
| 4288 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4289 | ac_ext=c |
| 4290 | ac_cpp='$CPP $CPPFLAGS' |
| 4291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4295 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4296 | # On Suns, sometimes $CPP names a directory. |
| 4297 | if test -n "$CPP" && test -d "$CPP"; then |
| 4298 | CPP= |
| 4299 | fi |
| 4300 | if test -z "$CPP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4301 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4302 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4303 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4304 | # Double quotes because CPP needs to be expanded |
| 4305 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4306 | do |
| 4307 | ac_preproc_ok=false |
| 4308 | for ac_c_preproc_warn_flag in '' yes |
| 4309 | do |
| 4310 | # Use a header file that comes with gcc, so configuring glibc |
| 4311 | # with a fresh cross-compiler works. |
| 4312 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4313 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4314 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4315 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4317 | /* end confdefs.h. */ |
| 4318 | #ifdef __STDC__ |
| 4319 | # include <limits.h> |
| 4320 | #else |
| 4321 | # include <assert.h> |
| 4322 | #endif |
| 4323 | Syntax error |
| 4324 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4325 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4326 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4327 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4328 | # Broken: fails on valid input. |
| 4329 | continue |
| 4330 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4331 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4332 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4333 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4334 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4336 | /* end confdefs.h. */ |
| 4337 | #include <ac_nonexistent.h> |
| 4338 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4339 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4340 | # Broken: success on invalid input. |
| 4341 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4342 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4343 | # Passes both tests. |
| 4344 | ac_preproc_ok=: |
| 4345 | break |
| 4346 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4347 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4348 | |
| 4349 | done |
| 4350 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4351 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4352 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4353 | break |
| 4354 | fi |
| 4355 | |
| 4356 | done |
| 4357 | ac_cv_prog_CPP=$CPP |
| 4358 | |
| 4359 | fi |
| 4360 | CPP=$ac_cv_prog_CPP |
| 4361 | else |
| 4362 | ac_cv_prog_CPP=$CPP |
| 4363 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4365 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4366 | ac_preproc_ok=false |
| 4367 | for ac_c_preproc_warn_flag in '' yes |
| 4368 | do |
| 4369 | # Use a header file that comes with gcc, so configuring glibc |
| 4370 | # with a fresh cross-compiler works. |
| 4371 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4372 | # <limits.h> exists even on freestanding compilers. |
| 4373 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4374 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4376 | /* end confdefs.h. */ |
| 4377 | #ifdef __STDC__ |
| 4378 | # include <limits.h> |
| 4379 | #else |
| 4380 | # include <assert.h> |
| 4381 | #endif |
| 4382 | Syntax error |
| 4383 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4384 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4385 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4386 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4387 | # Broken: fails on valid input. |
| 4388 | continue |
| 4389 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4390 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4391 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4392 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4393 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4395 | /* end confdefs.h. */ |
| 4396 | #include <ac_nonexistent.h> |
| 4397 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4398 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4399 | # Broken: success on invalid input. |
| 4400 | continue |
| 4401 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4402 | # Passes both tests. |
| 4403 | ac_preproc_ok=: |
| 4404 | break |
| 4405 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4406 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4407 | |
| 4408 | done |
| 4409 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4410 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4411 | if $ac_preproc_ok; then : |
| 4412 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4413 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4414 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4415 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 4416 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4417 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4418 | fi |
| 4419 | |
| 4420 | ac_ext=c |
| 4421 | ac_cpp='$CPP $CPPFLAGS' |
| 4422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4425 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4427 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4428 | if test "$GCC" = yes |
| 4429 | then |
| 4430 | case "$host_cpu" in |
| 4431 | alpha) addcflags="-mieee" ;; |
| 4432 | esac |
| 4433 | fi |
| 4434 | if test "x$addcflags" != x |
| 4435 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4437 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4438 | CFLAGS="$addcflags $CFLAGS" |
| 4439 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4441 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4442 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 4443 | |
| 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4445 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4446 | if ${ac_cv_path_GREP+:} false; then : |
| 4447 | $as_echo_n "(cached) " >&6 |
| 4448 | else |
| 4449 | if test -z "$GREP"; then |
| 4450 | ac_path_GREP_found=false |
| 4451 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4453 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4454 | do |
| 4455 | IFS=$as_save_IFS |
| 4456 | test -z "$as_dir" && as_dir=. |
| 4457 | for ac_prog in grep ggrep; do |
| 4458 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4459 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4460 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4461 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4462 | # Check for GNU $ac_path_GREP |
| 4463 | case `"$ac_path_GREP" --version 2>&1` in |
| 4464 | *GNU*) |
| 4465 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4466 | *) |
| 4467 | ac_count=0 |
| 4468 | $as_echo_n 0123456789 >"conftest.in" |
| 4469 | while : |
| 4470 | do |
| 4471 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4472 | mv "conftest.tmp" "conftest.in" |
| 4473 | cp "conftest.in" "conftest.nl" |
| 4474 | $as_echo 'GREP' >> "conftest.nl" |
| 4475 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4476 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4477 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4478 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4479 | # Best one so far, save it but keep looking for a better one |
| 4480 | ac_cv_path_GREP="$ac_path_GREP" |
| 4481 | ac_path_GREP_max=$ac_count |
| 4482 | fi |
| 4483 | # 10*(2^10) chars as input seems more than enough |
| 4484 | test $ac_count -gt 10 && break |
| 4485 | done |
| 4486 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4487 | esac |
| 4488 | |
| 4489 | $ac_path_GREP_found && break 3 |
| 4490 | done |
| 4491 | done |
| 4492 | done |
| 4493 | IFS=$as_save_IFS |
| 4494 | if test -z "$ac_cv_path_GREP"; then |
| 4495 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4496 | fi |
| 4497 | else |
| 4498 | ac_cv_path_GREP=$GREP |
| 4499 | fi |
| 4500 | |
| 4501 | fi |
| 4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4503 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4504 | GREP="$ac_cv_path_GREP" |
| 4505 | |
| 4506 | |
| 4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4508 | $as_echo_n "checking for egrep... " >&6; } |
| 4509 | if ${ac_cv_path_EGREP+:} false; then : |
| 4510 | $as_echo_n "(cached) " >&6 |
| 4511 | else |
| 4512 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4513 | then ac_cv_path_EGREP="$GREP -E" |
| 4514 | else |
| 4515 | if test -z "$EGREP"; then |
| 4516 | ac_path_EGREP_found=false |
| 4517 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4519 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4520 | do |
| 4521 | IFS=$as_save_IFS |
| 4522 | test -z "$as_dir" && as_dir=. |
| 4523 | for ac_prog in egrep; do |
| 4524 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4525 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4526 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4527 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4528 | # Check for GNU $ac_path_EGREP |
| 4529 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4530 | *GNU*) |
| 4531 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4532 | *) |
| 4533 | ac_count=0 |
| 4534 | $as_echo_n 0123456789 >"conftest.in" |
| 4535 | while : |
| 4536 | do |
| 4537 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4538 | mv "conftest.tmp" "conftest.in" |
| 4539 | cp "conftest.in" "conftest.nl" |
| 4540 | $as_echo 'EGREP' >> "conftest.nl" |
| 4541 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4542 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4543 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4544 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4545 | # Best one so far, save it but keep looking for a better one |
| 4546 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4547 | ac_path_EGREP_max=$ac_count |
| 4548 | fi |
| 4549 | # 10*(2^10) chars as input seems more than enough |
| 4550 | test $ac_count -gt 10 && break |
| 4551 | done |
| 4552 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4553 | esac |
| 4554 | |
| 4555 | $ac_path_EGREP_found && break 3 |
| 4556 | done |
| 4557 | done |
| 4558 | done |
| 4559 | IFS=$as_save_IFS |
| 4560 | if test -z "$ac_cv_path_EGREP"; then |
| 4561 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4562 | fi |
| 4563 | else |
| 4564 | ac_cv_path_EGREP=$EGREP |
| 4565 | fi |
| 4566 | |
| 4567 | fi |
| 4568 | fi |
| 4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4570 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4571 | EGREP="$ac_cv_path_EGREP" |
| 4572 | |
| 4573 | |
| 4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4575 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4576 | if ${ac_cv_header_stdc+:} false; then : |
| 4577 | $as_echo_n "(cached) " >&6 |
| 4578 | else |
| 4579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4580 | /* end confdefs.h. */ |
| 4581 | #include <stdlib.h> |
| 4582 | #include <stdarg.h> |
| 4583 | #include <string.h> |
| 4584 | #include <float.h> |
| 4585 | |
| 4586 | int |
| 4587 | main () |
| 4588 | { |
| 4589 | |
| 4590 | ; |
| 4591 | return 0; |
| 4592 | } |
| 4593 | _ACEOF |
| 4594 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4595 | ac_cv_header_stdc=yes |
| 4596 | else |
| 4597 | ac_cv_header_stdc=no |
| 4598 | fi |
| 4599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4600 | |
| 4601 | if test $ac_cv_header_stdc = yes; then |
| 4602 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4604 | /* end confdefs.h. */ |
| 4605 | #include <string.h> |
| 4606 | |
| 4607 | _ACEOF |
| 4608 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4609 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4610 | |
| 4611 | else |
| 4612 | ac_cv_header_stdc=no |
| 4613 | fi |
| 4614 | rm -f conftest* |
| 4615 | |
| 4616 | fi |
| 4617 | |
| 4618 | if test $ac_cv_header_stdc = yes; then |
| 4619 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4621 | /* end confdefs.h. */ |
| 4622 | #include <stdlib.h> |
| 4623 | |
| 4624 | _ACEOF |
| 4625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4626 | $EGREP "free" >/dev/null 2>&1; then : |
| 4627 | |
| 4628 | else |
| 4629 | ac_cv_header_stdc=no |
| 4630 | fi |
| 4631 | rm -f conftest* |
| 4632 | |
| 4633 | fi |
| 4634 | |
| 4635 | if test $ac_cv_header_stdc = yes; then |
| 4636 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4637 | if test "$cross_compiling" = yes; then : |
| 4638 | : |
| 4639 | else |
| 4640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4641 | /* end confdefs.h. */ |
| 4642 | #include <ctype.h> |
| 4643 | #include <stdlib.h> |
| 4644 | #if ((' ' & 0x0FF) == 0x020) |
| 4645 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4646 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4647 | #else |
| 4648 | # define ISLOWER(c) \ |
| 4649 | (('a' <= (c) && (c) <= 'i') \ |
| 4650 | || ('j' <= (c) && (c) <= 'r') \ |
| 4651 | || ('s' <= (c) && (c) <= 'z')) |
| 4652 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4653 | #endif |
| 4654 | |
| 4655 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4656 | int |
| 4657 | main () |
| 4658 | { |
| 4659 | int i; |
| 4660 | for (i = 0; i < 256; i++) |
| 4661 | if (XOR (islower (i), ISLOWER (i)) |
| 4662 | || toupper (i) != TOUPPER (i)) |
| 4663 | return 2; |
| 4664 | return 0; |
| 4665 | } |
| 4666 | _ACEOF |
| 4667 | if ac_fn_c_try_run "$LINENO"; then : |
| 4668 | |
| 4669 | else |
| 4670 | ac_cv_header_stdc=no |
| 4671 | fi |
| 4672 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4673 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4674 | fi |
| 4675 | |
| 4676 | fi |
| 4677 | fi |
| 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4679 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4680 | if test $ac_cv_header_stdc = yes; then |
| 4681 | |
| 4682 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4683 | |
| 4684 | fi |
| 4685 | |
| 4686 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4687 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4688 | inttypes.h stdint.h unistd.h |
| 4689 | do : |
| 4690 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4691 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4692 | " |
| 4693 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4694 | cat >>confdefs.h <<_ACEOF |
| 4695 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4696 | _ACEOF |
| 4697 | |
| 4698 | fi |
| 4699 | |
| 4700 | done |
| 4701 | |
| 4702 | |
| 4703 | |
| 4704 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4705 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 4706 | MINIX=yes |
| 4707 | else |
| 4708 | MINIX= |
| 4709 | fi |
| 4710 | |
| 4711 | |
| 4712 | if test "$MINIX" = yes; then |
| 4713 | |
| 4714 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4715 | |
| 4716 | |
| 4717 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4718 | |
| 4719 | |
| 4720 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4721 | |
| 4722 | fi |
| 4723 | |
| 4724 | |
| 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4726 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4727 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 4728 | $as_echo_n "(cached) " >&6 |
| 4729 | else |
| 4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4731 | /* end confdefs.h. */ |
| 4732 | |
| 4733 | # define __EXTENSIONS__ 1 |
| 4734 | $ac_includes_default |
| 4735 | int |
| 4736 | main () |
| 4737 | { |
| 4738 | |
| 4739 | ; |
| 4740 | return 0; |
| 4741 | } |
| 4742 | _ACEOF |
| 4743 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4744 | ac_cv_safe_to_define___extensions__=yes |
| 4745 | else |
| 4746 | ac_cv_safe_to_define___extensions__=no |
| 4747 | fi |
| 4748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4749 | fi |
| 4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4751 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4752 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4753 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4754 | |
| 4755 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4756 | |
| 4757 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4758 | |
| 4759 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4760 | |
| 4761 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4762 | |
| 4763 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4764 | LIB_EXT=.a |
| 4765 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4766 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4768 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4769 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4770 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4771 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4772 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4773 | fi |
| 4774 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4775 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4776 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4777 | then |
| 4778 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4780 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4781 | else |
| 4782 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4784 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4785 | fi |
| 4786 | |
| 4787 | else |
| 4788 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4790 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4791 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4792 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4794 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4795 | # Check whether --enable-symlink-install was given. |
| 4796 | if test "${enable_symlink_install+set}" = set; then : |
| 4797 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4798 | then |
| 4799 | LINK_INSTALL_FLAGS=-f |
| 4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4801 | $as_echo "Disabling symlinks for install" >&6; } |
| 4802 | else |
| 4803 | LINK_INSTALL_FLAGS=-sf |
| 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4805 | $as_echo "Enabling symlinks for install" >&6; } |
| 4806 | fi |
| 4807 | |
| 4808 | else |
| 4809 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4811 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4812 | |
| 4813 | fi |
| 4814 | |
| 4815 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4816 | relative_symlink_defined= |
| 4817 | # Check whether --enable-relative-symlinks was given. |
| 4818 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4819 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4820 | then |
| 4821 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4822 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4824 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4825 | else |
| 4826 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4827 | relative_symlink_defined=yes |
| 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4829 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4830 | fi |
| 4831 | fi |
| 4832 | |
| 4833 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4834 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4835 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4836 | then |
| 4837 | SYMLINK_RELATIVE=yes |
| 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4839 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4840 | else |
| 4841 | SYMLINK_RELATIVE=--relative |
| 4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4843 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4844 | fi |
| 4845 | |
| 4846 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4847 | if test -z "$relative_symlink_defined" |
| 4848 | then |
| 4849 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4851 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4852 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4853 | |
| 4854 | fi |
| 4855 | |
| 4856 | |
| 4857 | # Check whether --enable-symlink-build was given. |
| 4858 | if test "${enable_symlink_build+set}" = set; then : |
| 4859 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4860 | then |
| 4861 | LINK_BUILD_FLAGS= |
| 4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4863 | $as_echo "Disabling symlinks for build" >&6; } |
| 4864 | else |
| 4865 | LINK_BUILD_FLAGS=-s |
| 4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4867 | $as_echo "Enabling symlinks for build" >&6; } |
| 4868 | fi |
| 4869 | |
| 4870 | else |
| 4871 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4873 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4874 | |
| 4875 | fi |
| 4876 | |
| 4877 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4878 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4879 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4880 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4881 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4883 | $as_echo "Disabling verbose make commands" >&6; } |
| 4884 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4885 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4886 | Q=@ |
| 4887 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4889 | $as_echo "Enabling verbose make commands" >&6; } |
| 4890 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4891 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4892 | Q= |
| 4893 | fi |
| 4894 | |
| 4895 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4897 | $as_echo "Disabling verbose make commands" >&6; } |
| 4898 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4899 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4900 | Q=@ |
| 4901 | |
| 4902 | fi |
| 4903 | |
| 4904 | |
| 4905 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4906 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4907 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4908 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4909 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4910 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4911 | then |
| 4912 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4914 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4915 | else |
| 4916 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4917 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4918 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4920 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4921 | fi |
| 4922 | |
| 4923 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4924 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4925 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4926 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4928 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4930 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4931 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4932 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4933 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4934 | LDFLAG_DYNAMIC= |
| 4935 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4936 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4937 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4938 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4939 | then |
| 4940 | ELF_CMT=# |
| 4941 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4943 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4944 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4945 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4946 | ELF_CMT= |
| 4947 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4948 | case "$host_os" in |
| 4949 | solaris2.*) |
| 4950 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4951 | ;; |
| 4952 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4953 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4954 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4955 | PRIVATE_LIBS_CMT=# |
| 4956 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4958 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4959 | fi |
| 4960 | |
| 4961 | else |
| 4962 | MAKEFILE_ELF=/dev/null |
| 4963 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4965 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4967 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4968 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4969 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4970 | |
| 4971 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4972 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4973 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4974 | then |
| 4975 | BSDLIB_CMT=# |
| 4976 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4978 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4979 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4980 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4981 | BSDLIB_CMT= |
| 4982 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4983 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4984 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4985 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4986 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4987 | LIB_EXT=.dylib |
| 4988 | ;; |
| 4989 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4991 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4992 | fi |
| 4993 | |
| 4994 | else |
| 4995 | MAKEFILE_BSDLIB=/dev/null |
| 4996 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4998 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5000 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5001 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5003 | |
| 5004 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5005 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5006 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5007 | then |
| 5008 | PROFILE_CMT=# |
| 5009 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5011 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5012 | else |
| 5013 | PROFILE_CMT= |
| 5014 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 5015 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5017 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5018 | fi |
| 5019 | |
| 5020 | else |
| 5021 | PROFILE_CMT=# |
| 5022 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5024 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5025 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5026 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5027 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5029 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 5030 | # Check whether --enable-gcov was given. |
| 5031 | if test "${enable_gcov+set}" = set; then : |
| 5032 | enableval=$enable_gcov; if test "$enableval" = "yes" |
| 5033 | then |
| 5034 | CFLAGS="-g -fprofile-arcs -ftest-coverage" |
| 5035 | LDFLAGS="-fprofile-arcs -ftest-coverage" |
| 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
| 5037 | $as_echo "Enabling gcov support" >&6; } |
| 5038 | fi |
| 5039 | |
| 5040 | fi |
| 5041 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5042 | |
| 5043 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5045 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 5046 | |
| 5047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5048 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5049 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5050 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5051 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5053 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5054 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5055 | |
| 5056 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5057 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5059 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5060 | fi |
| 5061 | |
| 5062 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5064 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5066 | fi |
| 5067 | |
| 5068 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5069 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5070 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5071 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5073 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5074 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5075 | |
| 5076 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5077 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5079 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5080 | fi |
| 5081 | |
| 5082 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5084 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5086 | fi |
| 5087 | |
| 5088 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5089 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5090 | enableval=$enable_testio_debug; |
| 5091 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5092 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5094 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5095 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5096 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5097 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5098 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5099 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5101 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5102 | fi |
| 5103 | |
| 5104 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5106 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5107 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5108 | |
| 5109 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5110 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5111 | fi |
| 5112 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5113 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5114 | |
| 5115 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5116 | |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5121 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5122 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5123 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5124 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5126 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5127 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5128 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5129 | else |
| 5130 | case $PKG_CONFIG in |
| 5131 | [\\/]* | ?:[\\/]*) |
| 5132 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5133 | ;; |
| 5134 | *) |
| 5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5136 | for as_dir in $PATH |
| 5137 | do |
| 5138 | IFS=$as_save_IFS |
| 5139 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5140 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5142 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5144 | break 2 |
| 5145 | fi |
| 5146 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5147 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5148 | IFS=$as_save_IFS |
| 5149 | |
| 5150 | ;; |
| 5151 | esac |
| 5152 | fi |
| 5153 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5154 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5156 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5157 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5159 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5160 | fi |
| 5161 | |
| 5162 | |
| 5163 | fi |
| 5164 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5165 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5166 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5167 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5169 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5170 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5171 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5172 | else |
| 5173 | case $ac_pt_PKG_CONFIG in |
| 5174 | [\\/]* | ?:[\\/]*) |
| 5175 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5176 | ;; |
| 5177 | *) |
| 5178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5179 | for as_dir in $PATH |
| 5180 | do |
| 5181 | IFS=$as_save_IFS |
| 5182 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5183 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5185 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5187 | break 2 |
| 5188 | fi |
| 5189 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5190 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5191 | IFS=$as_save_IFS |
| 5192 | |
| 5193 | ;; |
| 5194 | esac |
| 5195 | fi |
| 5196 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5197 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5199 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5200 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5202 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5203 | fi |
| 5204 | |
| 5205 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5206 | PKG_CONFIG="" |
| 5207 | else |
| 5208 | case $cross_compiling:$ac_tool_warned in |
| 5209 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5211 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5212 | ac_tool_warned=yes ;; |
| 5213 | esac |
| 5214 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5215 | fi |
| 5216 | else |
| 5217 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5218 | fi |
| 5219 | |
| 5220 | fi |
| 5221 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5222 | _pkg_min_version=0.9.0 |
| 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5224 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5225 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5227 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5228 | else |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5230 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5231 | PKG_CONFIG="" |
| 5232 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5233 | fi |
| 5234 | LIBUUID= |
| 5235 | DEPLIBUUID= |
| 5236 | STATIC_LIBUUID= |
| 5237 | DEPSTATIC_LIBUUID= |
| 5238 | PROFILED_LIBUUID= |
| 5239 | DEPPROFILED_LIBUUID= |
| 5240 | UUID_CMT= |
| 5241 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5242 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5243 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5244 | then |
| 5245 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5246 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5247 | fi |
| 5248 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5250 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5251 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5252 | $as_echo_n "(cached) " >&6 |
| 5253 | else |
| 5254 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5255 | LIBS="-luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5257 | /* end confdefs.h. */ |
| 5258 | |
| 5259 | /* Override any GCC internal prototype to avoid an error. |
| 5260 | Use char because int might match the return type of a GCC |
| 5261 | builtin and then its argument prototype would still apply. */ |
| 5262 | #ifdef __cplusplus |
| 5263 | extern "C" |
| 5264 | #endif |
| 5265 | char uuid_generate (); |
| 5266 | int |
| 5267 | main () |
| 5268 | { |
| 5269 | return uuid_generate (); |
| 5270 | ; |
| 5271 | return 0; |
| 5272 | } |
| 5273 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5274 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5275 | ac_cv_lib_uuid_uuid_generate=yes |
| 5276 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5277 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5278 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5279 | rm -f core conftest.err conftest.$ac_objext \ |
| 5280 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5281 | LIBS=$ac_check_lib_save_LIBS |
| 5282 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5284 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5285 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5286 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5287 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5288 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5289 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5290 | fi |
| 5291 | |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5292 | PROFILED_LIBUUID=$LIBUUID |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5293 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5295 | $as_echo "Disabling private uuid library" >&6; } |
| 5296 | else |
| 5297 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5298 | DEPLIBUUID=$LIBUUID |
| 5299 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5300 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5301 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5302 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5304 | $as_echo "Enabling private uuid library" >&6; } |
| 5305 | fi |
| 5306 | |
| 5307 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 5308 | if test -n "$PKG_CONFIG"; then |
| 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 5310 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 5311 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
| 5312 | $as_echo_n "(cached) " >&6 |
| 5313 | else |
| 5314 | ac_check_lib_save_LIBS=$LIBS |
| 5315 | LIBS="-luuid $LIBS" |
| 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5317 | /* end confdefs.h. */ |
| 5318 | |
| 5319 | /* Override any GCC internal prototype to avoid an error. |
| 5320 | Use char because int might match the return type of a GCC |
| 5321 | builtin and then its argument prototype would still apply. */ |
| 5322 | #ifdef __cplusplus |
| 5323 | extern "C" |
| 5324 | #endif |
| 5325 | char uuid_generate (); |
| 5326 | int |
| 5327 | main () |
| 5328 | { |
| 5329 | return uuid_generate (); |
| 5330 | ; |
| 5331 | return 0; |
| 5332 | } |
| 5333 | _ACEOF |
| 5334 | if ac_fn_c_try_link "$LINENO"; then : |
| 5335 | ac_cv_lib_uuid_uuid_generate=yes |
| 5336 | else |
| 5337 | ac_cv_lib_uuid_uuid_generate=no |
| 5338 | fi |
| 5339 | rm -f core conftest.err conftest.$ac_objext \ |
| 5340 | conftest$ac_exeext conftest.$ac_ext |
| 5341 | LIBS=$ac_check_lib_save_LIBS |
| 5342 | fi |
| 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 5344 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 5345 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
| 5346 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5347 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5348 | fi |
| 5349 | |
| 5350 | fi |
| 5351 | if test -n "$LIBUUID"; then |
| 5352 | PROFILED_LIBUUID=$LIBUUID |
| 5353 | UUID_CMT=# |
| 5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 |
| 5355 | $as_echo "Using system uuid by default" >&6; } |
| 5356 | else |
| 5357 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5358 | DEPLIBUUID=$LIBUUID |
| 5359 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5360 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5361 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5362 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
| 5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5364 | $as_echo "Enabling private uuid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 5365 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5366 | |
| 5367 | fi |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5383 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5384 | if test -n "$ac_tool_prefix"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5385 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5386 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5388 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5389 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5390 | $as_echo_n "(cached) " >&6 |
| 5391 | else |
| 5392 | case $PKG_CONFIG in |
| 5393 | [\\/]* | ?:[\\/]*) |
| 5394 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5395 | ;; |
| 5396 | *) |
| 5397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5398 | for as_dir in $PATH |
| 5399 | do |
| 5400 | IFS=$as_save_IFS |
| 5401 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5402 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5404 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5406 | break 2 |
| 5407 | fi |
| 5408 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5409 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5410 | IFS=$as_save_IFS |
| 5411 | |
| 5412 | ;; |
| 5413 | esac |
| 5414 | fi |
| 5415 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5416 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5418 | $as_echo "$PKG_CONFIG" >&6; } |
| 5419 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5421 | $as_echo "no" >&6; } |
| 5422 | fi |
| 5423 | |
| 5424 | |
| 5425 | fi |
| 5426 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5427 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5428 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5429 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5431 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5432 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5433 | $as_echo_n "(cached) " >&6 |
| 5434 | else |
| 5435 | case $ac_pt_PKG_CONFIG in |
| 5436 | [\\/]* | ?:[\\/]*) |
| 5437 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5438 | ;; |
| 5439 | *) |
| 5440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5441 | for as_dir in $PATH |
| 5442 | do |
| 5443 | IFS=$as_save_IFS |
| 5444 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5445 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5447 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5449 | break 2 |
| 5450 | fi |
| 5451 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5452 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5453 | IFS=$as_save_IFS |
| 5454 | |
| 5455 | ;; |
| 5456 | esac |
| 5457 | fi |
| 5458 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5459 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5461 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5462 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5464 | $as_echo "no" >&6; } |
| 5465 | fi |
| 5466 | |
| 5467 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5468 | PKG_CONFIG="" |
| 5469 | else |
| 5470 | case $cross_compiling:$ac_tool_warned in |
| 5471 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5474 | ac_tool_warned=yes ;; |
| 5475 | esac |
| 5476 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5477 | fi |
| 5478 | else |
| 5479 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5480 | fi |
| 5481 | |
| 5482 | fi |
| 5483 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5484 | _pkg_min_version=0.9.0 |
| 5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5486 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5487 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5489 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5490 | else |
| 5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5492 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5493 | PKG_CONFIG="" |
| 5494 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5495 | fi |
| 5496 | LIBBLKID= |
| 5497 | DEPLIBBLKID= |
| 5498 | STATIC_LIBBLKID= |
| 5499 | DEPSTATIC_LIBBLKID= |
| 5500 | PROFILED_LIBBLKID= |
| 5501 | DEPPROFILED_LIBBLKID= |
| 5502 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5503 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5504 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5505 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5506 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5507 | then |
| 5508 | if test -z "$PKG_CONFIG"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5509 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5510 | fi |
| 5511 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5513 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5514 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5515 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5516 | else |
| 5517 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5518 | LIBS="-lblkid -luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5520 | /* end confdefs.h. */ |
| 5521 | |
| 5522 | /* Override any GCC internal prototype to avoid an error. |
| 5523 | Use char because int might match the return type of a GCC |
| 5524 | builtin and then its argument prototype would still apply. */ |
| 5525 | #ifdef __cplusplus |
| 5526 | extern "C" |
| 5527 | #endif |
| 5528 | char blkid_get_cache (); |
| 5529 | int |
| 5530 | main () |
| 5531 | { |
| 5532 | return blkid_get_cache (); |
| 5533 | ; |
| 5534 | return 0; |
| 5535 | } |
| 5536 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5537 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5538 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5540 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5541 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5542 | rm -f core conftest.err conftest.$ac_objext \ |
| 5543 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5544 | LIBS=$ac_check_lib_save_LIBS |
| 5545 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5547 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5548 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5549 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5550 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5551 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5552 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5553 | fi |
| 5554 | |
| 5555 | BLKID_CMT=# |
Theodore Ts'o | 5afdf37 | 2014-09-18 21:11:33 -0400 | [diff] [blame] | 5556 | PROFILED_LIBBLKID=$LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5558 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5559 | else |
| 5560 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5561 | DEPLIBBLKID=$LIBBLKID |
| 5562 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5563 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5564 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5565 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5566 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5567 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5569 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5570 | fi |
| 5571 | |
| 5572 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 5573 | if test -n "$PKG_CONFIG"; then |
| 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
| 5575 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
| 5576 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
| 5577 | $as_echo_n "(cached) " >&6 |
| 5578 | else |
| 5579 | ac_check_lib_save_LIBS=$LIBS |
| 5580 | LIBS="-lblkid $LIBS" |
| 5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5582 | /* end confdefs.h. */ |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5583 | |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 5584 | /* Override any GCC internal prototype to avoid an error. |
| 5585 | Use char because int might match the return type of a GCC |
| 5586 | builtin and then its argument prototype would still apply. */ |
| 5587 | #ifdef __cplusplus |
| 5588 | extern "C" |
| 5589 | #endif |
| 5590 | char blkid_get_cache (); |
| 5591 | int |
| 5592 | main () |
| 5593 | { |
| 5594 | return blkid_get_cache (); |
| 5595 | ; |
| 5596 | return 0; |
| 5597 | } |
| 5598 | _ACEOF |
| 5599 | if ac_fn_c_try_link "$LINENO"; then : |
| 5600 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5601 | else |
| 5602 | ac_cv_lib_blkid_blkid_get_cache=no |
| 5603 | fi |
| 5604 | rm -f core conftest.err conftest.$ac_objext \ |
| 5605 | conftest$ac_exeext conftest.$ac_ext |
| 5606 | LIBS=$ac_check_lib_save_LIBS |
| 5607 | fi |
| 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
| 5609 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
| 5610 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
| 5611 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5612 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5613 | fi |
| 5614 | |
| 5615 | fi |
| 5616 | if test -n "$LIBBLKID"; then |
| 5617 | BLKID_CMT=# |
| 5618 | PROFILED_LIBBLKID=$LIBBLKID |
| 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 |
| 5620 | $as_echo "Using system blkid library by default" >&6; } |
| 5621 | else |
| 5622 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5623 | DEPLIBBLKID=$LIBBLKID |
| 5624 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5625 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5626 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5627 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 5628 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
| 5629 | |
| 5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5631 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 5632 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5633 | |
| 5634 | fi |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5643 | QUOTA_MAN_COMMENT='.\"' |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5644 | QUOTA_CMT= |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5645 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5646 | |
| 5647 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5648 | |
| 5649 | |
| 5650 | |
| 5651 | |
| 5652 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5653 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5654 | if test -n "$ac_tool_prefix"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5655 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5656 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5658 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5659 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5660 | $as_echo_n "(cached) " >&6 |
| 5661 | else |
| 5662 | case $PKG_CONFIG in |
| 5663 | [\\/]* | ?:[\\/]*) |
| 5664 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5665 | ;; |
| 5666 | *) |
| 5667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5668 | for as_dir in $PATH |
| 5669 | do |
| 5670 | IFS=$as_save_IFS |
| 5671 | test -z "$as_dir" && as_dir=. |
| 5672 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5674 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5676 | break 2 |
| 5677 | fi |
| 5678 | done |
| 5679 | done |
| 5680 | IFS=$as_save_IFS |
| 5681 | |
| 5682 | ;; |
| 5683 | esac |
| 5684 | fi |
| 5685 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5686 | if test -n "$PKG_CONFIG"; then |
| 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5688 | $as_echo "$PKG_CONFIG" >&6; } |
| 5689 | else |
| 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5691 | $as_echo "no" >&6; } |
| 5692 | fi |
| 5693 | |
| 5694 | |
| 5695 | fi |
| 5696 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5697 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5698 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5699 | set dummy pkg-config; ac_word=$2 |
| 5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5701 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5702 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5703 | $as_echo_n "(cached) " >&6 |
| 5704 | else |
| 5705 | case $ac_pt_PKG_CONFIG in |
| 5706 | [\\/]* | ?:[\\/]*) |
| 5707 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5708 | ;; |
| 5709 | *) |
| 5710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5711 | for as_dir in $PATH |
| 5712 | do |
| 5713 | IFS=$as_save_IFS |
| 5714 | test -z "$as_dir" && as_dir=. |
| 5715 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 5716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5717 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5719 | break 2 |
| 5720 | fi |
| 5721 | done |
| 5722 | done |
| 5723 | IFS=$as_save_IFS |
| 5724 | |
| 5725 | ;; |
| 5726 | esac |
| 5727 | fi |
| 5728 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5729 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5731 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5732 | else |
| 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5734 | $as_echo "no" >&6; } |
| 5735 | fi |
| 5736 | |
| 5737 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5738 | PKG_CONFIG="" |
| 5739 | else |
| 5740 | case $cross_compiling:$ac_tool_warned in |
| 5741 | yes:) |
| 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5743 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5744 | ac_tool_warned=yes ;; |
| 5745 | esac |
| 5746 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5747 | fi |
| 5748 | else |
| 5749 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5750 | fi |
| 5751 | |
| 5752 | fi |
| 5753 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5754 | _pkg_min_version=0.9.0 |
| 5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5756 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5757 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5759 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5760 | else |
| 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5762 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5763 | PKG_CONFIG="" |
| 5764 | fi |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5765 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5766 | |
| 5767 | # Check whether --enable-quota was given. |
| 5768 | if test "${enable_quota+set}" = set; then : |
| 5769 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5770 | then |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5771 | QUOTA_CMT=# |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5773 | $as_echo "Disabling quota support" >&6; } |
| 5774 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5775 | QUOTA_CMT= |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5776 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5777 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5779 | $as_echo "Enabling quota support" >&6; } |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5780 | QUOTA_MAN_COMMENT="" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5781 | fi |
| 5782 | |
| 5783 | else |
Theodore Ts'o | f5dffb8 | 2015-06-20 14:20:14 -0400 | [diff] [blame^] | 5784 | QUOTA_CMT= |
| 5785 | QUOTA_MAN_COMMENT="" |
| 5786 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
| 5787 | |
| 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support by default" >&5 |
| 5789 | $as_echo "Enabling quota support by default" >&6; } |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5790 | |
| 5791 | fi |
| 5792 | |
| 5793 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5794 | DEPLIBQUOTA=$LIBQUOTA |
| 5795 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5796 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5797 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5798 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5799 | |
| 5800 | |
| 5801 | |
| 5802 | |
| 5803 | |
| 5804 | |
| 5805 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5806 | |
| 5807 | # Check whether --enable-backtrace was given. |
| 5808 | if test "${enable_backtrace+set}" = set; then : |
| 5809 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5810 | then |
| 5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5812 | $as_echo "Disabling use of backtrace" >&6; } |
| 5813 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5814 | |
| 5815 | else |
| 5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5817 | $as_echo "Enabling use of backtrace" >&6; } |
| 5818 | fi |
| 5819 | |
| 5820 | else |
| 5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5822 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5823 | |
| 5824 | fi |
| 5825 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5826 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5827 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5828 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5829 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5831 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5832 | DEBUGFS_CMT="#" |
| 5833 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5834 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5836 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5837 | fi |
| 5838 | |
| 5839 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5841 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5842 | DEBUGFS_CMT= |
| 5843 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5844 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5846 | |
| 5847 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5848 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5849 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5850 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5852 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5853 | IMAGER_CMT="#" |
| 5854 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5855 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5857 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5858 | fi |
| 5859 | |
| 5860 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5862 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5863 | IMAGER_CMT= |
| 5864 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5865 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5867 | |
| 5868 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5869 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5870 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5871 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5873 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5874 | RESIZER_CMT="#" |
| 5875 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5876 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5878 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5879 | fi |
| 5880 | |
| 5881 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5883 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5884 | RESIZER_CMT= |
| 5885 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5886 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5888 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5889 | # Check whether --enable-defrag was given. |
| 5890 | if test "${enable_defrag+set}" = set; then : |
| 5891 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5892 | then |
| 5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5894 | $as_echo "Disabling e4defrag support" >&6; } |
| 5895 | DEFRAG_CMT="#" |
| 5896 | else |
| 5897 | DEFRAG_CMT= |
| 5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5899 | $as_echo "Enabling e4defrag support" >&6; } |
| 5900 | fi |
| 5901 | |
| 5902 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5903 | if test -z "$WITH_DIET_LIBC" |
| 5904 | then |
| 5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5906 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5907 | DEFRAG_CMT= |
| 5908 | else |
| 5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5910 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5911 | DEFRAG_CMT="#" |
| 5912 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5913 | |
| 5914 | fi |
| 5915 | |
| 5916 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5917 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5918 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5919 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5920 | then |
| 5921 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5923 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5924 | else |
| 5925 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5927 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5928 | fi |
| 5929 | |
| 5930 | else |
| 5931 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5932 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5933 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5935 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5936 | ;; |
| 5937 | *) |
| 5938 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5940 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5941 | esac |
| 5942 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5943 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5944 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5945 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5946 | |
| 5947 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5948 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5949 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5950 | then |
| 5951 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5953 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5954 | else |
| 5955 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5957 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5958 | fi |
| 5959 | |
| 5960 | else |
| 5961 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5963 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5964 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5965 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5966 | |
| 5967 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5968 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5969 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5970 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5971 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5972 | then |
| 5973 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5975 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5976 | else |
| 5977 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5979 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5980 | fi |
| 5981 | |
| 5982 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5983 | if test -n "$WITH_DIET_LIBC" |
| 5984 | then |
| 5985 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5987 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5988 | else |
| 5989 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5991 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5992 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5993 | |
| 5994 | fi |
| 5995 | |
| 5996 | if test "$try_tls" = "yes" |
| 5997 | then |
| 5998 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6000 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6001 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6002 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 6003 | else |
| 6004 | |
| 6005 | ax_tls_keywords="__thread __declspec(thread) none" |
| 6006 | for ax_tls_keyword in $ax_tls_keywords; do |
| 6007 | case $ax_tls_keyword in |
| 6008 | none) ac_cv_tls=none ; break ;; |
| 6009 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 6011 | /* end confdefs.h. */ |
| 6012 | #include <stdlib.h> |
| 6013 | static void |
| 6014 | foo(void) { |
| 6015 | static $ax_tls_keyword int bar; |
| 6016 | exit(1); |
| 6017 | } |
| 6018 | int |
| 6019 | main () |
| 6020 | { |
| 6021 | |
| 6022 | ; |
| 6023 | return 0; |
| 6024 | } |
| 6025 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6026 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 6027 | ac_cv_tls=$ax_tls_keyword ; break |
| 6028 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6029 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 6030 | |
| 6031 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 6032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6033 | esac |
| 6034 | done |
| 6035 | |
| 6036 | fi |
| 6037 | |
| 6038 | |
| 6039 | if test "$ac_cv_tls" != "none"; then |
| 6040 | |
| 6041 | cat >>confdefs.h <<_ACEOF |
| 6042 | #define TLS $ac_cv_tls |
| 6043 | _ACEOF |
| 6044 | |
| 6045 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6047 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 6048 | |
| 6049 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6050 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 6051 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6052 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 6053 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 6054 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6056 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 6057 | UUIDD_CMT="#" |
| 6058 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6059 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 6060 | |
| 6061 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6063 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 6064 | fi |
| 6065 | |
| 6066 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6067 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 6068 | |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 6069 | if test -z "$UUID_CMT" |
| 6070 | then |
| 6071 | UUIDD_CMT="" |
| 6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6073 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | e3d1015 | 2014-09-19 00:26:26 -0400 | [diff] [blame] | 6074 | else |
| 6075 | UUIDD_CMT="#" |
| 6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 |
| 6077 | $as_echo "Disabling uuidd by default" >&6; } |
| 6078 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 6079 | |
| 6080 | fi |
| 6081 | |
| 6082 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6083 | |
| 6084 | # Check whether --enable-mmp was given. |
| 6085 | if test "${enable_mmp+set}" = set; then : |
| 6086 | enableval=$enable_mmp; if test "$enableval" = "no" |
| 6087 | then |
| 6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 |
| 6089 | $as_echo "Disabling mmp support" >&6; } |
| 6090 | else |
| 6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 |
| 6092 | $as_echo "Enabling mmp support" >&6; } |
| 6093 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 6094 | |
| 6095 | fi |
| 6096 | |
| 6097 | else |
| 6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 |
| 6099 | $as_echo "Enabling mmp support by default" >&6; } |
| 6100 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h |
| 6101 | |
| 6102 | |
| 6103 | fi |
| 6104 | |
Tony Breeds | 1625bf4 | 2012-07-30 14:44:12 -0400 | [diff] [blame] | 6105 | |
| 6106 | # Check whether --enable-bmap-stats was given. |
| 6107 | if test "${enable_bmap_stats+set}" = set; then : |
| 6108 | enableval=$enable_bmap_stats; if test "$enableval" = "no" |
| 6109 | then |
| 6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 |
| 6111 | $as_echo "Disabling bitmap statistics support" >&6; } |
| 6112 | else |
| 6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 |
| 6114 | $as_echo "Enabling bitmap statistics support" >&6; } |
| 6115 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 6116 | |
| 6117 | fi |
| 6118 | |
| 6119 | else |
| 6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 |
| 6121 | $as_echo "Enabling bitmap statistics support by default" >&6; } |
| 6122 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h |
| 6123 | |
| 6124 | |
| 6125 | fi |
| 6126 | |
| 6127 | |
| 6128 | # Check whether --enable-bmap-stats-ops was given. |
| 6129 | if test "${enable_bmap_stats_ops+set}" = set; then : |
| 6130 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" |
| 6131 | then |
| 6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 |
| 6133 | $as_echo "Disabling additional bitmap statistics" >&6; } |
| 6134 | else |
| 6135 | if test "x${enable_bmap_stats}" = "xno"; then : |
| 6136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6137 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6138 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats |
| 6139 | See \`config.log' for more details" "$LINENO" 5; } |
| 6140 | fi |
| 6141 | |
| 6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 |
| 6143 | $as_echo "Enabling additional bitmap statistics" >&6; } |
| 6144 | $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h |
| 6145 | |
| 6146 | fi |
| 6147 | |
| 6148 | else |
| 6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 |
| 6150 | $as_echo "Disabling additional bitmap statistics by default" >&6; } |
| 6151 | |
| 6152 | fi |
| 6153 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 6154 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 6155 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6156 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6157 | PACKAGE=e2fsprogs |
| 6158 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6159 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6160 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6161 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6162 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6163 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6164 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6165 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6166 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6167 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6168 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6169 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6170 | |
| 6171 | |
| 6172 | |
| 6173 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6175 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6176 | set x ${MAKE-make} |
| 6177 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6178 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6179 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6180 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6181 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6182 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6183 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6184 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6185 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6186 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6187 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6188 | *@@@%%%=?*=@@@%%%*) |
| 6189 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6190 | *) |
| 6191 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6192 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6193 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6194 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6195 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6197 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6198 | SET_MAKE= |
| 6199 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6201 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6202 | SET_MAKE="MAKE=${MAKE-make}" |
| 6203 | fi |
| 6204 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6205 | # Find a good install program. We prefer a C program (faster), |
| 6206 | # so one script is as good as another. But avoid the broken or |
| 6207 | # incompatible versions: |
| 6208 | # SysV /etc/install, /usr/sbin/install |
| 6209 | # SunOS /usr/etc/install |
| 6210 | # IRIX /sbin/install |
| 6211 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6212 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6213 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6214 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6215 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6216 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6217 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6218 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6220 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6221 | if test -z "$INSTALL"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6222 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6223 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6224 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6226 | for as_dir in $PATH |
| 6227 | do |
| 6228 | IFS=$as_save_IFS |
| 6229 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6230 | # Account for people who put trailing slashes in PATH elements. |
| 6231 | case $as_dir/ in #(( |
| 6232 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6233 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6234 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6235 | /usr/ucb/* ) ;; |
| 6236 | *) |
| 6237 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6238 | # Don't use installbsd from OSF since it installs stuff as root |
| 6239 | # by default. |
| 6240 | for ac_prog in ginstall scoinst install; do |
| 6241 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6242 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6243 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6244 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6245 | # AIX install. It has an incompatible calling convention. |
| 6246 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6247 | elif test $ac_prog = install && |
| 6248 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6249 | # program-specific install script used by HP pwplus--don't use. |
| 6250 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6251 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6252 | rm -rf conftest.one conftest.two conftest.dir |
| 6253 | echo one > conftest.one |
| 6254 | echo two > conftest.two |
| 6255 | mkdir conftest.dir |
| 6256 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6257 | test -s conftest.one && test -s conftest.two && |
| 6258 | test -s conftest.dir/conftest.one && |
| 6259 | test -s conftest.dir/conftest.two |
| 6260 | then |
| 6261 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6262 | break 3 |
| 6263 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6264 | fi |
| 6265 | fi |
| 6266 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6267 | done |
| 6268 | ;; |
| 6269 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6270 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6271 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6272 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6273 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6274 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6275 | |
| 6276 | fi |
| 6277 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6278 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6279 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6280 | # As a last resort, use the slow shell script. Don't cache a |
| 6281 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6282 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6283 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6284 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6285 | fi |
| 6286 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6288 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6289 | |
| 6290 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6291 | # It thinks the first close brace ends the variable substitution. |
| 6292 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6293 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6294 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6295 | |
| 6296 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6297 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6299 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6300 | if test -z "$MKDIR_P"; then |
| 6301 | if ${ac_cv_path_mkdir+:} false; then : |
| 6302 | $as_echo_n "(cached) " >&6 |
| 6303 | else |
| 6304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6305 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6306 | do |
| 6307 | IFS=$as_save_IFS |
| 6308 | test -z "$as_dir" && as_dir=. |
| 6309 | for ac_prog in mkdir gmkdir; do |
| 6310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6311 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 6312 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6313 | 'mkdir (GNU coreutils) '* | \ |
| 6314 | 'mkdir (coreutils) '* | \ |
| 6315 | 'mkdir (fileutils) '4.1*) |
| 6316 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6317 | break 3;; |
| 6318 | esac |
| 6319 | done |
| 6320 | done |
| 6321 | done |
| 6322 | IFS=$as_save_IFS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6323 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6324 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6325 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6326 | test -d ./--version && rmdir ./--version |
| 6327 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6328 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6329 | else |
| 6330 | # As a last resort, use the slow shell script. Don't cache a |
| 6331 | # value for MKDIR_P within a source directory, because that will |
| 6332 | # break other packages using the cache if that directory is |
| 6333 | # removed, or if the value is a relative name. |
| 6334 | MKDIR_P="$ac_install_sh -d" |
| 6335 | fi |
| 6336 | fi |
| 6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6338 | $as_echo "$MKDIR_P" >&6; } |
| 6339 | |
| 6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6341 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6342 | if ${ac_cv_path_SED+:} false; then : |
| 6343 | $as_echo_n "(cached) " >&6 |
| 6344 | else |
| 6345 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6346 | for ac_i in 1 2 3 4 5 6 7; do |
| 6347 | ac_script="$ac_script$as_nl$ac_script" |
| 6348 | done |
| 6349 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6350 | { ac_script=; unset ac_script;} |
| 6351 | if test -z "$SED"; then |
| 6352 | ac_path_SED_found=false |
| 6353 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6355 | for as_dir in $PATH |
| 6356 | do |
| 6357 | IFS=$as_save_IFS |
| 6358 | test -z "$as_dir" && as_dir=. |
| 6359 | for ac_prog in sed gsed; do |
| 6360 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6361 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6362 | as_fn_executable_p "$ac_path_SED" || continue |
| 6363 | # Check for GNU ac_path_SED and select it if it is found. |
| 6364 | # Check for GNU $ac_path_SED |
| 6365 | case `"$ac_path_SED" --version 2>&1` in |
| 6366 | *GNU*) |
| 6367 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6368 | *) |
| 6369 | ac_count=0 |
| 6370 | $as_echo_n 0123456789 >"conftest.in" |
| 6371 | while : |
| 6372 | do |
| 6373 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6374 | mv "conftest.tmp" "conftest.in" |
| 6375 | cp "conftest.in" "conftest.nl" |
| 6376 | $as_echo '' >> "conftest.nl" |
| 6377 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6378 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6379 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6380 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6381 | # Best one so far, save it but keep looking for a better one |
| 6382 | ac_cv_path_SED="$ac_path_SED" |
| 6383 | ac_path_SED_max=$ac_count |
| 6384 | fi |
| 6385 | # 10*(2^10) chars as input seems more than enough |
| 6386 | test $ac_count -gt 10 && break |
| 6387 | done |
| 6388 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6389 | esac |
| 6390 | |
| 6391 | $ac_path_SED_found && break 3 |
| 6392 | done |
| 6393 | done |
| 6394 | done |
| 6395 | IFS=$as_save_IFS |
| 6396 | if test -z "$ac_cv_path_SED"; then |
| 6397 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6398 | fi |
| 6399 | else |
| 6400 | ac_cv_path_SED=$SED |
| 6401 | fi |
| 6402 | |
| 6403 | fi |
| 6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6405 | $as_echo "$ac_cv_path_SED" >&6; } |
| 6406 | SED="$ac_cv_path_SED" |
| 6407 | rm -f conftest.sed |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6408 | |
| 6409 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6411 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6412 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6413 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6414 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6415 | else |
| 6416 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6417 | fi |
| 6418 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6420 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6421 | |
| 6422 | |
| 6423 | |
| 6424 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6425 | GETTEXT_MACRO_VERSION=0.18 |
| 6426 | |
| 6427 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6428 | |
| 6429 | |
| 6430 | # Prepare PATH_SEPARATOR. |
| 6431 | # The user is always right. |
| 6432 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6433 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6434 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6435 | # so we have to set that as well for the test. |
| 6436 | PATH_SEPARATOR=: |
| 6437 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6438 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6439 | || PATH_SEPARATOR=';' |
| 6440 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6441 | fi |
| 6442 | |
| 6443 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6444 | # as systems may use methods other than mode bits to determine executability. |
| 6445 | cat >conf$$.file <<_ASEOF |
| 6446 | #! /bin/sh |
| 6447 | exit 0 |
| 6448 | _ASEOF |
| 6449 | chmod +x conf$$.file |
| 6450 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6451 | ac_executable_p="test -x" |
| 6452 | else |
| 6453 | ac_executable_p="test -f" |
| 6454 | fi |
| 6455 | rm -f conf$$.file |
| 6456 | |
| 6457 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6458 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6460 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6461 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6462 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6463 | else |
| 6464 | case "$MSGFMT" in |
| 6465 | [\\/]* | ?:[\\/]*) |
| 6466 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6467 | ;; |
| 6468 | *) |
| 6469 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6470 | for ac_dir in $PATH; do |
| 6471 | IFS="$ac_save_IFS" |
| 6472 | test -z "$ac_dir" && ac_dir=. |
| 6473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6474 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6475 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6476 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6477 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6478 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6479 | break 2 |
| 6480 | fi |
| 6481 | fi |
| 6482 | done |
| 6483 | done |
| 6484 | IFS="$ac_save_IFS" |
| 6485 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6486 | ;; |
| 6487 | esac |
| 6488 | fi |
| 6489 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6490 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6492 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6493 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6495 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6496 | fi |
| 6497 | |
| 6498 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6499 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6501 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6502 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6503 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6504 | else |
| 6505 | case $GMSGFMT in |
| 6506 | [\\/]* | ?:[\\/]*) |
| 6507 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6508 | ;; |
| 6509 | *) |
| 6510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6511 | for as_dir in $PATH |
| 6512 | do |
| 6513 | IFS=$as_save_IFS |
| 6514 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6515 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6517 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6519 | break 2 |
| 6520 | fi |
| 6521 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6522 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6523 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6524 | |
| 6525 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6526 | ;; |
| 6527 | esac |
| 6528 | fi |
| 6529 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6532 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6533 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6535 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | fi |
| 6537 | |
| 6538 | |
| 6539 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6540 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6541 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 6542 | *) MSGFMT_015=$MSGFMT ;; |
| 6543 | esac |
| 6544 | |
| 6545 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6546 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 6547 | *) GMSGFMT_015=$GMSGFMT ;; |
| 6548 | esac |
| 6549 | |
| 6550 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6552 | # Prepare PATH_SEPARATOR. |
| 6553 | # The user is always right. |
| 6554 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6555 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6556 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6557 | # so we have to set that as well for the test. |
| 6558 | PATH_SEPARATOR=: |
| 6559 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6560 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6561 | || PATH_SEPARATOR=';' |
| 6562 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6563 | fi |
| 6564 | |
| 6565 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6566 | # as systems may use methods other than mode bits to determine executability. |
| 6567 | cat >conf$$.file <<_ASEOF |
| 6568 | #! /bin/sh |
| 6569 | exit 0 |
| 6570 | _ASEOF |
| 6571 | chmod +x conf$$.file |
| 6572 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6573 | ac_executable_p="test -x" |
| 6574 | else |
| 6575 | ac_executable_p="test -f" |
| 6576 | fi |
| 6577 | rm -f conf$$.file |
| 6578 | |
| 6579 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6580 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6582 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6583 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6584 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6585 | else |
| 6586 | case "$XGETTEXT" in |
| 6587 | [\\/]* | ?:[\\/]*) |
| 6588 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6589 | ;; |
| 6590 | *) |
| 6591 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6592 | for ac_dir in $PATH; do |
| 6593 | IFS="$ac_save_IFS" |
| 6594 | test -z "$ac_dir" && ac_dir=. |
| 6595 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6596 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6597 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6598 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6599 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6600 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6601 | break 2 |
| 6602 | fi |
| 6603 | fi |
| 6604 | done |
| 6605 | done |
| 6606 | IFS="$ac_save_IFS" |
| 6607 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6608 | ;; |
| 6609 | esac |
| 6610 | fi |
| 6611 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6612 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6614 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6615 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6617 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6618 | fi |
| 6619 | |
| 6620 | rm -f messages.po |
| 6621 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6622 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6623 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 6624 | *) XGETTEXT_015=$XGETTEXT ;; |
| 6625 | esac |
| 6626 | |
| 6627 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6628 | |
| 6629 | # Prepare PATH_SEPARATOR. |
| 6630 | # The user is always right. |
| 6631 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6632 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6633 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6634 | # so we have to set that as well for the test. |
| 6635 | PATH_SEPARATOR=: |
| 6636 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6637 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6638 | || PATH_SEPARATOR=';' |
| 6639 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6640 | fi |
| 6641 | |
| 6642 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6643 | # as systems may use methods other than mode bits to determine executability. |
| 6644 | cat >conf$$.file <<_ASEOF |
| 6645 | #! /bin/sh |
| 6646 | exit 0 |
| 6647 | _ASEOF |
| 6648 | chmod +x conf$$.file |
| 6649 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6650 | ac_executable_p="test -x" |
| 6651 | else |
| 6652 | ac_executable_p="test -f" |
| 6653 | fi |
| 6654 | rm -f conf$$.file |
| 6655 | |
| 6656 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6657 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6659 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6660 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6661 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6662 | else |
| 6663 | case "$MSGMERGE" in |
| 6664 | [\\/]* | ?:[\\/]*) |
| 6665 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6666 | ;; |
| 6667 | *) |
| 6668 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6669 | for ac_dir in $PATH; do |
| 6670 | IFS="$ac_save_IFS" |
| 6671 | test -z "$ac_dir" && ac_dir=. |
| 6672 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6673 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6674 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6675 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6676 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6677 | break 2 |
| 6678 | fi |
| 6679 | fi |
| 6680 | done |
| 6681 | done |
| 6682 | IFS="$ac_save_IFS" |
| 6683 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6684 | ;; |
| 6685 | esac |
| 6686 | fi |
| 6687 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6688 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6690 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6691 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6693 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6694 | fi |
| 6695 | |
| 6696 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6697 | test -n "$localedir" || localedir='${datadir}/locale' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6698 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6699 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6700 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 6701 | |
| 6702 | |
| 6703 | ac_config_commands="$ac_config_commands po-directories" |
| 6704 | |
| 6705 | |
| 6706 | |
| 6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 |
| 6708 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } |
| 6709 | if ${ac_cv_gnu_library_2+:} false; then : |
| 6710 | $as_echo_n "(cached) " >&6 |
| 6711 | else |
| 6712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6713 | /* end confdefs.h. */ |
| 6714 | |
| 6715 | #include <features.h> |
| 6716 | #ifdef __GNU_LIBRARY__ |
| 6717 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ |
| 6718 | Lucky GNU user |
| 6719 | #endif |
| 6720 | #endif |
| 6721 | |
| 6722 | _ACEOF |
| 6723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6724 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
| 6725 | ac_cv_gnu_library_2=yes |
| 6726 | else |
| 6727 | ac_cv_gnu_library_2=no |
| 6728 | fi |
| 6729 | rm -f conftest* |
| 6730 | |
| 6731 | |
| 6732 | |
| 6733 | fi |
| 6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 |
| 6735 | $as_echo "$ac_cv_gnu_library_2" >&6; } |
| 6736 | |
| 6737 | GLIBC2="$ac_cv_gnu_library_2" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6738 | |
| 6739 | |
| 6740 | if test -n "$ac_tool_prefix"; then |
| 6741 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6742 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6744 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6745 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6746 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6747 | else |
| 6748 | if test -n "$RANLIB"; then |
| 6749 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6750 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6752 | for as_dir in $PATH |
| 6753 | do |
| 6754 | IFS=$as_save_IFS |
| 6755 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6756 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6758 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6760 | break 2 |
| 6761 | fi |
| 6762 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6763 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6764 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6765 | |
| 6766 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6767 | fi |
| 6768 | RANLIB=$ac_cv_prog_RANLIB |
| 6769 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6771 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6772 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6774 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6776 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6777 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6778 | fi |
| 6779 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6780 | ac_ct_RANLIB=$RANLIB |
| 6781 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6782 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6784 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6785 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6786 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6787 | else |
| 6788 | if test -n "$ac_ct_RANLIB"; then |
| 6789 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6790 | else |
| 6791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6792 | for as_dir in $PATH |
| 6793 | do |
| 6794 | IFS=$as_save_IFS |
| 6795 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6796 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6800 | break 2 |
| 6801 | fi |
| 6802 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6803 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6804 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6805 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | fi |
| 6807 | fi |
| 6808 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6809 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6811 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6812 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6814 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | fi |
| 6816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6817 | if test "x$ac_ct_RANLIB" = x; then |
| 6818 | RANLIB=":" |
| 6819 | else |
| 6820 | case $cross_compiling:$ac_tool_warned in |
| 6821 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6824 | ac_tool_warned=yes ;; |
| 6825 | esac |
| 6826 | RANLIB=$ac_ct_RANLIB |
| 6827 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6828 | else |
| 6829 | RANLIB="$ac_cv_prog_RANLIB" |
| 6830 | fi |
| 6831 | |
| 6832 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6833 | |
| 6834 | CFLAG_VISIBILITY= |
| 6835 | HAVE_VISIBILITY=0 |
| 6836 | if test -n "$GCC"; then |
| 6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 |
| 6838 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } |
| 6839 | if ${gl_cv_cc_vis_werror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6840 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6841 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6842 | |
| 6843 | gl_save_CFLAGS="$CFLAGS" |
| 6844 | CFLAGS="$CFLAGS -Werror" |
| 6845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | /* end confdefs.h. */ |
| 6847 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6848 | int |
| 6849 | main () |
| 6850 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6851 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6852 | ; |
| 6853 | return 0; |
| 6854 | } |
| 6855 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6856 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6857 | gl_cv_cc_vis_werror=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6858 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6859 | gl_cv_cc_vis_werror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6860 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6862 | CFLAGS="$gl_save_CFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6863 | fi |
| 6864 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
| 6866 | $as_echo "$gl_cv_cc_vis_werror" >&6; } |
| 6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 |
| 6868 | $as_echo_n "checking for simple visibility declarations... " >&6; } |
| 6869 | if ${gl_cv_cc_visibility+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6870 | $as_echo_n "(cached) " >&6 |
| 6871 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6872 | |
| 6873 | gl_save_CFLAGS="$CFLAGS" |
| 6874 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 6875 | if test $gl_cv_cc_vis_werror = yes; then |
| 6876 | CFLAGS="$CFLAGS -Werror" |
| 6877 | fi |
| 6878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6879 | /* end confdefs.h. */ |
| 6880 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
| 6881 | extern __attribute__((__visibility__("default"))) int exportedvar; |
| 6882 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); |
| 6883 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); |
| 6884 | void dummyfunc (void) {} |
| 6885 | |
| 6886 | int |
| 6887 | main () |
| 6888 | { |
| 6889 | |
| 6890 | ; |
| 6891 | return 0; |
| 6892 | } |
| 6893 | _ACEOF |
| 6894 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6895 | gl_cv_cc_visibility=yes |
| 6896 | else |
| 6897 | gl_cv_cc_visibility=no |
| 6898 | fi |
| 6899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6900 | CFLAGS="$gl_save_CFLAGS" |
| 6901 | fi |
| 6902 | |
| 6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
| 6904 | $as_echo "$gl_cv_cc_visibility" >&6; } |
| 6905 | if test $gl_cv_cc_visibility = yes; then |
| 6906 | CFLAG_VISIBILITY="-fvisibility=hidden" |
| 6907 | HAVE_VISIBILITY=1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6908 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6909 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6910 | |
| 6911 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6912 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6913 | cat >>confdefs.h <<_ACEOF |
| 6914 | #define HAVE_VISIBILITY $HAVE_VISIBILITY |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6915 | _ACEOF |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6916 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6917 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6919 | $as_echo_n "checking for inline... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6920 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6921 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6922 | else |
| 6923 | ac_cv_c_inline=no |
| 6924 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6926 | /* end confdefs.h. */ |
| 6927 | #ifndef __cplusplus |
| 6928 | typedef int foo_t; |
| 6929 | static $ac_kw foo_t static_foo () {return 0; } |
| 6930 | $ac_kw foo_t foo () {return 0; } |
| 6931 | #endif |
| 6932 | |
| 6933 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6934 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6935 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6936 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6938 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6939 | done |
| 6940 | |
| 6941 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6943 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6944 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6945 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6946 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6947 | *) |
| 6948 | case $ac_cv_c_inline in |
| 6949 | no) ac_val=;; |
| 6950 | *) ac_val=$ac_cv_c_inline;; |
| 6951 | esac |
| 6952 | cat >>confdefs.h <<_ACEOF |
| 6953 | #ifndef __cplusplus |
| 6954 | #define inline $ac_val |
| 6955 | #endif |
| 6956 | _ACEOF |
| 6957 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6958 | esac |
| 6959 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6960 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 6961 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6962 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6963 | else |
| 6964 | |
| 6965 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6966 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6967 | _ACEOF |
| 6968 | |
| 6969 | fi |
| 6970 | |
| 6971 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6973 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6974 | if ${gl_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6975 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6978 | /* end confdefs.h. */ |
| 6979 | #include <sys/types.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6980 | #include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6981 | int |
| 6982 | main () |
| 6983 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6984 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6985 | ; |
| 6986 | return 0; |
| 6987 | } |
| 6988 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6989 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6990 | gl_cv_header_stdint_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6991 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6992 | gl_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6993 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6995 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 6997 | $as_echo "$gl_cv_header_stdint_h" >&6; } |
| 6998 | if test $gl_cv_header_stdint_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6999 | |
| 7000 | cat >>confdefs.h <<_ACEOF |
| 7001 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 7002 | _ACEOF |
| 7003 | |
| 7004 | fi |
| 7005 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7006 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 7007 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7009 | $as_echo_n "checking for working alloca.h... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7010 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7011 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7012 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7014 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7015 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7016 | int |
| 7017 | main () |
| 7018 | { |
| 7019 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7020 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7021 | ; |
| 7022 | return 0; |
| 7023 | } |
| 7024 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7025 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7026 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7027 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7028 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7029 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7030 | rm -f core conftest.err conftest.$ac_objext \ |
| 7031 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7032 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7034 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7035 | if test $ac_cv_working_alloca_h = yes; then |
| 7036 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7037 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7038 | |
| 7039 | fi |
| 7040 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7042 | $as_echo_n "checking for alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7043 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7044 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7045 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7047 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7048 | #ifdef __GNUC__ |
| 7049 | # define alloca __builtin_alloca |
| 7050 | #else |
| 7051 | # ifdef _MSC_VER |
| 7052 | # include <malloc.h> |
| 7053 | # define alloca _alloca |
| 7054 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7055 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7056 | # include <alloca.h> |
| 7057 | # else |
| 7058 | # ifdef _AIX |
| 7059 | #pragma alloca |
| 7060 | # else |
| 7061 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7062 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7063 | # endif |
| 7064 | # endif |
| 7065 | # endif |
| 7066 | # endif |
| 7067 | #endif |
| 7068 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7069 | int |
| 7070 | main () |
| 7071 | { |
| 7072 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7073 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7074 | ; |
| 7075 | return 0; |
| 7076 | } |
| 7077 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7078 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7079 | ac_cv_func_alloca_works=yes |
| 7080 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7081 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7082 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7083 | rm -f core conftest.err conftest.$ac_objext \ |
| 7084 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7085 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7087 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7088 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7089 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7090 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7091 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7092 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7093 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7094 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 7095 | # that cause trouble. Some versions do not even contain alloca or |
| 7096 | # contain a buggy version. If you still want to use their alloca, |
| 7097 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 7098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7099 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7100 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7101 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7102 | |
| 7103 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7105 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7106 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7107 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7108 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7110 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7111 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7112 | webecray |
| 7113 | #else |
| 7114 | wenotbecray |
| 7115 | #endif |
| 7116 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7117 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7119 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7120 | ac_cv_os_cray=yes |
| 7121 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7122 | ac_cv_os_cray=no |
| 7123 | fi |
| 7124 | rm -f conftest* |
| 7125 | |
| 7126 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7128 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7129 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7130 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7131 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7132 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7133 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7134 | |
| 7135 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7136 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7137 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7138 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7139 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7140 | fi |
| 7141 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7142 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7143 | fi |
| 7144 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7146 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7147 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7148 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7149 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7150 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7151 | ac_cv_c_stack_direction=0 |
| 7152 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7154 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7155 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7156 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7157 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7158 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7159 | int dir, dummy = 0; |
| 7160 | if (! addr) |
| 7161 | addr = &dummy; |
| 7162 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 7163 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7164 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7165 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7166 | |
| 7167 | int |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7168 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7169 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7170 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7171 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7172 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7173 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7174 | ac_cv_c_stack_direction=1 |
| 7175 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7176 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7177 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7178 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7179 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7181 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7182 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7184 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7185 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7186 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7187 | _ACEOF |
| 7188 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7189 | |
| 7190 | fi |
| 7191 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7192 | |
| 7193 | |
| 7194 | |
| 7195 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7196 | do : |
| 7197 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7198 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7199 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7200 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7201 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7202 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7203 | _ACEOF |
| 7204 | |
| 7205 | fi |
| 7206 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7207 | done |
| 7208 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7209 | |
| 7210 | |
| 7211 | |
| 7212 | |
| 7213 | |
| 7214 | |
| 7215 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7216 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7217 | do : |
| 7218 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7219 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7220 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7221 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7222 | _ACEOF |
| 7223 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7224 | fi |
| 7225 | done |
| 7226 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7228 | $as_echo_n "checking for working mmap... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7229 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7230 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7231 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7232 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7233 | ac_cv_func_mmap_fixed_mapped=no |
| 7234 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7236 | /* end confdefs.h. */ |
| 7237 | $ac_includes_default |
| 7238 | /* malloc might have been renamed as rpl_malloc. */ |
| 7239 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7240 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7241 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7242 | Here is a matrix of mmap possibilities: |
| 7243 | mmap private not fixed |
| 7244 | mmap private fixed at somewhere currently unmapped |
| 7245 | mmap private fixed at somewhere already mapped |
| 7246 | mmap shared not fixed |
| 7247 | mmap shared fixed at somewhere currently unmapped |
| 7248 | mmap shared fixed at somewhere already mapped |
| 7249 | For private mappings, we should verify that changes cannot be read() |
| 7250 | back from the file, nor mmap's back from the file at a different |
| 7251 | address. (There have been systems where private was not correctly |
| 7252 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7253 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7254 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7255 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7256 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7257 | |
| 7258 | Grep wants private fixed already mapped. |
| 7259 | The main things grep needs to know about mmap are: |
| 7260 | * does it exist and is it safe to write into the mmap'd area |
| 7261 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7262 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7263 | #include <fcntl.h> |
| 7264 | #include <sys/mman.h> |
| 7265 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7266 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7267 | char *malloc (); |
| 7268 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7270 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7271 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7272 | # ifdef _SC_PAGESIZE |
| 7273 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7274 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7275 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7276 | # include <sys/param.h> |
| 7277 | # ifdef EXEC_PAGESIZE |
| 7278 | # define getpagesize() EXEC_PAGESIZE |
| 7279 | # else /* no EXEC_PAGESIZE */ |
| 7280 | # ifdef NBPG |
| 7281 | # define getpagesize() NBPG * CLSIZE |
| 7282 | # ifndef CLSIZE |
| 7283 | # define CLSIZE 1 |
| 7284 | # endif /* no CLSIZE */ |
| 7285 | # else /* no NBPG */ |
| 7286 | # ifdef NBPC |
| 7287 | # define getpagesize() NBPC |
| 7288 | # else /* no NBPC */ |
| 7289 | # ifdef PAGESIZE |
| 7290 | # define getpagesize() PAGESIZE |
| 7291 | # endif /* PAGESIZE */ |
| 7292 | # endif /* no NBPC */ |
| 7293 | # endif /* no NBPG */ |
| 7294 | # endif /* no EXEC_PAGESIZE */ |
| 7295 | # else /* no HAVE_SYS_PARAM_H */ |
| 7296 | # define getpagesize() 8192 /* punt totally */ |
| 7297 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7298 | # endif /* no _SC_PAGESIZE */ |
| 7299 | |
| 7300 | #endif /* no HAVE_GETPAGESIZE */ |
| 7301 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7302 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7303 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7304 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7305 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7306 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7307 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7308 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7309 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7310 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7312 | /* First, make a file with some known garbage in it. */ |
| 7313 | data = (char *) malloc (pagesize); |
| 7314 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7315 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7316 | for (i = 0; i < pagesize; ++i) |
| 7317 | *(data + i) = rand (); |
| 7318 | umask (0); |
| 7319 | fd = creat ("conftest.mmap", 0600); |
| 7320 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7321 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7322 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7323 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7324 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7325 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7326 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7327 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7328 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7329 | if (fd2 < 0) |
| 7330 | return 4; |
| 7331 | cdata2 = ""; |
| 7332 | if (write (fd2, cdata2, 1) != 1) |
| 7333 | return 5; |
| 7334 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7335 | if (data2 == MAP_FAILED) |
| 7336 | return 6; |
| 7337 | for (i = 0; i < pagesize; ++i) |
| 7338 | if (*(data2 + i)) |
| 7339 | return 7; |
| 7340 | close (fd2); |
| 7341 | if (munmap (data2, pagesize)) |
| 7342 | return 8; |
| 7343 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7344 | /* Next, try to mmap the file at a fixed address which already has |
| 7345 | something else allocated at it. If we can, also make sure that |
| 7346 | we see the same garbage. */ |
| 7347 | fd = open ("conftest.mmap", O_RDWR); |
| 7348 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7349 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7350 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7351 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7352 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7353 | for (i = 0; i < pagesize; ++i) |
| 7354 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7355 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7357 | /* Finally, make sure that changes to the mapped area do not |
| 7358 | percolate back to the file as seen by read(). (This is a bug on |
| 7359 | some variants of i386 svr4.0.) */ |
| 7360 | for (i = 0; i < pagesize; ++i) |
| 7361 | *(data2 + i) = *(data2 + i) + 1; |
| 7362 | data3 = (char *) malloc (pagesize); |
| 7363 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7364 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7365 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7366 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7367 | for (i = 0; i < pagesize; ++i) |
| 7368 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7369 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7370 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7371 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7372 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7373 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7374 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7375 | ac_cv_func_mmap_fixed_mapped=yes |
| 7376 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7377 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7378 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7379 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7380 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7381 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7382 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7383 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7385 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7386 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7387 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7388 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7389 | |
| 7390 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7391 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7392 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7393 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7394 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7396 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7397 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7398 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7399 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7400 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7401 | gt_cv_int_divbyzero_sigfpe= |
| 7402 | case "$host_os" in |
| 7403 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) |
| 7404 | # On Mac OS X 10.2 or newer, just assume the same as when cross- |
| 7405 | # compiling. If we were to perform the real test, 1 Crash Report |
| 7406 | # dialog window would pop up. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7407 | case "$host_cpu" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7408 | i[34567]86 | x86_64) |
| 7409 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7410 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7411 | ;; |
| 7412 | esac |
| 7413 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
| 7414 | if test "$cross_compiling" = yes; then : |
| 7415 | |
| 7416 | # Guess based on the CPU. |
| 7417 | case "$host_cpu" in |
| 7418 | alpha* | i[34567]86 | x86_64 | m68k | s390*) |
| 7419 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7420 | *) |
| 7421 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7422 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7423 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7424 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7426 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7427 | |
| 7428 | #include <stdlib.h> |
| 7429 | #include <signal.h> |
| 7430 | |
| 7431 | static void |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7432 | sigfpe_handler (int sig) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7433 | { |
| 7434 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7435 | exit (sig != SIGFPE); |
| 7436 | } |
| 7437 | |
| 7438 | int x = 1; |
| 7439 | int y = 0; |
| 7440 | int z; |
| 7441 | int nan; |
| 7442 | |
| 7443 | int main () |
| 7444 | { |
| 7445 | signal (SIGFPE, sigfpe_handler); |
| 7446 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7447 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7448 | signal (SIGTRAP, sigfpe_handler); |
| 7449 | #endif |
| 7450 | /* Linux/SPARC yields signal SIGILL. */ |
| 7451 | #if defined (__sparc__) && defined (__linux__) |
| 7452 | signal (SIGILL, sigfpe_handler); |
| 7453 | #endif |
| 7454 | |
| 7455 | z = x / y; |
| 7456 | nan = y / y; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7457 | exit (2); |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7458 | } |
| 7459 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7460 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7461 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7462 | gt_cv_int_divbyzero_sigfpe=yes |
| 7463 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7464 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7465 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7466 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7467 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7468 | fi |
| 7469 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7470 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7471 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7472 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7474 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7475 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7476 | *yes) value=1;; |
| 7477 | *) value=0;; |
| 7478 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7479 | |
| 7480 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7481 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7482 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7483 | |
| 7484 | |
| 7485 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 7487 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 7488 | if ${gl_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7489 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7490 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7492 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7493 | |
| 7494 | #include <sys/types.h> |
| 7495 | #include <inttypes.h> |
| 7496 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7497 | int |
| 7498 | main () |
| 7499 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7500 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7501 | ; |
| 7502 | return 0; |
| 7503 | } |
| 7504 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7505 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7506 | gl_cv_header_inttypes_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7507 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7508 | gl_cv_header_inttypes_h=no |
| 7509 | fi |
| 7510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7511 | fi |
| 7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 7513 | $as_echo "$gl_cv_header_inttypes_h" >&6; } |
| 7514 | if test $gl_cv_header_inttypes_h = yes; then |
| 7515 | |
| 7516 | cat >>confdefs.h <<_ACEOF |
| 7517 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 7518 | _ACEOF |
| 7519 | |
| 7520 | fi |
| 7521 | |
| 7522 | |
| 7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 7524 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 7525 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 7526 | $as_echo_n "(cached) " >&6 |
| 7527 | else |
| 7528 | ac_cv_type_unsigned_long_long_int=yes |
| 7529 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 7530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7531 | /* end confdefs.h. */ |
| 7532 | |
| 7533 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 7534 | implementations with broken preprocessors. Perhaps this can |
| 7535 | be revisited in 2012. In the meantime, code should not expect |
| 7536 | #if to work with literals wider than 32 bits. */ |
| 7537 | /* Test literals. */ |
| 7538 | long long int ll = 9223372036854775807ll; |
| 7539 | long long int nll = -9223372036854775807LL; |
| 7540 | unsigned long long int ull = 18446744073709551615ULL; |
| 7541 | /* Test constant expressions. */ |
| 7542 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 7543 | ? 1 : -1)]; |
| 7544 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 7545 | ? 1 : -1)]; |
| 7546 | int i = 63; |
| 7547 | int |
| 7548 | main () |
| 7549 | { |
| 7550 | /* Test availability of runtime routines for shift and division. */ |
| 7551 | long long int llmax = 9223372036854775807ll; |
| 7552 | unsigned long long int ullmax = 18446744073709551615ull; |
| 7553 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 7554 | | (llmax / ll) | (llmax % ll) |
| 7555 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 7556 | | (ullmax / ull) | (ullmax % ull)); |
| 7557 | ; |
| 7558 | return 0; |
| 7559 | } |
| 7560 | |
| 7561 | _ACEOF |
| 7562 | if ac_fn_c_try_link "$LINENO"; then : |
| 7563 | |
| 7564 | else |
| 7565 | ac_cv_type_unsigned_long_long_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7566 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7567 | rm -f core conftest.err conftest.$ac_objext \ |
| 7568 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7569 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7570 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 7572 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 7573 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7574 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7575 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7576 | |
| 7577 | fi |
| 7578 | |
| 7579 | |
| 7580 | |
| 7581 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7582 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7583 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7584 | test $ac_cv_type_unsigned_long_long_int = yes \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7585 | && ac_type='unsigned long long' \ |
| 7586 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | |
| 7588 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7589 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7590 | _ACEOF |
| 7591 | |
| 7592 | else |
| 7593 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7594 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7595 | |
| 7596 | fi |
| 7597 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7598 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7599 | for ac_header in inttypes.h |
| 7600 | do : |
| 7601 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7602 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 7603 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7604 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7605 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7606 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7607 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7608 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7609 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7610 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7611 | if test $ac_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7613 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7614 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7615 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7616 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7617 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7619 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7620 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7621 | #include <inttypes.h> |
| 7622 | #ifdef PRId32 |
| 7623 | char *p = PRId32; |
| 7624 | #endif |
| 7625 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7626 | int |
| 7627 | main () |
| 7628 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7629 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7630 | ; |
| 7631 | return 0; |
| 7632 | } |
| 7633 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7634 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7635 | gt_cv_inttypes_pri_broken=no |
| 7636 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7637 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7638 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7640 | |
| 7641 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7643 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7644 | fi |
| 7645 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7646 | |
| 7647 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7648 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7649 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7650 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7651 | PRI_MACROS_BROKEN=1 |
| 7652 | else |
| 7653 | PRI_MACROS_BROKEN=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7654 | fi |
| 7655 | |
| 7656 | |
| 7657 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7658 | |
| 7659 | |
| 7660 | |
| 7661 | |
| 7662 | # Check whether --enable-threads was given. |
| 7663 | if test "${enable_threads+set}" = set; then : |
| 7664 | enableval=$enable_threads; gl_use_threads=$enableval |
| 7665 | else |
| 7666 | if test -n "$gl_use_threads_default"; then |
| 7667 | gl_use_threads="$gl_use_threads_default" |
| 7668 | else |
| 7669 | case "$host_os" in |
| 7670 | osf*) gl_use_threads=no ;; |
| 7671 | cygwin*) |
| 7672 | case `uname -r` in |
| 7673 | 1.[0-5].*) gl_use_threads=no ;; |
| 7674 | *) gl_use_threads=yes ;; |
| 7675 | esac |
| 7676 | ;; |
| 7677 | *) gl_use_threads=yes ;; |
| 7678 | esac |
| 7679 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7680 | |
| 7681 | fi |
| 7682 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7683 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7684 | # For using <pthread.h>: |
| 7685 | case "$host_os" in |
| 7686 | osf*) |
| 7687 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 7688 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 7689 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 7690 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 7691 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 7692 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 7693 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 7694 | ;; |
| 7695 | esac |
| 7696 | # Some systems optimize for single-threaded programs by default, and |
| 7697 | # need special flags to disable these optimizations. For example, the |
| 7698 | # definition of 'errno' in <errno.h>. |
| 7699 | case "$host_os" in |
| 7700 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 7701 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 7702 | esac |
| 7703 | fi |
| 7704 | |
| 7705 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7706 | |
| 7707 | |
| 7708 | |
| 7709 | if test "X$prefix" = "XNONE"; then |
| 7710 | acl_final_prefix="$ac_default_prefix" |
| 7711 | else |
| 7712 | acl_final_prefix="$prefix" |
| 7713 | fi |
| 7714 | if test "X$exec_prefix" = "XNONE"; then |
| 7715 | acl_final_exec_prefix='${prefix}' |
| 7716 | else |
| 7717 | acl_final_exec_prefix="$exec_prefix" |
| 7718 | fi |
| 7719 | acl_save_prefix="$prefix" |
| 7720 | prefix="$acl_final_prefix" |
| 7721 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7722 | prefix="$acl_save_prefix" |
| 7723 | |
| 7724 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7726 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7727 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7728 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7729 | else |
| 7730 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7731 | fi |
| 7732 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7733 | # Prepare PATH_SEPARATOR. |
| 7734 | # The user is always right. |
| 7735 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7736 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 7737 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 7738 | # so we have to set that as well for the test. |
| 7739 | PATH_SEPARATOR=: |
| 7740 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7741 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7742 | || PATH_SEPARATOR=';' |
| 7743 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7744 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7745 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7746 | ac_prog=ld |
| 7747 | if test "$GCC" = yes; then |
| 7748 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7750 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7751 | case $host in |
| 7752 | *-*-mingw*) |
| 7753 | # gcc leaves a trailing carriage return which upsets mingw |
| 7754 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7755 | *) |
| 7756 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7757 | esac |
| 7758 | case $ac_prog in |
| 7759 | # Accept absolute paths. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7760 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7761 | re_direlt='/[^/][^/]*/\.\./' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7762 | # Canonicalize the pathname of ld |
| 7763 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 7764 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 7765 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7766 | done |
| 7767 | test -z "$LD" && LD="$ac_prog" |
| 7768 | ;; |
| 7769 | "") |
| 7770 | # If it fails, then pretend we aren't using GCC. |
| 7771 | ac_prog=ld |
| 7772 | ;; |
| 7773 | *) |
| 7774 | # If it is relative, then search for the first ld in PATH. |
| 7775 | with_gnu_ld=unknown |
| 7776 | ;; |
| 7777 | esac |
| 7778 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7780 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7781 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7783 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7784 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7785 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7786 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7787 | else |
| 7788 | if test -z "$LD"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7789 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7790 | for ac_dir in $PATH; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7791 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7792 | test -z "$ac_dir" && ac_dir=. |
| 7793 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7794 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7795 | # Check to see if the program is GNU ld. I'd rather use --version, |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7796 | # but apparently some variants of GNU ld only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7797 | # Break only if it was the GNU/non-GNU ld that we prefer. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7798 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7799 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7800 | test "$with_gnu_ld" != no && break |
| 7801 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7802 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7803 | test "$with_gnu_ld" != yes && break |
| 7804 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7805 | esac |
| 7806 | fi |
| 7807 | done |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7808 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7809 | else |
| 7810 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7811 | fi |
| 7812 | fi |
| 7813 | |
| 7814 | LD="$acl_cv_path_LD" |
| 7815 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7817 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7818 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7820 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7821 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7822 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7824 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7825 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7826 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7827 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7828 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7829 | case `$LD -v 2>&1 </dev/null` in |
| 7830 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7831 | acl_cv_prog_gnu_ld=yes |
| 7832 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7833 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7834 | acl_cv_prog_gnu_ld=no |
| 7835 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7836 | esac |
| 7837 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7839 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7840 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7841 | |
| 7842 | |
| 7843 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7844 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7846 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 7847 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7848 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7849 | else |
| 7850 | |
| 7851 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7852 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7853 | . ./conftest.sh |
| 7854 | rm -f ./conftest.sh |
| 7855 | acl_cv_rpath=done |
| 7856 | |
| 7857 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7859 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7860 | wl="$acl_cv_wl" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7861 | acl_libext="$acl_cv_libext" |
| 7862 | acl_shlibext="$acl_cv_shlibext" |
| 7863 | acl_libname_spec="$acl_cv_libname_spec" |
| 7864 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 7865 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7866 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7867 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 7868 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7869 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7870 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7871 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7872 | else |
| 7873 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7874 | fi |
| 7875 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7876 | |
| 7877 | |
| 7878 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7879 | acl_libdirstem=lib |
| 7880 | acl_libdirstem2= |
| 7881 | case "$host_os" in |
| 7882 | solaris*) |
| 7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 7884 | $as_echo_n "checking for 64-bit host... " >&6; } |
| 7885 | if ${gl_cv_solaris_64bit+:} false; then : |
| 7886 | $as_echo_n "(cached) " >&6 |
| 7887 | else |
| 7888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7889 | /* end confdefs.h. */ |
| 7890 | |
| 7891 | #ifdef _LP64 |
| 7892 | sixtyfour bits |
| 7893 | #endif |
| 7894 | |
| 7895 | _ACEOF |
| 7896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7897 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
| 7898 | gl_cv_solaris_64bit=yes |
| 7899 | else |
| 7900 | gl_cv_solaris_64bit=no |
| 7901 | fi |
| 7902 | rm -f conftest* |
| 7903 | |
| 7904 | |
| 7905 | fi |
| 7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 7907 | $as_echo "$gl_cv_solaris_64bit" >&6; } |
| 7908 | if test $gl_cv_solaris_64bit = yes; then |
| 7909 | acl_libdirstem=lib/64 |
| 7910 | case "$host_cpu" in |
| 7911 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 7912 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 7913 | esac |
| 7914 | fi |
| 7915 | ;; |
| 7916 | *) |
| 7917 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 7918 | if test -n "$searchpath"; then |
| 7919 | acl_save_IFS="${IFS= }"; IFS=":" |
| 7920 | for searchdir in $searchpath; do |
| 7921 | if test -d "$searchdir"; then |
| 7922 | case "$searchdir" in |
| 7923 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 7924 | */../ | */.. ) |
| 7925 | # Better ignore directories of this form. They are misleading. |
| 7926 | ;; |
| 7927 | *) searchdir=`cd "$searchdir" && pwd` |
| 7928 | case "$searchdir" in |
| 7929 | */lib64 ) acl_libdirstem=lib64 ;; |
| 7930 | esac ;; |
| 7931 | esac |
| 7932 | fi |
| 7933 | done |
| 7934 | IFS="$acl_save_IFS" |
| 7935 | fi |
| 7936 | ;; |
| 7937 | esac |
| 7938 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 7939 | |
| 7940 | |
| 7941 | |
| 7942 | gl_threads_api=none |
| 7943 | LIBTHREAD= |
| 7944 | LTLIBTHREAD= |
| 7945 | LIBMULTITHREAD= |
| 7946 | LTLIBMULTITHREAD= |
| 7947 | if test "$gl_use_threads" != no; then |
| 7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 7949 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } |
| 7950 | if ${gl_cv_have_weak+:} false; then : |
| 7951 | $as_echo_n "(cached) " >&6 |
| 7952 | else |
| 7953 | gl_cv_have_weak=no |
| 7954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7955 | /* end confdefs.h. */ |
| 7956 | extern void xyzzy (); |
| 7957 | #pragma weak xyzzy |
| 7958 | int |
| 7959 | main () |
| 7960 | { |
| 7961 | xyzzy(); |
| 7962 | ; |
| 7963 | return 0; |
| 7964 | } |
| 7965 | _ACEOF |
| 7966 | if ac_fn_c_try_link "$LINENO"; then : |
| 7967 | gl_cv_have_weak=maybe |
| 7968 | fi |
| 7969 | rm -f core conftest.err conftest.$ac_objext \ |
| 7970 | conftest$ac_exeext conftest.$ac_ext |
| 7971 | if test $gl_cv_have_weak = maybe; then |
| 7972 | if test "$cross_compiling" = yes; then : |
| 7973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7974 | /* end confdefs.h. */ |
| 7975 | #ifdef __ELF__ |
| 7976 | Extensible Linking Format |
| 7977 | #endif |
| 7978 | |
| 7979 | _ACEOF |
| 7980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7981 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : |
| 7982 | gl_cv_have_weak="guessing yes" |
| 7983 | else |
| 7984 | gl_cv_have_weak="guessing no" |
| 7985 | fi |
| 7986 | rm -f conftest* |
| 7987 | |
| 7988 | |
| 7989 | else |
| 7990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7991 | /* end confdefs.h. */ |
| 7992 | |
| 7993 | #include <stdio.h> |
| 7994 | #pragma weak fputs |
| 7995 | int main () |
| 7996 | { |
| 7997 | return (fputs == NULL); |
| 7998 | } |
| 7999 | _ACEOF |
| 8000 | if ac_fn_c_try_run "$LINENO"; then : |
| 8001 | gl_cv_have_weak=yes |
| 8002 | else |
| 8003 | gl_cv_have_weak=no |
| 8004 | fi |
| 8005 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8006 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8007 | fi |
| 8008 | |
| 8009 | fi |
| 8010 | |
| 8011 | fi |
| 8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 8013 | $as_echo "$gl_cv_have_weak" >&6; } |
| 8014 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 8015 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 8016 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. |
| 8017 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 8018 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 8019 | gl_have_pthread_h=yes |
| 8020 | else |
| 8021 | gl_have_pthread_h=no |
| 8022 | fi |
| 8023 | |
| 8024 | |
| 8025 | if test "$gl_have_pthread_h" = yes; then |
| 8026 | # Other possible tests: |
| 8027 | # -lpthreads (FSU threads, PCthreads) |
| 8028 | # -lgthreads |
| 8029 | gl_have_pthread= |
| 8030 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 8031 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 8032 | # the second one only in libpthread, and lock.c needs it. |
| 8033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8034 | /* end confdefs.h. */ |
| 8035 | #include <pthread.h> |
| 8036 | int |
| 8037 | main () |
| 8038 | { |
| 8039 | pthread_mutex_lock((pthread_mutex_t*)0); |
| 8040 | pthread_mutexattr_init((pthread_mutexattr_t*)0); |
| 8041 | ; |
| 8042 | return 0; |
| 8043 | } |
| 8044 | _ACEOF |
| 8045 | if ac_fn_c_try_link "$LINENO"; then : |
| 8046 | gl_have_pthread=yes |
| 8047 | fi |
| 8048 | rm -f core conftest.err conftest.$ac_objext \ |
| 8049 | conftest$ac_exeext conftest.$ac_ext |
| 8050 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 8051 | # since it is defined as a macro on OSF/1.) |
| 8052 | if test -n "$gl_have_pthread"; then |
| 8053 | # The program links fine without libpthread. But it may actually |
| 8054 | # need to link with libpthread in order to create multiple threads. |
| 8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 8056 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 8057 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 8058 | $as_echo_n "(cached) " >&6 |
| 8059 | else |
| 8060 | ac_check_lib_save_LIBS=$LIBS |
| 8061 | LIBS="-lpthread $LIBS" |
| 8062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8063 | /* end confdefs.h. */ |
| 8064 | |
| 8065 | /* Override any GCC internal prototype to avoid an error. |
| 8066 | Use char because int might match the return type of a GCC |
| 8067 | builtin and then its argument prototype would still apply. */ |
| 8068 | #ifdef __cplusplus |
| 8069 | extern "C" |
| 8070 | #endif |
| 8071 | char pthread_kill (); |
| 8072 | int |
| 8073 | main () |
| 8074 | { |
| 8075 | return pthread_kill (); |
| 8076 | ; |
| 8077 | return 0; |
| 8078 | } |
| 8079 | _ACEOF |
| 8080 | if ac_fn_c_try_link "$LINENO"; then : |
| 8081 | ac_cv_lib_pthread_pthread_kill=yes |
| 8082 | else |
| 8083 | ac_cv_lib_pthread_pthread_kill=no |
| 8084 | fi |
| 8085 | rm -f core conftest.err conftest.$ac_objext \ |
| 8086 | conftest$ac_exeext conftest.$ac_ext |
| 8087 | LIBS=$ac_check_lib_save_LIBS |
| 8088 | fi |
| 8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 8090 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 8091 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 8092 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 8093 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 8094 | # Therefore pthread_in_use() needs to actually try to create a |
| 8095 | # thread: pthread_create from libc will fail, whereas |
| 8096 | # pthread_create will actually create a thread. |
| 8097 | case "$host_os" in |
| 8098 | solaris* | hpux*) |
| 8099 | |
| 8100 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 8101 | |
| 8102 | esac |
| 8103 | |
| 8104 | fi |
| 8105 | |
| 8106 | else |
| 8107 | # Some library is needed. Try libpthread and libc_r. |
| 8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 8109 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 8110 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 8111 | $as_echo_n "(cached) " >&6 |
| 8112 | else |
| 8113 | ac_check_lib_save_LIBS=$LIBS |
| 8114 | LIBS="-lpthread $LIBS" |
| 8115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8116 | /* end confdefs.h. */ |
| 8117 | |
| 8118 | /* Override any GCC internal prototype to avoid an error. |
| 8119 | Use char because int might match the return type of a GCC |
| 8120 | builtin and then its argument prototype would still apply. */ |
| 8121 | #ifdef __cplusplus |
| 8122 | extern "C" |
| 8123 | #endif |
| 8124 | char pthread_kill (); |
| 8125 | int |
| 8126 | main () |
| 8127 | { |
| 8128 | return pthread_kill (); |
| 8129 | ; |
| 8130 | return 0; |
| 8131 | } |
| 8132 | _ACEOF |
| 8133 | if ac_fn_c_try_link "$LINENO"; then : |
| 8134 | ac_cv_lib_pthread_pthread_kill=yes |
| 8135 | else |
| 8136 | ac_cv_lib_pthread_pthread_kill=no |
| 8137 | fi |
| 8138 | rm -f core conftest.err conftest.$ac_objext \ |
| 8139 | conftest$ac_exeext conftest.$ac_ext |
| 8140 | LIBS=$ac_check_lib_save_LIBS |
| 8141 | fi |
| 8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 8143 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 8144 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 8145 | gl_have_pthread=yes |
| 8146 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread |
| 8147 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 8148 | fi |
| 8149 | |
| 8150 | if test -z "$gl_have_pthread"; then |
| 8151 | # For FreeBSD 4. |
| 8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 8153 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } |
| 8154 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : |
| 8155 | $as_echo_n "(cached) " >&6 |
| 8156 | else |
| 8157 | ac_check_lib_save_LIBS=$LIBS |
| 8158 | LIBS="-lc_r $LIBS" |
| 8159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8160 | /* end confdefs.h. */ |
| 8161 | |
| 8162 | /* Override any GCC internal prototype to avoid an error. |
| 8163 | Use char because int might match the return type of a GCC |
| 8164 | builtin and then its argument prototype would still apply. */ |
| 8165 | #ifdef __cplusplus |
| 8166 | extern "C" |
| 8167 | #endif |
| 8168 | char pthread_kill (); |
| 8169 | int |
| 8170 | main () |
| 8171 | { |
| 8172 | return pthread_kill (); |
| 8173 | ; |
| 8174 | return 0; |
| 8175 | } |
| 8176 | _ACEOF |
| 8177 | if ac_fn_c_try_link "$LINENO"; then : |
| 8178 | ac_cv_lib_c_r_pthread_kill=yes |
| 8179 | else |
| 8180 | ac_cv_lib_c_r_pthread_kill=no |
| 8181 | fi |
| 8182 | rm -f core conftest.err conftest.$ac_objext \ |
| 8183 | conftest$ac_exeext conftest.$ac_ext |
| 8184 | LIBS=$ac_check_lib_save_LIBS |
| 8185 | fi |
| 8186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 8187 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 8188 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : |
| 8189 | gl_have_pthread=yes |
| 8190 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r |
| 8191 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r |
| 8192 | fi |
| 8193 | |
| 8194 | fi |
| 8195 | fi |
| 8196 | if test -n "$gl_have_pthread"; then |
| 8197 | gl_threads_api=posix |
| 8198 | |
| 8199 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 8200 | |
| 8201 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8202 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8203 | |
| 8204 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 8205 | |
| 8206 | LIBTHREAD= |
| 8207 | LTLIBTHREAD= |
| 8208 | fi |
| 8209 | fi |
| 8210 | fi |
| 8211 | fi |
| 8212 | fi |
| 8213 | if test -z "$gl_have_pthread"; then |
| 8214 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then |
| 8215 | gl_have_solaristhread= |
| 8216 | gl_save_LIBS="$LIBS" |
| 8217 | LIBS="$LIBS -lthread" |
| 8218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8219 | /* end confdefs.h. */ |
| 8220 | |
| 8221 | #include <thread.h> |
| 8222 | #include <synch.h> |
| 8223 | |
| 8224 | int |
| 8225 | main () |
| 8226 | { |
| 8227 | thr_self(); |
| 8228 | ; |
| 8229 | return 0; |
| 8230 | } |
| 8231 | _ACEOF |
| 8232 | if ac_fn_c_try_link "$LINENO"; then : |
| 8233 | gl_have_solaristhread=yes |
| 8234 | fi |
| 8235 | rm -f core conftest.err conftest.$ac_objext \ |
| 8236 | conftest$ac_exeext conftest.$ac_ext |
| 8237 | LIBS="$gl_save_LIBS" |
| 8238 | if test -n "$gl_have_solaristhread"; then |
| 8239 | gl_threads_api=solaris |
| 8240 | LIBTHREAD=-lthread |
| 8241 | LTLIBTHREAD=-lthread |
| 8242 | LIBMULTITHREAD="$LIBTHREAD" |
| 8243 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8244 | |
| 8245 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h |
| 8246 | |
| 8247 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8248 | |
| 8249 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h |
| 8250 | |
| 8251 | LIBTHREAD= |
| 8252 | LTLIBTHREAD= |
| 8253 | fi |
| 8254 | fi |
| 8255 | fi |
| 8256 | fi |
| 8257 | if test "$gl_use_threads" = pth; then |
| 8258 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 8259 | |
| 8260 | |
| 8261 | |
| 8262 | |
| 8263 | |
| 8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
| 8265 | $as_echo_n "checking how to link with libpth... " >&6; } |
| 8266 | if ${ac_cv_libpth_libs+:} false; then : |
| 8267 | $as_echo_n "(cached) " >&6 |
| 8268 | else |
| 8269 | |
| 8270 | |
| 8271 | |
| 8272 | |
| 8273 | |
| 8274 | |
| 8275 | |
| 8276 | |
| 8277 | use_additional=yes |
| 8278 | |
| 8279 | acl_save_prefix="$prefix" |
| 8280 | prefix="$acl_final_prefix" |
| 8281 | acl_save_exec_prefix="$exec_prefix" |
| 8282 | exec_prefix="$acl_final_exec_prefix" |
| 8283 | |
| 8284 | eval additional_includedir=\"$includedir\" |
| 8285 | eval additional_libdir=\"$libdir\" |
| 8286 | |
| 8287 | exec_prefix="$acl_save_exec_prefix" |
| 8288 | prefix="$acl_save_prefix" |
| 8289 | |
| 8290 | |
| 8291 | # Check whether --with-libpth-prefix was given. |
| 8292 | if test "${with_libpth_prefix+set}" = set; then : |
| 8293 | withval=$with_libpth_prefix; |
| 8294 | if test "X$withval" = "Xno"; then |
| 8295 | use_additional=no |
| 8296 | else |
| 8297 | if test "X$withval" = "X"; then |
| 8298 | |
| 8299 | acl_save_prefix="$prefix" |
| 8300 | prefix="$acl_final_prefix" |
| 8301 | acl_save_exec_prefix="$exec_prefix" |
| 8302 | exec_prefix="$acl_final_exec_prefix" |
| 8303 | |
| 8304 | eval additional_includedir=\"$includedir\" |
| 8305 | eval additional_libdir=\"$libdir\" |
| 8306 | |
| 8307 | exec_prefix="$acl_save_exec_prefix" |
| 8308 | prefix="$acl_save_prefix" |
| 8309 | |
| 8310 | else |
| 8311 | additional_includedir="$withval/include" |
| 8312 | additional_libdir="$withval/$acl_libdirstem" |
| 8313 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8314 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8315 | additional_libdir="$withval/$acl_libdirstem2" |
| 8316 | fi |
| 8317 | fi |
| 8318 | fi |
| 8319 | |
| 8320 | fi |
| 8321 | |
| 8322 | LIBPTH= |
| 8323 | LTLIBPTH= |
| 8324 | INCPTH= |
| 8325 | LIBPTH_PREFIX= |
| 8326 | HAVE_LIBPTH= |
| 8327 | rpathdirs= |
| 8328 | ltrpathdirs= |
| 8329 | names_already_handled= |
| 8330 | names_next_round='pth ' |
| 8331 | while test -n "$names_next_round"; do |
| 8332 | names_this_round="$names_next_round" |
| 8333 | names_next_round= |
| 8334 | for name in $names_this_round; do |
| 8335 | already_handled= |
| 8336 | for n in $names_already_handled; do |
| 8337 | if test "$n" = "$name"; then |
| 8338 | already_handled=yes |
| 8339 | break |
| 8340 | fi |
| 8341 | done |
| 8342 | if test -z "$already_handled"; then |
| 8343 | names_already_handled="$names_already_handled $name" |
| 8344 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 8345 | eval value=\"\$HAVE_LIB$uppername\" |
| 8346 | if test -n "$value"; then |
| 8347 | if test "$value" = yes; then |
| 8348 | eval value=\"\$LIB$uppername\" |
| 8349 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
| 8350 | eval value=\"\$LTLIB$uppername\" |
| 8351 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
| 8352 | else |
| 8353 | : |
| 8354 | fi |
| 8355 | else |
| 8356 | found_dir= |
| 8357 | found_la= |
| 8358 | found_so= |
| 8359 | found_a= |
| 8360 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8361 | if test -n "$acl_shlibext"; then |
| 8362 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8363 | else |
| 8364 | shrext= |
| 8365 | fi |
| 8366 | if test $use_additional = yes; then |
| 8367 | dir="$additional_libdir" |
| 8368 | if test -n "$acl_shlibext"; then |
| 8369 | if test -f "$dir/$libname$shrext"; then |
| 8370 | found_dir="$dir" |
| 8371 | found_so="$dir/$libname$shrext" |
| 8372 | else |
| 8373 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8374 | ver=`(cd "$dir" && \ |
| 8375 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8376 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8377 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8378 | | sed 1q ) 2>/dev/null` |
| 8379 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8380 | found_dir="$dir" |
| 8381 | found_so="$dir/$libname$shrext.$ver" |
| 8382 | fi |
| 8383 | else |
| 8384 | eval library_names=\"$acl_library_names_spec\" |
| 8385 | for f in $library_names; do |
| 8386 | if test -f "$dir/$f"; then |
| 8387 | found_dir="$dir" |
| 8388 | found_so="$dir/$f" |
| 8389 | break |
| 8390 | fi |
| 8391 | done |
| 8392 | fi |
| 8393 | fi |
| 8394 | fi |
| 8395 | if test "X$found_dir" = "X"; then |
| 8396 | if test -f "$dir/$libname.$acl_libext"; then |
| 8397 | found_dir="$dir" |
| 8398 | found_a="$dir/$libname.$acl_libext" |
| 8399 | fi |
| 8400 | fi |
| 8401 | if test "X$found_dir" != "X"; then |
| 8402 | if test -f "$dir/$libname.la"; then |
| 8403 | found_la="$dir/$libname.la" |
| 8404 | fi |
| 8405 | fi |
| 8406 | fi |
| 8407 | if test "X$found_dir" = "X"; then |
| 8408 | for x in $LDFLAGS $LTLIBPTH; do |
| 8409 | |
| 8410 | acl_save_prefix="$prefix" |
| 8411 | prefix="$acl_final_prefix" |
| 8412 | acl_save_exec_prefix="$exec_prefix" |
| 8413 | exec_prefix="$acl_final_exec_prefix" |
| 8414 | eval x=\"$x\" |
| 8415 | exec_prefix="$acl_save_exec_prefix" |
| 8416 | prefix="$acl_save_prefix" |
| 8417 | |
| 8418 | case "$x" in |
| 8419 | -L*) |
| 8420 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8421 | if test -n "$acl_shlibext"; then |
| 8422 | if test -f "$dir/$libname$shrext"; then |
| 8423 | found_dir="$dir" |
| 8424 | found_so="$dir/$libname$shrext" |
| 8425 | else |
| 8426 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8427 | ver=`(cd "$dir" && \ |
| 8428 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8429 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8430 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8431 | | sed 1q ) 2>/dev/null` |
| 8432 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8433 | found_dir="$dir" |
| 8434 | found_so="$dir/$libname$shrext.$ver" |
| 8435 | fi |
| 8436 | else |
| 8437 | eval library_names=\"$acl_library_names_spec\" |
| 8438 | for f in $library_names; do |
| 8439 | if test -f "$dir/$f"; then |
| 8440 | found_dir="$dir" |
| 8441 | found_so="$dir/$f" |
| 8442 | break |
| 8443 | fi |
| 8444 | done |
| 8445 | fi |
| 8446 | fi |
| 8447 | fi |
| 8448 | if test "X$found_dir" = "X"; then |
| 8449 | if test -f "$dir/$libname.$acl_libext"; then |
| 8450 | found_dir="$dir" |
| 8451 | found_a="$dir/$libname.$acl_libext" |
| 8452 | fi |
| 8453 | fi |
| 8454 | if test "X$found_dir" != "X"; then |
| 8455 | if test -f "$dir/$libname.la"; then |
| 8456 | found_la="$dir/$libname.la" |
| 8457 | fi |
| 8458 | fi |
| 8459 | ;; |
| 8460 | esac |
| 8461 | if test "X$found_dir" != "X"; then |
| 8462 | break |
| 8463 | fi |
| 8464 | done |
| 8465 | fi |
| 8466 | if test "X$found_dir" != "X"; then |
| 8467 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
| 8468 | if test "X$found_so" != "X"; then |
| 8469 | if test "$enable_rpath" = no \ |
| 8470 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8471 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 8472 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8473 | else |
| 8474 | haveit= |
| 8475 | for x in $ltrpathdirs; do |
| 8476 | if test "X$x" = "X$found_dir"; then |
| 8477 | haveit=yes |
| 8478 | break |
| 8479 | fi |
| 8480 | done |
| 8481 | if test -z "$haveit"; then |
| 8482 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8483 | fi |
| 8484 | if test "$acl_hardcode_direct" = yes; then |
| 8485 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8486 | else |
| 8487 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 8488 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8489 | haveit= |
| 8490 | for x in $rpathdirs; do |
| 8491 | if test "X$x" = "X$found_dir"; then |
| 8492 | haveit=yes |
| 8493 | break |
| 8494 | fi |
| 8495 | done |
| 8496 | if test -z "$haveit"; then |
| 8497 | rpathdirs="$rpathdirs $found_dir" |
| 8498 | fi |
| 8499 | else |
| 8500 | haveit= |
| 8501 | for x in $LDFLAGS $LIBPTH; do |
| 8502 | |
| 8503 | acl_save_prefix="$prefix" |
| 8504 | prefix="$acl_final_prefix" |
| 8505 | acl_save_exec_prefix="$exec_prefix" |
| 8506 | exec_prefix="$acl_final_exec_prefix" |
| 8507 | eval x=\"$x\" |
| 8508 | exec_prefix="$acl_save_exec_prefix" |
| 8509 | prefix="$acl_save_prefix" |
| 8510 | |
| 8511 | if test "X$x" = "X-L$found_dir"; then |
| 8512 | haveit=yes |
| 8513 | break |
| 8514 | fi |
| 8515 | done |
| 8516 | if test -z "$haveit"; then |
| 8517 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
| 8518 | fi |
| 8519 | if test "$acl_hardcode_minus_L" != no; then |
| 8520 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8521 | else |
| 8522 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8523 | fi |
| 8524 | fi |
| 8525 | fi |
| 8526 | fi |
| 8527 | else |
| 8528 | if test "X$found_a" != "X"; then |
| 8529 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
| 8530 | else |
| 8531 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
| 8532 | fi |
| 8533 | fi |
| 8534 | additional_includedir= |
| 8535 | case "$found_dir" in |
| 8536 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8537 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8538 | if test "$name" = 'pth'; then |
| 8539 | LIBPTH_PREFIX="$basedir" |
| 8540 | fi |
| 8541 | additional_includedir="$basedir/include" |
| 8542 | ;; |
| 8543 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8544 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 8545 | if test "$name" = 'pth'; then |
| 8546 | LIBPTH_PREFIX="$basedir" |
| 8547 | fi |
| 8548 | additional_includedir="$basedir/include" |
| 8549 | ;; |
| 8550 | esac |
| 8551 | if test "X$additional_includedir" != "X"; then |
| 8552 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8553 | haveit= |
| 8554 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8555 | if test -n "$GCC"; then |
| 8556 | case $host_os in |
| 8557 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8558 | esac |
| 8559 | fi |
| 8560 | fi |
| 8561 | if test -z "$haveit"; then |
| 8562 | for x in $CPPFLAGS $INCPTH; do |
| 8563 | |
| 8564 | acl_save_prefix="$prefix" |
| 8565 | prefix="$acl_final_prefix" |
| 8566 | acl_save_exec_prefix="$exec_prefix" |
| 8567 | exec_prefix="$acl_final_exec_prefix" |
| 8568 | eval x=\"$x\" |
| 8569 | exec_prefix="$acl_save_exec_prefix" |
| 8570 | prefix="$acl_save_prefix" |
| 8571 | |
| 8572 | if test "X$x" = "X-I$additional_includedir"; then |
| 8573 | haveit=yes |
| 8574 | break |
| 8575 | fi |
| 8576 | done |
| 8577 | if test -z "$haveit"; then |
| 8578 | if test -d "$additional_includedir"; then |
| 8579 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
| 8580 | fi |
| 8581 | fi |
| 8582 | fi |
| 8583 | fi |
| 8584 | fi |
| 8585 | if test -n "$found_la"; then |
| 8586 | save_libdir="$libdir" |
| 8587 | case "$found_la" in |
| 8588 | */* | *\\*) . "$found_la" ;; |
| 8589 | *) . "./$found_la" ;; |
| 8590 | esac |
| 8591 | libdir="$save_libdir" |
| 8592 | for dep in $dependency_libs; do |
| 8593 | case "$dep" in |
| 8594 | -L*) |
| 8595 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8596 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 8597 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 8598 | haveit= |
| 8599 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 8600 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 8601 | if test -n "$GCC"; then |
| 8602 | case $host_os in |
| 8603 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8604 | esac |
| 8605 | fi |
| 8606 | fi |
| 8607 | if test -z "$haveit"; then |
| 8608 | haveit= |
| 8609 | for x in $LDFLAGS $LIBPTH; do |
| 8610 | |
| 8611 | acl_save_prefix="$prefix" |
| 8612 | prefix="$acl_final_prefix" |
| 8613 | acl_save_exec_prefix="$exec_prefix" |
| 8614 | exec_prefix="$acl_final_exec_prefix" |
| 8615 | eval x=\"$x\" |
| 8616 | exec_prefix="$acl_save_exec_prefix" |
| 8617 | prefix="$acl_save_prefix" |
| 8618 | |
| 8619 | if test "X$x" = "X-L$additional_libdir"; then |
| 8620 | haveit=yes |
| 8621 | break |
| 8622 | fi |
| 8623 | done |
| 8624 | if test -z "$haveit"; then |
| 8625 | if test -d "$additional_libdir"; then |
| 8626 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
| 8627 | fi |
| 8628 | fi |
| 8629 | haveit= |
| 8630 | for x in $LDFLAGS $LTLIBPTH; do |
| 8631 | |
| 8632 | acl_save_prefix="$prefix" |
| 8633 | prefix="$acl_final_prefix" |
| 8634 | acl_save_exec_prefix="$exec_prefix" |
| 8635 | exec_prefix="$acl_final_exec_prefix" |
| 8636 | eval x=\"$x\" |
| 8637 | exec_prefix="$acl_save_exec_prefix" |
| 8638 | prefix="$acl_save_prefix" |
| 8639 | |
| 8640 | if test "X$x" = "X-L$additional_libdir"; then |
| 8641 | haveit=yes |
| 8642 | break |
| 8643 | fi |
| 8644 | done |
| 8645 | if test -z "$haveit"; then |
| 8646 | if test -d "$additional_libdir"; then |
| 8647 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
| 8648 | fi |
| 8649 | fi |
| 8650 | fi |
| 8651 | fi |
| 8652 | ;; |
| 8653 | -R*) |
| 8654 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8655 | if test "$enable_rpath" != no; then |
| 8656 | haveit= |
| 8657 | for x in $rpathdirs; do |
| 8658 | if test "X$x" = "X$dir"; then |
| 8659 | haveit=yes |
| 8660 | break |
| 8661 | fi |
| 8662 | done |
| 8663 | if test -z "$haveit"; then |
| 8664 | rpathdirs="$rpathdirs $dir" |
| 8665 | fi |
| 8666 | haveit= |
| 8667 | for x in $ltrpathdirs; do |
| 8668 | if test "X$x" = "X$dir"; then |
| 8669 | haveit=yes |
| 8670 | break |
| 8671 | fi |
| 8672 | done |
| 8673 | if test -z "$haveit"; then |
| 8674 | ltrpathdirs="$ltrpathdirs $dir" |
| 8675 | fi |
| 8676 | fi |
| 8677 | ;; |
| 8678 | -l*) |
| 8679 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8680 | ;; |
| 8681 | *.la) |
| 8682 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8683 | ;; |
| 8684 | *) |
| 8685 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
| 8686 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" |
| 8687 | ;; |
| 8688 | esac |
| 8689 | done |
| 8690 | fi |
| 8691 | else |
| 8692 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8693 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" |
| 8694 | fi |
| 8695 | fi |
| 8696 | fi |
| 8697 | done |
| 8698 | done |
| 8699 | if test "X$rpathdirs" != "X"; then |
| 8700 | if test -n "$acl_hardcode_libdir_separator"; then |
| 8701 | alldirs= |
| 8702 | for found_dir in $rpathdirs; do |
| 8703 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 8704 | done |
| 8705 | acl_save_libdir="$libdir" |
| 8706 | libdir="$alldirs" |
| 8707 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8708 | libdir="$acl_save_libdir" |
| 8709 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8710 | else |
| 8711 | for found_dir in $rpathdirs; do |
| 8712 | acl_save_libdir="$libdir" |
| 8713 | libdir="$found_dir" |
| 8714 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8715 | libdir="$acl_save_libdir" |
| 8716 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8717 | done |
| 8718 | fi |
| 8719 | fi |
| 8720 | if test "X$ltrpathdirs" != "X"; then |
| 8721 | for found_dir in $ltrpathdirs; do |
| 8722 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
| 8723 | done |
| 8724 | fi |
| 8725 | |
| 8726 | |
| 8727 | |
| 8728 | |
| 8729 | |
| 8730 | |
| 8731 | ac_cv_libpth_libs="$LIBPTH" |
| 8732 | ac_cv_libpth_ltlibs="$LTLIBPTH" |
| 8733 | ac_cv_libpth_cppflags="$INCPTH" |
| 8734 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" |
| 8735 | |
| 8736 | fi |
| 8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 |
| 8738 | $as_echo "$ac_cv_libpth_libs" >&6; } |
| 8739 | LIBPTH="$ac_cv_libpth_libs" |
| 8740 | LTLIBPTH="$ac_cv_libpth_ltlibs" |
| 8741 | INCPTH="$ac_cv_libpth_cppflags" |
| 8742 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" |
| 8743 | |
| 8744 | for element in $INCPTH; do |
| 8745 | haveit= |
| 8746 | for x in $CPPFLAGS; do |
| 8747 | |
| 8748 | acl_save_prefix="$prefix" |
| 8749 | prefix="$acl_final_prefix" |
| 8750 | acl_save_exec_prefix="$exec_prefix" |
| 8751 | exec_prefix="$acl_final_exec_prefix" |
| 8752 | eval x=\"$x\" |
| 8753 | exec_prefix="$acl_save_exec_prefix" |
| 8754 | prefix="$acl_save_prefix" |
| 8755 | |
| 8756 | if test "X$x" = "X$element"; then |
| 8757 | haveit=yes |
| 8758 | break |
| 8759 | fi |
| 8760 | done |
| 8761 | if test -z "$haveit"; then |
| 8762 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8763 | fi |
| 8764 | done |
| 8765 | |
| 8766 | |
| 8767 | |
| 8768 | |
| 8769 | HAVE_LIBPTH=yes |
| 8770 | |
| 8771 | |
| 8772 | |
| 8773 | gl_have_pth= |
| 8774 | gl_save_LIBS="$LIBS" |
| 8775 | LIBS="$LIBS $LIBPTH" |
| 8776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8777 | /* end confdefs.h. */ |
| 8778 | #include <pth.h> |
| 8779 | int |
| 8780 | main () |
| 8781 | { |
| 8782 | pth_self(); |
| 8783 | ; |
| 8784 | return 0; |
| 8785 | } |
| 8786 | _ACEOF |
| 8787 | if ac_fn_c_try_link "$LINENO"; then : |
| 8788 | gl_have_pth=yes |
| 8789 | fi |
| 8790 | rm -f core conftest.err conftest.$ac_objext \ |
| 8791 | conftest$ac_exeext conftest.$ac_ext |
| 8792 | LIBS="$gl_save_LIBS" |
| 8793 | if test -n "$gl_have_pth"; then |
| 8794 | gl_threads_api=pth |
| 8795 | LIBTHREAD="$LIBPTH" |
| 8796 | LTLIBTHREAD="$LTLIBPTH" |
| 8797 | LIBMULTITHREAD="$LIBTHREAD" |
| 8798 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8799 | |
| 8800 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h |
| 8801 | |
| 8802 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8803 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8804 | |
| 8805 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h |
| 8806 | |
| 8807 | LIBTHREAD= |
| 8808 | LTLIBTHREAD= |
| 8809 | fi |
| 8810 | fi |
| 8811 | else |
| 8812 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 8813 | fi |
| 8814 | fi |
| 8815 | if test -z "$gl_have_pthread"; then |
| 8816 | case "$gl_use_threads" in |
| 8817 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 8818 | if { case "$host_os" in |
| 8819 | mingw*) true;; |
| 8820 | *) false;; |
| 8821 | esac |
| 8822 | }; then |
| 8823 | gl_threads_api=windows |
| 8824 | |
| 8825 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 8826 | |
| 8827 | fi |
| 8828 | ;; |
| 8829 | esac |
| 8830 | fi |
| 8831 | fi |
| 8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 8833 | $as_echo_n "checking for multithread API to use... " >&6; } |
| 8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 8835 | $as_echo "$gl_threads_api" >&6; } |
| 8836 | |
| 8837 | |
| 8838 | |
| 8839 | |
| 8840 | |
| 8841 | |
| 8842 | |
| 8843 | |
| 8844 | |
| 8845 | |
| 8846 | |
| 8847 | if test "$gl_threads_api" = posix; then |
| 8848 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 8849 | # pthread_rwlock_* functions. |
| 8850 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 8851 | " |
| 8852 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : |
| 8853 | |
| 8854 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 8855 | |
| 8856 | fi |
| 8857 | |
| 8858 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 8859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8860 | /* end confdefs.h. */ |
| 8861 | |
| 8862 | #include <pthread.h> |
| 8863 | int |
| 8864 | main () |
| 8865 | { |
| 8866 | |
| 8867 | #if __FreeBSD__ == 4 |
| 8868 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 8869 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 8870 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 8871 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 8872 | #else |
| 8873 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 8874 | return !x; |
| 8875 | #endif |
| 8876 | |
| 8877 | ; |
| 8878 | return 0; |
| 8879 | } |
| 8880 | _ACEOF |
| 8881 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8882 | |
| 8883 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 8884 | |
| 8885 | fi |
| 8886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8887 | fi |
| 8888 | : |
| 8889 | |
| 8890 | |
| 8891 | |
| 8892 | |
| 8893 | |
| 8894 | |
| 8895 | |
| 8896 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8897 | |
| 8898 | |
| 8899 | |
| 8900 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8901 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8902 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8903 | acl_save_prefix="$prefix" |
| 8904 | prefix="$acl_final_prefix" |
| 8905 | acl_save_exec_prefix="$exec_prefix" |
| 8906 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8907 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8908 | eval additional_includedir=\"$includedir\" |
| 8909 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8910 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8911 | exec_prefix="$acl_save_exec_prefix" |
| 8912 | prefix="$acl_save_prefix" |
| 8913 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8915 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8916 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8917 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8918 | if test "X$withval" = "Xno"; then |
| 8919 | use_additional=no |
| 8920 | else |
| 8921 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8922 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8923 | acl_save_prefix="$prefix" |
| 8924 | prefix="$acl_final_prefix" |
| 8925 | acl_save_exec_prefix="$exec_prefix" |
| 8926 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8927 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8928 | eval additional_includedir=\"$includedir\" |
| 8929 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8930 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8931 | exec_prefix="$acl_save_exec_prefix" |
| 8932 | prefix="$acl_save_prefix" |
| 8933 | |
| 8934 | else |
| 8935 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8936 | additional_libdir="$withval/$acl_libdirstem" |
| 8937 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8938 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8939 | additional_libdir="$withval/$acl_libdirstem2" |
| 8940 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8941 | fi |
| 8942 | fi |
| 8943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8944 | fi |
| 8945 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8946 | LIBICONV= |
| 8947 | LTLIBICONV= |
| 8948 | INCICONV= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8949 | LIBICONV_PREFIX= |
| 8950 | HAVE_LIBICONV= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8951 | rpathdirs= |
| 8952 | ltrpathdirs= |
| 8953 | names_already_handled= |
| 8954 | names_next_round='iconv ' |
| 8955 | while test -n "$names_next_round"; do |
| 8956 | names_this_round="$names_next_round" |
| 8957 | names_next_round= |
| 8958 | for name in $names_this_round; do |
| 8959 | already_handled= |
| 8960 | for n in $names_already_handled; do |
| 8961 | if test "$n" = "$name"; then |
| 8962 | already_handled=yes |
| 8963 | break |
| 8964 | fi |
| 8965 | done |
| 8966 | if test -z "$already_handled"; then |
| 8967 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8968 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8969 | eval value=\"\$HAVE_LIB$uppername\" |
| 8970 | if test -n "$value"; then |
| 8971 | if test "$value" = yes; then |
| 8972 | eval value=\"\$LIB$uppername\" |
| 8973 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8974 | eval value=\"\$LTLIB$uppername\" |
| 8975 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8976 | else |
| 8977 | : |
| 8978 | fi |
| 8979 | else |
| 8980 | found_dir= |
| 8981 | found_la= |
| 8982 | found_so= |
| 8983 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8984 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8985 | if test -n "$acl_shlibext"; then |
| 8986 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8987 | else |
| 8988 | shrext= |
| 8989 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8990 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8991 | dir="$additional_libdir" |
| 8992 | if test -n "$acl_shlibext"; then |
| 8993 | if test -f "$dir/$libname$shrext"; then |
| 8994 | found_dir="$dir" |
| 8995 | found_so="$dir/$libname$shrext" |
| 8996 | else |
| 8997 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8998 | ver=`(cd "$dir" && \ |
| 8999 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 9000 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 9001 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 9002 | | sed 1q ) 2>/dev/null` |
| 9003 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 9004 | found_dir="$dir" |
| 9005 | found_so="$dir/$libname$shrext.$ver" |
| 9006 | fi |
| 9007 | else |
| 9008 | eval library_names=\"$acl_library_names_spec\" |
| 9009 | for f in $library_names; do |
| 9010 | if test -f "$dir/$f"; then |
| 9011 | found_dir="$dir" |
| 9012 | found_so="$dir/$f" |
| 9013 | break |
| 9014 | fi |
| 9015 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9016 | fi |
| 9017 | fi |
| 9018 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9019 | if test "X$found_dir" = "X"; then |
| 9020 | if test -f "$dir/$libname.$acl_libext"; then |
| 9021 | found_dir="$dir" |
| 9022 | found_a="$dir/$libname.$acl_libext" |
| 9023 | fi |
| 9024 | fi |
| 9025 | if test "X$found_dir" != "X"; then |
| 9026 | if test -f "$dir/$libname.la"; then |
| 9027 | found_la="$dir/$libname.la" |
| 9028 | fi |
| 9029 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9030 | fi |
| 9031 | if test "X$found_dir" = "X"; then |
| 9032 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9033 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9034 | acl_save_prefix="$prefix" |
| 9035 | prefix="$acl_final_prefix" |
| 9036 | acl_save_exec_prefix="$exec_prefix" |
| 9037 | exec_prefix="$acl_final_exec_prefix" |
| 9038 | eval x=\"$x\" |
| 9039 | exec_prefix="$acl_save_exec_prefix" |
| 9040 | prefix="$acl_save_prefix" |
| 9041 | |
| 9042 | case "$x" in |
| 9043 | -L*) |
| 9044 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9045 | if test -n "$acl_shlibext"; then |
| 9046 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9047 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9048 | found_so="$dir/$libname$shrext" |
| 9049 | else |
| 9050 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 9051 | ver=`(cd "$dir" && \ |
| 9052 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 9053 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 9054 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 9055 | | sed 1q ) 2>/dev/null` |
| 9056 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 9057 | found_dir="$dir" |
| 9058 | found_so="$dir/$libname$shrext.$ver" |
| 9059 | fi |
| 9060 | else |
| 9061 | eval library_names=\"$acl_library_names_spec\" |
| 9062 | for f in $library_names; do |
| 9063 | if test -f "$dir/$f"; then |
| 9064 | found_dir="$dir" |
| 9065 | found_so="$dir/$f" |
| 9066 | break |
| 9067 | fi |
| 9068 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9069 | fi |
| 9070 | fi |
| 9071 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9072 | if test "X$found_dir" = "X"; then |
| 9073 | if test -f "$dir/$libname.$acl_libext"; then |
| 9074 | found_dir="$dir" |
| 9075 | found_a="$dir/$libname.$acl_libext" |
| 9076 | fi |
| 9077 | fi |
| 9078 | if test "X$found_dir" != "X"; then |
| 9079 | if test -f "$dir/$libname.la"; then |
| 9080 | found_la="$dir/$libname.la" |
| 9081 | fi |
| 9082 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9083 | ;; |
| 9084 | esac |
| 9085 | if test "X$found_dir" != "X"; then |
| 9086 | break |
| 9087 | fi |
| 9088 | done |
| 9089 | fi |
| 9090 | if test "X$found_dir" != "X"; then |
| 9091 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 9092 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9093 | if test "$enable_rpath" = no \ |
| 9094 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 9095 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9096 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9097 | else |
| 9098 | haveit= |
| 9099 | for x in $ltrpathdirs; do |
| 9100 | if test "X$x" = "X$found_dir"; then |
| 9101 | haveit=yes |
| 9102 | break |
| 9103 | fi |
| 9104 | done |
| 9105 | if test -z "$haveit"; then |
| 9106 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9107 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9108 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9109 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9110 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9111 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9112 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9113 | haveit= |
| 9114 | for x in $rpathdirs; do |
| 9115 | if test "X$x" = "X$found_dir"; then |
| 9116 | haveit=yes |
| 9117 | break |
| 9118 | fi |
| 9119 | done |
| 9120 | if test -z "$haveit"; then |
| 9121 | rpathdirs="$rpathdirs $found_dir" |
| 9122 | fi |
| 9123 | else |
| 9124 | haveit= |
| 9125 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9126 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9127 | acl_save_prefix="$prefix" |
| 9128 | prefix="$acl_final_prefix" |
| 9129 | acl_save_exec_prefix="$exec_prefix" |
| 9130 | exec_prefix="$acl_final_exec_prefix" |
| 9131 | eval x=\"$x\" |
| 9132 | exec_prefix="$acl_save_exec_prefix" |
| 9133 | prefix="$acl_save_prefix" |
| 9134 | |
| 9135 | if test "X$x" = "X-L$found_dir"; then |
| 9136 | haveit=yes |
| 9137 | break |
| 9138 | fi |
| 9139 | done |
| 9140 | if test -z "$haveit"; then |
| 9141 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9142 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9143 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9144 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9145 | else |
| 9146 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9147 | fi |
| 9148 | fi |
| 9149 | fi |
| 9150 | fi |
| 9151 | else |
| 9152 | if test "X$found_a" != "X"; then |
| 9153 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9154 | else |
| 9155 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9156 | fi |
| 9157 | fi |
| 9158 | additional_includedir= |
| 9159 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9160 | */$acl_libdirstem | */$acl_libdirstem/) |
| 9161 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 9162 | if test "$name" = 'iconv'; then |
| 9163 | LIBICONV_PREFIX="$basedir" |
| 9164 | fi |
| 9165 | additional_includedir="$basedir/include" |
| 9166 | ;; |
| 9167 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 9168 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 9169 | if test "$name" = 'iconv'; then |
| 9170 | LIBICONV_PREFIX="$basedir" |
| 9171 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9172 | additional_includedir="$basedir/include" |
| 9173 | ;; |
| 9174 | esac |
| 9175 | if test "X$additional_includedir" != "X"; then |
| 9176 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9177 | haveit= |
| 9178 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9179 | if test -n "$GCC"; then |
| 9180 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9181 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9182 | esac |
| 9183 | fi |
| 9184 | fi |
| 9185 | if test -z "$haveit"; then |
| 9186 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9187 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9188 | acl_save_prefix="$prefix" |
| 9189 | prefix="$acl_final_prefix" |
| 9190 | acl_save_exec_prefix="$exec_prefix" |
| 9191 | exec_prefix="$acl_final_exec_prefix" |
| 9192 | eval x=\"$x\" |
| 9193 | exec_prefix="$acl_save_exec_prefix" |
| 9194 | prefix="$acl_save_prefix" |
| 9195 | |
| 9196 | if test "X$x" = "X-I$additional_includedir"; then |
| 9197 | haveit=yes |
| 9198 | break |
| 9199 | fi |
| 9200 | done |
| 9201 | if test -z "$haveit"; then |
| 9202 | if test -d "$additional_includedir"; then |
| 9203 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9204 | fi |
| 9205 | fi |
| 9206 | fi |
| 9207 | fi |
| 9208 | fi |
| 9209 | if test -n "$found_la"; then |
| 9210 | save_libdir="$libdir" |
| 9211 | case "$found_la" in |
| 9212 | */* | *\\*) . "$found_la" ;; |
| 9213 | *) . "./$found_la" ;; |
| 9214 | esac |
| 9215 | libdir="$save_libdir" |
| 9216 | for dep in $dependency_libs; do |
| 9217 | case "$dep" in |
| 9218 | -L*) |
| 9219 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9220 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 9221 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9222 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9223 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 9224 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9225 | if test -n "$GCC"; then |
| 9226 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9227 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9228 | esac |
| 9229 | fi |
| 9230 | fi |
| 9231 | if test -z "$haveit"; then |
| 9232 | haveit= |
| 9233 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9234 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9235 | acl_save_prefix="$prefix" |
| 9236 | prefix="$acl_final_prefix" |
| 9237 | acl_save_exec_prefix="$exec_prefix" |
| 9238 | exec_prefix="$acl_final_exec_prefix" |
| 9239 | eval x=\"$x\" |
| 9240 | exec_prefix="$acl_save_exec_prefix" |
| 9241 | prefix="$acl_save_prefix" |
| 9242 | |
| 9243 | if test "X$x" = "X-L$additional_libdir"; then |
| 9244 | haveit=yes |
| 9245 | break |
| 9246 | fi |
| 9247 | done |
| 9248 | if test -z "$haveit"; then |
| 9249 | if test -d "$additional_libdir"; then |
| 9250 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9251 | fi |
| 9252 | fi |
| 9253 | haveit= |
| 9254 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9255 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9256 | acl_save_prefix="$prefix" |
| 9257 | prefix="$acl_final_prefix" |
| 9258 | acl_save_exec_prefix="$exec_prefix" |
| 9259 | exec_prefix="$acl_final_exec_prefix" |
| 9260 | eval x=\"$x\" |
| 9261 | exec_prefix="$acl_save_exec_prefix" |
| 9262 | prefix="$acl_save_prefix" |
| 9263 | |
| 9264 | if test "X$x" = "X-L$additional_libdir"; then |
| 9265 | haveit=yes |
| 9266 | break |
| 9267 | fi |
| 9268 | done |
| 9269 | if test -z "$haveit"; then |
| 9270 | if test -d "$additional_libdir"; then |
| 9271 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9272 | fi |
| 9273 | fi |
| 9274 | fi |
| 9275 | fi |
| 9276 | ;; |
| 9277 | -R*) |
| 9278 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9279 | if test "$enable_rpath" != no; then |
| 9280 | haveit= |
| 9281 | for x in $rpathdirs; do |
| 9282 | if test "X$x" = "X$dir"; then |
| 9283 | haveit=yes |
| 9284 | break |
| 9285 | fi |
| 9286 | done |
| 9287 | if test -z "$haveit"; then |
| 9288 | rpathdirs="$rpathdirs $dir" |
| 9289 | fi |
| 9290 | haveit= |
| 9291 | for x in $ltrpathdirs; do |
| 9292 | if test "X$x" = "X$dir"; then |
| 9293 | haveit=yes |
| 9294 | break |
| 9295 | fi |
| 9296 | done |
| 9297 | if test -z "$haveit"; then |
| 9298 | ltrpathdirs="$ltrpathdirs $dir" |
| 9299 | fi |
| 9300 | fi |
| 9301 | ;; |
| 9302 | -l*) |
| 9303 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9304 | ;; |
| 9305 | *.la) |
| 9306 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9307 | ;; |
| 9308 | *) |
| 9309 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9310 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9311 | ;; |
| 9312 | esac |
| 9313 | done |
| 9314 | fi |
| 9315 | else |
| 9316 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9317 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9318 | fi |
| 9319 | fi |
| 9320 | fi |
| 9321 | done |
| 9322 | done |
| 9323 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9324 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9325 | alldirs= |
| 9326 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9327 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9328 | done |
| 9329 | acl_save_libdir="$libdir" |
| 9330 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9331 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9332 | libdir="$acl_save_libdir" |
| 9333 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9334 | else |
| 9335 | for found_dir in $rpathdirs; do |
| 9336 | acl_save_libdir="$libdir" |
| 9337 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9338 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9339 | libdir="$acl_save_libdir" |
| 9340 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9341 | done |
| 9342 | fi |
| 9343 | fi |
| 9344 | if test "X$ltrpathdirs" != "X"; then |
| 9345 | for found_dir in $ltrpathdirs; do |
| 9346 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9347 | done |
| 9348 | fi |
| 9349 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9350 | |
| 9351 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9352 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9353 | |
| 9354 | |
| 9355 | |
| 9356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9357 | |
| 9358 | |
| 9359 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9360 | |
| 9361 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9362 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9363 | for element in $INCICONV; do |
| 9364 | haveit= |
| 9365 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9366 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9367 | acl_save_prefix="$prefix" |
| 9368 | prefix="$acl_final_prefix" |
| 9369 | acl_save_exec_prefix="$exec_prefix" |
| 9370 | exec_prefix="$acl_final_exec_prefix" |
| 9371 | eval x=\"$x\" |
| 9372 | exec_prefix="$acl_save_exec_prefix" |
| 9373 | prefix="$acl_save_prefix" |
| 9374 | |
| 9375 | if test "X$x" = "X$element"; then |
| 9376 | haveit=yes |
| 9377 | break |
| 9378 | fi |
| 9379 | done |
| 9380 | if test -z "$haveit"; then |
| 9381 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9382 | fi |
| 9383 | done |
| 9384 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9385 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9387 | $as_echo_n "checking for iconv... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9388 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9389 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9390 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9391 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9392 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9393 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9395 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9396 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9397 | #include <stdlib.h> |
| 9398 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9400 | int |
| 9401 | main () |
| 9402 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9403 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9404 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9405 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9406 | ; |
| 9407 | return 0; |
| 9408 | } |
| 9409 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9410 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9411 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9412 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9413 | rm -f core conftest.err conftest.$ac_objext \ |
| 9414 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9415 | if test "$am_cv_func_iconv" != yes; then |
| 9416 | am_save_LIBS="$LIBS" |
| 9417 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9419 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9420 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9421 | #include <stdlib.h> |
| 9422 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9423 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9424 | int |
| 9425 | main () |
| 9426 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9427 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9428 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9429 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9430 | ; |
| 9431 | return 0; |
| 9432 | } |
| 9433 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9434 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9435 | am_cv_lib_iconv=yes |
| 9436 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9437 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9438 | rm -f core conftest.err conftest.$ac_objext \ |
| 9439 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9440 | LIBS="$am_save_LIBS" |
| 9441 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9442 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9443 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9445 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9446 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 9448 | $as_echo_n "checking for working iconv... " >&6; } |
| 9449 | if ${am_cv_func_iconv_works+:} false; then : |
| 9450 | $as_echo_n "(cached) " >&6 |
| 9451 | else |
| 9452 | |
| 9453 | am_save_LIBS="$LIBS" |
| 9454 | if test $am_cv_lib_iconv = yes; then |
| 9455 | LIBS="$LIBS $LIBICONV" |
| 9456 | fi |
| 9457 | if test "$cross_compiling" = yes; then : |
| 9458 | |
| 9459 | case "$host_os" in |
| 9460 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 9461 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 9462 | esac |
| 9463 | |
| 9464 | else |
| 9465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9466 | /* end confdefs.h. */ |
| 9467 | |
| 9468 | #include <iconv.h> |
| 9469 | #include <string.h> |
| 9470 | int main () |
| 9471 | { |
| 9472 | int result = 0; |
| 9473 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 9474 | returns. */ |
| 9475 | { |
| 9476 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 9477 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 9478 | { |
| 9479 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 9480 | char buf[10]; |
| 9481 | const char *inptr = input; |
| 9482 | size_t inbytesleft = strlen (input); |
| 9483 | char *outptr = buf; |
| 9484 | size_t outbytesleft = sizeof (buf); |
| 9485 | size_t res = iconv (cd_utf8_to_88591, |
| 9486 | (char **) &inptr, &inbytesleft, |
| 9487 | &outptr, &outbytesleft); |
| 9488 | if (res == 0) |
| 9489 | result |= 1; |
| 9490 | iconv_close (cd_utf8_to_88591); |
| 9491 | } |
| 9492 | } |
| 9493 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 9494 | successful returns. */ |
| 9495 | { |
| 9496 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 9497 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 9498 | { |
| 9499 | static const char input[] = "\263"; |
| 9500 | char buf[10]; |
| 9501 | const char *inptr = input; |
| 9502 | size_t inbytesleft = strlen (input); |
| 9503 | char *outptr = buf; |
| 9504 | size_t outbytesleft = sizeof (buf); |
| 9505 | size_t res = iconv (cd_ascii_to_88591, |
| 9506 | (char **) &inptr, &inbytesleft, |
| 9507 | &outptr, &outbytesleft); |
| 9508 | if (res == 0) |
| 9509 | result |= 2; |
| 9510 | iconv_close (cd_ascii_to_88591); |
| 9511 | } |
| 9512 | } |
| 9513 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 9514 | { |
| 9515 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 9516 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9517 | { |
| 9518 | static const char input[] = "\304"; |
| 9519 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 9520 | const char *inptr = input; |
| 9521 | size_t inbytesleft = 1; |
| 9522 | char *outptr = buf; |
| 9523 | size_t outbytesleft = 1; |
| 9524 | size_t res = iconv (cd_88591_to_utf8, |
| 9525 | (char **) &inptr, &inbytesleft, |
| 9526 | &outptr, &outbytesleft); |
| 9527 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 9528 | result |= 4; |
| 9529 | iconv_close (cd_88591_to_utf8); |
| 9530 | } |
| 9531 | } |
| 9532 | #if 0 /* This bug could be worked around by the caller. */ |
| 9533 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 9534 | { |
| 9535 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 9536 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9537 | { |
| 9538 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 9539 | char buf[50]; |
| 9540 | const char *inptr = input; |
| 9541 | size_t inbytesleft = strlen (input); |
| 9542 | char *outptr = buf; |
| 9543 | size_t outbytesleft = sizeof (buf); |
| 9544 | size_t res = iconv (cd_88591_to_utf8, |
| 9545 | (char **) &inptr, &inbytesleft, |
| 9546 | &outptr, &outbytesleft); |
| 9547 | if ((int)res > 0) |
| 9548 | result |= 8; |
| 9549 | iconv_close (cd_88591_to_utf8); |
| 9550 | } |
| 9551 | } |
| 9552 | #endif |
| 9553 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 9554 | provided. */ |
| 9555 | if (/* Try standardized names. */ |
| 9556 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 9557 | /* Try IRIX, OSF/1 names. */ |
| 9558 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 9559 | /* Try AIX names. */ |
| 9560 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 9561 | /* Try HP-UX names. */ |
| 9562 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 9563 | result |= 16; |
| 9564 | return result; |
| 9565 | } |
| 9566 | _ACEOF |
| 9567 | if ac_fn_c_try_run "$LINENO"; then : |
| 9568 | am_cv_func_iconv_works=yes |
| 9569 | else |
| 9570 | am_cv_func_iconv_works=no |
| 9571 | fi |
| 9572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9573 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9574 | fi |
| 9575 | |
| 9576 | LIBS="$am_save_LIBS" |
| 9577 | |
| 9578 | fi |
| 9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 9580 | $as_echo "$am_cv_func_iconv_works" >&6; } |
| 9581 | case "$am_cv_func_iconv_works" in |
| 9582 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 9583 | *) am_func_iconv=yes ;; |
| 9584 | esac |
| 9585 | else |
| 9586 | am_func_iconv=no am_cv_lib_iconv=no |
| 9587 | fi |
| 9588 | if test "$am_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9589 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9590 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9591 | |
| 9592 | fi |
| 9593 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9595 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9597 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9598 | else |
| 9599 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9600 | LIBICONV= |
| 9601 | LTLIBICONV= |
| 9602 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9603 | |
| 9604 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9605 | |
| 9606 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9608 | $as_echo_n "checking for iconv declaration... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9609 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9610 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9611 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9612 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9614 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9615 | |
| 9616 | #include <stdlib.h> |
| 9617 | #include <iconv.h> |
| 9618 | extern |
| 9619 | #ifdef __cplusplus |
| 9620 | "C" |
| 9621 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9622 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9623 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9624 | #else |
| 9625 | size_t iconv(); |
| 9626 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9627 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9628 | int |
| 9629 | main () |
| 9630 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9631 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9632 | ; |
| 9633 | return 0; |
| 9634 | } |
| 9635 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9636 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9637 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9638 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9639 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9642 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9643 | fi |
| 9644 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9645 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| 9647 | $am_cv_proto_iconv" >&5 |
| 9648 | $as_echo " |
| 9649 | $am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9650 | |
| 9651 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9652 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9653 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9654 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9655 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9656 | fi |
| 9657 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9658 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9659 | |
| 9660 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9662 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9663 | int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9664 | int |
| 9665 | main () |
| 9666 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9667 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9668 | ; |
| 9669 | return 0; |
| 9670 | } |
| 9671 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9672 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9673 | |
| 9674 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h |
| 9675 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9676 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9677 | rm -f core conftest.err conftest.$ac_objext \ |
| 9678 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9679 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9680 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h |
| 9681 | do : |
| 9682 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9683 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9684 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9685 | cat >>confdefs.h <<_ACEOF |
| 9686 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9687 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9688 | |
| 9689 | fi |
| 9690 | |
| 9691 | done |
| 9692 | |
| 9693 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ |
| 9694 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ |
| 9695 | argz_stringify argz_next __fsetlocking |
| 9696 | do : |
| 9697 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9698 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9699 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9700 | cat >>confdefs.h <<_ACEOF |
| 9701 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9702 | _ACEOF |
| 9703 | |
| 9704 | fi |
| 9705 | done |
| 9706 | |
| 9707 | |
| 9708 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> |
| 9709 | " |
| 9710 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
| 9711 | ac_have_decl=1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9712 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9713 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9714 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9715 | |
| 9716 | cat >>confdefs.h <<_ACEOF |
| 9717 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl |
| 9718 | _ACEOF |
| 9719 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> |
| 9720 | " |
| 9721 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
| 9722 | ac_have_decl=1 |
| 9723 | else |
| 9724 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9725 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9726 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9727 | cat >>confdefs.h <<_ACEOF |
| 9728 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl |
| 9729 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9730 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9731 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9732 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9733 | |
| 9734 | for ac_prog in bison |
| 9735 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9736 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9737 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9739 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9740 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9741 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9742 | else |
| 9743 | if test -n "$INTLBISON"; then |
| 9744 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9745 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9747 | for as_dir in $PATH |
| 9748 | do |
| 9749 | IFS=$as_save_IFS |
| 9750 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9751 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 9752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9753 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9755 | break 2 |
| 9756 | fi |
| 9757 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9758 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9759 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9760 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9761 | fi |
| 9762 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9763 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9764 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9766 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9767 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9769 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9770 | fi |
| 9771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9772 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9773 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9774 | done |
| 9775 | |
| 9776 | if test -z "$INTLBISON"; then |
| 9777 | ac_verc_fail=yes |
| 9778 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9780 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9781 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9782 | case $ac_prog_version in |
| 9783 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9784 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9785 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9786 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9787 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9789 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9790 | fi |
| 9791 | if test $ac_verc_fail = yes; then |
| 9792 | INTLBISON=: |
| 9793 | fi |
| 9794 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9795 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9796 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 9798 | $as_echo_n "checking for long long int... " >&6; } |
| 9799 | if ${ac_cv_type_long_long_int+:} false; then : |
| 9800 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9801 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9802 | ac_cv_type_long_long_int=yes |
| 9803 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 9804 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 9805 | if test $ac_cv_type_long_long_int = yes; then |
| 9806 | if test "$cross_compiling" = yes; then : |
| 9807 | : |
| 9808 | else |
| 9809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9810 | /* end confdefs.h. */ |
| 9811 | #include <limits.h> |
| 9812 | #ifndef LLONG_MAX |
| 9813 | # define HALF \ |
| 9814 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 9815 | # define LLONG_MAX (HALF - 1 + HALF) |
| 9816 | #endif |
| 9817 | int |
| 9818 | main () |
| 9819 | { |
| 9820 | long long int n = 1; |
| 9821 | int i; |
| 9822 | for (i = 0; ; i++) |
| 9823 | { |
| 9824 | long long int m = n << i; |
| 9825 | if (m >> i != n) |
| 9826 | return 1; |
| 9827 | if (LLONG_MAX / 2 < m) |
| 9828 | break; |
| 9829 | } |
| 9830 | return 0; |
| 9831 | ; |
| 9832 | return 0; |
| 9833 | } |
| 9834 | _ACEOF |
| 9835 | if ac_fn_c_try_run "$LINENO"; then : |
| 9836 | |
| 9837 | else |
| 9838 | ac_cv_type_long_long_int=no |
| 9839 | fi |
| 9840 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9841 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9842 | fi |
| 9843 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9844 | fi |
| 9845 | fi |
| 9846 | fi |
| 9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 9848 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 9849 | if test $ac_cv_type_long_long_int = yes; then |
| 9850 | |
| 9851 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 9852 | |
| 9853 | fi |
| 9854 | |
| 9855 | |
| 9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 9857 | $as_echo_n "checking for wchar_t... " >&6; } |
| 9858 | if ${gt_cv_c_wchar_t+:} false; then : |
| 9859 | $as_echo_n "(cached) " >&6 |
| 9860 | else |
| 9861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9862 | /* end confdefs.h. */ |
| 9863 | #include <stddef.h> |
| 9864 | wchar_t foo = (wchar_t)'\0'; |
| 9865 | int |
| 9866 | main () |
| 9867 | { |
| 9868 | |
| 9869 | ; |
| 9870 | return 0; |
| 9871 | } |
| 9872 | _ACEOF |
| 9873 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9874 | gt_cv_c_wchar_t=yes |
| 9875 | else |
| 9876 | gt_cv_c_wchar_t=no |
| 9877 | fi |
| 9878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9879 | fi |
| 9880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 9881 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 9882 | if test $gt_cv_c_wchar_t = yes; then |
| 9883 | |
| 9884 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 9885 | |
| 9886 | fi |
| 9887 | |
| 9888 | |
| 9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 9890 | $as_echo_n "checking for wint_t... " >&6; } |
| 9891 | if ${gt_cv_c_wint_t+:} false; then : |
| 9892 | $as_echo_n "(cached) " >&6 |
| 9893 | else |
| 9894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9895 | /* end confdefs.h. */ |
| 9896 | |
| 9897 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9898 | <wchar.h>. |
| 9899 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 9900 | before <wchar.h>. */ |
| 9901 | #include <stddef.h> |
| 9902 | #include <stdio.h> |
| 9903 | #include <time.h> |
| 9904 | #include <wchar.h> |
| 9905 | wint_t foo = (wchar_t)'\0'; |
| 9906 | int |
| 9907 | main () |
| 9908 | { |
| 9909 | |
| 9910 | ; |
| 9911 | return 0; |
| 9912 | } |
| 9913 | _ACEOF |
| 9914 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9915 | gt_cv_c_wint_t=yes |
| 9916 | else |
| 9917 | gt_cv_c_wint_t=no |
| 9918 | fi |
| 9919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9920 | fi |
| 9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 9922 | $as_echo "$gt_cv_c_wint_t" >&6; } |
| 9923 | if test $gt_cv_c_wint_t = yes; then |
| 9924 | |
| 9925 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 9926 | |
| 9927 | fi |
| 9928 | |
| 9929 | |
| 9930 | |
| 9931 | |
| 9932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 9933 | $as_echo_n "checking for intmax_t... " >&6; } |
| 9934 | if ${gt_cv_c_intmax_t+:} false; then : |
| 9935 | $as_echo_n "(cached) " >&6 |
| 9936 | else |
| 9937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9938 | /* end confdefs.h. */ |
| 9939 | |
| 9940 | #include <stddef.h> |
| 9941 | #include <stdlib.h> |
| 9942 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 9943 | #include <stdint.h> |
| 9944 | #endif |
| 9945 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 9946 | #include <inttypes.h> |
| 9947 | #endif |
| 9948 | |
| 9949 | int |
| 9950 | main () |
| 9951 | { |
| 9952 | intmax_t x = -1; |
| 9953 | return !x; |
| 9954 | ; |
| 9955 | return 0; |
| 9956 | } |
| 9957 | _ACEOF |
| 9958 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9959 | gt_cv_c_intmax_t=yes |
| 9960 | else |
| 9961 | gt_cv_c_intmax_t=no |
| 9962 | fi |
| 9963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9964 | fi |
| 9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 9966 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
| 9967 | if test $gt_cv_c_intmax_t = yes; then |
| 9968 | |
| 9969 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 9970 | |
| 9971 | fi |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 9976 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
| 9977 | if ${gt_cv_func_printf_posix+:} false; then : |
| 9978 | $as_echo_n "(cached) " >&6 |
| 9979 | else |
| 9980 | |
| 9981 | if test "$cross_compiling" = yes; then : |
| 9982 | |
| 9983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9984 | /* end confdefs.h. */ |
| 9985 | |
| 9986 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 9987 | notposix |
| 9988 | #endif |
| 9989 | |
| 9990 | _ACEOF |
| 9991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9992 | $EGREP "notposix" >/dev/null 2>&1; then : |
| 9993 | gt_cv_func_printf_posix="guessing no" |
| 9994 | else |
| 9995 | gt_cv_func_printf_posix="guessing yes" |
| 9996 | fi |
| 9997 | rm -f conftest* |
| 9998 | |
| 9999 | |
| 10000 | else |
| 10001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10002 | /* end confdefs.h. */ |
| 10003 | |
| 10004 | #include <stdio.h> |
| 10005 | #include <string.h> |
| 10006 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 10007 | dollar expansion (possibly an autoconf bug). */ |
| 10008 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 10009 | static char buf[100]; |
| 10010 | int main () |
| 10011 | { |
| 10012 | sprintf (buf, format, 33, 55); |
| 10013 | return (strcmp (buf, "55 33") != 0); |
| 10014 | } |
| 10015 | _ACEOF |
| 10016 | if ac_fn_c_try_run "$LINENO"; then : |
| 10017 | gt_cv_func_printf_posix=yes |
| 10018 | else |
| 10019 | gt_cv_func_printf_posix=no |
| 10020 | fi |
| 10021 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10022 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10023 | fi |
| 10024 | |
| 10025 | |
| 10026 | fi |
| 10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
| 10028 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
| 10029 | case $gt_cv_func_printf_posix in |
| 10030 | *yes) |
| 10031 | |
| 10032 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
| 10033 | |
| 10034 | ;; |
| 10035 | esac |
| 10036 | |
| 10037 | |
| 10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 |
| 10039 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } |
| 10040 | if ${ac_cv_gnu_library_2_1+:} false; then : |
| 10041 | $as_echo_n "(cached) " >&6 |
| 10042 | else |
| 10043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10044 | /* end confdefs.h. */ |
| 10045 | |
| 10046 | #include <features.h> |
| 10047 | #ifdef __GNU_LIBRARY__ |
| 10048 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 10049 | Lucky GNU user |
| 10050 | #endif |
| 10051 | #endif |
| 10052 | #ifdef __UCLIBC__ |
| 10053 | Lucky user |
| 10054 | #endif |
| 10055 | |
| 10056 | _ACEOF |
| 10057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10058 | $EGREP "Lucky" >/dev/null 2>&1; then : |
| 10059 | ac_cv_gnu_library_2_1=yes |
| 10060 | else |
| 10061 | ac_cv_gnu_library_2_1=no |
| 10062 | fi |
| 10063 | rm -f conftest* |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | fi |
| 10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
| 10069 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
| 10070 | |
| 10071 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 10072 | |
| 10073 | |
| 10074 | |
| 10075 | for ac_header in stdint.h |
| 10076 | do : |
| 10077 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 10078 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 10079 | cat >>confdefs.h <<_ACEOF |
| 10080 | #define HAVE_STDINT_H 1 |
| 10081 | _ACEOF |
| 10082 | |
| 10083 | fi |
| 10084 | |
| 10085 | done |
| 10086 | |
| 10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 10088 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
| 10089 | if ${gl_cv_size_max+:} false; then : |
| 10090 | $as_echo_n "(cached) " >&6 |
| 10091 | else |
| 10092 | |
| 10093 | gl_cv_size_max= |
| 10094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10095 | /* end confdefs.h. */ |
| 10096 | |
| 10097 | #include <limits.h> |
| 10098 | #if HAVE_STDINT_H |
| 10099 | #include <stdint.h> |
| 10100 | #endif |
| 10101 | #ifdef SIZE_MAX |
| 10102 | Found it |
| 10103 | #endif |
| 10104 | |
| 10105 | _ACEOF |
| 10106 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10107 | $EGREP "Found it" >/dev/null 2>&1; then : |
| 10108 | gl_cv_size_max=yes |
| 10109 | fi |
| 10110 | rm -f conftest* |
| 10111 | |
| 10112 | if test -z "$gl_cv_size_max"; then |
| 10113 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 10114 | #include <limits.h>"; then : |
| 10115 | |
| 10116 | else |
| 10117 | size_t_bits_minus_1= |
| 10118 | fi |
| 10119 | |
| 10120 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 10121 | |
| 10122 | else |
| 10123 | fits_in_uint= |
| 10124 | fi |
| 10125 | |
| 10126 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 10127 | if test $fits_in_uint = 1; then |
| 10128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10129 | /* end confdefs.h. */ |
| 10130 | #include <stddef.h> |
| 10131 | extern size_t foo; |
| 10132 | extern unsigned long foo; |
| 10133 | |
| 10134 | int |
| 10135 | main () |
| 10136 | { |
| 10137 | |
| 10138 | ; |
| 10139 | return 0; |
| 10140 | } |
| 10141 | _ACEOF |
| 10142 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10143 | fits_in_uint=0 |
| 10144 | fi |
| 10145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10146 | fi |
| 10147 | if test $fits_in_uint = 1; then |
| 10148 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 10149 | else |
| 10150 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 10151 | fi |
| 10152 | else |
| 10153 | gl_cv_size_max='((size_t)~(size_t)0)' |
| 10154 | fi |
| 10155 | fi |
| 10156 | |
| 10157 | fi |
| 10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 10159 | $as_echo "$gl_cv_size_max" >&6; } |
| 10160 | if test "$gl_cv_size_max" != yes; then |
| 10161 | |
| 10162 | cat >>confdefs.h <<_ACEOF |
| 10163 | #define SIZE_MAX $gl_cv_size_max |
| 10164 | _ACEOF |
| 10165 | |
| 10166 | fi |
| 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
| 10171 | for ac_header in stdint.h |
| 10172 | do : |
| 10173 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 10174 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 10175 | cat >>confdefs.h <<_ACEOF |
| 10176 | #define HAVE_STDINT_H 1 |
| 10177 | _ACEOF |
| 10178 | |
| 10179 | fi |
| 10180 | |
| 10181 | done |
| 10182 | |
| 10183 | |
| 10184 | |
| 10185 | |
| 10186 | |
| 10187 | for ac_func in $ac_func_list |
| 10188 | do : |
| 10189 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10190 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10191 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10192 | cat >>confdefs.h <<_ACEOF |
| 10193 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10194 | _ACEOF |
| 10195 | |
| 10196 | fi |
| 10197 | done |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | |
| 10202 | |
| 10203 | |
| 10204 | |
| 10205 | |
| 10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 10207 | $as_echo_n "checking for working fcntl.h... " >&6; } |
| 10208 | if ${gl_cv_header_working_fcntl_h+:} false; then : |
| 10209 | $as_echo_n "(cached) " >&6 |
| 10210 | else |
| 10211 | if test "$cross_compiling" = yes; then : |
| 10212 | gl_cv_header_working_fcntl_h=cross-compiling |
| 10213 | else |
| 10214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10215 | /* end confdefs.h. */ |
| 10216 | #include <sys/types.h> |
| 10217 | #include <sys/stat.h> |
| 10218 | #if HAVE_UNISTD_H |
| 10219 | # include <unistd.h> |
| 10220 | #else /* on Windows with MSVC */ |
| 10221 | # include <io.h> |
| 10222 | # include <stdlib.h> |
| 10223 | # defined sleep(n) _sleep ((n) * 1000) |
| 10224 | #endif |
| 10225 | #include <fcntl.h> |
| 10226 | #ifndef O_NOATIME |
| 10227 | #define O_NOATIME 0 |
| 10228 | #endif |
| 10229 | #ifndef O_NOFOLLOW |
| 10230 | #define O_NOFOLLOW 0 |
| 10231 | #endif |
| 10232 | static int const constants[] = |
| 10233 | { |
| 10234 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 10235 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 10236 | }; |
| 10237 | |
| 10238 | int |
| 10239 | main () |
| 10240 | { |
| 10241 | |
| 10242 | int result = !constants; |
| 10243 | #if HAVE_SYMLINK |
| 10244 | { |
| 10245 | static char const sym[] = "conftest.sym"; |
| 10246 | if (symlink ("/dev/null", sym) != 0) |
| 10247 | result |= 2; |
| 10248 | else |
| 10249 | { |
| 10250 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 10251 | if (fd >= 0) |
| 10252 | { |
| 10253 | close (fd); |
| 10254 | result |= 4; |
| 10255 | } |
| 10256 | } |
| 10257 | if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 10258 | result |= 2; |
| 10259 | else |
| 10260 | { |
| 10261 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 10262 | if (fd >= 0) |
| 10263 | { |
| 10264 | close (fd); |
| 10265 | result |= 4; |
| 10266 | } |
| 10267 | } |
| 10268 | unlink (sym); |
| 10269 | } |
| 10270 | #endif |
| 10271 | { |
| 10272 | static char const file[] = "confdefs.h"; |
| 10273 | int fd = open (file, O_RDONLY | O_NOATIME); |
| 10274 | if (fd < 0) |
| 10275 | result |= 8; |
| 10276 | else |
| 10277 | { |
| 10278 | struct stat st0; |
| 10279 | if (fstat (fd, &st0) != 0) |
| 10280 | result |= 16; |
| 10281 | else |
| 10282 | { |
| 10283 | char c; |
| 10284 | sleep (1); |
| 10285 | if (read (fd, &c, 1) != 1) |
| 10286 | result |= 24; |
| 10287 | else |
| 10288 | { |
| 10289 | if (close (fd) != 0) |
| 10290 | result |= 32; |
| 10291 | else |
| 10292 | { |
| 10293 | struct stat st1; |
| 10294 | if (stat (file, &st1) != 0) |
| 10295 | result |= 40; |
| 10296 | else |
| 10297 | if (st0.st_atime != st1.st_atime) |
| 10298 | result |= 64; |
| 10299 | } |
| 10300 | } |
| 10301 | } |
| 10302 | } |
| 10303 | } |
| 10304 | return result; |
| 10305 | ; |
| 10306 | return 0; |
| 10307 | } |
| 10308 | _ACEOF |
| 10309 | if ac_fn_c_try_run "$LINENO"; then : |
| 10310 | gl_cv_header_working_fcntl_h=yes |
| 10311 | else |
| 10312 | case $? in #( |
| 10313 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 10314 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 10315 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 10316 | *) gl_cv_header_working_fcntl_h='no';; |
| 10317 | esac |
| 10318 | fi |
| 10319 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10320 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10321 | fi |
| 10322 | |
| 10323 | fi |
| 10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 10325 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 10326 | |
| 10327 | case $gl_cv_header_working_fcntl_h in #( |
| 10328 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 10329 | *) ac_val=1;; |
| 10330 | esac |
| 10331 | |
| 10332 | cat >>confdefs.h <<_ACEOF |
| 10333 | #define HAVE_WORKING_O_NOATIME $ac_val |
| 10334 | _ACEOF |
| 10335 | |
| 10336 | |
| 10337 | case $gl_cv_header_working_fcntl_h in #( |
| 10338 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 10339 | *) ac_val=1;; |
| 10340 | esac |
| 10341 | |
| 10342 | cat >>confdefs.h <<_ACEOF |
| 10343 | #define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 10344 | _ACEOF |
| 10345 | |
| 10346 | |
| 10347 | |
| 10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10349 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10350 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10351 | $as_echo_n "(cached) " >&6 |
| 10352 | else |
| 10353 | gt_save_LIBS="$LIBS" |
| 10354 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10356 | /* end confdefs.h. */ |
| 10357 | #include <CoreFoundation/CFPreferences.h> |
| 10358 | int |
| 10359 | main () |
| 10360 | { |
| 10361 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10362 | ; |
| 10363 | return 0; |
| 10364 | } |
| 10365 | _ACEOF |
| 10366 | if ac_fn_c_try_link "$LINENO"; then : |
| 10367 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10368 | else |
| 10369 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10370 | fi |
| 10371 | rm -f core conftest.err conftest.$ac_objext \ |
| 10372 | conftest$ac_exeext conftest.$ac_ext |
| 10373 | LIBS="$gt_save_LIBS" |
| 10374 | fi |
| 10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10376 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10377 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10378 | |
| 10379 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10380 | |
| 10381 | fi |
| 10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10383 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10384 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10385 | $as_echo_n "(cached) " >&6 |
| 10386 | else |
| 10387 | gt_save_LIBS="$LIBS" |
| 10388 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10390 | /* end confdefs.h. */ |
| 10391 | #include <CoreFoundation/CFLocale.h> |
| 10392 | int |
| 10393 | main () |
| 10394 | { |
| 10395 | CFLocaleCopyCurrent(); |
| 10396 | ; |
| 10397 | return 0; |
| 10398 | } |
| 10399 | _ACEOF |
| 10400 | if ac_fn_c_try_link "$LINENO"; then : |
| 10401 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10402 | else |
| 10403 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10404 | fi |
| 10405 | rm -f core conftest.err conftest.$ac_objext \ |
| 10406 | conftest$ac_exeext conftest.$ac_ext |
| 10407 | LIBS="$gt_save_LIBS" |
| 10408 | fi |
| 10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10410 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10411 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10412 | |
| 10413 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10414 | |
| 10415 | fi |
| 10416 | INTL_MACOSX_LIBS= |
| 10417 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10418 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10419 | fi |
| 10420 | |
| 10421 | |
| 10422 | |
| 10423 | |
| 10424 | |
| 10425 | |
| 10426 | |
| 10427 | |
| 10428 | |
| 10429 | |
| 10430 | case "$enable_silent_rules" in |
| 10431 | yes) INTL_DEFAULT_VERBOSITY=0;; |
| 10432 | no) INTL_DEFAULT_VERBOSITY=1;; |
| 10433 | *) INTL_DEFAULT_VERBOSITY=1;; |
| 10434 | esac |
| 10435 | |
| 10436 | |
| 10437 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 10438 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
| 10439 | |
| 10440 | else |
| 10441 | |
| 10442 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
| 10443 | |
| 10444 | |
| 10445 | fi |
| 10446 | |
| 10447 | for ac_header in features.h stddef.h stdlib.h string.h |
| 10448 | do : |
| 10449 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10450 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10451 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 10452 | cat >>confdefs.h <<_ACEOF |
| 10453 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10454 | _ACEOF |
| 10455 | |
| 10456 | fi |
| 10457 | |
| 10458 | done |
| 10459 | |
| 10460 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ |
| 10461 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
| 10462 | do : |
| 10463 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10464 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10465 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10466 | cat >>confdefs.h <<_ACEOF |
| 10467 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10468 | _ACEOF |
| 10469 | |
| 10470 | fi |
| 10471 | done |
| 10472 | |
| 10473 | |
| 10474 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 10475 | " |
| 10476 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : |
| 10477 | ac_have_decl=1 |
| 10478 | else |
| 10479 | ac_have_decl=0 |
| 10480 | fi |
| 10481 | |
| 10482 | cat >>confdefs.h <<_ACEOF |
| 10483 | #define HAVE_DECL__SNPRINTF $ac_have_decl |
| 10484 | _ACEOF |
| 10485 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> |
| 10486 | " |
| 10487 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : |
| 10488 | ac_have_decl=1 |
| 10489 | else |
| 10490 | ac_have_decl=0 |
| 10491 | fi |
| 10492 | |
| 10493 | cat >>confdefs.h <<_ACEOF |
| 10494 | #define HAVE_DECL__SNWPRINTF $ac_have_decl |
| 10495 | _ACEOF |
| 10496 | |
| 10497 | |
| 10498 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> |
| 10499 | " |
| 10500 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
| 10501 | ac_have_decl=1 |
| 10502 | else |
| 10503 | ac_have_decl=0 |
| 10504 | fi |
| 10505 | |
| 10506 | cat >>confdefs.h <<_ACEOF |
| 10507 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
| 10508 | _ACEOF |
| 10509 | |
| 10510 | |
| 10511 | case $gt_cv_func_printf_posix in |
| 10512 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10513 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10514 | esac |
| 10515 | |
| 10516 | if test "$ac_cv_func_asprintf" = yes; then |
| 10517 | HAVE_ASPRINTF=1 |
| 10518 | else |
| 10519 | HAVE_ASPRINTF=0 |
| 10520 | fi |
| 10521 | |
| 10522 | if test "$ac_cv_func_snprintf" = yes; then |
| 10523 | HAVE_SNPRINTF=1 |
| 10524 | else |
| 10525 | HAVE_SNPRINTF=0 |
| 10526 | fi |
| 10527 | |
| 10528 | if test "$ac_cv_func_newlocale" = yes; then |
| 10529 | HAVE_NEWLOCALE=1 |
| 10530 | else |
| 10531 | HAVE_NEWLOCALE=0 |
| 10532 | fi |
| 10533 | |
| 10534 | if test "$ac_cv_func_wprintf" = yes; then |
| 10535 | HAVE_WPRINTF=1 |
| 10536 | else |
| 10537 | HAVE_WPRINTF=0 |
| 10538 | fi |
| 10539 | |
| 10540 | |
| 10541 | |
| 10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 10543 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 10544 | if ${am_cv_langinfo_codeset+:} false; then : |
| 10545 | $as_echo_n "(cached) " >&6 |
| 10546 | else |
| 10547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10548 | /* end confdefs.h. */ |
| 10549 | #include <langinfo.h> |
| 10550 | int |
| 10551 | main () |
| 10552 | { |
| 10553 | char* cs = nl_langinfo(CODESET); return !cs; |
| 10554 | ; |
| 10555 | return 0; |
| 10556 | } |
| 10557 | _ACEOF |
| 10558 | if ac_fn_c_try_link "$LINENO"; then : |
| 10559 | am_cv_langinfo_codeset=yes |
| 10560 | else |
| 10561 | am_cv_langinfo_codeset=no |
| 10562 | fi |
| 10563 | rm -f core conftest.err conftest.$ac_objext \ |
| 10564 | conftest$ac_exeext conftest.$ac_ext |
| 10565 | |
| 10566 | fi |
| 10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 10568 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 10569 | if test $am_cv_langinfo_codeset = yes; then |
| 10570 | |
| 10571 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 10572 | |
| 10573 | fi |
| 10574 | |
| 10575 | |
| 10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
| 10577 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
| 10578 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
| 10579 | $as_echo_n "(cached) " >&6 |
| 10580 | else |
| 10581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10582 | /* end confdefs.h. */ |
| 10583 | #include <locale.h> |
| 10584 | int |
| 10585 | main () |
| 10586 | { |
| 10587 | return LC_MESSAGES |
| 10588 | ; |
| 10589 | return 0; |
| 10590 | } |
| 10591 | _ACEOF |
| 10592 | if ac_fn_c_try_link "$LINENO"; then : |
| 10593 | gt_cv_val_LC_MESSAGES=yes |
| 10594 | else |
| 10595 | gt_cv_val_LC_MESSAGES=no |
| 10596 | fi |
| 10597 | rm -f core conftest.err conftest.$ac_objext \ |
| 10598 | conftest$ac_exeext conftest.$ac_ext |
| 10599 | fi |
| 10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
| 10601 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } |
| 10602 | if test $gt_cv_val_LC_MESSAGES = yes; then |
| 10603 | |
| 10604 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
| 10605 | |
| 10606 | fi |
| 10607 | |
| 10608 | |
| 10609 | if test "$enable_shared" = yes; then |
| 10610 | case "$host_os" in |
| 10611 | mingw* | cygwin*) is_woe32dll=yes ;; |
| 10612 | *) is_woe32dll=no ;; |
| 10613 | esac |
| 10614 | else |
| 10615 | is_woe32dll=no |
| 10616 | fi |
| 10617 | WOE32DLL=$is_woe32dll |
| 10618 | |
| 10619 | |
| 10620 | case "$host_os" in |
| 10621 | mingw* | cygwin*) is_woe32=yes ;; |
| 10622 | *) is_woe32=no ;; |
| 10623 | esac |
| 10624 | WOE32=$is_woe32 |
| 10625 | |
| 10626 | if test $WOE32 = yes; then |
| 10627 | if test -n "$ac_tool_prefix"; then |
| 10628 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 10629 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10631 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10632 | if ${ac_cv_prog_WINDRES+:} false; then : |
| 10633 | $as_echo_n "(cached) " >&6 |
| 10634 | else |
| 10635 | if test -n "$WINDRES"; then |
| 10636 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 10637 | else |
| 10638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10639 | for as_dir in $PATH |
| 10640 | do |
| 10641 | IFS=$as_save_IFS |
| 10642 | test -z "$as_dir" && as_dir=. |
| 10643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10645 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 10646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10647 | break 2 |
| 10648 | fi |
| 10649 | done |
| 10650 | done |
| 10651 | IFS=$as_save_IFS |
| 10652 | |
| 10653 | fi |
| 10654 | fi |
| 10655 | WINDRES=$ac_cv_prog_WINDRES |
| 10656 | if test -n "$WINDRES"; then |
| 10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
| 10658 | $as_echo "$WINDRES" >&6; } |
| 10659 | else |
| 10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10661 | $as_echo "no" >&6; } |
| 10662 | fi |
| 10663 | |
| 10664 | |
| 10665 | fi |
| 10666 | if test -z "$ac_cv_prog_WINDRES"; then |
| 10667 | ac_ct_WINDRES=$WINDRES |
| 10668 | # Extract the first word of "windres", so it can be a program name with args. |
| 10669 | set dummy windres; ac_word=$2 |
| 10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10671 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10672 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
| 10673 | $as_echo_n "(cached) " >&6 |
| 10674 | else |
| 10675 | if test -n "$ac_ct_WINDRES"; then |
| 10676 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 10677 | else |
| 10678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10679 | for as_dir in $PATH |
| 10680 | do |
| 10681 | IFS=$as_save_IFS |
| 10682 | test -z "$as_dir" && as_dir=. |
| 10683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10684 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10685 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 10686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10687 | break 2 |
| 10688 | fi |
| 10689 | done |
| 10690 | done |
| 10691 | IFS=$as_save_IFS |
| 10692 | |
| 10693 | fi |
| 10694 | fi |
| 10695 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 10696 | if test -n "$ac_ct_WINDRES"; then |
| 10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
| 10698 | $as_echo "$ac_ct_WINDRES" >&6; } |
| 10699 | else |
| 10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10701 | $as_echo "no" >&6; } |
| 10702 | fi |
| 10703 | |
| 10704 | if test "x$ac_ct_WINDRES" = x; then |
| 10705 | WINDRES="" |
| 10706 | else |
| 10707 | case $cross_compiling:$ac_tool_warned in |
| 10708 | yes:) |
| 10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10711 | ac_tool_warned=yes ;; |
| 10712 | esac |
| 10713 | WINDRES=$ac_ct_WINDRES |
| 10714 | fi |
| 10715 | else |
| 10716 | WINDRES="$ac_cv_prog_WINDRES" |
| 10717 | fi |
| 10718 | |
| 10719 | fi |
| 10720 | |
| 10721 | case "$host_os" in |
| 10722 | hpux*) LTLIBC="" ;; |
| 10723 | *) LTLIBC="-lc" ;; |
| 10724 | esac |
| 10725 | |
| 10726 | |
| 10727 | |
| 10728 | |
| 10729 | |
| 10730 | |
| 10731 | |
| 10732 | |
| 10733 | |
| 10734 | |
| 10735 | |
| 10736 | |
| 10737 | |
| 10738 | |
| 10739 | |
| 10740 | |
| 10741 | |
| 10742 | |
| 10743 | |
| 10744 | |
| 10745 | |
| 10746 | |
| 10747 | |
| 10748 | |
| 10749 | |
| 10750 | |
| 10751 | |
| 10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10753 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10754 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10755 | $as_echo_n "(cached) " >&6 |
| 10756 | else |
| 10757 | gt_save_LIBS="$LIBS" |
| 10758 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10760 | /* end confdefs.h. */ |
| 10761 | #include <CoreFoundation/CFPreferences.h> |
| 10762 | int |
| 10763 | main () |
| 10764 | { |
| 10765 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10766 | ; |
| 10767 | return 0; |
| 10768 | } |
| 10769 | _ACEOF |
| 10770 | if ac_fn_c_try_link "$LINENO"; then : |
| 10771 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10772 | else |
| 10773 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10774 | fi |
| 10775 | rm -f core conftest.err conftest.$ac_objext \ |
| 10776 | conftest$ac_exeext conftest.$ac_ext |
| 10777 | LIBS="$gt_save_LIBS" |
| 10778 | fi |
| 10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10780 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10781 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10782 | |
| 10783 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10784 | |
| 10785 | fi |
| 10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10787 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10788 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10789 | $as_echo_n "(cached) " >&6 |
| 10790 | else |
| 10791 | gt_save_LIBS="$LIBS" |
| 10792 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10794 | /* end confdefs.h. */ |
| 10795 | #include <CoreFoundation/CFLocale.h> |
| 10796 | int |
| 10797 | main () |
| 10798 | { |
| 10799 | CFLocaleCopyCurrent(); |
| 10800 | ; |
| 10801 | return 0; |
| 10802 | } |
| 10803 | _ACEOF |
| 10804 | if ac_fn_c_try_link "$LINENO"; then : |
| 10805 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10806 | else |
| 10807 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10808 | fi |
| 10809 | rm -f core conftest.err conftest.$ac_objext \ |
| 10810 | conftest$ac_exeext conftest.$ac_ext |
| 10811 | LIBS="$gt_save_LIBS" |
| 10812 | fi |
| 10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10814 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10815 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10816 | |
| 10817 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10818 | |
| 10819 | fi |
| 10820 | INTL_MACOSX_LIBS= |
| 10821 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10822 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10823 | fi |
| 10824 | |
| 10825 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10826 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10827 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10828 | |
| 10829 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10830 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10831 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10832 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10833 | LIBINTL= |
| 10834 | LTLIBINTL= |
| 10835 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10836 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10837 | case " $gt_needs " in |
| 10838 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 10839 | *" need-ngettext "*) gt_api_version=2 ;; |
| 10840 | *) gt_api_version=1 ;; |
| 10841 | esac |
| 10842 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 10843 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 10844 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10845 | if test "$USE_NLS" = "yes"; then |
| 10846 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10847 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10849 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10850 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10851 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10852 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10853 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10854 | else |
| 10855 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10856 | fi |
| 10857 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10859 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10860 | |
| 10861 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10862 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10863 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10864 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10865 | if test $gt_api_version -ge 3; then |
| 10866 | gt_revision_test_code=' |
| 10867 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 10868 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 10869 | #endif |
| 10870 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 10871 | ' |
| 10872 | else |
| 10873 | gt_revision_test_code= |
| 10874 | fi |
| 10875 | if test $gt_api_version -ge 2; then |
| 10876 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 10877 | else |
| 10878 | gt_expression_test_code= |
| 10879 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10880 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10882 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10883 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10884 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10885 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10887 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10888 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10889 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10890 | $gt_revision_test_code |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10891 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10892 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10893 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10894 | int |
| 10895 | main () |
| 10896 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10897 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10898 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10899 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 10900 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10901 | ; |
| 10902 | return 0; |
| 10903 | } |
| 10904 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10905 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10906 | eval "$gt_func_gnugettext_libc=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10907 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10908 | eval "$gt_func_gnugettext_libc=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10909 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10910 | rm -f core conftest.err conftest.$ac_objext \ |
| 10911 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10912 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10913 | eval ac_res=\$$gt_func_gnugettext_libc |
| 10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10915 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10916 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10917 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 10918 | |
| 10919 | |
| 10920 | |
| 10921 | |
| 10922 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10923 | |
| 10924 | |
| 10925 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10926 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10927 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10928 | acl_save_prefix="$prefix" |
| 10929 | prefix="$acl_final_prefix" |
| 10930 | acl_save_exec_prefix="$exec_prefix" |
| 10931 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10932 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10933 | eval additional_includedir=\"$includedir\" |
| 10934 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10935 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10936 | exec_prefix="$acl_save_exec_prefix" |
| 10937 | prefix="$acl_save_prefix" |
| 10938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10940 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10941 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10942 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10943 | if test "X$withval" = "Xno"; then |
| 10944 | use_additional=no |
| 10945 | else |
| 10946 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10947 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10948 | acl_save_prefix="$prefix" |
| 10949 | prefix="$acl_final_prefix" |
| 10950 | acl_save_exec_prefix="$exec_prefix" |
| 10951 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10952 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10953 | eval additional_includedir=\"$includedir\" |
| 10954 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10955 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10956 | exec_prefix="$acl_save_exec_prefix" |
| 10957 | prefix="$acl_save_prefix" |
| 10958 | |
| 10959 | else |
| 10960 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10961 | additional_libdir="$withval/$acl_libdirstem" |
| 10962 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 10963 | && ! test -d "$withval/$acl_libdirstem"; then |
| 10964 | additional_libdir="$withval/$acl_libdirstem2" |
| 10965 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10966 | fi |
| 10967 | fi |
| 10968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10969 | fi |
| 10970 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10971 | LIBINTL= |
| 10972 | LTLIBINTL= |
| 10973 | INCINTL= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10974 | LIBINTL_PREFIX= |
| 10975 | HAVE_LIBINTL= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10976 | rpathdirs= |
| 10977 | ltrpathdirs= |
| 10978 | names_already_handled= |
| 10979 | names_next_round='intl ' |
| 10980 | while test -n "$names_next_round"; do |
| 10981 | names_this_round="$names_next_round" |
| 10982 | names_next_round= |
| 10983 | for name in $names_this_round; do |
| 10984 | already_handled= |
| 10985 | for n in $names_already_handled; do |
| 10986 | if test "$n" = "$name"; then |
| 10987 | already_handled=yes |
| 10988 | break |
| 10989 | fi |
| 10990 | done |
| 10991 | if test -z "$already_handled"; then |
| 10992 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10993 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10994 | eval value=\"\$HAVE_LIB$uppername\" |
| 10995 | if test -n "$value"; then |
| 10996 | if test "$value" = yes; then |
| 10997 | eval value=\"\$LIB$uppername\" |
| 10998 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10999 | eval value=\"\$LTLIB$uppername\" |
| 11000 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 11001 | else |
| 11002 | : |
| 11003 | fi |
| 11004 | else |
| 11005 | found_dir= |
| 11006 | found_la= |
| 11007 | found_so= |
| 11008 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11009 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 11010 | if test -n "$acl_shlibext"; then |
| 11011 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 11012 | else |
| 11013 | shrext= |
| 11014 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11015 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11016 | dir="$additional_libdir" |
| 11017 | if test -n "$acl_shlibext"; then |
| 11018 | if test -f "$dir/$libname$shrext"; then |
| 11019 | found_dir="$dir" |
| 11020 | found_so="$dir/$libname$shrext" |
| 11021 | else |
| 11022 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 11023 | ver=`(cd "$dir" && \ |
| 11024 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 11025 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 11026 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 11027 | | sed 1q ) 2>/dev/null` |
| 11028 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 11029 | found_dir="$dir" |
| 11030 | found_so="$dir/$libname$shrext.$ver" |
| 11031 | fi |
| 11032 | else |
| 11033 | eval library_names=\"$acl_library_names_spec\" |
| 11034 | for f in $library_names; do |
| 11035 | if test -f "$dir/$f"; then |
| 11036 | found_dir="$dir" |
| 11037 | found_so="$dir/$f" |
| 11038 | break |
| 11039 | fi |
| 11040 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11041 | fi |
| 11042 | fi |
| 11043 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11044 | if test "X$found_dir" = "X"; then |
| 11045 | if test -f "$dir/$libname.$acl_libext"; then |
| 11046 | found_dir="$dir" |
| 11047 | found_a="$dir/$libname.$acl_libext" |
| 11048 | fi |
| 11049 | fi |
| 11050 | if test "X$found_dir" != "X"; then |
| 11051 | if test -f "$dir/$libname.la"; then |
| 11052 | found_la="$dir/$libname.la" |
| 11053 | fi |
| 11054 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11055 | fi |
| 11056 | if test "X$found_dir" = "X"; then |
| 11057 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11058 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11059 | acl_save_prefix="$prefix" |
| 11060 | prefix="$acl_final_prefix" |
| 11061 | acl_save_exec_prefix="$exec_prefix" |
| 11062 | exec_prefix="$acl_final_exec_prefix" |
| 11063 | eval x=\"$x\" |
| 11064 | exec_prefix="$acl_save_exec_prefix" |
| 11065 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11066 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11067 | case "$x" in |
| 11068 | -L*) |
| 11069 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11070 | if test -n "$acl_shlibext"; then |
| 11071 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11072 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11073 | found_so="$dir/$libname$shrext" |
| 11074 | else |
| 11075 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 11076 | ver=`(cd "$dir" && \ |
| 11077 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 11078 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 11079 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 11080 | | sed 1q ) 2>/dev/null` |
| 11081 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 11082 | found_dir="$dir" |
| 11083 | found_so="$dir/$libname$shrext.$ver" |
| 11084 | fi |
| 11085 | else |
| 11086 | eval library_names=\"$acl_library_names_spec\" |
| 11087 | for f in $library_names; do |
| 11088 | if test -f "$dir/$f"; then |
| 11089 | found_dir="$dir" |
| 11090 | found_so="$dir/$f" |
| 11091 | break |
| 11092 | fi |
| 11093 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11094 | fi |
| 11095 | fi |
| 11096 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11097 | if test "X$found_dir" = "X"; then |
| 11098 | if test -f "$dir/$libname.$acl_libext"; then |
| 11099 | found_dir="$dir" |
| 11100 | found_a="$dir/$libname.$acl_libext" |
| 11101 | fi |
| 11102 | fi |
| 11103 | if test "X$found_dir" != "X"; then |
| 11104 | if test -f "$dir/$libname.la"; then |
| 11105 | found_la="$dir/$libname.la" |
| 11106 | fi |
| 11107 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11108 | ;; |
| 11109 | esac |
| 11110 | if test "X$found_dir" != "X"; then |
| 11111 | break |
| 11112 | fi |
| 11113 | done |
| 11114 | fi |
| 11115 | if test "X$found_dir" != "X"; then |
| 11116 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 11117 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11118 | if test "$enable_rpath" = no \ |
| 11119 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 11120 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11121 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11122 | else |
| 11123 | haveit= |
| 11124 | for x in $ltrpathdirs; do |
| 11125 | if test "X$x" = "X$found_dir"; then |
| 11126 | haveit=yes |
| 11127 | break |
| 11128 | fi |
| 11129 | done |
| 11130 | if test -z "$haveit"; then |
| 11131 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11132 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11133 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11134 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11135 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11136 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11137 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11138 | haveit= |
| 11139 | for x in $rpathdirs; do |
| 11140 | if test "X$x" = "X$found_dir"; then |
| 11141 | haveit=yes |
| 11142 | break |
| 11143 | fi |
| 11144 | done |
| 11145 | if test -z "$haveit"; then |
| 11146 | rpathdirs="$rpathdirs $found_dir" |
| 11147 | fi |
| 11148 | else |
| 11149 | haveit= |
| 11150 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11151 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11152 | acl_save_prefix="$prefix" |
| 11153 | prefix="$acl_final_prefix" |
| 11154 | acl_save_exec_prefix="$exec_prefix" |
| 11155 | exec_prefix="$acl_final_exec_prefix" |
| 11156 | eval x=\"$x\" |
| 11157 | exec_prefix="$acl_save_exec_prefix" |
| 11158 | prefix="$acl_save_prefix" |
| 11159 | |
| 11160 | if test "X$x" = "X-L$found_dir"; then |
| 11161 | haveit=yes |
| 11162 | break |
| 11163 | fi |
| 11164 | done |
| 11165 | if test -z "$haveit"; then |
| 11166 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11167 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11168 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11169 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11170 | else |
| 11171 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11172 | fi |
| 11173 | fi |
| 11174 | fi |
| 11175 | fi |
| 11176 | else |
| 11177 | if test "X$found_a" != "X"; then |
| 11178 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11179 | else |
| 11180 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11181 | fi |
| 11182 | fi |
| 11183 | additional_includedir= |
| 11184 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11185 | */$acl_libdirstem | */$acl_libdirstem/) |
| 11186 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 11187 | if test "$name" = 'intl'; then |
| 11188 | LIBINTL_PREFIX="$basedir" |
| 11189 | fi |
| 11190 | additional_includedir="$basedir/include" |
| 11191 | ;; |
| 11192 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 11193 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 11194 | if test "$name" = 'intl'; then |
| 11195 | LIBINTL_PREFIX="$basedir" |
| 11196 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11197 | additional_includedir="$basedir/include" |
| 11198 | ;; |
| 11199 | esac |
| 11200 | if test "X$additional_includedir" != "X"; then |
| 11201 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11202 | haveit= |
| 11203 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11204 | if test -n "$GCC"; then |
| 11205 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11206 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11207 | esac |
| 11208 | fi |
| 11209 | fi |
| 11210 | if test -z "$haveit"; then |
| 11211 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11212 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11213 | acl_save_prefix="$prefix" |
| 11214 | prefix="$acl_final_prefix" |
| 11215 | acl_save_exec_prefix="$exec_prefix" |
| 11216 | exec_prefix="$acl_final_exec_prefix" |
| 11217 | eval x=\"$x\" |
| 11218 | exec_prefix="$acl_save_exec_prefix" |
| 11219 | prefix="$acl_save_prefix" |
| 11220 | |
| 11221 | if test "X$x" = "X-I$additional_includedir"; then |
| 11222 | haveit=yes |
| 11223 | break |
| 11224 | fi |
| 11225 | done |
| 11226 | if test -z "$haveit"; then |
| 11227 | if test -d "$additional_includedir"; then |
| 11228 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11229 | fi |
| 11230 | fi |
| 11231 | fi |
| 11232 | fi |
| 11233 | fi |
| 11234 | if test -n "$found_la"; then |
| 11235 | save_libdir="$libdir" |
| 11236 | case "$found_la" in |
| 11237 | */* | *\\*) . "$found_la" ;; |
| 11238 | *) . "./$found_la" ;; |
| 11239 | esac |
| 11240 | libdir="$save_libdir" |
| 11241 | for dep in $dependency_libs; do |
| 11242 | case "$dep" in |
| 11243 | -L*) |
| 11244 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11245 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 11246 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11247 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11248 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 11249 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11250 | if test -n "$GCC"; then |
| 11251 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11252 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11253 | esac |
| 11254 | fi |
| 11255 | fi |
| 11256 | if test -z "$haveit"; then |
| 11257 | haveit= |
| 11258 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11259 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11260 | acl_save_prefix="$prefix" |
| 11261 | prefix="$acl_final_prefix" |
| 11262 | acl_save_exec_prefix="$exec_prefix" |
| 11263 | exec_prefix="$acl_final_exec_prefix" |
| 11264 | eval x=\"$x\" |
| 11265 | exec_prefix="$acl_save_exec_prefix" |
| 11266 | prefix="$acl_save_prefix" |
| 11267 | |
| 11268 | if test "X$x" = "X-L$additional_libdir"; then |
| 11269 | haveit=yes |
| 11270 | break |
| 11271 | fi |
| 11272 | done |
| 11273 | if test -z "$haveit"; then |
| 11274 | if test -d "$additional_libdir"; then |
| 11275 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11276 | fi |
| 11277 | fi |
| 11278 | haveit= |
| 11279 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11280 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11281 | acl_save_prefix="$prefix" |
| 11282 | prefix="$acl_final_prefix" |
| 11283 | acl_save_exec_prefix="$exec_prefix" |
| 11284 | exec_prefix="$acl_final_exec_prefix" |
| 11285 | eval x=\"$x\" |
| 11286 | exec_prefix="$acl_save_exec_prefix" |
| 11287 | prefix="$acl_save_prefix" |
| 11288 | |
| 11289 | if test "X$x" = "X-L$additional_libdir"; then |
| 11290 | haveit=yes |
| 11291 | break |
| 11292 | fi |
| 11293 | done |
| 11294 | if test -z "$haveit"; then |
| 11295 | if test -d "$additional_libdir"; then |
| 11296 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11297 | fi |
| 11298 | fi |
| 11299 | fi |
| 11300 | fi |
| 11301 | ;; |
| 11302 | -R*) |
| 11303 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11304 | if test "$enable_rpath" != no; then |
| 11305 | haveit= |
| 11306 | for x in $rpathdirs; do |
| 11307 | if test "X$x" = "X$dir"; then |
| 11308 | haveit=yes |
| 11309 | break |
| 11310 | fi |
| 11311 | done |
| 11312 | if test -z "$haveit"; then |
| 11313 | rpathdirs="$rpathdirs $dir" |
| 11314 | fi |
| 11315 | haveit= |
| 11316 | for x in $ltrpathdirs; do |
| 11317 | if test "X$x" = "X$dir"; then |
| 11318 | haveit=yes |
| 11319 | break |
| 11320 | fi |
| 11321 | done |
| 11322 | if test -z "$haveit"; then |
| 11323 | ltrpathdirs="$ltrpathdirs $dir" |
| 11324 | fi |
| 11325 | fi |
| 11326 | ;; |
| 11327 | -l*) |
| 11328 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11329 | ;; |
| 11330 | *.la) |
| 11331 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11332 | ;; |
| 11333 | *) |
| 11334 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11335 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11336 | ;; |
| 11337 | esac |
| 11338 | done |
| 11339 | fi |
| 11340 | else |
| 11341 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11342 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11343 | fi |
| 11344 | fi |
| 11345 | fi |
| 11346 | done |
| 11347 | done |
| 11348 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11349 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11350 | alldirs= |
| 11351 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11352 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11353 | done |
| 11354 | acl_save_libdir="$libdir" |
| 11355 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11356 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11357 | libdir="$acl_save_libdir" |
| 11358 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11359 | else |
| 11360 | for found_dir in $rpathdirs; do |
| 11361 | acl_save_libdir="$libdir" |
| 11362 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11363 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11364 | libdir="$acl_save_libdir" |
| 11365 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11366 | done |
| 11367 | fi |
| 11368 | fi |
| 11369 | if test "X$ltrpathdirs" != "X"; then |
| 11370 | for found_dir in $ltrpathdirs; do |
| 11371 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11372 | done |
| 11373 | fi |
| 11374 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11381 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11382 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11383 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11384 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11385 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11386 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11387 | gt_save_LIBS="$LIBS" |
| 11388 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11390 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11391 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11392 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11393 | $gt_revision_test_code |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11394 | extern int _nl_msg_cat_cntr; |
| 11395 | extern |
| 11396 | #ifdef __cplusplus |
| 11397 | "C" |
| 11398 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11399 | const char *_nl_expand_alias (const char *); |
| 11400 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11401 | int |
| 11402 | main () |
| 11403 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11404 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11405 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11406 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11407 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11408 | ; |
| 11409 | return 0; |
| 11410 | } |
| 11411 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11412 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11413 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11414 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11415 | eval "$gt_func_gnugettext_libintl=no" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11416 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11417 | rm -f core conftest.err conftest.$ac_objext \ |
| 11418 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11419 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11420 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11422 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11423 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11424 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11425 | $gt_revision_test_code |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11426 | extern int _nl_msg_cat_cntr; |
| 11427 | extern |
| 11428 | #ifdef __cplusplus |
| 11429 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11430 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11431 | const char *_nl_expand_alias (const char *); |
| 11432 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11433 | int |
| 11434 | main () |
| 11435 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11436 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11437 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11438 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11439 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11440 | ; |
| 11441 | return 0; |
| 11442 | } |
| 11443 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11444 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11445 | LIBINTL="$LIBINTL $LIBICONV" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11446 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11447 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11448 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11449 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11450 | rm -f core conftest.err conftest.$ac_objext \ |
| 11451 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11452 | fi |
| 11453 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11454 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11455 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11456 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11458 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11459 | fi |
| 11460 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11461 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 11462 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11463 | && test "$PACKAGE" != gettext-runtime \ |
| 11464 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11465 | gt_use_preinstalled_gnugettext=yes |
| 11466 | else |
| 11467 | LIBINTL= |
| 11468 | LTLIBINTL= |
| 11469 | INCINTL= |
| 11470 | fi |
| 11471 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11473 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11474 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11475 | fi |
| 11476 | fi |
| 11477 | |
| 11478 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11479 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11480 | USE_INCLUDED_LIBINTL=yes |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11481 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
| 11482 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11483 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11484 | fi |
| 11485 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11486 | CATOBJEXT= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11487 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11488 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11489 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11490 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11491 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11492 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11493 | if test -n "$INTL_MACOSX_LIBS"; then |
| 11494 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11495 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11496 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 11497 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 11498 | fi |
| 11499 | fi |
| 11500 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11501 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11502 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11503 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11504 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11505 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11506 | else |
| 11507 | USE_NLS=no |
| 11508 | fi |
| 11509 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11510 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11512 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11514 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11515 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11517 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11518 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11519 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11520 | gt_source="external libintl" |
| 11521 | else |
| 11522 | gt_source="libc" |
| 11523 | fi |
| 11524 | else |
| 11525 | gt_source="included intl directory" |
| 11526 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11528 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11529 | fi |
| 11530 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11531 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11532 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11533 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11534 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11536 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11538 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11539 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11540 | for element in $INCINTL; do |
| 11541 | haveit= |
| 11542 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11543 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11544 | acl_save_prefix="$prefix" |
| 11545 | prefix="$acl_final_prefix" |
| 11546 | acl_save_exec_prefix="$exec_prefix" |
| 11547 | exec_prefix="$acl_final_exec_prefix" |
| 11548 | eval x=\"$x\" |
| 11549 | exec_prefix="$acl_save_exec_prefix" |
| 11550 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11551 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11552 | if test "X$x" = "X$element"; then |
| 11553 | haveit=yes |
| 11554 | break |
| 11555 | fi |
| 11556 | done |
| 11557 | if test -z "$haveit"; then |
| 11558 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11559 | fi |
| 11560 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11561 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11562 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11563 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11564 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11565 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11566 | |
| 11567 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11568 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11569 | |
| 11570 | fi |
| 11571 | |
| 11572 | POSUB=po |
| 11573 | fi |
| 11574 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11575 | |
| 11576 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11577 | BUILD_INCLUDED_LIBINTL=yes |
| 11578 | fi |
| 11579 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11580 | |
| 11581 | |
| 11582 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11583 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11584 | nls_cv_header_intl= |
| 11585 | nls_cv_header_libgt= |
| 11586 | |
| 11587 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11588 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11589 | |
| 11590 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11591 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11592 | |
| 11593 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11594 | |
| 11595 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11596 | INTLOBJS= |
| 11597 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11598 | INTLOBJS="\$(GETTOBJS)" |
| 11599 | fi |
| 11600 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11601 | |
| 11602 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11603 | |
| 11604 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11605 | |
| 11606 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11607 | |
| 11608 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11609 | |
| 11610 | |
| 11611 | |
| 11612 | |
| 11613 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11615 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11616 | set x ${MAKE-make} |
| 11617 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11618 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11619 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11620 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11621 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11622 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11623 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11624 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11625 | _ACEOF |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11626 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11627 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11628 | *@@@%%%=?*=@@@%%%*) |
| 11629 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11630 | *) |
| 11631 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11632 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11633 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11634 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11635 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11637 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11638 | SET_MAKE= |
| 11639 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11641 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11642 | SET_MAKE="MAKE=${MAKE-make}" |
| 11643 | fi |
| 11644 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11646 | $as_echo_n "checking for GNU make... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11647 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11648 | $as_echo_n "(cached) " >&6 |
| 11649 | else |
| 11650 | _cv_gnu_make_command='' ; |
| 11651 | for a in "$MAKE" make gmake gnumake ; do |
| 11652 | if test -z "$a" ; then continue ; fi ; |
| 11653 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 11654 | _cv_gnu_make_command=$a ; |
| 11655 | break; |
| 11656 | fi |
| 11657 | done ; |
| 11658 | |
| 11659 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11661 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 11662 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 11663 | ifGNUmake='' ; |
| 11664 | ifNotGNUmake='#' ; |
| 11665 | else |
| 11666 | ifGNUmake='#' ; |
| 11667 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11669 | $as_echo "\"Not found\"" >&6; }; |
| 11670 | fi |
| 11671 | |
| 11672 | |
| 11673 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11674 | # Extract the first word of "ln", so it can be a program name with args. |
| 11675 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11677 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11678 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11679 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11680 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11681 | case $LN in |
| 11682 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11683 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11684 | ;; |
| 11685 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11687 | for as_dir in $PATH |
| 11688 | do |
| 11689 | IFS=$as_save_IFS |
| 11690 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11691 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11693 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11695 | break 2 |
| 11696 | fi |
| 11697 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11698 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11699 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11700 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11701 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11702 | ;; |
| 11703 | esac |
| 11704 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11705 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11706 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11708 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11709 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11711 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11712 | fi |
| 11713 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11714 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11716 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11717 | LN_S=$as_ln_s |
| 11718 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11720 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11721 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11723 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11724 | fi |
| 11725 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11726 | # Extract the first word of "mv", so it can be a program name with args. |
| 11727 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11729 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11730 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11731 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11732 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11733 | case $MV in |
| 11734 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11735 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11736 | ;; |
| 11737 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11739 | for as_dir in $PATH |
| 11740 | do |
| 11741 | IFS=$as_save_IFS |
| 11742 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11743 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11745 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11747 | break 2 |
| 11748 | fi |
| 11749 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11750 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11751 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11752 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11753 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11754 | ;; |
| 11755 | esac |
| 11756 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11757 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11758 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11760 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11761 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11763 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11764 | fi |
| 11765 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11766 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11767 | # Extract the first word of "cp", so it can be a program name with args. |
| 11768 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11770 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11771 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11772 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11773 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11774 | case $CP in |
| 11775 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11776 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11777 | ;; |
| 11778 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11780 | for as_dir in $PATH |
| 11781 | do |
| 11782 | IFS=$as_save_IFS |
| 11783 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11786 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11788 | break 2 |
| 11789 | fi |
| 11790 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11791 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11792 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11793 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11794 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11795 | ;; |
| 11796 | esac |
| 11797 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11798 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11799 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11801 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11802 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11804 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11805 | fi |
| 11806 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11807 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11808 | # Extract the first word of "rm", so it can be a program name with args. |
| 11809 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11811 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11812 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11813 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11814 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11815 | case $RM in |
| 11816 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11817 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11818 | ;; |
| 11819 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11821 | for as_dir in $PATH |
| 11822 | do |
| 11823 | IFS=$as_save_IFS |
| 11824 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11825 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11827 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11829 | break 2 |
| 11830 | fi |
| 11831 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11832 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11833 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11834 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11835 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11836 | ;; |
| 11837 | esac |
| 11838 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11839 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11840 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11842 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11843 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11845 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11846 | fi |
| 11847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11848 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11849 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11850 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11852 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11853 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11854 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11855 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11856 | case $CHMOD in |
| 11857 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11858 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11859 | ;; |
| 11860 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11862 | for as_dir in $PATH |
| 11863 | do |
| 11864 | IFS=$as_save_IFS |
| 11865 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11866 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11868 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11870 | break 2 |
| 11871 | fi |
| 11872 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11873 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11874 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11875 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11876 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11877 | ;; |
| 11878 | esac |
| 11879 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11880 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11881 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11883 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11884 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11886 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11887 | fi |
| 11888 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11889 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11890 | for ac_prog in gawk mawk nawk awk |
| 11891 | do |
| 11892 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11893 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11895 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11896 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11897 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11898 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11899 | if test -n "$AWK"; then |
| 11900 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11901 | else |
| 11902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11903 | for as_dir in $PATH |
| 11904 | do |
| 11905 | IFS=$as_save_IFS |
| 11906 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11907 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11909 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11911 | break 2 |
| 11912 | fi |
| 11913 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11914 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11915 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11916 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11917 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11918 | fi |
| 11919 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11920 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11922 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11923 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11925 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11926 | fi |
| 11927 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11928 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11929 | test -n "$AWK" && break |
| 11930 | done |
| 11931 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11933 | $as_echo_n "checking for egrep... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11934 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11935 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11936 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11937 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11938 | then ac_cv_path_EGREP="$GREP -E" |
| 11939 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11940 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11941 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11942 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11944 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11945 | do |
| 11946 | IFS=$as_save_IFS |
| 11947 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11948 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11950 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11951 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11952 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11953 | # Check for GNU $ac_path_EGREP |
| 11954 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11955 | *GNU*) |
| 11956 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11957 | *) |
| 11958 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11959 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11960 | while : |
| 11961 | do |
| 11962 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11963 | mv "conftest.tmp" "conftest.in" |
| 11964 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11965 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11966 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11967 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11968 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11969 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11970 | # Best one so far, save it but keep looking for a better one |
| 11971 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11972 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11973 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11974 | # 10*(2^10) chars as input seems more than enough |
| 11975 | test $ac_count -gt 10 && break |
| 11976 | done |
| 11977 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11978 | esac |
| 11979 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11980 | $ac_path_EGREP_found && break 3 |
| 11981 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11982 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11983 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11984 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11985 | if test -z "$ac_cv_path_EGREP"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 11986 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11987 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11988 | else |
| 11989 | ac_cv_path_EGREP=$EGREP |
| 11990 | fi |
| 11991 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11992 | fi |
| 11993 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11995 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11996 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11997 | |
| 11998 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11999 | # Extract the first word of "sed", so it can be a program name with args. |
| 12000 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12002 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12003 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12004 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12005 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12006 | case $SED in |
| 12007 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12008 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 12009 | ;; |
| 12010 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12012 | for as_dir in $PATH |
| 12013 | do |
| 12014 | IFS=$as_save_IFS |
| 12015 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12016 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12020 | break 2 |
| 12021 | fi |
| 12022 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12023 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12024 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12025 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12026 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 12027 | ;; |
| 12028 | esac |
| 12029 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12030 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12031 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12033 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12034 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12036 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12037 | fi |
| 12038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12039 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12040 | # Extract the first word of "perl", so it can be a program name with args. |
| 12041 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12043 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12044 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12045 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12046 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12047 | case $PERL in |
| 12048 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12049 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 12050 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12051 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12053 | for as_dir in $PATH |
| 12054 | do |
| 12055 | IFS=$as_save_IFS |
| 12056 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12057 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12059 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12061 | break 2 |
| 12062 | fi |
| 12063 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12064 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12065 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12066 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12067 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 12068 | ;; |
| 12069 | esac |
| 12070 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12071 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12072 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12074 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12075 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12077 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12078 | fi |
| 12079 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12080 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12081 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 12082 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12084 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12085 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12086 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12087 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12088 | case $LDCONFIG in |
| 12089 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12090 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 12091 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12092 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12094 | for as_dir in $PATH |
| 12095 | do |
| 12096 | IFS=$as_save_IFS |
| 12097 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12098 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12100 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | break 2 |
| 12103 | fi |
| 12104 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12105 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12106 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12107 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12108 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 12109 | ;; |
| 12110 | esac |
| 12111 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12112 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12113 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12115 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12116 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12118 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12119 | fi |
| 12120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12121 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12122 | if test -n "$ac_tool_prefix"; then |
| 12123 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12124 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12126 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12127 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12128 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12129 | else |
| 12130 | if test -n "$AR"; then |
| 12131 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 12132 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12134 | for as_dir in $PATH |
| 12135 | do |
| 12136 | IFS=$as_save_IFS |
| 12137 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12138 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12140 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12142 | break 2 |
| 12143 | fi |
| 12144 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12145 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12146 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12147 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12148 | fi |
| 12149 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12150 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12151 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12153 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12154 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12156 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12157 | fi |
| 12158 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12159 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12160 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12161 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12162 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12163 | # Extract the first word of "ar", so it can be a program name with args. |
| 12164 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12166 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12167 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12168 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12169 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12170 | if test -n "$ac_ct_AR"; then |
| 12171 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12172 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12174 | for as_dir in $PATH |
| 12175 | do |
| 12176 | IFS=$as_save_IFS |
| 12177 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12178 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12180 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12182 | break 2 |
| 12183 | fi |
| 12184 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12185 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12186 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12187 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12188 | fi |
| 12189 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12190 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12191 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12193 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12194 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12196 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12197 | fi |
| 12198 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12199 | if test "x$ac_ct_AR" = x; then |
| 12200 | AR="ar" |
| 12201 | else |
| 12202 | case $cross_compiling:$ac_tool_warned in |
| 12203 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12205 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12206 | ac_tool_warned=yes ;; |
| 12207 | esac |
| 12208 | AR=$ac_ct_AR |
| 12209 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12210 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12211 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12212 | fi |
| 12213 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12214 | if test -n "$ac_tool_prefix"; then |
| 12215 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12216 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12218 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12219 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12220 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12221 | else |
| 12222 | if test -n "$RANLIB"; then |
| 12223 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12224 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12226 | for as_dir in $PATH |
| 12227 | do |
| 12228 | IFS=$as_save_IFS |
| 12229 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12230 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12234 | break 2 |
| 12235 | fi |
| 12236 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12237 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12238 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12239 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12240 | fi |
| 12241 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12242 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12243 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12245 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12246 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12248 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12249 | fi |
| 12250 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12251 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12252 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12253 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12254 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12255 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12256 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12258 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12259 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12260 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12261 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12262 | if test -n "$ac_ct_RANLIB"; then |
| 12263 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12264 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12266 | for as_dir in $PATH |
| 12267 | do |
| 12268 | IFS=$as_save_IFS |
| 12269 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12270 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12272 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12274 | break 2 |
| 12275 | fi |
| 12276 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12277 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12278 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12279 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12280 | fi |
| 12281 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12282 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12283 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12285 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12286 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12288 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12289 | fi |
| 12290 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12291 | if test "x$ac_ct_RANLIB" = x; then |
| 12292 | RANLIB=":" |
| 12293 | else |
| 12294 | case $cross_compiling:$ac_tool_warned in |
| 12295 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12298 | ac_tool_warned=yes ;; |
| 12299 | esac |
| 12300 | RANLIB=$ac_ct_RANLIB |
| 12301 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12302 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12303 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12304 | fi |
| 12305 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12306 | if test -n "$ac_tool_prefix"; then |
| 12307 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12308 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12310 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12311 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12312 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12313 | else |
| 12314 | if test -n "$STRIP"; then |
| 12315 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12316 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12318 | for as_dir in $PATH |
| 12319 | do |
| 12320 | IFS=$as_save_IFS |
| 12321 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12322 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12324 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12326 | break 2 |
| 12327 | fi |
| 12328 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12329 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12330 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12331 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12332 | fi |
| 12333 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12334 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12335 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12337 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12338 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12340 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12341 | fi |
| 12342 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12343 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12344 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12345 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12346 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12347 | # Extract the first word of "strip", so it can be a program name with args. |
| 12348 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12350 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12351 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12352 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12353 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12354 | if test -n "$ac_ct_STRIP"; then |
| 12355 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12356 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12358 | for as_dir in $PATH |
| 12359 | do |
| 12360 | IFS=$as_save_IFS |
| 12361 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12362 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12364 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12366 | break 2 |
| 12367 | fi |
| 12368 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12369 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12370 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12371 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12372 | fi |
| 12373 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12374 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12375 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12377 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12378 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12380 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12381 | fi |
| 12382 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12383 | if test "x$ac_ct_STRIP" = x; then |
| 12384 | STRIP=":" |
| 12385 | else |
| 12386 | case $cross_compiling:$ac_tool_warned in |
| 12387 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12389 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12390 | ac_tool_warned=yes ;; |
| 12391 | esac |
| 12392 | STRIP=$ac_ct_STRIP |
| 12393 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12394 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12395 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12396 | fi |
| 12397 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12398 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12399 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12401 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12402 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12403 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12404 | else |
| 12405 | if test -n "$MAKEINFO"; then |
| 12406 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12407 | else |
| 12408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12409 | for as_dir in $PATH |
| 12410 | do |
| 12411 | IFS=$as_save_IFS |
| 12412 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12413 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12415 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12417 | break 2 |
| 12418 | fi |
| 12419 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12420 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12421 | IFS=$as_save_IFS |
| 12422 | |
| 12423 | fi |
| 12424 | fi |
| 12425 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12426 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12428 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12429 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12431 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12432 | fi |
| 12433 | |
| 12434 | |
| 12435 | if test "_$MAKEINFO" = "_"; then |
| 12436 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12437 | else |
| 12438 | case "$MAKEINFO" in |
| 12439 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12441 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12442 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12443 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12444 | ;; |
| 12445 | *) |
| 12446 | ;; |
| 12447 | esac |
| 12448 | fi |
| 12449 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12450 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12451 | # See if we need a separate native compiler. |
| 12452 | if test $cross_compiling = no; then |
| 12453 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12454 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12455 | else |
| 12456 | for ac_prog in gcc cc |
| 12457 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12458 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12459 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12461 | $as_echo_n "checking for $ac_word... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12462 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12463 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12464 | else |
| 12465 | if test -n "$BUILD_CC"; then |
| 12466 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12467 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12469 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12470 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12471 | IFS=$as_save_IFS |
| 12472 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12473 | for ac_exec_ext in '' $ac_executable_extensions; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12475 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12477 | break 2 |
| 12478 | fi |
| 12479 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12480 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12481 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12482 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12483 | fi |
| 12484 | fi |
| 12485 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12486 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12488 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12489 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12491 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12492 | fi |
| 12493 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12495 | test -n "$BUILD_CC" && break |
| 12496 | done |
| 12497 | |
| 12498 | fi |
Theodore Ts'o | 74f2c4a | 2015-06-19 19:28:25 -0400 | [diff] [blame] | 12499 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12500 | do : |
| 12501 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12502 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12503 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12504 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12505 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12506 | _ACEOF |
| 12507 | |
| 12508 | fi |
| 12509 | |
| 12510 | done |
| 12511 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12512 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12513 | do : |
| 12514 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12515 | #if HAVE_SYS_TYPES_H |
| 12516 | #include <sys/types.h> |
| 12517 | #endif |
| 12518 | #if HAVE_SYS_SOCKET |
| 12519 | #include <sys/socket.h> |
| 12520 | #endif |
| 12521 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12522 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12523 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12524 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12525 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12526 | _ACEOF |
| 12527 | |
| 12528 | fi |
| 12529 | |
| 12530 | done |
| 12531 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12532 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12533 | do : |
| 12534 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12535 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12536 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12537 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12538 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12539 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12540 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12541 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12542 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12543 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12544 | |
| 12545 | fi |
| 12546 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12547 | fi |
| 12548 | done |
| 12549 | |
| 12550 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12551 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 12552 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12553 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12554 | |
| 12555 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12556 | |
| 12557 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12558 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 12559 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 12560 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 12561 | |
| 12562 | cat >>confdefs.h <<_ACEOF |
| 12563 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 12564 | _ACEOF |
| 12565 | |
| 12566 | |
| 12567 | fi |
| 12568 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12569 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 12570 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12571 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12572 | |
| 12573 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12574 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12575 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12576 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12577 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 12578 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12579 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12580 | |
| 12581 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12582 | |
| 12583 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12584 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12585 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12586 | #define _LARGEFILE64_SOURCE |
| 12587 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12588 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12589 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12590 | |
| 12591 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12592 | |
| 12593 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12594 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12595 | # The cast to long int works around a bug in the HP C Compiler |
| 12596 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12597 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12598 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12600 | $as_echo_n "checking size of short... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12601 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12602 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12603 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12604 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12605 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12606 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12607 | if test "$ac_cv_type_short" = yes; then |
| 12608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12610 | as_fn_error 77 "cannot compute sizeof (short) |
| 12611 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12612 | else |
| 12613 | ac_cv_sizeof_short=0 |
| 12614 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12615 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12616 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12617 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12619 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12620 | |
| 12621 | |
| 12622 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12623 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12624 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12625 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12626 | |
| 12627 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12628 | # The cast to long int works around a bug in the HP C Compiler |
| 12629 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12630 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12631 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12633 | $as_echo_n "checking size of int... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12634 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12635 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12636 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12637 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12638 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12639 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12640 | if test "$ac_cv_type_int" = yes; then |
| 12641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12642 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12643 | as_fn_error 77 "cannot compute sizeof (int) |
| 12644 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12645 | else |
| 12646 | ac_cv_sizeof_int=0 |
| 12647 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12648 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12649 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12650 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12652 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12653 | |
| 12654 | |
| 12655 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12656 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12657 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12658 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12659 | |
| 12660 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12661 | # The cast to long int works around a bug in the HP C Compiler |
| 12662 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12663 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12664 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12666 | $as_echo_n "checking size of long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12667 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12668 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12669 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12670 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12671 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12672 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12673 | if test "$ac_cv_type_long" = yes; then |
| 12674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12676 | as_fn_error 77 "cannot compute sizeof (long) |
| 12677 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12678 | else |
| 12679 | ac_cv_sizeof_long=0 |
| 12680 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12681 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12682 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12683 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12685 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12686 | |
| 12687 | |
| 12688 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12689 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12690 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12691 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12692 | |
| 12693 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12694 | # The cast to long int works around a bug in the HP C Compiler |
| 12695 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12696 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12697 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12699 | $as_echo_n "checking size of long long... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12700 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12701 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12702 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12703 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12704 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12705 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12706 | if test "$ac_cv_type_long_long" = yes; then |
| 12707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12709 | as_fn_error 77 "cannot compute sizeof (long long) |
| 12710 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12711 | else |
| 12712 | ac_cv_sizeof_long_long=0 |
| 12713 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12714 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12715 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12716 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12718 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12719 | |
| 12720 | |
| 12721 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12722 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12723 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12724 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12725 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12726 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12727 | # The cast to long int works around a bug in the HP C Compiler |
| 12728 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12729 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12730 | # This bug is HP SR number 8606223364. |
| 12731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 12732 | $as_echo_n "checking size of off_t... " >&6; } |
| 12733 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 12734 | $as_echo_n "(cached) " >&6 |
| 12735 | else |
| 12736 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 12737 | |
| 12738 | else |
| 12739 | if test "$ac_cv_type_off_t" = yes; then |
| 12740 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12741 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12742 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 12743 | See \`config.log' for more details" "$LINENO" 5; } |
| 12744 | else |
| 12745 | ac_cv_sizeof_off_t=0 |
| 12746 | fi |
| 12747 | fi |
| 12748 | |
| 12749 | fi |
| 12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 12751 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 12752 | |
| 12753 | |
| 12754 | |
| 12755 | cat >>confdefs.h <<_ACEOF |
| 12756 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 12757 | _ACEOF |
| 12758 | |
| 12759 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12760 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 12761 | SIZEOF_INT=$ac_cv_sizeof_int |
| 12762 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12763 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12764 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
| 12765 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12766 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12767 | |
| 12768 | |
| 12769 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12771 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12772 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12773 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12774 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12775 | ac_cv_c_bigendian=unknown |
| 12776 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12778 | /* end confdefs.h. */ |
| 12779 | #ifndef __APPLE_CC__ |
| 12780 | not a universal capable compiler |
| 12781 | #endif |
| 12782 | typedef int dummy; |
| 12783 | |
| 12784 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12785 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12786 | |
| 12787 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12788 | # there are at least two -arch flags with different values. |
| 12789 | ac_arch= |
| 12790 | ac_prev= |
| 12791 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12792 | if test -n "$ac_prev"; then |
| 12793 | case $ac_word in |
| 12794 | i?86 | x86_64 | ppc | ppc64) |
| 12795 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12796 | ac_arch=$ac_word |
| 12797 | else |
| 12798 | ac_cv_c_bigendian=universal |
| 12799 | break |
| 12800 | fi |
| 12801 | ;; |
| 12802 | esac |
| 12803 | ac_prev= |
| 12804 | elif test "x$ac_word" = "x-arch"; then |
| 12805 | ac_prev=arch |
| 12806 | fi |
| 12807 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12808 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12810 | if test $ac_cv_c_bigendian = unknown; then |
| 12811 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12813 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12814 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12815 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12816 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12817 | int |
| 12818 | main () |
| 12819 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12820 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12821 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12822 | && LITTLE_ENDIAN) |
| 12823 | bogus endian macros |
| 12824 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12825 | |
| 12826 | ; |
| 12827 | return 0; |
| 12828 | } |
| 12829 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12830 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12831 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12833 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12834 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12835 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12836 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12837 | int |
| 12838 | main () |
| 12839 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12840 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12841 | not big endian |
| 12842 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12843 | |
| 12844 | ; |
| 12845 | return 0; |
| 12846 | } |
| 12847 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12848 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12849 | ac_cv_c_bigendian=yes |
| 12850 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12851 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12852 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12854 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12856 | fi |
| 12857 | if test $ac_cv_c_bigendian = unknown; then |
| 12858 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12860 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12861 | #include <limits.h> |
| 12862 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12863 | int |
| 12864 | main () |
| 12865 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12866 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12867 | bogus endian macros |
| 12868 | #endif |
| 12869 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12870 | ; |
| 12871 | return 0; |
| 12872 | } |
| 12873 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12874 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12875 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12877 | /* end confdefs.h. */ |
| 12878 | #include <limits.h> |
| 12879 | |
| 12880 | int |
| 12881 | main () |
| 12882 | { |
| 12883 | #ifndef _BIG_ENDIAN |
| 12884 | not big endian |
| 12885 | #endif |
| 12886 | |
| 12887 | ; |
| 12888 | return 0; |
| 12889 | } |
| 12890 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12891 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12892 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12893 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12894 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12895 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12897 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12899 | fi |
| 12900 | if test $ac_cv_c_bigendian = unknown; then |
| 12901 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12902 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12903 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12905 | /* end confdefs.h. */ |
| 12906 | short int ascii_mm[] = |
| 12907 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12908 | short int ascii_ii[] = |
| 12909 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12910 | int use_ascii (int i) { |
| 12911 | return ascii_mm[i] + ascii_ii[i]; |
| 12912 | } |
| 12913 | short int ebcdic_ii[] = |
| 12914 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12915 | short int ebcdic_mm[] = |
| 12916 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12917 | int use_ebcdic (int i) { |
| 12918 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12919 | } |
| 12920 | extern int foo; |
| 12921 | |
| 12922 | int |
| 12923 | main () |
| 12924 | { |
| 12925 | return use_ascii (foo) == use_ebcdic (foo); |
| 12926 | ; |
| 12927 | return 0; |
| 12928 | } |
| 12929 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12930 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12931 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12932 | ac_cv_c_bigendian=yes |
| 12933 | fi |
| 12934 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12935 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12936 | ac_cv_c_bigendian=no |
| 12937 | else |
| 12938 | # finding both strings is unlikely to happen, but who knows? |
| 12939 | ac_cv_c_bigendian=unknown |
| 12940 | fi |
| 12941 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12942 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12944 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12946 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12947 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12948 | int |
| 12949 | main () |
| 12950 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12951 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12952 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12953 | union |
| 12954 | { |
| 12955 | long int l; |
| 12956 | char c[sizeof (long int)]; |
| 12957 | } u; |
| 12958 | u.l = 1; |
| 12959 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12960 | |
| 12961 | ; |
| 12962 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12963 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12964 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12965 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12966 | ac_cv_c_bigendian=no |
| 12967 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12968 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12969 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12971 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12972 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12973 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12974 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12975 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12977 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12978 | case $ac_cv_c_bigendian in #( |
| 12979 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12980 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12981 | ;; #( |
| 12982 | no) |
| 12983 | ;; #( |
| 12984 | universal) |
| 12985 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12986 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12987 | |
| 12988 | ;; #( |
| 12989 | *) |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 12990 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12991 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12992 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12993 | |
Chen Qi | 91f0468 | 2014-05-05 21:08:42 -0400 | [diff] [blame] | 12994 | if test $cross_compiling = no; then |
| 12995 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12996 | else |
| 12997 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12998 | fi |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 12999 | ASM_TYPES_HEADER=./asm_types.h |
| 13000 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 13001 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 13002 | > public_config.h |
| 13003 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 13004 | uniq tmp_config.$$ >> public_config.h |
| 13005 | else |
| 13006 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 13007 | fi |
| 13008 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 13009 | uniq tmp_config.$$ >> public_config.h |
| 13010 | else |
| 13011 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 13012 | fi |
| 13013 | rm -f tmp_config.$$ |
| 13014 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 13015 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13016 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13017 | do : |
| 13018 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13019 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13020 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13021 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13022 | _ACEOF |
| 13023 | |
| 13024 | fi |
| 13025 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13026 | done |
| 13027 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13028 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13029 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13030 | |
| 13031 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 13032 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13033 | _ACEOF |
| 13034 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 13035 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13036 | fi |
| 13037 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13039 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13040 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13041 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13042 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13044 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13045 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13046 | int |
| 13047 | main () |
| 13048 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13049 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13050 | ; |
| 13051 | return 0; |
| 13052 | } |
| 13053 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13054 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13055 | e2fsprogs_cv_struct_st_flags=yes |
| 13056 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13057 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13058 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13060 | fi |
| 13061 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13063 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13064 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13066 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13067 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13068 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13069 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13071 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13072 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13073 | int |
| 13074 | main () |
| 13075 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13076 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13077 | ; |
| 13078 | return 0; |
| 13079 | } |
| 13080 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13081 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13082 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 13083 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13084 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13085 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13087 | fi |
| 13088 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13090 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13091 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13092 | |
| 13093 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13094 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13095 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13096 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13097 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13098 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13099 | " |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13100 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13101 | |
| 13102 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13103 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13104 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13105 | |
| 13106 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13107 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13108 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13110 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13111 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13112 | $as_echo_n "(cached) " >&6 |
| 13113 | else |
| 13114 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13116 | /* end confdefs.h. */ |
| 13117 | |
| 13118 | /* Override any GCC internal prototype to avoid an error. |
| 13119 | Use char because int might match the return type of a GCC |
| 13120 | builtin and then its argument prototype would still apply. */ |
| 13121 | #ifdef __cplusplus |
| 13122 | extern "C" |
| 13123 | #endif |
| 13124 | char blkid_probe_all (); |
| 13125 | int |
| 13126 | main () |
| 13127 | { |
| 13128 | return blkid_probe_all (); |
| 13129 | ; |
| 13130 | return 0; |
| 13131 | } |
| 13132 | _ACEOF |
| 13133 | for ac_lib in '' blkid; do |
| 13134 | if test -z "$ac_lib"; then |
| 13135 | ac_res="none required" |
| 13136 | else |
| 13137 | ac_res=-l$ac_lib |
| 13138 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13139 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13140 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13141 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13142 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13143 | rm -f core conftest.err conftest.$ac_objext \ |
| 13144 | conftest$ac_exeext |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13145 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13146 | break |
| 13147 | fi |
| 13148 | done |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13149 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13150 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13151 | else |
| 13152 | ac_cv_search_blkid_probe_all=no |
| 13153 | fi |
| 13154 | rm conftest.$ac_ext |
| 13155 | LIBS=$ac_func_search_save_LIBS |
| 13156 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13158 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 13159 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13160 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 13161 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13162 | |
| 13163 | fi |
| 13164 | |
| 13165 | fi |
Theodore Ts'o | 74f2c4a | 2015-06-19 19:28:25 -0400 | [diff] [blame] | 13166 | for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13167 | do : |
| 13168 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13169 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13170 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13171 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13172 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13173 | _ACEOF |
| 13174 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13175 | fi |
| 13176 | done |
| 13177 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13178 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13180 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13181 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13182 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13183 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13184 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13185 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13187 | /* end confdefs.h. */ |
| 13188 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13189 | /* Override any GCC internal prototype to avoid an error. |
| 13190 | Use char because int might match the return type of a GCC |
| 13191 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13192 | #ifdef __cplusplus |
| 13193 | extern "C" |
| 13194 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13195 | char socket (); |
| 13196 | int |
| 13197 | main () |
| 13198 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13199 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13200 | ; |
| 13201 | return 0; |
| 13202 | } |
| 13203 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13204 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13205 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13206 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13207 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13208 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13209 | rm -f core conftest.err conftest.$ac_objext \ |
| 13210 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13211 | LIBS=$ac_check_lib_save_LIBS |
| 13212 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13214 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13215 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13216 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13217 | fi |
| 13218 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13219 | |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
| 13221 | $as_echo_n "checking for magic_file in -lmagic... " >&6; } |
| 13222 | if ${ac_cv_lib_magic_magic_file+:} false; then : |
| 13223 | $as_echo_n "(cached) " >&6 |
| 13224 | else |
| 13225 | ac_check_lib_save_LIBS=$LIBS |
| 13226 | LIBS="-lmagic $LIBS" |
| 13227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13228 | /* end confdefs.h. */ |
| 13229 | |
| 13230 | /* Override any GCC internal prototype to avoid an error. |
| 13231 | Use char because int might match the return type of a GCC |
| 13232 | builtin and then its argument prototype would still apply. */ |
| 13233 | #ifdef __cplusplus |
| 13234 | extern "C" |
| 13235 | #endif |
| 13236 | char magic_file (); |
| 13237 | int |
| 13238 | main () |
| 13239 | { |
| 13240 | return magic_file (); |
| 13241 | ; |
| 13242 | return 0; |
| 13243 | } |
| 13244 | _ACEOF |
| 13245 | if ac_fn_c_try_link "$LINENO"; then : |
| 13246 | ac_cv_lib_magic_magic_file=yes |
| 13247 | else |
| 13248 | ac_cv_lib_magic_magic_file=no |
| 13249 | fi |
| 13250 | rm -f core conftest.err conftest.$ac_objext \ |
| 13251 | conftest$ac_exeext conftest.$ac_ext |
| 13252 | LIBS=$ac_check_lib_save_LIBS |
| 13253 | fi |
| 13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 |
| 13255 | $as_echo "$ac_cv_lib_magic_magic_file" >&6; } |
| 13256 | if test "x$ac_cv_lib_magic_magic_file" = xyes; then : |
| 13257 | MAGIC_LIB=-lmagic |
| 13258 | for ac_header in magic.h |
| 13259 | do : |
| 13260 | ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" |
| 13261 | if test "x$ac_cv_header_magic_h" = xyes; then : |
| 13262 | cat >>confdefs.h <<_ACEOF |
| 13263 | #define HAVE_MAGIC_H 1 |
| 13264 | _ACEOF |
| 13265 | |
| 13266 | fi |
| 13267 | |
| 13268 | done |
| 13269 | |
| 13270 | fi |
| 13271 | |
Theodore Ts'o | d2e3c0d | 2014-09-21 01:25:58 -0400 | [diff] [blame] | 13272 | if test "$ac_cv_lib_dl_dlopen" = yes ; then |
| 13273 | MAGIC_LIB=$DLOPEN_LIB |
| 13274 | fi |
Darrick J. Wong | b291c11 | 2014-09-13 15:12:46 -0700 | [diff] [blame] | 13275 | |
Darrick J. Wong | 81cbf1e | 2015-05-13 17:22:40 -0700 | [diff] [blame] | 13276 | FUSE_CMT= |
| 13277 | FUSE_LIB= |
| 13278 | # Check whether --enable-fuse2fs was given. |
| 13279 | if test "${enable_fuse2fs+set}" = set; then : |
| 13280 | enableval=$enable_fuse2fs; if test "$enableval" = "no" |
| 13281 | then |
| 13282 | FUSE_CMT="#" |
| 13283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 |
| 13284 | $as_echo "Disabling fuse2fs" >&6; } |
| 13285 | else |
| 13286 | for ac_header in pthread.h fuse.h |
| 13287 | do : |
| 13288 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13289 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13290 | #define FUSE_USE_VERSION 29 |
| 13291 | " |
| 13292 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13293 | cat >>confdefs.h <<_ACEOF |
| 13294 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13295 | _ACEOF |
| 13296 | |
| 13297 | else |
| 13298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13300 | as_fn_error $? "Cannot find fuse2fs headers. |
| 13301 | See \`config.log' for more details" "$LINENO" 5; } |
| 13302 | fi |
| 13303 | |
| 13304 | done |
| 13305 | |
| 13306 | |
| 13307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13308 | /* end confdefs.h. */ |
| 13309 | #define FUSE_USE_VERSION 29 |
| 13310 | #ifdef __linux__ |
| 13311 | #include <linux/fs.h> |
| 13312 | #include <linux/falloc.h> |
| 13313 | #include <linux/xattr.h> |
| 13314 | #endif |
| 13315 | |
| 13316 | int |
| 13317 | main () |
| 13318 | { |
| 13319 | |
| 13320 | ; |
| 13321 | return 0; |
| 13322 | } |
| 13323 | _ACEOF |
| 13324 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 13325 | |
| 13326 | else |
| 13327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13328 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13329 | as_fn_error $? "Cannot find fuse2fs Linux headers. |
| 13330 | See \`config.log' for more details" "$LINENO" 5; } |
| 13331 | fi |
| 13332 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 13333 | |
| 13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13335 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13336 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13337 | $as_echo_n "(cached) " >&6 |
| 13338 | else |
| 13339 | ac_check_lib_save_LIBS=$LIBS |
| 13340 | LIBS="-losxfuse $LIBS" |
| 13341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13342 | /* end confdefs.h. */ |
| 13343 | |
| 13344 | /* Override any GCC internal prototype to avoid an error. |
| 13345 | Use char because int might match the return type of a GCC |
| 13346 | builtin and then its argument prototype would still apply. */ |
| 13347 | #ifdef __cplusplus |
| 13348 | extern "C" |
| 13349 | #endif |
| 13350 | char fuse_main (); |
| 13351 | int |
| 13352 | main () |
| 13353 | { |
| 13354 | return fuse_main (); |
| 13355 | ; |
| 13356 | return 0; |
| 13357 | } |
| 13358 | _ACEOF |
| 13359 | if ac_fn_c_try_link "$LINENO"; then : |
| 13360 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13361 | else |
| 13362 | ac_cv_lib_osxfuse_fuse_main=no |
| 13363 | fi |
| 13364 | rm -f core conftest.err conftest.$ac_objext \ |
| 13365 | conftest$ac_exeext conftest.$ac_ext |
| 13366 | LIBS=$ac_check_lib_save_LIBS |
| 13367 | fi |
| 13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13369 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13370 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13371 | FUSE_LIB=-losxfuse |
| 13372 | else |
| 13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13374 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13375 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13376 | $as_echo_n "(cached) " >&6 |
| 13377 | else |
| 13378 | ac_check_lib_save_LIBS=$LIBS |
| 13379 | LIBS="-lfuse $LIBS" |
| 13380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13381 | /* end confdefs.h. */ |
| 13382 | |
| 13383 | /* Override any GCC internal prototype to avoid an error. |
| 13384 | Use char because int might match the return type of a GCC |
| 13385 | builtin and then its argument prototype would still apply. */ |
| 13386 | #ifdef __cplusplus |
| 13387 | extern "C" |
| 13388 | #endif |
| 13389 | char fuse_main (); |
| 13390 | int |
| 13391 | main () |
| 13392 | { |
| 13393 | return fuse_main (); |
| 13394 | ; |
| 13395 | return 0; |
| 13396 | } |
| 13397 | _ACEOF |
| 13398 | if ac_fn_c_try_link "$LINENO"; then : |
| 13399 | ac_cv_lib_fuse_fuse_main=yes |
| 13400 | else |
| 13401 | ac_cv_lib_fuse_fuse_main=no |
| 13402 | fi |
| 13403 | rm -f core conftest.err conftest.$ac_objext \ |
| 13404 | conftest$ac_exeext conftest.$ac_ext |
| 13405 | LIBS=$ac_check_lib_save_LIBS |
| 13406 | fi |
| 13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13408 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13409 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13410 | FUSE_LIB=-lfuse |
| 13411 | else |
| 13412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13414 | as_fn_error $? "Cannot find fuse library. |
| 13415 | See \`config.log' for more details" "$LINENO" 5; } |
| 13416 | fi |
| 13417 | |
| 13418 | fi |
| 13419 | |
| 13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 |
| 13421 | $as_echo "Enabling fuse2fs" >&6; } |
| 13422 | fi |
| 13423 | |
| 13424 | else |
| 13425 | for ac_header in pthread.h fuse.h |
| 13426 | do : |
| 13427 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13428 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
| 13429 | #define FUSE_USE_VERSION 29 |
| 13430 | #ifdef __linux__ |
| 13431 | # include <linux/fs.h> |
| 13432 | # include <linux/falloc.h> |
| 13433 | # include <linux/xattr.h> |
| 13434 | #endif |
| 13435 | " |
| 13436 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13437 | cat >>confdefs.h <<_ACEOF |
| 13438 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13439 | _ACEOF |
| 13440 | |
| 13441 | else |
| 13442 | FUSE_CMT="#" |
| 13443 | fi |
| 13444 | |
| 13445 | done |
| 13446 | |
| 13447 | if test -z "$FUSE_CMT" |
| 13448 | then |
| 13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
| 13450 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } |
| 13451 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : |
| 13452 | $as_echo_n "(cached) " >&6 |
| 13453 | else |
| 13454 | ac_check_lib_save_LIBS=$LIBS |
| 13455 | LIBS="-losxfuse $LIBS" |
| 13456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13457 | /* end confdefs.h. */ |
| 13458 | |
| 13459 | /* Override any GCC internal prototype to avoid an error. |
| 13460 | Use char because int might match the return type of a GCC |
| 13461 | builtin and then its argument prototype would still apply. */ |
| 13462 | #ifdef __cplusplus |
| 13463 | extern "C" |
| 13464 | #endif |
| 13465 | char fuse_main (); |
| 13466 | int |
| 13467 | main () |
| 13468 | { |
| 13469 | return fuse_main (); |
| 13470 | ; |
| 13471 | return 0; |
| 13472 | } |
| 13473 | _ACEOF |
| 13474 | if ac_fn_c_try_link "$LINENO"; then : |
| 13475 | ac_cv_lib_osxfuse_fuse_main=yes |
| 13476 | else |
| 13477 | ac_cv_lib_osxfuse_fuse_main=no |
| 13478 | fi |
| 13479 | rm -f core conftest.err conftest.$ac_objext \ |
| 13480 | conftest$ac_exeext conftest.$ac_ext |
| 13481 | LIBS=$ac_check_lib_save_LIBS |
| 13482 | fi |
| 13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
| 13484 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } |
| 13485 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : |
| 13486 | FUSE_LIB=-losxfuse |
| 13487 | else |
| 13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 |
| 13489 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } |
| 13490 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : |
| 13491 | $as_echo_n "(cached) " >&6 |
| 13492 | else |
| 13493 | ac_check_lib_save_LIBS=$LIBS |
| 13494 | LIBS="-lfuse $LIBS" |
| 13495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13496 | /* end confdefs.h. */ |
| 13497 | |
| 13498 | /* Override any GCC internal prototype to avoid an error. |
| 13499 | Use char because int might match the return type of a GCC |
| 13500 | builtin and then its argument prototype would still apply. */ |
| 13501 | #ifdef __cplusplus |
| 13502 | extern "C" |
| 13503 | #endif |
| 13504 | char fuse_main (); |
| 13505 | int |
| 13506 | main () |
| 13507 | { |
| 13508 | return fuse_main (); |
| 13509 | ; |
| 13510 | return 0; |
| 13511 | } |
| 13512 | _ACEOF |
| 13513 | if ac_fn_c_try_link "$LINENO"; then : |
| 13514 | ac_cv_lib_fuse_fuse_main=yes |
| 13515 | else |
| 13516 | ac_cv_lib_fuse_fuse_main=no |
| 13517 | fi |
| 13518 | rm -f core conftest.err conftest.$ac_objext \ |
| 13519 | conftest$ac_exeext conftest.$ac_ext |
| 13520 | LIBS=$ac_check_lib_save_LIBS |
| 13521 | fi |
| 13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
| 13523 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } |
| 13524 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : |
| 13525 | FUSE_LIB=-lfuse |
| 13526 | else |
| 13527 | FUSE_CMT="#" |
| 13528 | fi |
| 13529 | |
| 13530 | fi |
| 13531 | |
| 13532 | fi |
| 13533 | if test -z "$FUSE_CMT" |
| 13534 | then |
| 13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 |
| 13536 | $as_echo "Enabling fuse2fs by default." >&6; } |
| 13537 | fi |
| 13538 | |
| 13539 | fi |
| 13540 | |
| 13541 | |
| 13542 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13544 | $as_echo_n "checking for optreset... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13545 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13546 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13547 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13549 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13550 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13551 | |
| 13552 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13554 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13555 | ac_cv_have_optreset=yes |
| 13556 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13557 | ac_cv_have_optreset=no |
| 13558 | fi |
| 13559 | rm -f conftest* |
| 13560 | |
| 13561 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13563 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13564 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13565 | |
| 13566 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13567 | |
| 13568 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13569 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13570 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13571 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13572 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13573 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13574 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13576 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13577 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13578 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13579 | else |
| 13580 | ac_check_lib_save_LIBS=$LIBS |
| 13581 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13583 | /* end confdefs.h. */ |
| 13584 | |
| 13585 | /* Override any GCC internal prototype to avoid an error. |
| 13586 | Use char because int might match the return type of a GCC |
| 13587 | builtin and then its argument prototype would still apply. */ |
| 13588 | #ifdef __cplusplus |
| 13589 | extern "C" |
| 13590 | #endif |
| 13591 | char sem_init (); |
| 13592 | int |
| 13593 | main () |
| 13594 | { |
| 13595 | return sem_init (); |
| 13596 | ; |
| 13597 | return 0; |
| 13598 | } |
| 13599 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13600 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13601 | ac_cv_lib_pthread_sem_init=yes |
| 13602 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13603 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13604 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13605 | rm -f core conftest.err conftest.$ac_objext \ |
| 13606 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13607 | LIBS=$ac_check_lib_save_LIBS |
| 13608 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13610 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13611 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13612 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13613 | |
| 13614 | SEM_INIT_LIB=-lpthread |
| 13615 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13617 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13618 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13619 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13620 | else |
| 13621 | ac_check_lib_save_LIBS=$LIBS |
| 13622 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13624 | /* end confdefs.h. */ |
| 13625 | |
| 13626 | /* Override any GCC internal prototype to avoid an error. |
| 13627 | Use char because int might match the return type of a GCC |
| 13628 | builtin and then its argument prototype would still apply. */ |
| 13629 | #ifdef __cplusplus |
| 13630 | extern "C" |
| 13631 | #endif |
| 13632 | char sem_init (); |
| 13633 | int |
| 13634 | main () |
| 13635 | { |
| 13636 | return sem_init (); |
| 13637 | ; |
| 13638 | return 0; |
| 13639 | } |
| 13640 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13641 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13642 | ac_cv_lib_rt_sem_init=yes |
| 13643 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13644 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13645 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13646 | rm -f core conftest.err conftest.$ac_objext \ |
| 13647 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13648 | LIBS=$ac_check_lib_save_LIBS |
| 13649 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13651 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13652 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13653 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13654 | |
| 13655 | SEM_INIT_LIB=-lrt |
| 13656 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13658 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13659 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13660 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13661 | else |
| 13662 | ac_check_lib_save_LIBS=$LIBS |
| 13663 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13665 | /* end confdefs.h. */ |
| 13666 | |
| 13667 | /* Override any GCC internal prototype to avoid an error. |
| 13668 | Use char because int might match the return type of a GCC |
| 13669 | builtin and then its argument prototype would still apply. */ |
| 13670 | #ifdef __cplusplus |
| 13671 | extern "C" |
| 13672 | #endif |
| 13673 | char sem_init (); |
| 13674 | int |
| 13675 | main () |
| 13676 | { |
| 13677 | return sem_init (); |
| 13678 | ; |
| 13679 | return 0; |
| 13680 | } |
| 13681 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13682 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13683 | ac_cv_lib_posix4_sem_init=yes |
| 13684 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13685 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13686 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13687 | rm -f core conftest.err conftest.$ac_objext \ |
| 13688 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13689 | LIBS=$ac_check_lib_save_LIBS |
| 13690 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13692 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13693 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13694 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13695 | |
| 13696 | SEM_INIT_LIB=-lposix4 |
| 13697 | fi |
| 13698 | |
| 13699 | fi |
| 13700 | |
| 13701 | fi |
| 13702 | |
| 13703 | fi |
| 13704 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13706 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 13707 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13708 | UNI_DIFF_OPTS=-u |
| 13709 | else |
| 13710 | UNI_DIFF_OPTS=-c |
| 13711 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13713 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13714 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13715 | case "$host_os" in |
| 13716 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13717 | |
| 13718 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13719 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13720 | ;; |
| 13721 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13722 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13723 | CYGWIN_CMT="#" |
| 13724 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13725 | case "$host_os" in |
| 13726 | linux*) |
| 13727 | LINUX_CMT= |
| 13728 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13729 | cygwin) |
| 13730 | CYGWIN_CMT= |
| 13731 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13732 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13733 | esac |
| 13734 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13735 | |
| 13736 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13737 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13738 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13739 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 13740 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13742 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13743 | fi |
| 13744 | ;; |
| 13745 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13746 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13747 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13748 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13749 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13751 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13752 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13754 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13755 | mandir=/usr/share/man |
| 13756 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13757 | fi |
| 13758 | ;; |
| 13759 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13760 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 13761 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13762 | root_prefix="$ac_default_prefix" |
| 13763 | else |
| 13764 | root_prefix="$prefix" |
| 13765 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 13766 | root_bindir=$bindir |
| 13767 | root_sbindir=$sbindir |
| 13768 | root_libdir=$libdir |
| 13769 | root_sysconfdir=$sysconfdir |
| 13770 | else |
| 13771 | root_bindir='${root_prefix}/bin' |
| 13772 | root_sbindir='${root_prefix}/sbin' |
| 13773 | root_libdir='${root_prefix}/lib' |
| 13774 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13775 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13776 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 13777 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13779 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13780 | fi |
| 13781 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 13782 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13784 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13785 | fi |
| 13786 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 13787 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13789 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13790 | fi |
| 13791 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 13792 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13794 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13795 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13796 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13797 | |
| 13798 | |
| 13799 | |
| 13800 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13801 | |
| 13802 | # Check whether --with-multiarch was given. |
| 13803 | if test "${with_multiarch+set}" = set; then : |
Theodore Ts'o | d7fa410 | 2014-02-05 15:45:36 -0500 | [diff] [blame] | 13804 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
| 13805 | libdir=/usr/lib64 |
| 13806 | root_libdir=/lib64 |
| 13807 | else |
| 13808 | libdir=$libdir/$withval |
| 13809 | root_libdir=$root_libdir/$withval |
| 13810 | fi |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13811 | |
| 13812 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 13813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 13814 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13815 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13816 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13817 | else |
| 13818 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13820 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13821 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13822 | int |
| 13823 | main () |
| 13824 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13825 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13826 | ; |
| 13827 | return 0; |
| 13828 | } |
| 13829 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13830 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13831 | ac_cv_e2fsprogs_use_static=yes |
| 13832 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13833 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13834 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13835 | rm -f core conftest.err conftest.$ac_objext \ |
| 13836 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13837 | LDFLAGS=$SAVE_LDFLAGS |
| 13838 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13839 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13840 | case "$host_os" in |
| 13841 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13842 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13843 | ;; |
| 13844 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13846 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 13847 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13848 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13849 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13850 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13851 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13852 | case "$host_os" in |
| 13853 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13855 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13856 | |
| 13857 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13858 | |
| 13859 | ;; |
| 13860 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13861 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 13862 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 13863 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13864 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13865 | if test "$cross_compiling" = yes ; then |
| 13866 | DO_TEST_SUITE= |
| 13867 | else |
| 13868 | DO_TEST_SUITE=check |
| 13869 | fi |
| 13870 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13871 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 13872 | if test -n "$CPPFLAGS" ; then |
| 13873 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 13874 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13875 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13876 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13877 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 13878 | if test -n "$WITH_DIET_LIBC" ; then |
| 13879 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 13880 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13881 | |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 13882 | |
| 13883 | MKINSTALLDIRS= |
| 13884 | if test -n "$ac_aux_dir"; then |
| 13885 | case "$ac_aux_dir" in |
| 13886 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 13887 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 13888 | esac |
| 13889 | fi |
| 13890 | if test -z "$MKINSTALLDIRS"; then |
| 13891 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 13892 | fi |
| 13893 | |
| 13894 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13895 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 13896 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13897 | BUILD_LDFLAGS="$LDFLAGS" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13898 | fi |
| 13899 | |
| 13900 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13901 | test -d lib || mkdir lib |
| 13902 | test -d include || mkdir include |
| 13903 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13904 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 13905 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 13906 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 13907 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 13908 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13909 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 13910 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 13911 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 13912 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 13913 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13914 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 13915 | resize/Makefile doc/Makefile intl/Makefile \ |
| 13916 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13917 | if test -d `dirname ${srcdir}/$i` ; then |
| 13918 | outlist="$outlist $i" |
| 13919 | fi |
| 13920 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13921 | ac_config_files="$ac_config_files $outlist" |
| 13922 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13923 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13924 | # This file is a shell script that caches the results of configure |
| 13925 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13926 | # scripts and configure runs, see configure's option --config-cache. |
| 13927 | # It is not useful on other systems. If it contains results you don't |
| 13928 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13929 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13930 | # config.status only pays attention to the cache file if you give it |
| 13931 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13932 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13933 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13934 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13935 | # following values. |
| 13936 | |
| 13937 | _ACEOF |
| 13938 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13939 | # The following way of writing the cache mishandles newlines in values, |
| 13940 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13941 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13942 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13943 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13944 | ( |
| 13945 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13946 | eval ac_val=\$$ac_var |
| 13947 | case $ac_val in #( |
| 13948 | *${as_nl}*) |
| 13949 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13950 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13951 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13952 | esac |
| 13953 | case $ac_var in #( |
| 13954 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13955 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13956 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13957 | esac ;; |
| 13958 | esac |
| 13959 | done |
| 13960 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13961 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13962 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13963 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13964 | # `set' does not quote correctly, so add quotes: double-quote |
| 13965 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13966 | sed -n \ |
| 13967 | "s/'/'\\\\''/g; |
| 13968 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13969 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13970 | *) |
| 13971 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13972 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13973 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13974 | esac | |
| 13975 | sort |
| 13976 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13977 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13978 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13979 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13980 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13981 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13982 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13983 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13984 | :end' >>confcache |
| 13985 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13986 | if test -w "$cache_file"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13987 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13989 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 13990 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13991 | cat confcache >"$cache_file" |
| 13992 | else |
| 13993 | case $cache_file in #( |
| 13994 | */* | ?:*) |
| 13995 | mv -f confcache "$cache_file"$$ && |
| 13996 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13997 | *) |
| 13998 | mv -f confcache "$cache_file" ;; |
| 13999 | esac |
| 14000 | fi |
| 14001 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14002 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14004 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14005 | fi |
| 14006 | fi |
| 14007 | rm -f confcache |
| 14008 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14009 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14010 | # Let make expand exec_prefix. |
| 14011 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14012 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14013 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14014 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14015 | ac_libobjs= |
| 14016 | ac_ltlibobjs= |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14017 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14018 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14019 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14020 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14021 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14022 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 14023 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14024 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 14025 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14026 | done |
| 14027 | LIBOBJS=$ac_libobjs |
| 14028 | |
| 14029 | LTLIBOBJS=$ac_ltlibobjs |
| 14030 | |
| 14031 | |
| 14032 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14033 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14034 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14035 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14036 | ac_clean_files_save=$ac_clean_files |
| 14037 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14039 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14040 | as_write_fail=0 |
| 14041 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14042 | #! $SHELL |
| 14043 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14044 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14045 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14046 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14047 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14048 | debug=false |
| 14049 | ac_cs_recheck=false |
| 14050 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14051 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14052 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 14053 | export SHELL |
| 14054 | _ASEOF |
| 14055 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 14056 | ## -------------------- ## |
| 14057 | ## M4sh Initialization. ## |
| 14058 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14059 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14060 | # Be more Bourne compatible |
| 14061 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14062 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14063 | emulate sh |
| 14064 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14065 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14066 | # is contrary to our usage. Disable this feature. |
| 14067 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14068 | setopt NO_GLOB_SUBST |
| 14069 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14070 | case `(set -o) 2>/dev/null` in #( |
| 14071 | *posix*) : |
| 14072 | set -o posix ;; #( |
| 14073 | *) : |
| 14074 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14075 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14076 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14077 | |
| 14078 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14079 | as_nl=' |
| 14080 | ' |
| 14081 | export as_nl |
| 14082 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14083 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14084 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14085 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14086 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14087 | # but without wasting forks for bash or zsh. |
| 14088 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14089 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14090 | as_echo='print -r --' |
| 14091 | as_echo_n='print -rn --' |
| 14092 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14093 | as_echo='printf %s\n' |
| 14094 | as_echo_n='printf %s' |
| 14095 | else |
| 14096 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14097 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14098 | as_echo_n='/usr/ucb/echo -n' |
| 14099 | else |
| 14100 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14101 | as_echo_n_body='eval |
| 14102 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14103 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14104 | *"$as_nl"*) |
| 14105 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14106 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14107 | esac; |
| 14108 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14109 | ' |
| 14110 | export as_echo_n_body |
| 14111 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14112 | fi |
| 14113 | export as_echo_body |
| 14114 | as_echo='sh -c $as_echo_body as_echo' |
| 14115 | fi |
| 14116 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14117 | # The user is always right. |
| 14118 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14119 | PATH_SEPARATOR=: |
| 14120 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14121 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14122 | PATH_SEPARATOR=';' |
| 14123 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14124 | fi |
| 14125 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14126 | |
| 14127 | # IFS |
| 14128 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14129 | # there to prevent editors from complaining about space-tab. |
| 14130 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14131 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14132 | IFS=" "" $as_nl" |
| 14133 | |
| 14134 | # Find who we are. Look in the path if we contain no directory separator. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14135 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14136 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14137 | *[\\/]* ) as_myself=$0 ;; |
| 14138 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14139 | for as_dir in $PATH |
| 14140 | do |
| 14141 | IFS=$as_save_IFS |
| 14142 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14143 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14144 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14145 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14146 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14147 | ;; |
| 14148 | esac |
| 14149 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14150 | # in which case we are not to be found in the path. |
| 14151 | if test "x$as_myself" = x; then |
| 14152 | as_myself=$0 |
| 14153 | fi |
| 14154 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14155 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14156 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14157 | fi |
| 14158 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14159 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14160 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14161 | # suppresses any "Segmentation fault" message there. '((' could |
| 14162 | # trigger a bug in pdksh 5.2.14. |
| 14163 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14164 | do eval test x\${$as_var+set} = xset \ |
| 14165 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14166 | done |
| 14167 | PS1='$ ' |
| 14168 | PS2='> ' |
| 14169 | PS4='+ ' |
| 14170 | |
| 14171 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14172 | LC_ALL=C |
| 14173 | export LC_ALL |
| 14174 | LANGUAGE=C |
| 14175 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14176 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14177 | # CDPATH. |
| 14178 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14179 | |
| 14180 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14181 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14182 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14183 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14184 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14185 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14186 | as_fn_error () |
| 14187 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14188 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14189 | if test "$4"; then |
| 14190 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14191 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14192 | fi |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14193 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14194 | as_fn_exit $as_status |
| 14195 | } # as_fn_error |
| 14196 | |
| 14197 | |
| 14198 | # as_fn_set_status STATUS |
| 14199 | # ----------------------- |
| 14200 | # Set $? to STATUS, without forking. |
| 14201 | as_fn_set_status () |
| 14202 | { |
| 14203 | return $1 |
| 14204 | } # as_fn_set_status |
| 14205 | |
| 14206 | # as_fn_exit STATUS |
| 14207 | # ----------------- |
| 14208 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14209 | as_fn_exit () |
| 14210 | { |
| 14211 | set +e |
| 14212 | as_fn_set_status $1 |
| 14213 | exit $1 |
| 14214 | } # as_fn_exit |
| 14215 | |
| 14216 | # as_fn_unset VAR |
| 14217 | # --------------- |
| 14218 | # Portably unset VAR. |
| 14219 | as_fn_unset () |
| 14220 | { |
| 14221 | { eval $1=; unset $1;} |
| 14222 | } |
| 14223 | as_unset=as_fn_unset |
| 14224 | # as_fn_append VAR VALUE |
| 14225 | # ---------------------- |
| 14226 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14227 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14228 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14229 | # implementations. |
| 14230 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14231 | eval 'as_fn_append () |
| 14232 | { |
| 14233 | eval $1+=\$2 |
| 14234 | }' |
| 14235 | else |
| 14236 | as_fn_append () |
| 14237 | { |
| 14238 | eval $1=\$$1\$2 |
| 14239 | } |
| 14240 | fi # as_fn_append |
| 14241 | |
| 14242 | # as_fn_arith ARG... |
| 14243 | # ------------------ |
| 14244 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14245 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14246 | # must be portable across $(()) and expr. |
| 14247 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14248 | eval 'as_fn_arith () |
| 14249 | { |
| 14250 | as_val=$(( $* )) |
| 14251 | }' |
| 14252 | else |
| 14253 | as_fn_arith () |
| 14254 | { |
| 14255 | as_val=`expr "$@" || test $? -eq 1` |
| 14256 | } |
| 14257 | fi # as_fn_arith |
| 14258 | |
| 14259 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14260 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14261 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14262 | as_expr=expr |
| 14263 | else |
| 14264 | as_expr=false |
| 14265 | fi |
| 14266 | |
| 14267 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14268 | as_basename=basename |
| 14269 | else |
| 14270 | as_basename=false |
| 14271 | fi |
| 14272 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14273 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14274 | as_dirname=dirname |
| 14275 | else |
| 14276 | as_dirname=false |
| 14277 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14278 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14279 | as_me=`$as_basename -- "$0" || |
| 14280 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14281 | X"$0" : 'X\(//\)$' \| \ |
| 14282 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14283 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14284 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14285 | s//\1/ |
| 14286 | q |
| 14287 | } |
| 14288 | /^X\/\(\/\/\)$/{ |
| 14289 | s//\1/ |
| 14290 | q |
| 14291 | } |
| 14292 | /^X\/\(\/\).*/{ |
| 14293 | s//\1/ |
| 14294 | q |
| 14295 | } |
| 14296 | s/.*/./; q'` |
| 14297 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14298 | # Avoid depending upon Character Ranges. |
| 14299 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14300 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14301 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14302 | as_cr_digits='0123456789' |
| 14303 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14304 | |
| 14305 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14306 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14307 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14308 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14309 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14310 | xy) ECHO_C='\c';; |
| 14311 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14312 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14313 | esac;; |
| 14314 | *) |
| 14315 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14316 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14317 | |
| 14318 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14319 | if test -d conf$$.dir; then |
| 14320 | rm -f conf$$.dir/conf$$.file |
| 14321 | else |
| 14322 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14323 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14324 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14325 | if (echo >conf$$.file) 2>/dev/null; then |
| 14326 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14327 | as_ln_s='ln -s' |
| 14328 | # ... but there are two gotchas: |
| 14329 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14330 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14331 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14332 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14333 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14334 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14335 | as_ln_s=ln |
| 14336 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14337 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14338 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14339 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14340 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14341 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14342 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14343 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14344 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14345 | |
| 14346 | # as_fn_mkdir_p |
| 14347 | # ------------- |
| 14348 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14349 | as_fn_mkdir_p () |
| 14350 | { |
| 14351 | |
| 14352 | case $as_dir in #( |
| 14353 | -*) as_dir=./$as_dir;; |
| 14354 | esac |
| 14355 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14356 | as_dirs= |
| 14357 | while :; do |
| 14358 | case $as_dir in #( |
| 14359 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14360 | *) as_qdir=$as_dir;; |
| 14361 | esac |
| 14362 | as_dirs="'$as_qdir' $as_dirs" |
| 14363 | as_dir=`$as_dirname -- "$as_dir" || |
| 14364 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14365 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14366 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14367 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14368 | $as_echo X"$as_dir" | |
| 14369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14370 | s//\1/ |
| 14371 | q |
| 14372 | } |
| 14373 | /^X\(\/\/\)[^/].*/{ |
| 14374 | s//\1/ |
| 14375 | q |
| 14376 | } |
| 14377 | /^X\(\/\/\)$/{ |
| 14378 | s//\1/ |
| 14379 | q |
| 14380 | } |
| 14381 | /^X\(\/\).*/{ |
| 14382 | s//\1/ |
| 14383 | q |
| 14384 | } |
| 14385 | s/.*/./; q'` |
| 14386 | test -d "$as_dir" && break |
| 14387 | done |
| 14388 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14389 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14390 | |
| 14391 | |
| 14392 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14393 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14394 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14395 | else |
| 14396 | test -d ./-p && rmdir ./-p |
| 14397 | as_mkdir_p=false |
| 14398 | fi |
| 14399 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14400 | |
| 14401 | # as_fn_executable_p FILE |
| 14402 | # ----------------------- |
| 14403 | # Test if FILE is an executable regular file. |
| 14404 | as_fn_executable_p () |
| 14405 | { |
| 14406 | test -f "$1" && test -x "$1" |
| 14407 | } # as_fn_executable_p |
| 14408 | as_test_x='test -x' |
| 14409 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14410 | |
| 14411 | # Sed expression to map a string onto a valid CPP name. |
| 14412 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14413 | |
| 14414 | # Sed expression to map a string onto a valid variable name. |
| 14415 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14416 | |
| 14417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14418 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14419 | ## ----------------------------------- ## |
| 14420 | ## Main body of $CONFIG_STATUS script. ## |
| 14421 | ## ----------------------------------- ## |
| 14422 | _ASEOF |
| 14423 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14424 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14425 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14426 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14427 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14428 | # values after options handling. |
| 14429 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14430 | This file was extended by $as_me, which was |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14431 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14432 | |
| 14433 | CONFIG_FILES = $CONFIG_FILES |
| 14434 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14435 | CONFIG_LINKS = $CONFIG_LINKS |
| 14436 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14437 | $ $0 $@ |
| 14438 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14439 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14440 | " |
| 14441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14442 | _ACEOF |
| 14443 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14444 | case $ac_config_files in *" |
| 14445 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14446 | esac |
| 14447 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14448 | case $ac_config_headers in *" |
| 14449 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14450 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14451 | |
| 14452 | |
| 14453 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14454 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14455 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14456 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14457 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14458 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14459 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14460 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14461 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14462 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14463 | \`$as_me' instantiates files and other configuration actions |
| 14464 | from templates according to the current configuration. Unless the files |
| 14465 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14466 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14467 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14468 | |
| 14469 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14470 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14471 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14472 | -q, --quiet, --silent |
| 14473 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14474 | -d, --debug don't remove temporary files |
| 14475 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14476 | --file=FILE[:TEMPLATE] |
| 14477 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14478 | --header=FILE[:TEMPLATE] |
| 14479 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | |
| 14481 | Configuration files: |
| 14482 | $config_files |
| 14483 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14484 | Configuration headers: |
| 14485 | $config_headers |
| 14486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14487 | Configuration commands: |
| 14488 | $config_commands |
| 14489 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14490 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14491 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14492 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14493 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14494 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14495 | ac_cs_version="\\ |
| 14496 | config.status |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14497 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14498 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14499 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14500 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14501 | This config.status script is free software; the Free Software Foundation |
| 14502 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14503 | |
| 14504 | ac_pwd='$ac_pwd' |
| 14505 | srcdir='$srcdir' |
| 14506 | INSTALL='$INSTALL' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14507 | MKDIR_P='$MKDIR_P' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14508 | AWK='$AWK' |
| 14509 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14510 | _ACEOF |
| 14511 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14512 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14513 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14514 | ac_need_defaults=: |
| 14515 | while test $# != 0 |
| 14516 | do |
| 14517 | case $1 in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14518 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14519 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14520 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14521 | ac_shift=: |
| 14522 | ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14523 | --*=) |
| 14524 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14525 | ac_optarg= |
| 14526 | ac_shift=: |
| 14527 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14528 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14529 | ac_option=$1 |
| 14530 | ac_optarg=$2 |
| 14531 | ac_shift=shift |
| 14532 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14533 | esac |
| 14534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14535 | case $ac_option in |
| 14536 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14537 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14538 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14539 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14540 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14541 | --config | --confi | --conf | --con | --co | --c ) |
| 14542 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14543 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14544 | debug=: ;; |
| 14545 | --file | --fil | --fi | --f ) |
| 14546 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14547 | case $ac_optarg in |
| 14548 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14549 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14550 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14551 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14552 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14553 | --header | --heade | --head | --hea ) |
| 14554 | $ac_shift |
| 14555 | case $ac_optarg in |
| 14556 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14557 | esac |
| 14558 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 14559 | ac_need_defaults=false;; |
| 14560 | --he | --h) |
| 14561 | # Conflict between --help and --header |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14562 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14563 | Try \`$0 --help' for more information.";; |
| 14564 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14565 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14566 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14567 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14568 | ac_cs_silent=: ;; |
| 14569 | |
| 14570 | # This is an error. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14571 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14572 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14573 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14574 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14575 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14576 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14577 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14578 | shift |
| 14579 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14580 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14581 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14583 | if $ac_cs_silent; then |
| 14584 | exec 6>/dev/null |
| 14585 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14586 | fi |
| 14587 | |
| 14588 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14590 | if \$ac_cs_recheck; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14591 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14592 | shift |
| 14593 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14594 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14595 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14596 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14597 | fi |
| 14598 | |
| 14599 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14601 | exec 5>>config.log |
| 14602 | { |
| 14603 | echo |
| 14604 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14605 | ## Running $as_me. ## |
| 14606 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14607 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14608 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14609 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14610 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14611 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14612 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14613 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14614 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14615 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14616 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14617 | # from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14618 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14619 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 14620 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14621 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14622 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14623 | _ACEOF |
| 14624 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14626 | |
| 14627 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14628 | for ac_config_target in $ac_config_targets |
| 14629 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14630 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14631 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14632 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14633 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 14634 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14635 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14636 | esac |
| 14637 | done |
| 14638 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14639 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14640 | # If the user did not use the arguments to specify the items to instantiate, |
| 14641 | # then the envvar interface is used. Set only those that are not. |
| 14642 | # We use the long form for the default assignment because of an extremely |
| 14643 | # bizarre bug on SunOS 4.1.3. |
| 14644 | if $ac_need_defaults; then |
| 14645 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14646 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14647 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14648 | fi |
| 14649 | |
| 14650 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14651 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14652 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14653 | # Hook for its removal unless debugging. |
| 14654 | # Note that there is a small window in which the directory will not be cleaned: |
| 14655 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14656 | $debug || |
| 14657 | { |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14658 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14659 | trap 'exit_status=$? |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14660 | : "${ac_tmp:=$tmp}" |
| 14661 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14662 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14663 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14664 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14665 | # Create a (secure) tmp directory for tmp files. |
| 14666 | |
| 14667 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14668 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14669 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14670 | } || |
| 14671 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14672 | tmp=./conf$$-$RANDOM |
| 14673 | (umask 077 && mkdir "$tmp") |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14674 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14675 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14676 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14677 | # Set up the scripts for CONFIG_FILES section. |
| 14678 | # No need to generate them if there are no CONFIG_FILES. |
| 14679 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14680 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14681 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14682 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 14683 | ac_cs_awk_getline=: |
| 14684 | ac_cs_awk_pipe_init= |
| 14685 | ac_cs_awk_read_file=' |
| 14686 | while ((getline aline < (F[key])) > 0) |
| 14687 | print(aline) |
| 14688 | close(F[key])' |
| 14689 | ac_cs_awk_pipe_fini= |
| 14690 | else |
| 14691 | ac_cs_awk_getline=false |
| 14692 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 14693 | ac_cs_awk_read_file=' |
| 14694 | print "|#_!!_#|" |
| 14695 | print "cat " F[key] " &&" |
| 14696 | '$ac_cs_awk_pipe_init |
| 14697 | # The final `:' finishes the AND list. |
| 14698 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 14699 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14700 | ac_cr=`echo X | tr X '\015'` |
| 14701 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14702 | # But we know of no other shell where ac_cr would be empty at this |
| 14703 | # point, so we can use a bashism as a fallback. |
| 14704 | if test "x$ac_cr" = x; then |
| 14705 | eval ac_cr=\$\'\\r\' |
| 14706 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14707 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14708 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14709 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14710 | else |
| 14711 | ac_cs_awk_cr=$ac_cr |
| 14712 | fi |
| 14713 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14714 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14715 | _ACEOF |
| 14716 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14717 | # Create commands to substitute file output variables. |
| 14718 | { |
| 14719 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14720 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14721 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 14722 | echo "_ACAWK" && |
| 14723 | echo "_ACEOF" |
| 14724 | } >conf$$files.sh && |
| 14725 | . ./conf$$files.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14726 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14727 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14728 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14729 | { |
| 14730 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14731 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14732 | echo "_ACEOF" |
| 14733 | } >conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14734 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14735 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14736 | ac_delim='%!_!# ' |
| 14737 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14738 | . ./conf$$subs.sh || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14739 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14740 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14741 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14742 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14743 | break |
| 14744 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14745 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14746 | else |
| 14747 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14748 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14749 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14750 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14751 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14752 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14753 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14754 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14755 | sed -n ' |
| 14756 | h |
| 14757 | s/^/S["/; s/!.*/"]=/ |
| 14758 | p |
| 14759 | g |
| 14760 | s/^[^!]*!// |
| 14761 | :repl |
| 14762 | t repl |
| 14763 | s/'"$ac_delim"'$// |
| 14764 | t delim |
| 14765 | :nl |
| 14766 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14767 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14768 | t more1 |
| 14769 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14770 | p |
| 14771 | n |
| 14772 | b repl |
| 14773 | :more1 |
| 14774 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14775 | p |
| 14776 | g |
| 14777 | s/.\{148\}// |
| 14778 | t nl |
| 14779 | :delim |
| 14780 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14781 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14782 | t more2 |
| 14783 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14784 | p |
| 14785 | b |
| 14786 | :more2 |
| 14787 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14788 | p |
| 14789 | g |
| 14790 | s/.\{148\}// |
| 14791 | t delim |
| 14792 | ' <conf$$subs.awk | sed ' |
| 14793 | /^[^""]/{ |
| 14794 | N |
| 14795 | s/\n// |
| 14796 | } |
| 14797 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14798 | rm -f conf$$subs.awk |
| 14799 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14800 | _ACAWK |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14801 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14802 | for (key in S) S_is_set[key] = 1 |
| 14803 | FS = "" |
| 14804 | \$ac_cs_awk_pipe_init |
| 14805 | } |
| 14806 | { |
| 14807 | line = $ 0 |
| 14808 | nfields = split(line, field, "@") |
| 14809 | substed = 0 |
| 14810 | len = length(field[1]) |
| 14811 | for (i = 2; i < nfields; i++) { |
| 14812 | key = field[i] |
| 14813 | keylen = length(key) |
| 14814 | if (S_is_set[key]) { |
| 14815 | value = S[key] |
| 14816 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14817 | len += length(value) + length(field[++i]) |
| 14818 | substed = 1 |
| 14819 | } else |
| 14820 | len += 1 + keylen |
| 14821 | } |
| 14822 | if (nfields == 3 && !substed) { |
| 14823 | key = field[2] |
| 14824 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 14825 | \$ac_cs_awk_read_file |
| 14826 | next |
| 14827 | } |
| 14828 | } |
| 14829 | print line |
| 14830 | } |
| 14831 | \$ac_cs_awk_pipe_fini |
| 14832 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14833 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14834 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14835 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14836 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14837 | else |
| 14838 | cat |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14839 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14840 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14841 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14842 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14843 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14844 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14845 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14846 | # (actually we leave an empty line to preserve line numbers). |
| 14847 | if test "x$srcdir" = x.; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14848 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14849 | h |
| 14850 | s/// |
| 14851 | s/^/:/ |
| 14852 | s/[ ]*$/:/ |
| 14853 | s/:\$(srcdir):/:/g |
| 14854 | s/:\${srcdir}:/:/g |
| 14855 | s/:@srcdir@:/:/g |
| 14856 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14857 | s/:*$// |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14858 | x |
| 14859 | s/\(=[ ]*\).*/\1/ |
| 14860 | G |
| 14861 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14862 | s/^[^=]*=[ ]*$// |
| 14863 | }' |
| 14864 | fi |
| 14865 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14867 | fi # test -n "$CONFIG_FILES" |
| 14868 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14869 | # Set up the scripts for CONFIG_HEADERS section. |
| 14870 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14871 | # This happens for instance with `./config.status Makefile'. |
| 14872 | if test -n "$CONFIG_HEADERS"; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14873 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14874 | BEGIN { |
| 14875 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14876 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14877 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14878 | # here-document in config.status, that substitutes the proper values into |
| 14879 | # config.h.in to produce config.h. |
| 14880 | |
| 14881 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14882 | # handling of long lines. |
| 14883 | ac_delim='%!_!# ' |
| 14884 | for ac_last_try in false false :; do |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14885 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14886 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14887 | break |
| 14888 | elif $ac_last_try; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14889 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14890 | else |
| 14891 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14892 | fi |
| 14893 | done |
| 14894 | |
| 14895 | # For the awk script, D is an array of macro values keyed by name, |
| 14896 | # likewise P contains macro parameters if any. Preserve backslash |
| 14897 | # newline sequences. |
| 14898 | |
| 14899 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14900 | sed -n ' |
| 14901 | s/.\{148\}/&'"$ac_delim"'/g |
| 14902 | t rset |
| 14903 | :rset |
| 14904 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14905 | t def |
| 14906 | d |
| 14907 | :def |
| 14908 | s/\\$// |
| 14909 | t bsnl |
| 14910 | s/["\\]/\\&/g |
| 14911 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14912 | D["\1"]=" \3"/p |
| 14913 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14914 | d |
| 14915 | :bsnl |
| 14916 | s/["\\]/\\&/g |
| 14917 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14918 | D["\1"]=" \3\\\\\\n"\\/p |
| 14919 | t cont |
| 14920 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14921 | t cont |
| 14922 | d |
| 14923 | :cont |
| 14924 | n |
| 14925 | s/.\{148\}/&'"$ac_delim"'/g |
| 14926 | t clear |
| 14927 | :clear |
| 14928 | s/\\$// |
| 14929 | t bsnlc |
| 14930 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14931 | d |
| 14932 | :bsnlc |
| 14933 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14934 | b cont |
| 14935 | ' <confdefs.h | sed ' |
| 14936 | s/'"$ac_delim"'/"\\\ |
| 14937 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14938 | |
| 14939 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14940 | for (key in D) D_is_set[key] = 1 |
| 14941 | FS = "" |
| 14942 | } |
| 14943 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14944 | line = \$ 0 |
| 14945 | split(line, arg, " ") |
| 14946 | if (arg[1] == "#") { |
| 14947 | defundef = arg[2] |
| 14948 | mac1 = arg[3] |
| 14949 | } else { |
| 14950 | defundef = substr(arg[1], 2) |
| 14951 | mac1 = arg[2] |
| 14952 | } |
| 14953 | split(mac1, mac2, "(") #) |
| 14954 | macro = mac2[1] |
| 14955 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14956 | if (D_is_set[macro]) { |
| 14957 | # Preserve the white space surrounding the "#". |
| 14958 | print prefix "define", macro P[macro] D[macro] |
| 14959 | next |
| 14960 | } else { |
| 14961 | # Replace #undef with comments. This is necessary, for example, |
| 14962 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14963 | # on some systems where configure will not decide to define it. |
| 14964 | if (defundef == "undef") { |
| 14965 | print "/*", prefix defundef, macro, "*/" |
| 14966 | next |
| 14967 | } |
| 14968 | } |
| 14969 | } |
| 14970 | { print } |
| 14971 | _ACAWK |
| 14972 | _ACEOF |
| 14973 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14974 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14975 | fi # test -n "$CONFIG_HEADERS" |
| 14976 | |
| 14977 | |
| 14978 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14979 | shift |
| 14980 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14981 | do |
| 14982 | case $ac_tag in |
| 14983 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14984 | esac |
| 14985 | case $ac_mode$ac_tag in |
| 14986 | :[FHL]*:*);; |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 14987 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14988 | :[FH]-) ac_tag=-:-;; |
| 14989 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14990 | esac |
| 14991 | ac_save_IFS=$IFS |
| 14992 | IFS=: |
| 14993 | set x $ac_tag |
| 14994 | IFS=$ac_save_IFS |
| 14995 | shift |
| 14996 | ac_file=$1 |
| 14997 | shift |
| 14998 | |
| 14999 | case $ac_mode in |
| 15000 | :L) ac_source=$1;; |
| 15001 | :[FH]) |
| 15002 | ac_file_inputs= |
| 15003 | for ac_f |
| 15004 | do |
| 15005 | case $ac_f in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15006 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15007 | *) # Look for the file first in the build tree, then in the source tree |
| 15008 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 15009 | # because $ac_f cannot contain `:'. |
| 15010 | test -f "$ac_f" || |
| 15011 | case $ac_f in |
| 15012 | [\\/$]*) false;; |
| 15013 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15014 | esac || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15015 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15016 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15017 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15018 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15019 | done |
| 15020 | |
| 15021 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15022 | # use $as_me), people would be surprised to read: |
| 15023 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15024 | configure_input='Generated from '` |
| 15025 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 15026 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15027 | if test x"$ac_file" != x-; then |
| 15028 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15029 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15030 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15031 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15032 | # Neutralize special characters interpreted by sed in replacement strings. |
| 15033 | case $configure_input in #( |
| 15034 | *\&* | *\|* | *\\* ) |
| 15035 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 15036 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 15037 | *) ac_sed_conf_input=$configure_input;; |
| 15038 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15039 | |
| 15040 | case $ac_tag in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15041 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 15042 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15043 | esac |
| 15044 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15045 | esac |
| 15046 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15047 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15048 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15049 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15050 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15051 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15052 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15054 | s//\1/ |
| 15055 | q |
| 15056 | } |
| 15057 | /^X\(\/\/\)[^/].*/{ |
| 15058 | s//\1/ |
| 15059 | q |
| 15060 | } |
| 15061 | /^X\(\/\/\)$/{ |
| 15062 | s//\1/ |
| 15063 | q |
| 15064 | } |
| 15065 | /^X\(\/\).*/{ |
| 15066 | s//\1/ |
| 15067 | q |
| 15068 | } |
| 15069 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15070 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15071 | ac_builddir=. |
| 15072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15073 | case "$ac_dir" in |
| 15074 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15075 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15076 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15077 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15078 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15079 | case $ac_top_builddir_sub in |
| 15080 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15081 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 15082 | esac ;; |
| 15083 | esac |
| 15084 | ac_abs_top_builddir=$ac_pwd |
| 15085 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 15086 | # for backward compatibility: |
| 15087 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15088 | |
| 15089 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15090 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15091 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15092 | ac_top_srcdir=$ac_top_builddir_sub |
| 15093 | ac_abs_top_srcdir=$ac_pwd ;; |
| 15094 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15095 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15096 | ac_top_srcdir=$srcdir |
| 15097 | ac_abs_top_srcdir=$srcdir ;; |
| 15098 | *) # Relative name. |
| 15099 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15100 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15101 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15102 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15103 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15104 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15106 | case $ac_mode in |
| 15107 | :F) |
| 15108 | # |
| 15109 | # CONFIG_FILE |
| 15110 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15111 | |
| 15112 | case $INSTALL in |
| 15113 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15114 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15115 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15116 | ac_MKDIR_P=$MKDIR_P |
| 15117 | case $MKDIR_P in |
| 15118 | [\\/$]* | ?:[\\/]* ) ;; |
| 15119 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15120 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15121 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15122 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15123 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15124 | # If the template does not know about datarootdir, expand it. |
| 15125 | # FIXME: This hack should be removed a few years after 2.60. |
| 15126 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15127 | ac_sed_dataroot=' |
| 15128 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15129 | p |
| 15130 | q |
| 15131 | } |
| 15132 | /@datadir@/p |
| 15133 | /@docdir@/p |
| 15134 | /@infodir@/p |
| 15135 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15136 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15137 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15138 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15139 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15141 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15142 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15143 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15144 | ac_datarootdir_hack=' |
| 15145 | s&@datadir@&$datadir&g |
| 15146 | s&@docdir@&$docdir&g |
| 15147 | s&@infodir@&$infodir&g |
| 15148 | s&@localedir@&$localedir&g |
| 15149 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15150 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15151 | esac |
| 15152 | _ACEOF |
| 15153 | |
| 15154 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15155 | # Shell code in configure.ac might set extrasub. |
| 15156 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15157 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15158 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15159 | $extrasub |
| 15160 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15161 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15162 | :t |
| 15163 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15164 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15165 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15166 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15167 | s&@srcdir@&$ac_srcdir&;t t |
| 15168 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15169 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15170 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15171 | s&@builddir@&$ac_builddir&;t t |
| 15172 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15173 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15174 | s&@INSTALL@&$ac_INSTALL&;t t |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15175 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15176 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15177 | " |
| 15178 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 15179 | if $ac_cs_awk_getline; then |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15180 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15181 | else |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15182 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 15183 | fi \ |
| 15184 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15185 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15186 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15187 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 15188 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 15189 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15191 | which seems to be undefined. Please make sure it is defined" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15192 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15193 | which seems to be undefined. Please make sure it is defined" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15194 | |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15195 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15196 | case $ac_file in |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15197 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 15198 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15199 | esac \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15200 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15201 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15202 | :H) |
| 15203 | # |
| 15204 | # CONFIG_HEADER |
| 15205 | # |
| 15206 | if test x"$ac_file" != x-; then |
| 15207 | { |
| 15208 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15209 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 15210 | } >"$ac_tmp/config.h" \ |
| 15211 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 15212 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15213 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15214 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 15215 | else |
| 15216 | rm -f "$ac_file" |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15217 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 15218 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15219 | fi |
| 15220 | else |
| 15221 | $as_echo "/* $configure_input */" \ |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15222 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 15223 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 15224 | fi |
| 15225 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15226 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15227 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15228 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15229 | ;; |
| 15230 | esac |
| 15231 | |
| 15232 | |
| 15233 | case $ac_file$ac_mode in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15234 | "po-directories":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15235 | for ac_file in $CONFIG_FILES; do |
| 15236 | # Support "outfile[:infile[:infile...]]" |
| 15237 | case "$ac_file" in |
| 15238 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 15239 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15240 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 15241 | case "$ac_file" in */Makefile.in) |
| 15242 | # Adjust a relative srcdir. |
| 15243 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15244 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15245 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 15246 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 15247 | # In autoconf-2.50 it is called $srcdir. |
| 15248 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 15249 | case "$ac_given_srcdir" in |
| 15250 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 15251 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 15252 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 15253 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15254 | # Treat a directory as a PO directory if and only if it has a |
| 15255 | # POTFILES.in file. This allows packages to have multiple PO |
| 15256 | # directories under different names or in different locations. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15257 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 15258 | rm -f "$ac_dir/POTFILES" |
| 15259 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15260 | gt_tab=`printf '\t'` |
| 15261 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15262 | POMAKEFILEDEPS="POTFILES.in" |
| 15263 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15264 | # on $ac_dir but don't depend on user-specified configuration |
| 15265 | # parameters. |
| 15266 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 15267 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15268 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15269 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 15270 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15271 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 15272 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15273 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15274 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 15275 | else |
| 15276 | # The set of available languages was given in configure.in. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 15277 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15278 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15279 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15280 | # Compute POFILES |
| 15281 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 15282 | # Compute UPDATEPOFILES |
| 15283 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 15284 | # Compute DUMMYPOFILES |
| 15285 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 15286 | # Compute GMOFILES |
| 15287 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15288 | case "$ac_given_srcdir" in |
| 15289 | .) srcdirpre= ;; |
| 15290 | *) srcdirpre='$(srcdir)/' ;; |
| 15291 | esac |
| 15292 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15293 | UPDATEPOFILES= |
| 15294 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15295 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15296 | for lang in $ALL_LINGUAS; do |
| 15297 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15298 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 15299 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15300 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15301 | done |
| 15302 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 15303 | # environment variable. |
| 15304 | INST_LINGUAS= |
| 15305 | if test -n "$ALL_LINGUAS"; then |
| 15306 | for presentlang in $ALL_LINGUAS; do |
| 15307 | useit=no |
| 15308 | if test "%UNSET%" != "$LINGUAS"; then |
| 15309 | desiredlanguages="$LINGUAS" |
| 15310 | else |
| 15311 | desiredlanguages="$ALL_LINGUAS" |
| 15312 | fi |
| 15313 | for desiredlang in $desiredlanguages; do |
| 15314 | # Use the presentlang catalog if desiredlang is |
| 15315 | # a. equal to presentlang, or |
| 15316 | # b. a variant of presentlang (because in this case, |
| 15317 | # presentlang can be used as a fallback for messages |
| 15318 | # which are not translated in the desiredlang catalog). |
| 15319 | case "$desiredlang" in |
| 15320 | "$presentlang"*) useit=yes;; |
| 15321 | esac |
| 15322 | done |
| 15323 | if test $useit = yes; then |
| 15324 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 15325 | fi |
| 15326 | done |
| 15327 | fi |
| 15328 | CATALOGS= |
| 15329 | if test -n "$INST_LINGUAS"; then |
| 15330 | for lang in $INST_LINGUAS; do |
| 15331 | CATALOGS="$CATALOGS $lang.gmo" |
| 15332 | done |
| 15333 | fi |
| 15334 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15335 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15336 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 15337 | if test -f "$f"; then |
| 15338 | case "$f" in |
| 15339 | *.orig | *.bak | *~) ;; |
| 15340 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 15341 | esac |
| 15342 | fi |
| 15343 | done |
| 15344 | fi |
| 15345 | ;; |
| 15346 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15347 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15348 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15349 | esac |
| 15350 | done # for ac_tag |
| 15351 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15352 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15353 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15354 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15355 | ac_clean_files=$ac_clean_files_save |
| 15356 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15357 | test $ac_write_fail = 0 || |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15358 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15359 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15360 | |
| 15361 | # configure is writing to config.log, and then calls config.status. |
| 15362 | # config.status does its own redirection, appending to config.log. |
| 15363 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15364 | # by configure, so config.status won't be able to write to it; its |
| 15365 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15366 | # effectively closing config.log, so it can be properly (re)opened and |
| 15367 | # appended to by config.status. When coming back to configure, we |
| 15368 | # need to make the FD available again. |
| 15369 | if test "$no_create" != yes; then |
| 15370 | ac_cs_success=: |
| 15371 | ac_config_status_args= |
| 15372 | test "$silent" = yes && |
| 15373 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15374 | exec 5>/dev/null |
| 15375 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15376 | exec 5>>config.log |
| 15377 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15378 | # would make configure fail if this is the last instruction. |
Tony Breeds | d6a4bcb | 2012-06-26 11:42:15 +1000 | [diff] [blame] | 15379 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15380 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15381 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 15382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15383 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 15384 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15385 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 15386 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |